/* ===================================
    MagicWave — warm editorial design system
    Soul-matched to @magicwavecreativeagency on Instagram:
    cream/greige gallery canvases, one dark coffee band per page,
    champagne-gold + bronze accents, Bodoni Moda display serif.
    (Token architecture originally from DESIGN.md; palette and
    type have since been re-pointed to the Instagram identity.)
====================================== */

/* ===================================
    Tokens
====================================== */
:root {
    /* Color — warm editorial palette matched to the agency's Instagram feed:
       near-black coffee canvases, champagne gold + terracotta nude accents,
       gallery-white transactional surfaces. (Variable names kept from the
       original violet/lime system; only the values were re-pointed.) */
    --primary: #16110d;
    --ink-deep: #1b1512;
    --on-primary: #ffffff;
    --accent-lime: #d3b285;          /* champagne gold — signature accent */
    --accent-pink: #c98d78;          /* terracotta nude — secondary accent */
    --accent-violet: #a08057;        /* bronze — links & eyebrows on light */
    --accent-violet-deep: #241a13;   /* deep coffee — spotlight bands */
    --accent-violet-mid: #8a7460;    /* warm taupe — chips & tags */
    --surface-canvas-dark: #14100c;
    --surface-canvas-light: #ffffff;
    --surface-night: #0e0b08;
    --surface-press-light: #f2ede5;
    --surface-press-stronger: #efe9e0;
    --hairline-violet: #2c241d;
    --hairline-cool: #d9d2c7;
    --hairline-cloud: #ece7de;
    --ink: #1b1512;
    --ink-press: #1a1a1a;
    --on-dark-muted: rgba(246, 240, 232, 0.72);
    --on-dark-faint: rgba(246, 240, 232, 0.14);
    --ring-focus: rgba(211, 178, 133, 0.55);

    /* Type — editorial high-contrast serif for display, Rubik for UI */
    --font-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    --font-ui: 'Rubik', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 10px;
    --r-xl: 12px;
    --r-xxl: 18px;
    --r-full: 9999px;

    /* Spacing */
    --sp-xxs: 2px;
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 12px;
    --sp-lg: 16px;
    --sp-xl: 24px;
    --sp-xxl: 32px;
    --sp-section: 96px;

    /* Shadow */
    --shadow-1: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-2: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-3: 0 0 8px 6px var(--primary);
    --shadow-4: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

/* ===================================
    Base
====================================== */
* { box-sizing: border-box; }

body {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface-canvas-light);
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink-deep);
    margin: 0 0 var(--sp-lg);
}

p { margin: 0 0 var(--sp-lg); }
p:last-child { margin-bottom: 0 !important; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

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

section { position: relative; overflow: hidden; }

.section, .section-padding { padding: var(--sp-section) 0; }
.section.p-0, section.p-0 { padding: 0; }
.section.pb-0 { padding-bottom: 0; }

.hidden { display: none !important; opacity: 0 !important; visibility: hidden !important; }

::selection { background: var(--accent-lime); color: var(--ink-deep); }

:focus-visible { outline: 2px solid var(--ring-focus); outline-offset: 2px; }

/* ===================================
    Typography components
====================================== */
/* Gallery-placard eyebrow: small, wide-tracked, understated */
.sub-title {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-violet);
    margin-bottom: var(--sp-sm);
}

.title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink-deep);
    margin-bottom: var(--sp-lg);
}

.alt-color,
.main-color,
.gradient-text1,
.gradient-text2 {
    color: var(--accent-violet) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.gradient-bg2 .alt-color, .gradient-bg2 .main-color {
    color: var(--accent-lime) !important;
}

.para {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    color: rgba(27, 21, 18, 0.72);
}

/* Small functional headings stay in the UI sans — the serif is reserved
   for display sizes, matching the feed's serif-display / sans-caption split */
.product-item .name h6,
.service-card-item h5,
.service-box h5,
.service-heading,
.wizard-panel h3 {
    font-family: var(--font-ui);
}

/* Unify the flat illustration artwork with the warm palette —
   desaturate and warm-tint so it reads sepia-editorial, not cartoon */
.half-img img {
    filter: grayscale(0.9) sepia(0.28) contrast(0.98) brightness(1.02);
    opacity: 0.92;
}

/* Real photography is shown untouched, framed like gallery pieces */
.photo-frame {
    display: block;
    border-radius: var(--r-xxl);
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.photo-frame img,
img.photo-frame {
    filter: none !important;
    opacity: 1 !important;
    border-radius: var(--r-xxl);
    width: 100%;
    height: auto;
    display: block;
}

/* Case-study page: service tag chips + captioned photo grid */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-xl);
}
.project-tag {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-violet);
    background: rgba(160, 128, 87, 0.09);
    border: 1px solid var(--hairline-cloud);
    border-radius: var(--r-full);
    padding: var(--sp-sm) var(--sp-lg);
}

