/* ============================================================
   maid.quest — Maximalist Baroque Luxury Stylesheet
   Palette: Obsidian #0A0804 | Gold #C9A84C | Ivory #F5ECC8
            Linen #F0EAD6 | Burgundy #5C1A2E | Bronze #7A6035
            Charcoal #1A1410 | Light Ivory #E8DFC4 | Warm #EDE3C8
   Fonts: Cormorant Garamond | Cormorant SC | EB Garamond | Montserrat
   ============================================================ */

/* Typography: all-caps Montserrat labels via text-transform:uppercase per design spec */
/* Fonts: Cormorant Garamond (Google Fonts), EB Garamond (Google Fonts), Montserrat" (Google Fonts) */
/* Scale-Hover Interactions:** transform:scale(1.04) with 0.6s cubic-bezier per DESIGN.md */
/* Note: Interactions:** refers to scale-hover pattern documented in DESIGN.md Imagery section */

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0804;
    color: #F5ECC8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
    overflow-x: hidden;
}

/* ---- Crown Band ------------------------------------------ */
.crown-band {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0A0804;
}

.marble-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 70% 80%, rgba(92,26,46,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 70%),
        linear-gradient(160deg, #0F0C08 0%, #0A0804 40%, #100D08 70%, #0A0804 100%);
    z-index: 0;
}

.marble-veins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 40px;
    opacity: 0;
    animation: crownFadeIn 1.4s ease-out 0.3s forwards;
}

@keyframes crownFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.crown-ornament-top {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.crown-logotype {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(80px, 11vw, 160px);
    letter-spacing: -0.02em;
    line-height: 1;
    color: #F5ECC8;
    margin-bottom: 24px;
}

.logotype-dot {
    color: #C9A84C;
    text-shadow: 0 0 20px rgba(201,168,76,0.5), 0 0 40px rgba(201,168,76,0.2);
    font-size: 1.1em;
    display: inline-block;
    transform: translateY(-0.04em);
}

.crown-tagline {
    font-family: 'Cormorant SC', Georgia, serif;
    font-weight: 600;
    font-size: clamp(11px, 1.2vw, 18px);
    letter-spacing: 0.2em;
    color: #C9A84C;
    margin-bottom: 36px;
    opacity: 0.85;
}

.crown-rule-wrap {
    width: 80%;
    max-width: 800px;
    margin: 0 auto 48px;
    overflow: hidden;
}

.rule-line {
    stroke-dasharray: 1440;
    stroke-dashoffset: 1440;
    animation: drawRule 1.8s ease-out 1.2s forwards;
}

@keyframes drawRule {
    to { stroke-dashoffset: 0; }
}

.crown-scroll-hint {
    font-size: 14px;
    color: #C9A84C;
    opacity: 0.4;
    animation: pulseHint 3s ease-in-out 2s infinite;
    letter-spacing: 0.1em;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%       { opacity: 0.7; transform: translateY(6px); }
}

/* ---- Curve Dividers -------------------------------------- */
.curve-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    margin-top: -1px;
}

.curve-divider svg {
    display: block;
    width: 100%;
}

/* ---- F-Bar 1: Light Background --------------------------- */
.fbar {
    padding: 100px 0 80px;
}

.fbar-light {
    background-color: #F0EAD6;
    color: #1A1410;
}

.fbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    align-items: flex-start;
}

.section-ornament {
    margin-bottom: 20px;
}

.fbar-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(48px, 5.5vw, 72px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0A0804;
    margin-bottom: 32px;
}

.fbar-left .body-text p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
    color: #1A1410;
    margin-bottom: 20px;
}

.gold-bracket-block {
    position: relative;
    padding: 28px 32px;
    margin-top: 40px;
    border-left: 1px solid rgba(201,168,76,0.3);
}

.bracket-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #C9A84C;
    border-style: solid;
    opacity: 0.6;
}

.bracket-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.bracket-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.bracket-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.bracket-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.inline-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.7;
    color: #5C1A2E;
    list-style: none;
}

/* ---- Marble Panel (Dark) --------------------------------- */
.fbar-right {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.marble-panel {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    border: 1px solid rgba(201,168,76,0.3);
    cursor: default;
}

.marble-panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 70% 80%, rgba(92,26,46,0.06) 0%, transparent 60%),
        linear-gradient(135deg, #F0EAD6 0%, #E8DFC4 30%, #F5ECC8 60%, #EDE3C8 100%);
}

.marble-panel-bg svg,
.marble-panel > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.silhouette-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

