/* ==========================================================================
   MACTUIG — Refined Botanical Luxury

   A sophisticated, editorial aesthetic evoking high-end wellness brands,
   luxury hospitality, and premium consulting. Luxurious greens and beiges
   with refined animations and exquisite attention to detail.

   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base Styles
   3. Noise Texture Overlay
   4. Typography
   5. Layout Utilities
   6. Animations
   7. Section Labels
   8. Header & Navigation
   9. Hero Section
   10. About Section
   11. Support/Services Section
   12. Who It's For Section
   13. Contact Section
   14. Footer
   15. Responsive Adjustments
   16. Print Styles
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)

   Luxurious greens and warm beiges with gold accents.
   Semantic naming for clarity and maintainability.
   ========================================================================== */

:root {
    /* -------------------------------------------------------------------------
     COLOR PALETTE — Luxurious Greens & Beiges
     ------------------------------------------------------------------------- */

    /* PRIMARY — Deep Forest Greens */
    --color-primary-deep: #1a2f23;
    --color-primary: #2d4a38;
    --color-primary-soft: #3d5f4a;
    --color-primary-muted: #4a7259;
    --color-on-primary: #f5efe6;

    /* SECONDARY — Soft Sage Greens */
    --color-secondary: #7a9a85;
    --color-secondary-light: #9bb5a5;
    --color-secondary-pale: #c5d6cb;

    /* SURFACE — Warm Beiges & Ivory */
    --color-surface: #f5efe6;
    --color-surface-warm: #ede5d8;
    --color-surface-rich: #e4d9c8;
    --color-surface-elevated: #faf7f2;
    --color-surface-dark: #d8cbb8;

    /* ACCENT — Muted Gold */
    --color-accent: #b8965a;
    --color-accent-soft: #d4c4a0;
    --color-accent-pale: #e8dfc8;
    --color-accent-rich: #9a7b42;

    /* TEXT */
    --color-text-primary: #1a2f23;
    --color-text-secondary: #3d5a47;
    --color-text-muted: #5a7362;
    --color-text-subtle: #7a8c80;
    --color-text-on-dark: #f5efe6;
    --color-text-on-dark-muted: #c5d6cb;

    /* BORDERS */
    --color-border: #d8cbb8;
    --color-border-subtle: #e4ddd0;
    --color-border-accent: rgba(184, 150, 90, 0.3);

    /* UTILITY */
    --color-focus: #2d4a38;
    --color-shadow-rgb: 26, 47, 35;
    --color-overlay-dark-rgb: 26, 47, 35;
    --color-overlay-light-rgb: 245, 239, 230;

    /* -------------------------------------------------------------------------
     TYPOGRAPHY
     Cormorant for headlines, Libre Baskerville for body, Jost for accents
     ------------------------------------------------------------------------- */

    --font-heading: "Cormorant", Georgia, "Times New Roman", serif;
    --font-body: "Libre Baskerville", Georgia, serif;
    --font-accent: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type scale — generous, unhurried */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-md: 1.0625rem; /* 17px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 2rem; /* 32px */
    --text-4xl: 2.5rem; /* 40px */
    --text-5xl: 3.25rem; /* 52px */
    --text-6xl: 4rem; /* 64px */
    --text-7xl: 5rem; /* 80px */

    /* Line heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 1.9;

    /* Letter spacing */
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.015em;
    --tracking-normal: 0;
    --tracking-wide: 0.04em;
    --tracking-wider: 0.08em;
    --tracking-widest: 0.14em;

    /* Font weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* -------------------------------------------------------------------------
     SPACING
     ------------------------------------------------------------------------- */

    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.25rem; /* 20px */
    --space-6: 1.5rem; /* 24px */
    --space-8: 2rem; /* 32px */
    --space-10: 2.5rem; /* 40px */
    --space-12: 3rem; /* 48px */
    --space-14: 3.5rem; /* 56px */
    --space-16: 4rem; /* 64px */
    --space-20: 5rem; /* 80px */
    --space-24: 6rem; /* 96px */
    --space-32: 8rem; /* 128px */
    --space-40: 10rem; /* 160px */

    /* -------------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------------- */

    --max-width: 72rem; /* 1152px */
    --max-width-narrow: 40rem; /* 640px */
    --max-width-text: 36rem; /* 576px */
    --max-width-wide: 84rem; /* 1344px */

    --gutter: var(--space-6);
    --header-height: 5rem;

    /* -------------------------------------------------------------------------
     BORDERS & SHADOWS
     ------------------------------------------------------------------------- */

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Refined shadows with color tint */
    --shadow-sm:
        0 1px 3px rgba(var(--color-shadow-rgb), 0.04),
        0 1px 2px rgba(var(--color-shadow-rgb), 0.06);
    --shadow-md:
        0 4px 6px rgba(var(--color-shadow-rgb), 0.04),
        0 2px 4px rgba(var(--color-shadow-rgb), 0.06);
    --shadow-lg:
        0 10px 20px rgba(var(--color-shadow-rgb), 0.06),
        0 4px 8px rgba(var(--color-shadow-rgb), 0.04);
    --shadow-xl:
        0 20px 40px rgba(var(--color-shadow-rgb), 0.08),
        0 8px 16px rgba(var(--color-shadow-rgb), 0.04);
    --shadow-glow: 0 0 40px rgba(var(--color-shadow-rgb), 0.12);

    /* -------------------------------------------------------------------------
     TRANSITIONS & ANIMATIONS
     ------------------------------------------------------------------------- */

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-refined: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 600ms;
    --duration-slower: 800ms;

    --transition-fast: var(--duration-fast) var(--ease-refined);
    --transition-base: var(--duration-base) var(--ease-refined);
    --transition-slow: var(--duration-slow) var(--ease-out-expo);

    /* -------------------------------------------------------------------------
     OVERLAY DEFAULTS
     ------------------------------------------------------------------------- */

    --hero-overlay-opacity: 0.6;
    --support-overlay-opacity: 0.75;
    --contact-overlay-opacity: 0.7;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-md);
    font-weight: var(--weight-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-surface);
    overflow-x: hidden;
}

