@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Sophisticated Palette */
    --c-bg: #FAF9F6;          /* Warm off-white */
    --c-surface: #FFFFFF;     /* Pure white for cards */
    --c-primary: #1a1a1a;     /* Near black for headings */
    --c-text: #4a4a4a;        /* Soft dark gray for body */
    --c-text-light: #737373;  /* Lighter gray for secondary text */
    --c-accent: #879483;      /* Muted sage green - very calming */
    --c-accent-dark: #6a7767;
    --c-border: #E5E5E5;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif; /* Editorial, premium look */
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container: 1280px;
    --section-gap: 8rem;
    
    /* Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.06);
    
    --radius: 4px; /* Minimal, sharp or slightly rounded for professional look */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--c-primary);
    font-weight: 500;
    line-height: 1.1;
}
p { margin-bottom: 1rem; }
a { color: var(--c-primary); text-decoration: none; transition: var(--transition); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 4rem 0; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 5rem; }
.text-accent { color: var(--c-accent); }
.text-light { color: var(--c-text-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-surface);
}
.btn-primary:hover {
    background-color: var(--c-text);
    color: var(--c-surface);
}
.btn-accent {
    background-color: var(--c-accent);
    color: var(--c-surface);
}
.btn-accent:hover {
    background-color: var(--c-accent-dark);
}
.btn-outline {
    background-color: transparent;
    border-color: var(--c-border);
    color: var(--c-primary);
}
.btn-outline:hover {
    border-color: var(--c-primary);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--c-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: opacity, transform;
}
#preloader.fade-out {
    opacity: 0;
    transform: scale(1.12);
    pointer-events: none;
}
.preloader-brand {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 5vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--c-primary);
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    animation: preIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}
.preloader-sub {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--c-text-light);
    opacity: 0;
    animation: preIn 1s ease forwards 0.4s;
}
.preloader-bar {
    width: 190px;
    height: 2px;
    background: var(--c-border);
    border-radius: 99px;
    overflow: hidden;
    opacity: 0;
    animation: preIn 0.8s ease forwards 0.3s;
}
.preloader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--c-accent);
    border-radius: 99px;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes preIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Lock scroll while the preloader is visible */
body.is-loading { overflow: hidden; }

/* ===== Custom circular cursor (desktop / fine-pointer only) ===== */
@media (hover: hover) and (pointer: fine) {
    html.has-cursor,
    html.has-cursor body,
    html.has-cursor a,
    html.has-cursor button,
    html.has-cursor .btn,
    html.has-cursor label,
    html.has-cursor .choice-label,
    html.has-cursor [role="button"],
    html.has-cursor .swiper-button-next,
    html.has-cursor .swiper-button-prev,
    html.has-cursor .mobile-menu-btn {
        cursor: none;
    }
    html.has-cursor input,
    html.has-cursor textarea,
    html.has-cursor select { cursor: auto; }

    .cursor-dot, .cursor-ring {
        position: fixed;
        top: 0; left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        will-change: transform;
    }
    .cursor-dot {
        width: 7px; height: 7px;
        background: var(--c-accent);
    }
    .cursor-ring {
        width: 36px; height: 36px;
        border: 1.5px solid var(--c-accent);
        transition: width 0.28s ease, height 0.28s ease,
                    background-color 0.28s ease, border-color 0.28s ease, opacity 0.3s ease;
    }
    .cursor-ring.cursor-hover {
        width: 60px; height: 60px;
        background: rgba(135, 148, 131, 0.12);
        border-color: var(--c-accent-dark);
    }
    .cursor-hidden { opacity: 0 !important; }
}

/* Hide custom cursor nodes on touch devices */
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ===== Social media links ===== */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid currentColor;
    color: inherit;
    opacity: 0.8;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
    opacity: 1;
    transform: translateY(-3px);
}
.social-links svg { width: 20px; height: 20px; }

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--c-surface);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-header .btn-primary { flex-shrink: 0; }
.main-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0;
}
.main-nav a {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    color: var(--c-surface);
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--c-accent);
}
/* Contact CTA shown only inside the mobile/compact menu overlay */
.nav-cta-mobile { display: none; }
/* Initial Button State in Header */
.site-header .btn-primary {
    background-color: var(--c-surface);
    color: var(--c-primary);
}

/* Header Scrolled */
.site-header.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
    transform: translateZ(0); /* Hardware acceleration */
}
.site-header.scrolled .logo-text,
.site-header.scrolled .main-nav a {
    color: var(--c-primary);
}
.site-header.scrolled .main-nav a:hover {
    color: var(--c-accent);
}
.site-header.scrolled .btn-primary {
    background-color: var(--c-primary);
    color: var(--c-surface);
}

/* Hero Slider */
.hero-slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.heroSwiper {
    width: 100%;
    height: 100%;
}
.heroSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.slide-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease-out;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -1%); }
}