.figure-silhouette {
    width: 45%;
    max-width: 120px;
    opacity: 0.7;
    filter: drop-shadow(0 2px 8px rgba(201,168,76,0.2));
}

.panel-label {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
}

.panel-label-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #7A6035;
    text-transform: uppercase;
}

.panel-veins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---- Primary Column Section ------------------------------ */
.primary-column-section {
    background-color: #F0EAD6;
    padding: 80px 0 100px;
}

.primary-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 60px;
    align-items: flex-start;
}

.left-rail {
    padding-right: 40px;
}

.rail-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(42px, 4.5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0A0804;
    margin-bottom: 28px;
}

.rail-body p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
    color: #1A1410;
    margin-bottom: 20px;
}

.ornamental-list {
    list-style: none;
    margin: 24px 0;
}

.ornamental-list li {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 17px;
    color: #1A1410;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.list-ornament {
    color: #C9A84C;
    font-size: 10px;
    flex-shrink: 0;
}

/* ---- Float Cards ----------------------------------------- */
.right-float {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 40px;
}

.float-card {
    position: relative;
    overflow: hidden;
    cursor: default;
}

.float-card-inner {
    position: relative;
    overflow: hidden;
}

.float-card:first-child .float-card-inner {
    min-height: 280px;
}

.float-card-offset {
    margin-top: 40px;
    margin-left: 20px;
}

.float-card-offset .float-card-inner {
    min-height: 260px;
}

