/* ============================================================
   Bavington Clothier
   Palette sampled from the badge: deep teal + warm cream + brass
   ============================================================ */

:root {
    /* Sampled from the logo */
    --teal:        #002430;
    --teal-deep:   #001620;
    --teal-soft:   #0d3344;

    /* Warm creams */
    --cream:       #faf6ef;
    --cream-warm:  #f4ece0;
    --cream-deep:  #e8dfd0;

    /* Brass accent */
    --brass:       #b08442;
    --brass-soft:  #c89d63;
    --brass-deep:  #8a6531;

    /* Text */
    --ink:         #1a1a1a;
    --ink-soft:    #2d2d2d;
    --muted:       #756a5d;

    --line:        rgba(0, 36, 48, 0.16);
    --line-cream:  rgba(232, 223, 208, 0.2);

    --serif:   'Cormorant Garamond', 'Times New Roman', serif;
    --display: 'Italiana', 'Cormorant Garamond', serif;
    --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-weight: 300;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity .25s ease, color .25s ease;
}
a:hover { opacity: .65; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background: var(--teal);
    color: var(--cream);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    left: 6px;
    line-height: normal;
    padding: 12px 18px;
    text-decoration: none;
    top: 6px;
    width: auto;
    z-index: 100000;
}

/* ============== TOP BAR ============== */
.topbar {
    background: var(--teal);
    color: var(--cream);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    max-width: 1320px;
    margin: 0 auto;
}
.topbar-left, .topbar-right { display: flex; gap: 28px; align-items: center; }
.topbar-right .divider {
    width: 1px;
    height: 12px;
    background: rgba(250, 246, 239, 0.3);
}

/* ============== HEADER ============== */
.site-header {
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    position: relative;
}
.nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}
.nav-left, .nav-right {
    display: flex;
    gap: 44px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 400;
}
.nav-right { justify-content: flex-end; }
.nav-left a, .nav-right a {
    position: relative;
    padding-bottom: 4px;
}
.nav-left a::after, .nav-right a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--brass);
    transition: width .35s ease, left .35s ease;
}
.nav-left a:hover::after, .nav-right a:hover::after {
    width: 100%;
    left: 0;
}
.nav-left a:hover, .nav-right a:hover { opacity: 1; }

.brand-link { display: inline-block; }
.brand-logo {
    display: block;
    height: 72px;
    width: auto;
}
.brand-text-fallback {
    font-family: var(--display);
    font-size: 32px;
    letter-spacing: 0.08em;
    color: var(--teal);
}

/* ============== HERO ============== */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--brass);
}
.hero-title {
    font-family: var(--display);
    font-size: clamp(56px, 7vw, 104px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--teal);
    margin-bottom: 36px;
}
.hero-title em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--brass);
}
.hero-lede {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 48px;
}
.hero-meta {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-meta strong {
    display: block;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.22em;
}
.hero-image-wrap {
    position: relative;
    aspect-ratio: 1000 / 685;
    overflow: hidden;
    background: var(--cream-warm);
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.02);
}
.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
                  rgba(0, 36, 48, 0.05) 0%,
                  rgba(0, 36, 48, 0) 50%,
                  rgba(0, 36, 48, 0.12) 100%);
    pointer-events: none;
}
.hero-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-deep);
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    padding: 24px;
}
.hero-image-badge {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--brass);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--serif);
    line-height: 1.2;
    box-shadow: 0 20px 40px rgba(0, 36, 48, 0.25);
    z-index: 2;
    border: 1px solid rgba(250, 246, 239, 0.3);
}
.hero-image-badge .badge-top,
.hero-image-badge .badge-bot {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.85;
    font-family: var(--sans);
    font-weight: 500;
}
.hero-image-badge .badge-top { margin-bottom: 6px; }
.hero-image-badge .badge-bot { margin-top: 6px; }
.hero-image-badge .badge-mid {
    font-size: 34px;
    font-family: var(--display);
    letter-spacing: 0.04em;
    line-height: 1;
}
.hero-monogram {
    position: absolute;
    left: -60px;
    bottom: -120px;
    font-family: var(--display);
    font-size: 480px;
    color: var(--cream-warm);
    z-index: 0;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.hero-grid > * { position: relative; z-index: 1; }

/* ============== MARQUEE ============== */
.marquee {
    background: var(--teal-deep);
    color: var(--cream);
    padding: 24px 0;
    overflow: hidden;
    border-top: 1px solid var(--line-cream);
    border-bottom: 1px solid var(--line-cream);
}
.marquee-track {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: 0.12em;
    align-items: center;
}
.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 80px;
}
.marquee-track .dot {
    width: 6px;
    height: 6px;
    background: var(--brass);
    border-radius: 50%;
    display: inline-block;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============== PILLARS ============== */
.pillars { padding: 140px 0; background: var(--cream-warm); }
.section-heading { text-align: center; margin-bottom: 96px; }
.section-heading .eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 24px;
    display: inline-block;
}
.section-heading h2 {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--teal);
    max-width: 720px;
    margin: 0 auto;
}
.section-heading h2 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--brass);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}
.pillar { text-align: center; padding: 0 8px; }
.pillar-num {
    font-family: var(--display);
    font-size: 18px;
    color: var(--brass);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
    display: block;
}
.pillar-title {
    font-family: var(--display);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--teal);
    margin-bottom: 20px;
}
.pillar-body {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 220px;
    margin: 0 auto;
}