body.is-nav-open {
    overflow: hidden;
}

/* Hide content until page is loaded */
body:not(.is-loaded) {
    opacity: 0;
}

body.is-loaded {
    opacity: 1;
    transition: opacity var(--duration-slow) var(--ease-refined);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

::selection {
    background-color: var(--color-secondary-pale);
    color: var(--color-primary-deep);
}

/* ==========================================================================
   3. NOISE TEXTURE OVERLAY
   Adds organic depth and sophistication
   ========================================================================== */

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-normal);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    letter-spacing: var(--tracking-tighter);
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-medium);
}

p {
    margin-bottom: var(--space-5);
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   5. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.section--hero {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */

/* Fade up animation */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation */
.anim-fade-in {
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-refined);
    transition-delay: var(--delay, 0s);
}

.anim-fade-in.is-visible {
    opacity: 1;
}

/* Hero reveal animation */
.anim-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--duration-slower) var(--ease-out-expo),
        transform var(--duration-slower) var(--ease-out-expo);
    transition-delay: var(--delay, 0s);
}

.anim-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   7. SECTION LABELS
   ========================================================================== */

.section-label {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    position: relative;
    padding-left: var(--space-10);
}

.section-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--space-6);
    height: 1px;
    background-color: var(--color-accent);
    transform: translateY(-50%);
}

.section-label--light {
    color: var(--color-text-on-dark-muted);
}

.section-label--light::before {
    background-color: var(--color-accent-soft);
}

.section-label--gold {
    color: var(--color-accent);
}

.section-label--gold::before {
    background-color: var(--color-accent);
}

/* ==========================================================================
   8. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: transparent;
    transition:
        background-color var(--duration-base) var(--ease-refined),
        backdrop-filter var(--duration-base) var(--ease-refined);
}

.header.is-scrolled {
    background-color: rgba(var(--color-overlay-light-rgb), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    z-index: 102;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-normal);
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-on-dark);
    transition: color var(--transition-fast);
}

.header.is-scrolled .header__logo-text {
    color: var(--color-text-primary);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    right: max(
        var(--gutter),
        calc((100% - var(--max-width)) / 2 + var(--gutter))
    );
    display: flex;
    align-items: center;
    gap: var(--space-10);
    height: var(--header-height);
    z-index: 101;
}

.nav__link {
    position: relative;
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-weight: var(--weight-normal);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.header.is-scrolled ~ .nav .nav__link {
    color: var(--color-text-muted);
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--duration-base) var(--ease-out-expo);
}

.nav__link:hover {
    color: var(--color-text-on-dark);
}

.header.is-scrolled ~ .nav .nav__link:hover {
    color: var(--color-text-primary);
}

.nav__link:hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 4px;
    z-index: 102;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-text-on-dark);
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast),
        background-color var(--transition-fast);
}

.header.is-scrolled .nav__toggle span {
    background-color: var(--color-text-primary);
}

.nav__toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background image layer */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform var(--duration-instant) linear;
}