.project-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xxl) var(--sp-xl);
}
.project-photo { margin: 0; }
.project-photo a { display: block; border-radius: var(--r-xxl); overflow: hidden; box-shadow: var(--shadow-2); }
.project-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}
.project-photo a:hover img { transform: scale(1.025); }
.project-photo figcaption {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(27, 21, 18, 0.5);
    text-align: center;
    margin-top: var(--sp-md);
}

@media (max-width: 767px) {
    .project-photo-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
}

/* Editorial work gallery — framed feed posts, gallery-wall rhythm */
.ig-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    align-items: start;
    margin-bottom: var(--sp-xxl);
}
/* Cards read as gallery pieces: artwork untouched, museum placard below */
.ig-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-canvas-light);
    border: 1px solid var(--hairline-cloud);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ig-card img { display: block; width: 100%; height: auto; }
.ig-card:nth-child(odd) { transform: rotate(-1.2deg); }
.ig-card:nth-child(even) { transform: rotate(1.2deg) translateY(14px); }
.ig-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 18px 40px -12px rgba(27, 21, 18, 0.35); }

/* Featured case-study card: spans 2x2 */
.ig-card-featured {
    grid-column: span 2;
    grid-row: span 2;
    transform: none !important;
}
.ig-card-featured:hover { transform: translateY(-4px) !important; }
.ig-card-featured img { flex: 1 1 auto; min-height: 0; height: 100%; object-fit: cover; }

/* The placard: a quiet caption bar beneath the artwork */
.ig-card-placard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--surface-canvas-light);
    border-top: 1px solid var(--hairline-cloud);
}
.ig-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-deep);
    text-align: left;
}
.ig-card-featured .ig-card-placard { padding: var(--sp-lg) var(--sp-xl); }
.ig-card-featured .ig-card-title { font-size: 24px; }
.ig-card-cta {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent-violet);
    white-space: nowrap;
}
.ig-card-cta i { margin-left: 6px; transition: transform 0.25s ease; }
.ig-card:hover .ig-card-cta i { transform: translateX(4px); }

/* Portfolio index: large 2-up project cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
}
.project-card { transform: none !important; }
.project-card:hover { transform: translateY(-4px) !important; }
.project-card img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
}
.project-card .ig-card-placard { padding: var(--sp-lg) var(--sp-xl); }
.project-card .ig-card-title { font-size: 22px; }
.ig-card-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.ig-card-kicker {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(27, 21, 18, 0.5);
}

@media (max-width: 767px) {
    .projects-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
    .project-card .ig-card-title { font-size: 18px; }
    .ig-card-cta { display: none; }
    .ig-card-title { font-size: 14px; }
    .ig-card-featured .ig-card-title { font-size: 18px; }
    .ig-card-placard { padding: var(--sp-sm) var(--sp-md); }
}

/* Editorial marquee ribbon */
.marquee {
    overflow: hidden;
    background: #ede5d5;
    border-top: 1px solid var(--hairline-cloud);
    border-bottom: 1px solid var(--hairline-cloud);
    padding: var(--sp-lg) 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 36s linear infinite;
}
.marquee-half {
    display: flex;
    align-items: center;
    gap: var(--sp-xxl);
    padding-right: var(--sp-xxl);
    white-space: nowrap;
}
.marquee-half span {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--ink-deep);
}
.marquee-half i {
    font-style: normal;
    font-size: 14px;
    color: var(--accent-violet);
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Cursor grows into a champagne "View" pill over project cards */
.custom-cursor .cursor-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-deep);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.custom-cursor.view {
    width: 68px;
    height: 68px;
    background: var(--accent-lime);
    mix-blend-mode: normal;
}
.custom-cursor.view .cursor-label { opacity: 1; }