/* ============== STORY ============== */
.story { padding: 160px 0; background: var(--cream); }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}
.story-visual { position: relative; aspect-ratio: 1 / 1.15; }
.story-visual .panel-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.story-visual .panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-visual .panel-teal {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 75%;
    background: var(--teal);
    overflow: hidden;
}
.story-visual .panel-teal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 30% 20%, rgba(176, 132, 66, 0.18), transparent 60%),
      radial-gradient(ellipse at 80% 80%, rgba(232, 223, 208, 0.08), transparent 50%);
}
.story-visual .panel-teal .logo-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    transform: translate(-50%, -50%);
    opacity: 0.18;
    filter: brightness(2.5);
}
.story-visual .panel-cream {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 55%;
    background: var(--cream-warm);
    border: 1px solid var(--line);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.story-visual .panel-cream .quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--teal);
}
.story-visual .panel-cream .quote-attr {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass);
}
.story-copy .eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.story-copy .eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--brass);
}
.story-copy h2 {
    font-family: var(--display);
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--teal);
    margin-bottom: 32px;
}
.story-copy h2 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--brass);
}
.story-copy p {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 24px;
}
.signature {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.signature strong {
    color: var(--teal);
    display: block;
    margin-bottom: 4px;
}

/* ============== FIND US ============== */
.find-us {
    padding: 140px 0;
    background: var(--teal);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.find-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at top left, rgba(176, 132, 66, 0.14), transparent 50%),
      radial-gradient(ellipse at bottom right, rgba(176, 132, 66, 0.10), transparent 50%);
    pointer-events: none;
}
.find-us-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.find-us h2 {
    font-family: var(--display);
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 36px;
    color: var(--cream);
}
.find-us h2 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--brass-soft);
}
.find-us .eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brass-soft);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.find-us .eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--brass-soft);
}
.address-block {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
    color: var(--cream);
    margin-bottom: 40px;
}
.address-block strong { font-weight: 500; }
.find-us-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(250, 246, 239, 0.18);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.65);
}
.find-us-details strong {
    color: var(--cream);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.22em;
}
.map-frame {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(250, 246, 239, 0.2);
    overflow: hidden;
    position: relative;
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.stylized-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-soft) 0%, var(--teal) 100%);
    position: relative;
    overflow: hidden;
}
.stylized-map::before,
.stylized-map::after {
    content: '';
    position: absolute;
    background: rgba(250, 246, 239, 0.10);
}
.stylized-map::before {
    width: 200%;
    height: 1px;
    top: 38%;
    left: -50%;
    transform: rotate(-12deg);
    box-shadow:
      0 60px 0 rgba(250, 246, 239, 0.06),
      0 -80px 0 rgba(250, 246, 239, 0.06),
      0 140px 0 rgba(250, 246, 239, 0.04);
}
.stylized-map::after {
    width: 1px;
    height: 200%;
    top: -50%;
    left: 58%;
    transform: rotate(8deg);
    box-shadow:
      60px 0 0 rgba(250, 246, 239, 0.06),
      -80px 0 0 rgba(250, 246, 239, 0.06),
      140px 0 0 rgba(250, 246, 239, 0.04);
}
.map-pin {
    position: absolute;
    top: 38%;
    left: 58%;
    transform: translate(-50%, -100%);
    width: 14px;
    height: 14px;
    background: var(--brass);
    border-radius: 50%;
    box-shadow:
      0 0 0 6px rgba(176, 132, 66, 0.25),
      0 0 0 14px rgba(176, 132, 66, 0.12);
    z-index: 2;
}
.map-pin::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 18px;
    background: linear-gradient(to bottom, var(--brass), transparent);
}
.map-label {
    position: absolute;
    top: 38%;
    left: 58%;
    transform: translate(20px, -50%);
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--cream);
    text-transform: uppercase;
    z-index: 2;
}