/* Sophisticated gradient overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(var(--color-overlay-dark-rgb), 0.3) 0%,
        rgba(var(--color-overlay-dark-rgb), var(--hero-overlay-opacity)) 50%,
        rgba(var(--color-overlay-dark-rgb), 0.85) 100%
    );
}

/* Hero content */
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 52rem;
    padding: var(--space-20) var(--gutter);
}

.hero__text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__heading {
    font-size: clamp(var(--text-4xl), 7vw, var(--text-7xl));
    font-weight: var(--weight-light);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-8);
    max-width: 18ch;
}

.hero__accent-line {
    width: var(--space-16);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%
    );
    margin-bottom: var(--space-8);
}

.hero__description {
    font-family: var(--font-body);
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    font-weight: var(--weight-normal);
    line-height: var(--leading-loose);
    color: var(--color-text-on-dark-muted);
    max-width: 38rem;
    margin: 0 auto;
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero__scroll-indicator.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--duration-slow) var(--ease-refined),
        visibility var(--duration-slow) var(--ease-refined);
}

/* Fix for centered absolute element with reveal animation */
.hero__scroll-indicator.anim-reveal {
    transform: translateX(-50%) translateY(40px);
}

.hero__scroll-indicator.anim-reveal.is-visible {
    transform: translateX(-50%) translateY(0);
}

.hero__scroll-text {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: var(--weight-normal);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-on-dark-muted);
}

.hero__scroll-line {
    width: 1px;
    height: var(--space-8);
    background: linear-gradient(
        to bottom,
        var(--color-accent-soft) 0%,
        transparent 100%
    );
    animation: scrollPulse 2s var(--ease-in-out-quart) infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* ==========================================================================
   10. ABOUT SECTION
   ========================================================================== */

.about {
    background-color: var(--color-surface);
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-border) 20%,
        var(--color-border) 80%,
        transparent 100%
    );
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    align-items: start;
}

.about__label {
    padding-top: var(--space-2);
}

.about__heading {
    margin-bottom: var(--space-10);
    color: var(--color-text-primary);
}

.about__text {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--color-text-secondary);
    max-width: var(--max-width-text);
}

.about__text p {
    margin-bottom: var(--space-6);
}

.about__text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   11. SUPPORT/SERVICES SECTION
   ========================================================================== */

.support {
    position: relative;
    overflow: hidden;
}

/* Background image layer */
.support__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform var(--duration-instant) linear;
}

/* Overlay */
.support__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(var(--color-overlay-dark-rgb), var(--support-overlay-opacity)) 0%,
        rgba(
                var(--color-overlay-dark-rgb),
                calc(var(--support-overlay-opacity) + 0.1)
            )
            100%
    );
}

.support__inner {
    position: relative;
    z-index: 1;
}

.support__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.support__heading {
    color: var(--color-text-on-dark);
    max-width: 20ch;
    margin: 0 auto;
}

/* Services — adaptive layout with symmetric wrapping, column count set by JS */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.service {
    position: relative;
    padding: var(--space-10);
    background: rgba(var(--color-overlay-light-rgb), 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    /* GPU compositing hint to prevent text disappearing on resize */
    transform: translateZ(0);
    will-change: transform, opacity;
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.service:hover {
    background: rgba(var(--color-overlay-light-rgb), 0.12);
    border-color: var(--color-accent-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.service__number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-light);
    line-height: var(--leading-none);
    color: var(--color-accent-soft);
    opacity: 0.4;
    margin-bottom: var(--space-6);
    transition: opacity var(--transition-base);
}

.service:hover .service__number {
    opacity: 0.6;
}

.service__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-normal);
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-4);
}

.service__description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   12. WHO IT'S FOR SECTION
   ========================================================================== */

.who-its-for {
    background-color: var(--color-surface-warm);
    position: relative;
}

.who-its-for__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
    align-items: start;
}

.who-its-for__label {
    padding-top: var(--space-2);
}

.who-its-for__heading {
    margin-bottom: var(--space-10);
    color: var(--color-text-primary);
}

/* Clients list */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.clients-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    color: var(--color-text-secondary);
    padding-left: var(--space-8);
    position: relative;
}