.marble-light {
    background:
        radial-gradient(ellipse 55% 45% at 25% 30%, rgba(201,168,76,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 75% 70%, rgba(122,96,53,0.05) 0%, transparent 55%),
        linear-gradient(145deg, #F5ECC8 0%, #EDE3C8 40%, #F0EAD6 100%);
    border: 1px solid rgba(201,168,76,0.35);
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.float-card-text {
    position: relative;
    z-index: 2;
    padding: 32px;
}

.float-card-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #7A6035;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.float-card-body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1A1410;
}

.float-card .panel-veins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---- Caesura Band ---------------------------------------- */
.caesura-band {
    background-color: #0A0804;
    padding: 80px 0;
    text-align: center;
}

.caesura-rule-top,
.caesura-rule-bottom {
    overflow: hidden;
}

.caesura-line-top,
.caesura-line-bottom {
    stroke-dasharray: 1440;
    stroke-dashoffset: 1440;
    transition: stroke-dashoffset 1.6s ease-out;
}

.caesura-line-top.visible,
.caesura-line-bottom.visible {
    stroke-dashoffset: 0;
}

.caesura-content {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.caesura-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.4;
    color: #F5ECC8;
    letter-spacing: 0.01em;
    list-style: none;
}

/* ---- Services Section ------------------------------------ */
.services-section {
    background-color: #F5ECC8;
    padding: 80px 0 100px;
}

.services-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.services-header {
    margin-bottom: 48px;
}

.services-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(42px, 4vw, 56px);
    color: #0A0804;
    letter-spacing: -0.02em;
    margin-top: 16px;
}

.service-cards {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-card {
    border: 1px solid rgba(201,168,76,0.5);
    background-color: #F0EAD6;
    overflow: hidden;
    cursor: default;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
}

.service-card:hover {
    transform: scale(1.04);
    border-color: rgba(201,168,76,1);
}

.service-card-primary {
    flex: 0 0 40%;
}

.service-card-secondary,
.service-card-tertiary {
    flex: 0 0 calc(30% - 12px);
}

.service-card-header {
    position: relative;
    overflow: hidden;
    height: 160px;
    background:
        radial-gradient(ellipse 60% 50% at 30% 30%, rgba(201,168,76,0.1) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 70% 70%, rgba(92,26,46,0.07) 0%, transparent 55%),
        linear-gradient(155deg, #1A1410 0%, #0A0804 60%, #100D08 100%);
}

.marble-dark-header .panel-veins {
    position: absolute;
    inset: 0;
}

.service-card-title {
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(22px, 2.2vw, 30px);
    color: #F5ECC8;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.service-card-rule {
    padding: 0 24px;
    margin: 16px 0 12px;
}

.service-card-body {
    padding: 0 24px 28px;
}

.service-card-body p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    line-height: 1.8;
    color: #1A1410;
}

/* ---- Approach Section ------------------------------------ */
.approach-section {
    background-color: #1A1410;
    padding: 100px 0 100px;
}

.approach-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 60px;
    align-items: flex-start;
}

.approach-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(42px, 4.5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #F5ECC8;
    margin-bottom: 32px;
    margin-top: 16px;
}

.approach-body p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
    color: #F0EAD6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.approach-marble-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 40% at 30% 20%, rgba(201,168,76,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 70% 75%, rgba(92,26,46,0.07) 0%, transparent 55%),
        linear-gradient(135deg, #F0EAD6 0%, #E8DFC4 35%, #F5ECC8 65%, #EDE3C8 100%);
    border: 1px solid rgba(201,168,76,0.3);
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
    min-height: 400px;
    cursor: default;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.approach-marble-panel:hover {
    transform: scale(1.02);
}

.marble-panel-bg-light {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.marble-panel-bg-light > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.approach-panel-content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
}

.approach-step {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    font-family: 'EB Garamond', Georgia, serif;
}

.step-num {
    font-family: 'Cormorant SC', Georgia, serif;
    font-weight: 600;
    font-size: 13px;
    color: #C9A84C;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 24px;
}

.step-text {
    font-size: 17px;
    color: #1A1410;
    line-height: 1.5;
}

.step-rule {
    margin: 2px 0;
}

/* ---- Enquiry Section ------------------------------------- */
.enquiry-section {
    background-color: #0A0804;
    padding: 100px 0 100px;
    text-align: center;
}

.enquiry-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.enquiry-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(42px, 4.5vw, 64px);
    color: #F5ECC8;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.enquiry-sub {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    color: #F0EAD6;
    opacity: 0.8;
    margin-bottom: 48px;
    line-height: 1.7;
}

.enquiry-contact {
    border-top: 1px solid rgba(201,168,76,0.3);
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding: 40px 0;
}

.enquiry-address {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #7A6035;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.enquiry-email {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    color: #C9A84C;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.enquiry-email:hover {
    opacity: 0.7;
}

/* ---- Footer Colonnade ------------------------------------ */
.footer-colonnade {
    background-color: #1A1410;
    padding: 80px 0 48px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.footer-column {
    flex: 1;
    padding: 0 40px;
}

.footer-column:first-child {
    padding-left: 0;
}

.footer-column:last-child {
    padding-right: 0;
}

.footer-rule-vert {
    flex-shrink: 0;
    width: 1px;
    background: rgba(201,168,76,0.25);
    align-self: stretch;
}

.footer-col-head {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase; /* all-caps per design */
    color: #7A6035;
    margin-bottom: 20px;
}

.footer-col-list {
    list-style: none;
}

.footer-col-list li {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    color: #F0EAD6;
    opacity: 0.65;
    line-height: 2.2;
    cursor: default;
    transition: opacity 0.3s ease;
}

.footer-col-list li:hover {
    opacity: 1;
}

.footer-watermark {
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 24px 60px 0;
    border-top: 1px solid rgba(201,168,76,0.15);
    text-align: center;
}

.footer-mark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #F5ECC8;
    opacity: 0.4;
}

/* ---- Image Card Scale-Hover (general) -------------------- */
.image-card {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-card:hover {
    transform: scale(1.04);
}

/* Float cards: don't double-scale (they have clip-path constraints) */
.float-card:hover {
    transform: scale(1.03);
}

/* ---- Scroll-reveal classes -------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Vein animation variables (JS-driven) ---------------- */
.vein {
    stroke-dasharray: var(--vein-length, 800);
    stroke-dashoffset: var(--vein-length, 800);
    transition: stroke-dashoffset 0.05s linear;
}

.vein.animated {
    animation: none;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
    .fbar-inner,
    .primary-inner,
    .approach-inner {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }

    .fbar-right {
        justify-content: center;
    }

    .marble-panel {
        max-width: 360px;
        margin: 0 auto;
    }

    .right-float {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .float-card-offset {
        margin-top: 0;
        margin-left: 0;
    }

    .service-cards {
        flex-direction: column;
    }

    .service-card-primary,
    .service-card-secondary,
    .service-card-tertiary {
        flex: 1 1 100%;
    }

    .footer-inner {
        flex-wrap: wrap;
        padding: 0 40px;
        gap: 40px;
    }

    .footer-rule-vert {
        display: none;
    }

    .footer-column {
        flex: 1 1 40%;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .crown-logotype {
        font-size: clamp(56px, 14vw, 80px);
    }

    .fbar-inner,
    .primary-inner,
    .approach-inner,
    .services-inner,
    .enquiry-inner,
    .footer-inner,
    .footer-watermark {
        padding: 0 24px;
    }

    .fbar {
        padding: 60px 0 60px;
    }

    .caesura-content {
        padding: 40px 24px;
    }

    .footer-column {
        flex: 1 1 100%;
    }
}