/* ============== NEWSLETTER ============== */
.newsletter {
    padding: 160px 0;
    background: var(--cream);
    text-align: center;
    position: relative;
}
.newsletter-inner { max-width: 680px; margin: 0 auto; }
.newsletter .eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
    display: inline-block;
}
.newsletter h2 {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--teal);
    margin-bottom: 24px;
}
.newsletter h2 em {
    font-family: var(--serif);
    font-style: italic;
    color: var(--brass);
}
.newsletter p {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 48px;
}
.signup-form {
    display: flex;
    border-bottom: 1px solid var(--teal);
    max-width: 520px;
    margin: 0 auto;
}
.signup-form input[type="email"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 16px 4px;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--teal);
    outline: none;
}
.signup-form input[type="email"]::placeholder {
    color: var(--muted);
    font-style: italic;
}
.signup-form button {
    background: transparent;
    border: 0;
    padding: 16px 8px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--teal);
    cursor: pointer;
    font-weight: 500;
    transition: color .25s ease, letter-spacing .25s ease;
}
.signup-form button:hover {
    color: var(--brass);
    letter-spacing: 0.4em;
}
.form-note {
    margin-top: 24px;
    font-size: 11px !important;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--sans) !important;
}
.newsletter-shortcode {
    max-width: 520px;
    margin: 0 auto;
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--teal-deep);
    color: var(--cream);
    padding: 96px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}
.footer-brand .footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 24px;
}
.footer-brand-text {
    font-family: var(--display);
    font-size: 32px;
    color: var(--cream);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 24px;
}
.footer-brand p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.55;
    color: rgba(250, 246, 239, 0.7);
    max-width: 320px;
}
.footer-col h4 {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass-soft);
    margin-bottom: 24px;
    font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li {
    margin-bottom: 12px;
    font-family: var(--serif);
    font-size: 17px;
    color: rgba(250, 246, 239, 0.8);
}
.footer-bottom {
    border-top: 1px solid rgba(250, 246, 239, 0.12);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250, 246, 239, 0.5);
}

/* ============== REVEAL ============== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

.hero-eyebrow, .hero-title, .hero-lede, .hero-meta {
    opacity: 0;
    transform: translateY(20px);
    animation: rise .9s ease forwards;
}
.hero-eyebrow  { animation-delay: 0.1s; }
.hero-title    { animation-delay: 0.25s; }
.hero-lede     { animation-delay: 0.45s; }
.hero-meta     { animation-delay: 0.65s; }

.hero-image-wrap {
    opacity: 0;
    animation: fade 1.2s ease forwards;
    animation-delay: 0.3s;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .marquee-track { animation: none; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
    .container { padding: 0 24px; }
    .topbar-inner { padding: 12px 24px; flex-direction: column; gap: 8px; }
    .topbar-left, .topbar-right { gap: 16px; font-size: 10.5px; }

    .nav-grid { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
    .nav-left, .nav-right { justify-content: center; gap: 28px; flex-wrap: wrap; }
    .brand-logo { height: 60px; }

    .hero { padding: 60px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-monogram { font-size: 280px; bottom: -60px; }
    .hero-image-badge { width: 130px; height: 130px; top: -20px; right: -10px; }
    .hero-image-badge .badge-mid { font-size: 26px; }

    .marquee-track { font-size: 20px; gap: 48px; }
    .marquee-track span { gap: 48px; }

    .pillars { padding: 88px 0; }
    .pillars-grid { grid-template-columns: 1fr 1fr; gap: 56px 32px; }
    .section-heading { margin-bottom: 64px; }

    .story { padding: 88px 0; }
    .story-grid { grid-template-columns: 1fr; gap: 56px; }

    .find-us { padding: 88px 0; }
    .find-us-grid { grid-template-columns: 1fr; gap: 56px; }
    .find-us-details { grid-template-columns: 1fr 1fr; gap: 24px; }

    .newsletter { padding: 88px 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 560px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-meta { flex-direction: column; gap: 20px; }
}