@media (max-width: 991px) {
    .ig-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ig-gallery { grid-template-columns: repeat(2, 1fr); gap: var(--sp-md); }
    .ig-card:nth-child(even) { transform: rotate(1.2deg) translateY(6px); }
    .ig-card-title { font-size: 18px; }
    .ig-card-placard { padding: var(--sp-md); }
    .ig-card-cta { display: none; }
}

.heading-area { margin-bottom: var(--sp-xl); }
.heading-area.mx-570 { max-width: 620px; margin-left: auto; margin-right: auto; }
.heading-area .title:last-child,
.heading-area .para:last-child { margin-bottom: 0; }

.text-white { color: var(--on-primary) !important; }
.text-blue,
.text-center a.text-blue { color: var(--accent-violet); }

.mx-570 { max-width: 570px; display: inline-block; }

/* ===================================
    Canvas polarity
    (dark/light bands mapped onto existing wrapper classes)
====================================== */
.bg-light { background: #f7f3ec; }

/* Light-first rhythm: bg1 and bg3 are warm beige bands (like the feed's
   greige posts); bg2 is the single dark coffee moment per page. */
.gradient-bg1 { background: #f2ebdf; }
.gradient-bg3 { background: #ece4d4; }

.gradient-bg2 {
    background: var(--surface-canvas-dark);
    color: var(--on-dark-muted);
}

.gradient-bg2 .title,
.gradient-bg2 h1, .gradient-bg2 h2, .gradient-bg2 h3, .gradient-bg2 h4, .gradient-bg2 h5, .gradient-bg2 h6 {
    color: var(--on-primary);
}

.gradient-bg2 .sub-title {
    color: var(--accent-lime);
}

.gradient-bg2 .para {
    color: var(--on-dark-muted);
}

/* ===================================
    Buttons
====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}
.btn-primary:hover { color: var(--on-primary); background: #2a221b; }
.btn-primary:active {
    background: var(--surface-press-stronger);
    color: var(--ink-press);
}

.btn-inverted {
    background: var(--on-primary);
    color: var(--ink-deep);
}
.btn-inverted:hover { color: var(--ink-deep); background: #f6f6f6; }
.btn-inverted:active {
    background: var(--surface-press-light);
    color: var(--ink-press);
}

.btn-ghost {
    background: var(--on-dark-faint);
    color: var(--on-primary);
    border-radius: var(--r-xl);
    padding: var(--sp-sm) var(--sp-lg);
    font-weight: 500;
    letter-spacing: 0.2px;
}
.btn-ghost:hover { color: var(--on-primary); background: rgba(255, 255, 255, 0.28); }

.btn-violet {
    background: var(--accent-violet-mid);
    color: var(--on-primary);
    border-radius: var(--r-xl);
    padding: var(--sp-sm) var(--sp-lg);
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    border: 1px solid var(--accent-violet-deep);
}

.btn-disabled,
.btn:disabled {
    background: var(--hairline-cloud);
    color: var(--on-dark-muted);
    cursor: not-allowed;
    transform: none !important;
}

.btn-large { padding: var(--sp-lg) var(--sp-xxl); font-size: 15px; }

.btn.d-block { width: 100%; }


/* ===================================
    Preloader
====================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f1e8;
}
.preloader .box {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    border: 3px solid var(--hairline-cloud);
    border-top-color: var(--accent-violet);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================
    Header / Navigation
====================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    background: transparent;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-md) var(--sp-xl);
    transition: padding 0.3s ease;
}

/* MagicWave logo: the M mark (cropped from the brand file) + wordmark
   rendered as live text — always crisp, recolors with the canvas */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.logo-mark {
    width: 60px;
    height: 30px;
    flex-shrink: 0;
    background: url('/assets/img/logo-mark.png') no-repeat center / contain;
    filter: brightness(0);
    transition: width 0.3s ease, height 0.3s ease;
}

/* Minimize the bar further once scrolled */
.site-header.scrolled .main-nav .container { padding: var(--sp-sm) var(--sp-xl); }
.site-header.scrolled .logo-mark { width: 48px; height: 24px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-deep);
    padding: var(--sp-xs) 0;
    position: relative;
}
.nav-link.active { color: var(--accent-violet); }
.nav-link:hover { color: var(--accent-violet); }

.get-quote-btn { min-height: 40px; padding: var(--sp-sm) var(--sp-lg); }

/* Home hero (cream, not yet scrolled): transparent nav over the hero wash */
.site-header.header-hero {
    background: transparent;
    box-shadow: none;
}

/* Scrolled / inner pages: opaque light nav bar */
.site-header.scrolled {
    background: var(--surface-canvas-light);
    box-shadow: 0 1px 0 var(--hairline-cloud);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink-deep);
    border-radius: var(--r-full);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================================
    Decorative: starfield + accent shapes
====================================== */
/* Warm light-leak glow — the soft amber corner light from the feed's
   dark post canvases (replaces the old starfield texture) */
.starfield {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(55% 45% at 12% 0%, rgba(196, 126, 66, 0.18), transparent 70%),
        radial-gradient(45% 40% at 88% 96%, rgba(150, 96, 52, 0.14), transparent 70%),
        radial-gradient(35% 35% at 85% 8%, rgba(211, 178, 133, 0.08), transparent 70%);
}

.accent-shape {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
}

.accent-squiggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' fill='none'%3E%3Cpath d='M2 20c12-18 24-18 36 0s24 18 36 0 24-18 36 0 24 18 36 0 24-18 36 0' stroke='%23d3b285' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.7;
}

.accent-blob {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 8c22 0 30 20 40 34s16 30 2 44-32 18-48 14S10 84 8 62 14 24 30 14 44 8 60 8Z' fill='%23c98d78'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.35;
}

.accent-dotgrid {
    background-image: radial-gradient(rgba(211, 178, 133, 0.45) 1.5px, transparent 1.6px);
    background-size: 14px 14px;
}

.accent-ring {
    border: 1.5px solid var(--accent-lime);
    border-radius: var(--r-full);
    opacity: 0.35;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}

/* ===================================
    Hero (home)
====================================== */
.hero-section {
    background: linear-gradient(180deg, #f8f3ea 0%, #f1e9db 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
}

.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--sp-xl);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 88px;
    font-weight: 500;
    line-height: 1.08;
    color: var(--ink-deep);
    margin-bottom: var(--sp-xl);
}

