/* =========================================================
   MARIGOLD SOFTWARE SOLUTIONS
   Warm cream surface, marigold gold, soft serif headlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,500;9..144,600;9..144,400..600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* ---------- Palette ---------- */
    --cream:         #faf6ef;
    --cream-warm:    #f5ede0;
    --cream-line:    #ede0c8;
    --cream-soft:    #f0e4cc;

    --gold:          #d4933a;
    --gold-deep:     #b07628;
    --gold-soft:     #e6b35a;
    --gold-pale:     #f0e4cc;

    --earth:         #2a1f0c;
    --earth-deep:    #1a1208;
    --ink:           #3a2c14;
    --ink-soft:      #5a4a2a;
    --ink-mute:      #8a7a5a;
    --ink-faint:     #b8a47a;

    /* ---------- Type ---------- */
    --font-display:  'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ---------- Layout ---------- */
    --container:     1240px;
    --container-tight: 980px;
    --gutter:        clamp(20px, 4vw, 48px);
    --section-pad:   clamp(56px, 8vw, 96px);

    /* ---------- Corners ---------- */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* ---------- Motion ---------- */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

/* ---------- Typographic primitives ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--gold-deep);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.eyebrow--cream { color: var(--gold); }

.display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--earth);
    font-variation-settings: "opsz" 96, "SOFT" 50;
}

.display em {
    color: var(--gold);
    font-style: italic;
    font-variation-settings: "opsz" 96, "SOFT" 100;
}

.headline {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--earth);
    letter-spacing: -0.005em;
}

.lede {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    font-weight: 400;
}

.serif-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-variation-settings: "SOFT" 100;
}

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

.container--tight { max-width: var(--container-tight); }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }

.section--cream    { background: var(--cream); }
.section--white    { background: #fff; border-top: 0.5px solid rgba(180, 140, 60, 0.12); }
.section--warm     { background: var(--cream-warm); border-top: 0.5px solid rgba(180, 140, 60, 0.12); }
.section--earth    { background: var(--earth); color: var(--cream); }
.section--earth-deep { background: var(--earth-deep); color: var(--cream); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
    background: var(--cream);
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid rgba(180, 140, 60, 0.18);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    background-color: rgba(250, 246, 239, 0.92);
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--earth);
    transition: opacity 0.2s var(--ease);
}

.nav__brand:hover { opacity: 0.85; }

.nav__brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav__brand-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.nav__brand-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--earth);
    letter-spacing: -0.005em;
    font-variation-settings: "opsz" 48;
}

.nav__brand-tag {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav__link {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s var(--ease);
}

.nav__link:hover { color: var(--earth); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__link[aria-current="page"] {
    color: var(--earth);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta {
    background: var(--gold);
    color: #fff;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--r-md);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__cta:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
}

.nav__menu {
    display: none;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold-deep);
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--r-sm);
    font-weight: 500;
}

@media (max-width: 980px) {
    .nav__brand-tag { display: none; }
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-top: 0.5px solid var(--gold);
        border-bottom: 0.5px solid var(--gold);
    }
    .nav__links.is-open { display: flex; }
    .nav__link { padding: 14px var(--gutter); width: 100%; }
    .nav__menu { display: inline-flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding: clamp(80px, 12vw, 132px) 0 clamp(80px, 12vw, 120px);
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero__bloom {
    position: absolute;
    top: clamp(-80px, -6vw, -40px);
    right: clamp(-160px, -12vw, -80px);
    width: clamp(420px, 50vw, 640px);
    height: clamp(420px, 50vw, 640px);
    opacity: 0.10;
    pointer-events: none;
    animation: ledia-bloom-drift 22s ease-in-out infinite;
}

@keyframes ledia-bloom-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-2%, 3%) rotate(8deg); }
}

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

.hero__title {
    font-size: clamp(40px, 6.5vw, 64px);
    max-width: 16ch;
    margin: 20px 0 24px;
}

.hero__lede {
    max-width: 56ch;
    margin-bottom: 36px;
}

/* Smaller hero for inner pages */
.page-header {
    padding: clamp(72px, 10vw, 112px) 0 clamp(56px, 8vw, 88px);
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.page-header__bloom {
    position: absolute;
    top: -100px;
    right: -120px;
    width: 380px;
    height: 380px;
    opacity: 0.08;
    pointer-events: none;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--earth);
    letter-spacing: -0.01em;
    max-width: 22ch;
    margin: 16px 0 18px;
    font-variation-settings: "opsz" 72, "SOFT" 50;
}

.page-header__lede {
    max-width: 60ch;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-md);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

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

.btn--gold {
    background: var(--gold);
    color: #fff;
}
.btn--gold:hover { background: var(--gold-deep); }

.btn--outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold-deep);
}
.btn--outline:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.btn--earth {
    background: var(--earth);
    color: var(--cream);
}
.btn--earth:hover { background: var(--earth-deep); }

.btn__arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.linkout {
    font-size: 12px;
    color: var(--gold-deep);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s var(--ease);
}

.linkout:hover { color: var(--earth); }
.linkout--cream { color: var(--gold); }
.linkout--cream:hover { color: var(--cream); }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.section-head__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--earth);
    margin-top: 10px;
    max-width: 22ch;
    letter-spacing: -0.005em;
    font-variation-settings: "opsz" 48, "SOFT" 50;
}

/* =========================================================
   GRID HELPERS
   ========================================================= */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--asym-2 { grid-template-columns: 1.4fr 1fr; }

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--asym-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    background: #fff;
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--r-lg);
    border: 0.5px solid rgba(180, 140, 60, 0.18);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -28px rgba(74, 50, 12, 0.18);
    border-color: rgba(180, 140, 60, 0.35);
}

.card--cream { background: var(--cream); }
.card--warm  { background: var(--cream-warm); }

/* =========================================================
   TAG / CHIP
   ========================================================= */
.chip {
    display: inline-block;
    background: var(--cream-soft);
    color: var(--gold-deep);
    padding: 5px 11px;
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.chip--earth {
    background: rgba(212, 147, 58, 0.15);
    color: var(--gold-soft);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: var(--cream-warm);
    padding: clamp(40px, 6vw, 64px) 0;
    border-top: 0.5px solid rgba(180, 140, 60, 0.18);
}

.cta-band--earth { background: var(--earth); color: var(--cream); }

.cta-band__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--earth);
    max-width: 24ch;
    font-variation-settings: "opsz" 48, "SOFT" 50;
}

.cta-band--earth .cta-band__title { color: var(--cream); }

.cta-band__title em {
    color: var(--gold-deep);
    font-style: italic;
    font-variation-settings: "opsz" 48, "SOFT" 100;
}

.cta-band--earth .cta-band__title em { color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--earth-deep);
    color: var(--cream);
    padding: 64px 0 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer__brand-mark {
    width: 36px;
    height: 36px;
}

.footer__brand-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--cream);
    font-variation-settings: "opsz" 48;
}

.footer__tagline {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer__about {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-faint);
    max-width: 38ch;
}

.footer__col-title {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a, .footer__list li {
    font-size: 13px;
    color: var(--ink-faint);
    transition: color 0.2s var(--ease);
}

.footer__list a:hover { color: var(--gold); }

.footer__bottom {
    border-top: 0.5px solid rgba(212, 147, 58, 0.18);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--ink-faint);
}

@media (max-width: 900px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 18px 0;
    border-radius: 1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
