/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors - Sunrise Palette */
    /* Brand Colors - Luxury Monochrome (Fashion Style) */
    --primary: #000000;
    /* Pure Black */
    --primary-dark: #333333;
    /* Dark Gray */
    --secondary: #666666;
    /* Medium Gray */

    --dark: #111111;
    /* Off Black */
    --dark-bg: #000000;
    --gray: #777777;
    --light: #F9F9F9;
    /* Very subtle gray bg */
    --white: #ffffff;

    /* Design Tokens */
    --radius-xl: 0px;
    /* Sharp/Minimalist ? Or Soft? Image shows 24px sometimes. Let's keep 12px but cleaner. */
    --radius-lg: 12px;
    --radius-md: 8px;

    /* Shadows - Minimal/None for Fashion (Flat is premium) */
    --shadow-soft: none;
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Subtle float */
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-heading: 'Poppins', -apple-system, sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

p {
    color: var(--gray);
    font-size: 1.05rem;
    /* rem is relative */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

.section-padding {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* =========================================
   2. BUTTONS & UI ELEMENTS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.6);
}

.btn-outline {
    background: white;
    border: 2px solid #eee;
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* The Connector Line */
.connector-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

@media (max-width: 768px) {

    /* Header Layout Redesign */
    .header-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-branding {
        order: 1;
        flex: 0 0 auto;
    }

    /* Show Header Search */
    .header-search {
        display: block !important;
        order: 2;
        flex: 1;
        /* Take available space */
        margin: 0 10px;
    }

    .header-search input.search-field {
        width: 100%;
        min-height: 36px;
        border-radius: 20px;
        background: #f1f3f5;
        border: none;
        padding: 0 15px;
        font-size: 14px !important;
        color: var(--dark);
    }

    .main-navigation {
        order: 3;
        flex: 0 0 auto;
    }

    /* Mobile Direct Links (Secondary Row) */
    .mobile-direct-links,
    .mobile-direct-links ul {
        /* Select both/either for robustness */
        display: flex;
        order: 4;
        width: 100%;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
        margin-top: 5px;
        overflow-x: auto;
        padding-bottom: 5px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 10px;
        margin-left: 0;
        margin-right: 0;
        list-style: none;
        /* Remove bullets */
        padding-left: 0;
    }

    /* Handle if wp_nav_menu wraps in div */
    .mobile-direct-links ul {
        margin: 0;
        width: 100%;
        border: none;
        padding-top: 0;
    }

    .mobile-direct-links li {
        flex: 0 0 auto;
    }

    .mobile-direct-links a {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--gray);
        padding: 0;
        background: transparent;
        border-radius: 0;
        white-space: nowrap;
        margin-right: 5px;
        display: flex;
        align-items: center;
    }

    .mobile-direct-links a:after {
        content: '⌄';
        margin-left: 4px;
        font-size: 0.8em;
        vertical-align: middle;
        opacity: 0.7;
    }
}

/* Hide Mobile Direct on Desktop */
@media (min-width: 769px) {
    .mobile-direct-links {
        display: none;
    }
}

/* =========================================
   9. HOMEPAGE ZERO-GAP SYSTEM
   ========================================= */
/* Ensure the main container stacks children with absolute zero spacing */
body.home main#primary {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    gap: 0 !important;
    background-color: var(--white);
    /* Fallback */
}

/* 
   Holistic reset for all direct section wrappers.
   - Forces full width to ensure background continuity.
   - Removes all margins to eliminate white gaps.
   - Squares off corners to allow seamless merging of same-color sections.
*/
body.home main#primary>* {
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    display: block;
    box-sizing: border-box;
}

/* Specific overrides for plugin classes that might enforce constraints */
body.home main#primary>.subscribe-plugin-wrapper,
body.home main#primary>.wcub-section {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}

/* =========================================
   10. GLOBAL MOBILE APP POLISH
   ========================================= */
@media (max-width: 768px) {

    /* Safe Mobile Gutter */
    .container,
    .site-content,
    .entry-content {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Touch Friendly Inputs/Buttons */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea,
    button,
    .btn,
    .button {
        min-height: 48px;
        /* App standard touch target */
        font-size: 16px !important;
        /* Prevent zoom */
        border-radius: 8px;
        /* Modern Softness */
    }

    /* Readable Typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 24px !important;
        line-height: 1.25;
    }

    h3 {
        font-size: 20px !important;
    }

    /* Spacing Reduction (App Density) */
    .section-padding {
        padding: 32px 0 !important;
    }

    /* Remove awkward margins */
    p {
        margin-bottom: 1.2em;
    }

    /* Global scrollbar hide for horizontal scrolls */
    .scroll-x,
    .scrolling-wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .scroll-x::-webkit-scrollbar {
        display: none;
    }
}