/* Accent word inside the display headline — italic bronze serif,
   the fashion-editorial emphasis used across the feed's post titles */
.chip-lime {
    display: inline;
    background: none;
    color: var(--accent-violet);
    font-style: italic;
    padding: 0;
    border-radius: 0;
}

.hero-sub {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(27, 21, 18, 0.7);
    max-width: 620px;
    margin: 0 auto var(--sp-xxl);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(27, 21, 18, 0.55);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

/* Ghost CTA on the light hero: quiet outline, gallery style */
.hero-cta .btn-ghost {
    background: transparent;
    color: var(--ink-deep);
    border: 1px solid var(--hairline-cool);
    border-radius: var(--r-md);
}
.hero-cta .btn-ghost:hover { background: rgba(160, 128, 87, 0.08); color: var(--ink-deep); }

/* Page-title band (about / services / work) — greige gallery header */
.page-title-band {
    position: relative;
    background: linear-gradient(180deg, #f4eee3 0%, #ede5d5 100%);
    padding: 176px 0 88px;
    text-align: center;
}
.page-title-band h1 {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 500;
    line-height: 1.12;
    color: var(--ink-deep);
    margin-bottom: var(--sp-md);
}
.page-title-band p {
    font-size: 17px;
    color: rgba(27, 21, 18, 0.6);
    max-width: 560px;
    margin: 0 auto;
}

/* Compact light-canvas header used on transactional pages (contact/profile/404) */
.light-page-header {
    padding: 152px 0 var(--sp-xxl);
    text-align: center;
    background: var(--surface-canvas-light);
}
.light-page-header h1 {
    font-size: 44px;
    font-weight: 600;
    color: var(--ink-deep);
    margin-bottom: var(--sp-sm);
}
.light-page-header p { color: rgba(27, 21, 18, 0.65); font-size: 17px; margin: 0; }

@media (max-width: 767px) {
    .light-page-header { padding: 128px 0 var(--sp-xl); }
    .light-page-header h1 { font-size: 32px; }
}

/* ===================================
    Values / process
====================================== */
.process-wrapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sp-lg) var(--sp-sm);
}
.process-wrapp .service-heading { text-align: center; }
.pro-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--r-full);
    font-size: 22px;
    color: var(--on-primary);
    margin-bottom: var(--sp-md);
    background: var(--accent-violet);
}
.pro-step.midnight { background: var(--primary); }
.pro-step.purple { background: var(--accent-violet-deep); }
.pro-step.pink { background: var(--accent-pink); color: var(--ink-deep); }
.pro-step.blue { background: var(--accent-violet-mid); }