.swiper-slide-active .slide-bg img {
    animation: kenBurns 10s ease-out forwards;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 2;
}
.slide-content {
    position: relative;
    z-index: 3;
}
.slide-content h1 {
    font-size: 5rem;
    letter-spacing: -1px;
}
.slide-content p {
    font-size: 1.25rem;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--c-surface);
    opacity: 0.5;
    transition: var(--transition);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1;
}
.swiper-pagination-bullet {
    background: var(--c-surface);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--c-surface);
    border-radius: 20px;
    position: relative;
    opacity: 0.8;
}
.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--c-surface);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Editorial Blocks (About & General) */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}
.editorial-grid.reverse {
    direction: rtl;
}
.editorial-grid.reverse > * {
    direction: ltr;
}
.editorial-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}
.editorial-content p {
    font-size: 1.125rem;
    color: var(--c-text-light);
    margin-bottom: 1.5rem;
}
.editorial-image {
    height: 600px;
    position: relative;
}
.editorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Services / Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--c-surface);
    padding: 3rem;
    border: 1px solid var(--c-border);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--c-accent);
}
.service-icon {
    font-size: 2rem;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Call to Action Banner */
.cta-banner {
    background-color: var(--c-primary);
    color: var(--c-surface);
    padding: 6rem 0;
    text-align: center;
}
.cta-banner h2 {
    color: var(--c-surface);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}
.cta-banner p {
    color: #A3A3A3;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Footer */
.footer {
    background-color: var(--c-surface);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--c-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}
.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.footer ul {
    list-style: none;
}
.footer ul li {
    margin-bottom: 0.75rem;
}
.footer ul li a {
    color: var(--c-text-light);
}
.footer ul li a:hover {
    color: var(--c-accent);
}
.footer-bottom {
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--c-text-light);
    font-size: 0.875rem;
}

/* Contact Form Grid */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--c-accent);
}

/* Page Header */
.page-header {
    padding-top: 12rem;
    padding-bottom: 4rem;
    background-color: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}
.page-header h1 {
    font-size: 4rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .editorial-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-image, .editorial-image {
        height: 400px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--c-primary);
    transition: var(--transition);
}
.site-header:not(.scrolled) .mobile-menu-btn span {
    background-color: var(--c-surface);
}

/* Compact / tablet: the 6 long nav items don't fit horizontally below ~1280px,
   so collapse the menu into the hamburger here. */
@media (max-width: 1200px) {
    .d-none-mobile { display: none !important; }
    .mobile-menu-btn { display: flex; flex: 0 0 auto; }

    .main-nav {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--c-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 1000;
        pointer-events: none;
        display: flex;
        padding: 0;
    }
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav a {
        color: var(--c-primary) !important;
        font-size: 1.5rem;
    }
    .main-nav .nav-cta-mobile { display: block; }

    .mobile-menu-btn.active span {
        background-color: var(--c-primary) !important;
    }
    .site-header:has(.main-nav.active) .logo-text {
        color: var(--c-primary) !important;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .header-inner { gap: 1rem; flex-wrap: nowrap; justify-content: space-between; }
    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        flex: 0 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-header { padding: 1.25rem 0; }
}

@media (max-width: 768px) {
    .logo-text { font-size: 1rem; }

    .hero-content h1 { font-size: 3.5rem; }
    .grid-3 { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .editorial-grid, .editorial-grid.reverse, .hero-grid, .contact-wrapper { grid-template-columns: 1fr !important; }
    .editorial-image { height: 260px; }

    /* Tighter container gutter on phones */
    .container { padding: 0 1.25rem; }

    /* No custom cursor on small screens (touch) — also prevents fixed-cursor overflow */
    .cursor-dot, .cursor-ring { display: none !important; }

    /* Preloader: wrap the brand onto multiple lines, keep centered */
    #preloader { padding: 1.5rem; }
    .preloader-brand {
        font-size: 1.75rem;
        letter-spacing: 1px;
        line-height: 1.3;
        max-width: 90vw;
    }

    /* Clamp oversized headings (many are set via inline font-size) */
    h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.8rem !important; line-height: 1.25 !important; }
    h3 { font-size: 1.3rem !important; line-height: 1.3 !important; }

    /* Hero / slider on mobile: shrink text, keep clear of the fixed header */
    .slide-content { padding: 6rem 1.25rem 2rem; }
    .slide-content h1 { font-size: 2.3rem !important; letter-spacing: 0; margin-bottom: 1rem !important; }
    .slide-content p,
    .slide-content [data-swiper-parallax="-700"] { font-size: 1rem !important; line-height: 1.5 !important; }
    .slide-content .text-accent { font-size: 0.7rem !important; }
    .slide-content .btn { padding: 0.8rem 1.4rem !important; font-size: 0.9rem !important; }
    .hero-slider-section { height: 100svh; }

    /* Section vertical rhythm a touch tighter */
    .section { padding: 4rem 0; }
}

/* Extra-small phones: stack inline two-column grids */
@media (max-width: 600px) {
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
}
