/**
 * WordPress Overrides for Hata Homes Theme
 * Loaded AFTER main.css to fix WP-specific conflicts
 */

/* ============================================================
   1. WP GLOBAL STYLES RESET
   ============================================================ */

/* Override WP global styles spacing */
body {
    margin: 0 !important;
    padding: 0 !important;
}
.wp-site-blocks {
    padding: 0 !important;
}

/* Remove WP block library remnants (if loaded) */
.wp-block-library-css { display: none; }

/* Neutralize WP layout system */
.is-layout-flex,
.is-layout-grid {
    gap: unset;
}


/* ============================================================
   2. NAV MENU — BULLET REMOVAL & STYLING
   ============================================================ */

/* Desktop nav */
.header-nav .menu {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .menu,
.header-nav .menu li,
.menu-overlay-items .menu,
.menu-overlay-items .menu li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

.header-nav .menu li::marker,
.menu-overlay-items .menu li::marker {
    content: none;
    display: none;
}

.header-nav .menu-item {
    list-style: none;
}

.header-nav .menu-item a {
    font-size: 12.8px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.1px;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav .menu-item a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transform: scaleX(0) translateX(-50%);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header-nav .menu-item a:hover::after,
.header-nav .current-menu-item a::after {
    transform: scaleX(1) translateX(-50%);
}

/* Mobile overlay menu */
.menu-overlay-items .menu {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-overlay-items .menu-item a {
    font-size: 41.6px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2.4px;
    padding: 12px 40px;
    position: relative;
    transition: color 0.35s ease;
}

.menu-overlay-items .menu-item a:hover {
    color: var(--color-orange);
}


/* ============================================================
   3. ADMIN BAR OFFSET
   ============================================================ */

body.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}


/* ============================================================
   4. SECTION HEIGHT FIXES
   ============================================================ */

/* Ensure hero height on homepage */
body.page-template-templates-home-php .hero,
body.home .hero {
    height: 998px;
}

/* Ensure section spacing - no gaps between sections */
main > section {
    margin: 0;
    padding: 0;
}

.about + .awards,
section + section {
    margin-top: 0;
}

/* About section height */
.about {
    height: 580px !important;
    padding: 0 !important;
    min-height: unset !important;
}

@media (max-width: 1024px) {
    .about {
        height: auto !important;
        min-height: 400px !important;
        padding: 40px 0 !important;
    }
}

@media (max-width: 768px) {
    .about {
        height: auto !important;
        min-height: auto !important;
        padding: 40px 0 !important;
    }
}


/* ============================================================
   5. AWARDS LINK DISPLAY (rendered as <a> in WP)
   ============================================================ */

a.awards-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    text-decoration: none;
    color: inherit;
}

/* LCP fix: make hero text visible immediately, animation is progressive enhancement */
.hero-content .coming-soon {
    opacity: 1 !important;
    animation-delay: 0s !important;
}
.hero-label,
.hero-title,
.hero-subtitle {
    opacity: 1 !important;
    animation-delay: 0s !important;
    animation-fill-mode: none !important;
}
