/* ============================================
 * MXOHO — Theme Rebrand v3.0 (Contemporary Luxury Editorial)
 * Executive design layer that overrides style.css defaults
 * Executes: Midnight Indigo + Rose Champagne, Fraunces/DM Sans, editorial spacing, hairline details, restrained motion
 * ============================================ */

/* ---------- Token overrides (brute-force style.css variable names) ---------- */
:root {
    --color-primary:        #1F2937;
    --color-primary-dark:   #111827;
    --color-primary-light:  #374151;
    --color-secondary:      #DAB468;
    --color-secondary-dark: #C19A4B;
    --color-secondary-light:#F5CF90;
    --color-bg:             #FAFAFA;
    --color-bg-alt:         #F5F3EF;
    --color-white:          #ffffff;
    --color-text:           #181715;
    --color-text-light:     #504C46;
    --color-text-muted:     #8E8A82;
    --color-border:         #E9E7E2;
    --color-overlay:        rgba(15, 23, 42, 0.78);
}

/* ---------- Typography: inject Fraunces + DM Sans + IBM Plex Mono ---------- */
/* Display/Headings: Fraunces Variable */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&display=swap');
/* Body: DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');
/* Meta: IBM Plex Mono */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- Base reset for editorial rhythm ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11", "kern";
}

/* Editorial typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display, 'Fraunces', serif);
    font-weight: 600;
    line-height: var(--lh-head);
    letter-spacing: var(--tracking-display);
    color: var(--color-primary-dark);
    margin: 0 0 var(--sp-4);
}

h1 { font-size: var(--fs-h1); font-weight: 500; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 500; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p {
    color: var(--color-text-sub);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    margin: 0 0 var(--sp-5);
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out-editorial);
}
a:hover { color: var(--rose-600, var(--color-secondary-dark)); }

/* ---------- Eyebrow / section micro labels (ALL-CAPS + champagne tracking) ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-meta, 'IBM Plex Mono', monospace);
    font-size: var(--fs-micro);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--tracking-eyebrow);
    color: var(--rose-600, var(--color-secondary-dark));
    margin: 0 0 var(--sp-4);
    padding: 0;
    background: none;
    border: none;
    position: relative;
}
.eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--color-border-champagne, var(--color-secondary-light));
    margin-top: 10px;
}

/* ---------- Section breathing room ---------- */
.section {
    padding: var(--sp-12) 0;
    position: relative;
}
.section:nth-of-type(even) { background: var(--color-bg-alt); }

.section-header {
    max-width: 720px;
    margin: 0 auto var(--sp-10);
    text-align: center;
}
.section-header .eyebrow::after { margin: 10px auto 0; }
.section-header h2 { margin-bottom: var(--sp-5); }
.section-header p { font-size: var(--fs-lead); color: var(--color-text-sub); }

/* Center champagne hairline divider between sections */
.section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 240px;
    height: 1px;
    background: var(--divider-center);
}

/* ---------- Containers ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Navbar: editorial minimal, hairline bottom ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
    transition: all var(--t-base) var(--ease-out-editorial);
}
.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-hairline);
    border-bottom: 1px solid var(--color-border-hairline, var(--color-border));
}

.navbar .brand {
    font-family: var(--font-display, serif);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--color-primary-dark);
}
.navbar .brand span { color: var(--rose-600, var(--color-secondary-dark)); font-weight: 500; }

.navbar nav a {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-sub);
    padding: 8px 2px;
    margin: 0 16px;
    position: relative;
    transition: color var(--t-fast);
}
.navbar nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--color-secondary, #DAB468);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease-out-editorial);
}
.navbar nav a:hover { color: var(--color-primary-dark); }
.navbar nav a:hover::after,
.navbar nav a.active::after { transform: scaleX(1); }

/* ---------- Hero: midnight indigo + champagne hairline + grain ---------- */
.hero {
    background: var(--gradient-hero, linear-gradient(180deg, #181715 0%, #111827 50%, #1F2937 100%));
    color: #fff;
    padding: var(--sp-14) 0 var(--sp-12);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain-overlay);
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; bottom: 0;
    background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(218, 180, 104, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.hero .eyebrow {
    color: var(--rose-300, var(--color-secondary-light));
}
.hero .eyebrow::after { background: var(--rose-500, var(--color-secondary)); }

.hero h1 {
    font-weight: 500;
    line-height: var(--lh-tight);
    letter-spacing: -0.025em;
    margin: 0 0 var(--sp-6);
    color: #FAFAFA;
}
.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--rose-300, var(--color-secondary-light));
}

.hero p.lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    color: rgba(249, 250, 251, 0.72);
    font-weight: 400;
    max-width: 620px;
    margin: 0 0 var(--sp-8);
}

/* Champagne hairline CTA separator in hero */
.hero .hairline-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: var(--sp-6);
    color: var(--rose-200);
    font-family: var(--font-meta, monospace);
    font-size: var(--fs-micro);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.hero .hairline-row::before {
    content: '';
    flex: 0 0 60px;
    height: 1px;
    background: var(--rose-300);
}