.service-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-deep);
    margin: 0;
}
.gradient-bg2 .service-heading { color: var(--on-primary); }

/* ===================================
    Counters
====================================== */
.counter-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-xl);
    margin: var(--sp-xl) 0 0;
    padding: 0;
    list-style: none;
}
.counter-item { text-align: left; }
.counter-item i {
    font-size: 22px;
    color: var(--accent-lime);
    margin-bottom: var(--sp-sm);
    display: block;
}
.counter-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--on-primary);
    margin: 0;
}
.counter-item .sub-title { color: var(--on-dark-muted); margin-top: var(--sp-xs); }

/* ===================================
    Cards: product / service items
====================================== */
.product-item {
    background: var(--surface-canvas-light);
    border: 1px solid var(--hairline-cloud);
    border-radius: var(--r-xl);
    padding: var(--sp-xl);
    height: 100%;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.product-item .product-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r-lg);
    background: rgba(160, 128, 87, 0.12);
    color: var(--accent-violet);
    font-size: 22px;
    margin-bottom: var(--sp-lg);
}
.product-item .name h6 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--sp-sm);
}
.product-item .product-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(27, 21, 18, 0.68);
}

.service-card-item {
    background: var(--surface-canvas-light) !important;
    border: 1px solid var(--hairline-cloud) !important;
    border-radius: var(--r-xl) !important;
    padding: var(--sp-xl) !important;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service-card-item i { color: var(--accent-violet); }
.service-card-item h5 { font-size: 18px; font-weight: 600; margin: var(--sp-sm) 0; color: var(--ink-deep); }
.service-card-item p { font-size: 14.5px; color: rgba(27, 21, 18, 0.68); margin: 0; }

/* ===================================
    Portfolio
====================================== */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-xxl);
}
.filter-btn {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: var(--ink-deep);
    background: var(--surface-canvas-light);
    border: 1px solid var(--hairline-cloud);
    border-radius: var(--r-xs);
    padding: var(--sp-xs) var(--sp-md);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--surface-night);
    color: var(--on-primary);
    border-color: var(--surface-night);
}
.portfolio-filters span { display: none; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
}

.portfolio-item {
    position: relative;
    border-radius: var(--r-xxl);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cbp-caption { display: block; position: relative; }
.cbp-caption-defaultWrap img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,11,8,0.1) 0%, rgba(14,11,8,0.92) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.cbp-l-caption-alignCenter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cbp-l-caption-body {
    text-align: center;
    padding: var(--sp-xl);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.portfolio-item:hover .cbp-l-caption-body { opacity: 1; transform: translateY(0); }
.cbp-l-caption-body .plus {
    width: 36px;
    height: 36px;
    margin: 0 auto var(--sp-md);
    border-radius: var(--r-full);
    border: 1px solid var(--accent-lime);
    position: relative;
}
.cbp-l-caption-body .plus::before,
.cbp-l-caption-body .plus::after {
    content: '';
    position: absolute;
    background: var(--accent-lime);
    top: 50%; left: 50%;
}
.cbp-l-caption-body .plus::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.cbp-l-caption-body .plus::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.cbp-l-caption-body h5 { font-size: 17px; margin-bottom: var(--sp-xs); }
.cbp-l-caption-body p { font-size: 13px; color: var(--on-dark-muted); margin: 0; max-width: 260px; }

/* ===================================
    Testimonials & clients
====================================== */
.testimonial-slider { max-width: 720px; margin: 0 auto; min-height: 220px; position: relative; }
.testimonial-item { text-align: center; }
.testimonial-item .para {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    line-height: 1.7;
    color: var(--ink-deep);
    margin-bottom: var(--sp-xl);
}
.testimonial-item .name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-violet);
    background: none;
    -webkit-text-fill-color: currentColor;
    margin-bottom: var(--sp-xxs);
}
.testimonial-item .designation { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(27, 21, 18, 0.55); }
.testimonial-item .ratings { display: flex; justify-content: center; gap: 4px; padding: 0; margin: var(--sp-md) 0 0; list-style: none; }
.testimonial-item .ratings i { color: var(--accent-lime); font-size: 14px; }