/* Elegant bullet marker */
.clients-list__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background-color: transparent;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.clients-list__item:hover::before {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* ==========================================================================
   13. CONTACT SECTION
   ========================================================================== */

.contact {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    min-height: 90svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background image layer */
.contact__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform var(--duration-instant) linear;
}

/* Overlay */
.contact__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(var(--color-overlay-dark-rgb), 0.9) 0%,
        rgba(var(--color-overlay-dark-rgb), var(--contact-overlay-opacity)) 40%,
        rgba(var(--color-overlay-dark-rgb), 0.4) 100%
    );
}

.contact__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Floating card */
.contact__card {
    background: rgba(var(--color-overlay-light-rgb), 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-14) var(--space-16);
    text-align: center;
    max-width: 32rem;
    box-shadow: var(--shadow-glow);
}

.contact__heading {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--weight-light);
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-4);
}

.contact__description {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text-on-dark-muted);
    margin-bottom: var(--space-10);
}

/* CTA Button */
.contact__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-primary-deep);
    background: linear-gradient(
        135deg,
        var(--color-accent-soft) 0%,
        var(--color-accent) 100%
    );
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.contact__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.contact__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 150, 90, 0.35);
}

.contact__cta:hover::before {
    opacity: 1;
}

.contact__cta-text {
    position: relative;
    z-index: 1;
}

.contact__cta-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.contact__cta:hover .contact__cta-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-primary-deep);
    padding: var(--space-12) 0;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-primary-soft) 20%,
        var(--color-primary-soft) 80%,
        transparent 100%
    );
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-normal);
    letter-spacing: var(--tracking-wide);
    color: var(--color-accent-soft);
}

.footer__copyright {
    font-family: var(--font-accent);
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   15. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --gutter: var(--space-8);
        --header-height: 4rem;
    }

    .section {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    /* Header & Navigation — mobile */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-height));
        height: calc(100svh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        background-color: var(--color-primary-deep);
        padding-top: var(--space-10);
        padding-bottom: var(--space-10);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity var(--duration-base) var(--ease-refined),
            visibility var(--duration-base) var(--ease-refined);
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: var(--text-xl);
        color: var(--color-text-on-dark-muted);
    }

    .nav__link:hover {
        color: var(--color-text-on-dark);
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.is-active span {
        background-color: var(--color-text-on-dark);
    }

    body.is-nav-open .header {
        background-color: var(--color-primary-deep);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.is-nav-open .header__logo-text {
        color: var(--color-text-on-dark);
    }

    body.is-nav-open .nav__toggle span {
        background-color: var(--color-text-on-dark);
    }

    /* About grid */
    .about__grid,
    .who-its-for__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about__label,
    .who-its-for__label {
        padding-top: 0;
    }

    /* Hero adjustments */
    .hero__heading {
        font-size: clamp(var(--text-3xl), 10vw, var(--text-5xl));
    }

    /* Contact card */
    .contact__card {
        padding: var(--space-10) var(--space-8);
        margin: 0 var(--space-4);
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --gutter: var(--space-6);
    }

    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .service {
        flex: 0 0 100% !important;
        padding: var(--space-8);
    }

    .service__number {
        font-size: var(--text-4xl);
    }

    .contact__card {
        padding: var(--space-8) var(--space-6);
    }
}

/* Larger screens */
@media (min-width: 1400px) {
    :root {
        --gutter: var(--space-12);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .anim-fade-up,
    .anim-fade-in,
    .anim-reveal {
        opacity: 1;
        transform: none;
    }

    .hero__bg {
        transform: none !important;
    }

    .support__bg {
        transform: none !important;
    }

    .contact__bg {
        transform: none !important;
    }
}

/* ==========================================================================
   16. PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .nav,
    .noise-overlay,
    .hero__bg,
    .hero__overlay,
    .hero__decoration,
    .hero__scroll-indicator,
    .support__bg,
    .support__overlay,
    .contact__bg,
    .contact__overlay {
        display: none !important;
    }

    .hero,
    .contact {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .hero__heading,
    .hero__description,
    .contact__heading,
    .contact__description {
        color: var(--color-text-primary);
        text-shadow: none;
    }

    .service {
        background: var(--color-surface);
        border: 1px solid var(--color-border);
    }

    .service__title,
    .service__number,
    .service__description {
        color: var(--color-text-primary);
    }

    body {
        background: white;
        color: black;
    }
}