/* ---------- Buttons: editorial hairline + hover fill ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--t-base) var(--ease-out-editorial),
        box-shadow var(--t-base) var(--ease-out-editorial),
        color var(--t-base) var(--ease-out-editorial),
        border-color var(--t-base) var(--ease-out-editorial),
        background var(--t-base) var(--ease-out-editorial);
    text-decoration: none;
}
.btn:hover { transform: translateY(-0.5px); text-decoration: none; }
.btn:active { transform: translateY(0); }

/* Primary: midnight indigo solid */
.btn-primary {
    background: var(--color-primary-dark, #111827);
    color: #fff;
    border-color: var(--color-primary-dark, #111827);
}
.btn-primary:hover {
    background: var(--color-primary, #1F2937);
    border-color: var(--color-primary, #1F2937);
    color: #fff;
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.35);
}

/* Accent: rose champagne hairline fill */
.btn-gold, .btn-accent {
    background: transparent;
    color: var(--rose-600, var(--color-secondary-dark));
    border: 1px solid var(--color-secondary, #DAB468);
}
.btn-gold:hover, .btn-accent:hover {
    background: var(--color-secondary, #DAB468);
    color: var(--mist-900, #181715);
    border-color: var(--color-secondary, #DAB468);
    box-shadow: var(--shadow-accent);
}

/* Outline: ghost button */
.btn-outline {
    background: transparent;
    color: inherit;
    border: 1px solid var(--color-border-strong, #D9D6CF);
}
.btn-outline:hover {
    border-color: var(--color-primary-dark, #111827);
    color: var(--color-primary-dark, #111827);
    background: rgba(31, 41, 55, 0.03);
}

/* On-dark hero variants */
.hero .btn-primary {
    background: var(--rose-500, var(--color-secondary));
    color: var(--mist-900, #181715);
    border-color: var(--rose-500, var(--color-secondary));
}
.hero .btn-primary:hover {
    background: var(--rose-400, var(--color-secondary-light));
    border-color: var(--rose-400, var(--color-secondary-light));
    box-shadow: var(--shadow-accent);
}
.hero .btn-outline {
    border-color: rgba(249, 250, 251, 0.28);
    color: #F9FAFB;
}
.hero .btn-outline:hover {
    border-color: var(--rose-300);
    color: var(--rose-200);
    background: rgba(218, 180, 104, 0.08);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--r-sm); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Cards: hairline 1px border + super soft shadow ---------- */
.card, .feature-card, .product-card, .testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border-hairline, #E9E7E2);
    border-radius: var(--r-md);
    padding: 28px;
    box-shadow: var(--shadow-hairline);
    transition:
        transform var(--t-base) var(--ease-out-editorial),
        box-shadow var(--t-base) var(--ease-out-editorial),
        border-color var(--t-base) var(--ease-out-editorial);
    position: relative;
    overflow: hidden;
}
.card::before,
.feature-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--divider-center);
    opacity: 0;
    transition: opacity var(--t-base);
}
.card:hover::before,
.feature-card:hover::before,
.product-card:hover::before { opacity: 1; }

.card:hover,
.feature-card:hover,
.product-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
    border-color: var(--color-border-champagne, #FBE4C0);
}

/* Feature card icon */
.feature-card .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    background: var(--rose-50, #FFFBF4);
    border: 1px solid var(--rose-100, #FEF3E2);
    color: var(--rose-600, var(--color-secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--t-base);
}
.feature-card:hover .icon {
    background: var(--color-secondary, #DAB468);
    border-color: var(--color-secondary, #DAB468);
    color: var(--mist-900, #181715);
}

/* ---------- FAQ details: editorial minimal ---------- */
details {
    background: #fff;
    border: 1px solid var(--color-border-hairline, #E9E7E2);
    border-radius: var(--r-md);
    padding: 0;
    overflow: hidden;
    transition: border-color var(--t-base);
}
details[open] { border-color: var(--color-border-champagne, #FBE4C0); }

details > summary {
    padding: 24px 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary-dark);
    list-style: none;
    position: relative;
    transition: color var(--t-fast);
}
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--color-primary); }
details > summary .ic-label-tag {
    font-family: var(--font-meta, monospace);
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose-600, var(--color-secondary-dark));
    margin-left: auto;
    margin-right: 10px;
    opacity: 0.85;
}
details > summary svg.chev {
    transition: transform var(--t-base) var(--ease-out-editorial);
    color: var(--color-text-muted);
}
details[open] > summary svg.chev { transform: rotate(180deg); color: var(--rose-500, var(--color-secondary)); }

details > summary ~ div,
details > div:last-child {
    padding: 0 28px 24px 76px;
    color: var(--color-text-sub);
    font-size: 0.97rem;
    line-height: var(--lh-body);
}

/* ---------- Footer: midnight indigo + champagne hairlines ---------- */
.footer {
    background: var(--color-primary-dark, #111827);
    color: rgba(249, 250, 251, 0.7);
    padding: var(--sp-12) 0 0;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(218, 180, 104, 0.4), transparent);
}
.footer h4, .footer h5 {
    font-family: var(--font-display, serif);
    color: #FAFAFA;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 20px;
    letter-spacing: -0.005em;
}
.footer a {
    color: rgba(249, 250, 251, 0.65);
    font-size: 0.9rem;
    transition: color var(--t-fast);
}
.footer a:hover { color: var(--rose-300); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 5px 0; }

.footer-brand .brand {
    font-family: var(--font-display, serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FAFAFA;
    letter-spacing: -0.015em;
    display: block;
    margin-bottom: 14px;
}
.footer-brand .brand span { color: var(--rose-400); font-weight: 500; }
.footer-brand p {
    color: rgba(249, 250, 251, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-bottom {
    margin-top: var(--sp-10);
    padding: var(--sp-6) 0;
    border-top: 1px solid rgba(249, 250, 251, 0.08);
    font-size: 0.8rem;
    color: rgba(249, 250, 251, 0.4);
    font-family: var(--font-meta, monospace);
    letter-spacing: 0.04em;
}

/* ---------- CTA section (editorial champagne accent block) ---------- */
.cta-section {
    background: var(--color-primary-dark, #111827);
    color: #fff;
    padding: var(--sp-12) 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain-overlay);
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.cta-section h2 {
    color: #FAFAFA;
    font-weight: 500;
}
.cta-section p { color: rgba(249, 250, 251, 0.65); }

/* ---------- Form inputs (editorial hairlines, not heavy) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border-strong, #D9D6CF);
    border-radius: var(--r-sm);
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all var(--t-fast);
    outline: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--rose-400, var(--color-secondary-light));
    box-shadow: 0 0 0 3px rgba(218, 180, 104, 0.12);
}

input::placeholder, textarea::placeholder {
    color: var(--color-text-muted);
}

/* ---------- Badges / meta tags ---------- */
.badge, .tag, .meta-label {
    display: inline-block;
    font-family: var(--font-meta, monospace);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--rose-50, #FFFBF4);
    color: var(--rose-700, #9A7A38);
    border: 1px solid var(--rose-100, #FEF3E2);
}

/* SLA 90-second gold border (editorial) */
.sla-badge {
    padding: 20px 28px;
    border: 1px solid;
    border-image: var(--gradient-accent) 1;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--rose-50, #FFFBF4) 0%, rgba(255,255,255,1) 100%);
    position: relative;
}
.sla-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--r-md);
    background: var(--gradient-accent, linear-gradient(135deg, #DAB468, #F5CF90));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---------- Dropdowns in nav: minimal ---------- */
.nav-dropdown {
    background: #fff;
    border: 1px solid var(--color-border-hairline, #E9E7E2);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 10px;
    min-width: 220px;
}
.nav-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    color: var(--color-text-sub);
    transition: all var(--t-fast);
    margin: 0;
}
.nav-dropdown a:hover {
    background: var(--mist-100, #F5F3EF);
    color: var(--color-primary-dark);
}
.nav-dropdown a .desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- Page load reveal (staggered editorial fade-up) ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--t-xslow, 900ms) var(--ease-out-editorial),
        transform var(--t-xslow, 900ms) var(--ease-out-editorial);
}
.fade-up.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- WhatsApp floating (minimal editorial hairline) ---------- */
.wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #111827;
    border: 1px solid var(--rose-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-300);
    z-index: 9997;
    box-shadow: var(--shadow-card);
    transition: all var(--t-base) var(--ease-out-editorial);
    text-decoration: none;
}
.wa-float:hover {
    background: var(--rose-500);
    border-color: var(--rose-500);
    color: var(--mist-900);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-accent);
}

/* ---------- Force old stray green/gold references to new palette ---------- */
*[style*="#132A46"], *[style*="#0E2239"], *[style*="#2A456B"],
*[style*="#1B4332"], *[style*="#0F2A1F"], *[style*="#245A47"],
*[style*="#111827"], *[style*="#1F2937"], *[style*="#374151"] {
    color: var(--color-primary-dark) !important;
    background-color: var(--color-primary-dark) !important;
}
*[style*="#B7905B"], *[style*="#D4A373"], *[style*="#DAB468"], *[style*="#C19A4B"] {
    color: var(--color-secondary) !important;
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

/* ---------- Responsive: mobile editorial grace ---------- */
@media (max-width: 768px) {
    :root {
        --sp-12: 64px;
        --sp-14: 80px;
        --gutter: 20px;
    }
    .section { padding: var(--sp-10) 0; }
    .section-header { margin-bottom: var(--sp-8); }
    .hero { padding: var(--sp-12) 0 var(--sp-10); }
    h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}