.partners-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xxl);
}
.logo-item img { max-height: 32px; opacity: 0.6; filter: grayscale(1); }
.gradient-bg2 .logo-item img {
    opacity: 0.85;
    filter: grayscale(1) brightness(0) invert(1);
}

/* ===================================
    Contact
====================================== */
.contact-us { background: var(--surface-canvas-light); }
.contact-detail .address { list-style: none; margin: 0; padding: 0; }
.contact-detail .address li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}
.address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    background: var(--surface-canvas-light);
    border: 1px solid var(--hairline-cloud);
    color: var(--accent-violet) !important;
    background-image: none !important;
    -webkit-text-fill-color: initial !important;
}
.address-text { font-size: 15px; color: var(--ink); padding-top: var(--sp-xs); }
.address-text a.alt-color { color: var(--accent-violet); }

/* ===================================
    Forms
====================================== */
.form-group { margin-bottom: var(--sp-lg); }

.form-control {
    width: 100%;
    background: var(--surface-canvas-light);
    color: var(--ink-deep);
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 500;
    padding: var(--sp-sm) var(--sp-md);
    border: 1px solid var(--hairline-cool);
    border-radius: var(--r-sm);
    min-height: 44px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.form-control::placeholder { color: rgba(27, 21, 18, 0.45); }
.form-control:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px var(--ring-focus);
}
textarea.form-control { min-height: 120px; resize: vertical; }

label { font-size: 15px; font-weight: 600; color: var(--ink-deep); margin-bottom: var(--sp-sm); display: inline-block; }

.checkbox-lable {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}
.checkbox-lable input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-violet); margin: 0; }

#result, .form-result { margin-bottom: var(--sp-lg); }
#result:empty, .form-result:empty { display: none; margin: 0; }
.alert { padding: var(--sp-md) var(--sp-lg); border-radius: var(--r-md); font-size: 14px; }
.alert-success { background: rgba(211, 178, 133, 0.22); color: #5a4426; border: 1px solid var(--accent-lime); }
.alert-error { background: rgba(201, 141, 120, 0.18); color: #7a3a26; border: 1px solid var(--accent-pink); }

/* ===================================
    Profile / 404
====================================== */
.profile-download-box,
.simple-panel {
    background: var(--surface-canvas-light);
    border: 1px solid var(--hairline-cloud) !important;
    border-radius: var(--r-xl) !important;
    padding: var(--sp-xxl) !important;
}
.profile-download-box i, .simple-panel i { color: var(--accent-violet); }

/* ===================================
    Quote wizard modal
====================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 11, 8, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: var(--sp-xl);
}
.modal.active { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--surface-canvas-light);
    border-radius: var(--r-xxl);
    padding: var(--sp-xxl);
    box-shadow: var(--shadow-2);
}

.modal-close {
    position: absolute;
    top: var(--sp-lg);
    right: var(--sp-lg);
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    border: 1px solid var(--hairline-cloud);
    background: var(--surface-canvas-light);
    color: var(--ink-deep);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
}
.wizard-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-full);
    background: var(--hairline-cloud);
    color: var(--ink-deep);
    font-size: 14px;
    font-weight: 600;
    position: relative;
}
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: var(--sp-xl);
    height: 2px;
    background: var(--hairline-cloud);
    transform: translateY(-50%);
}
.wizard-step.active { background: var(--primary); color: var(--on-primary); }
.wizard-step.completed { background: var(--accent-lime); color: var(--ink-deep); }
.wizard-step.completed::after { background: var(--accent-lime); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-panel h3 { font-size: 20px; }

.service-option { display: block; cursor: pointer; height: 100%; }
.service-option input[type="radio"] { display: none; }
.service-box {
    border: 1px solid var(--hairline-cloud);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    text-align: center;
    height: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.service-box i { color: var(--accent-violet); margin-bottom: var(--sp-sm); }
.service-box h5 { font-size: 15px; font-weight: 600; margin: var(--sp-xs) 0; color: var(--ink-deep); }
.service-box p { font-size: 12.5px; color: rgba(27, 21, 18, 0.6); margin: 0; }
.service-option input:checked + .service-box {
    border-color: var(--accent-violet);
    background: rgba(160, 128, 87, 0.08);
}
.service-option input:checked + .service-box i { color: var(--accent-violet); }

.wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-md);
    margin-top: var(--sp-xl);
}
.wizard-btn-prev { background: var(--surface-press-light); color: var(--ink-deep); }
.wizard-btn-prev:hover { color: var(--ink-deep); }

/* ===================================
    Footer
====================================== */
.site-footer {
    background: var(--surface-canvas-light);
    color: var(--ink-deep);
    padding: 0 0 var(--sp-xxl);
}
.footer-squiggle { display: block; width: 100%; height: auto; margin-bottom: var(--sp-xxl); }

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-lg);
    padding: 0 var(--sp-xl) var(--sp-lg);
}

.footer-social {
    display: flex;
    gap: var(--sp-sm);
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-full);
    background: var(--surface-night);
    color: var(--on-primary);
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { background: var(--accent-violet); color: var(--on-primary); transform: translateY(-2px); }

.footer-copyright { font-size: 14px; color: rgba(27, 21, 18, 0.6); }
.footer-copyright a { color: var(--accent-violet); font-weight: 500; }

.scroll-top {
    position: fixed;
    bottom: var(--sp-xl);
    right: var(--sp-xl);
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    background: var(--primary);
    color: var(--on-primary);
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* WhatsApp direct-chat button (bottom-left, always visible) */
.whatsapp-float {
    position: fixed;
    bottom: var(--sp-xl);
    left: var(--sp-xl);
    z-index: 500;
    width: 52px;
    height: 52px;
    border-radius: var(--r-full);
    background: #25d366;
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
}

/* ===================================
    Custom cursor
====================================== */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 16px;
    height: 16px;
    border-radius: var(--r-full);
    background: var(--accent-lime);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
}
.custom-cursor.active { opacity: 1; }
.custom-cursor.hover { width: 32px; height: 32px; background: var(--accent-pink); }

/* ===================================
    Responsive
====================================== */
@media (max-width: 1151px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .hero-title { font-size: 64px; }
    .page-title-band h1 { font-size: 44px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .section, .section-padding { padding: 64px 0; }
}

@media (max-width: 767px) {
    .mobile-menu-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface-canvas-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        box-shadow: var(--shadow-2);
    }
    .nav-menu.active { max-height: 480px; }
    .nav-menu .nav-link {
        color: var(--ink-deep) !important;
        padding: var(--sp-md) var(--sp-xl);
        border-bottom: 1px solid var(--hairline-cloud);
    }
    .get-quote-btn { margin: var(--sp-lg) var(--sp-xl); }

    .hero-title { font-size: 44px; }
    .hero-section { padding: 140px 0 72px; }
    .page-title-band { padding: 140px 0 56px; }
    .page-title-band h1 { font-size: 34px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .counter-list { gap: var(--sp-lg); }
    .section, .section-padding { padding: 48px 0; }
    .wizard-navigation { justify-content: space-between; }
    .modal-content { padding: var(--sp-xl); }
}

@media (max-width: 575px) {
    .hero-title { font-size: 36px; }
    .btn { padding: var(--sp-sm) var(--sp-lg); }
}
