/* ==========================================================================
   NAZAR PARTNERS — homepage
   Direction: white-first, quiet, editorial. Deep Teal #0F2F33 and
   Copper Bronze #B17A5A appear only as accents.
   Type: Bodoni Moda Bold (major titles) · Inter (everything else)
   Signature: the 45° diagonal of the N on media edges and rules
   ========================================================================== */

:root {
    --teal: #0f2f33;
    --teal-deep: #0a2226;
    --copper: #b17a5a;
    --copper-soft: #c99a7d;
    --white: #ffffff;
    --paper: #f7f6f3;
    --ink: #16282b;
    --muted: #64716f;
    --line: rgba(15, 47, 51, .12);
    --line-onDark: rgba(255, 255, 255, .16);

    --serif: "Bodoni Moda", "Didot", Georgia, serif;
    --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Content column capped at --content; gutters grow to absorb the rest */
    --content: 1150px;
    --gutter: max(clamp(20px, 5vw, 64px), calc((100vw - var(--content)) / 2));

    --diag: polygon(0 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%);
    --diag-sm: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* Major titles: Bodoni Moda Bold. Everything else: Inter. */
h1, h2 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .002em;
    margin: 0;
    color: var(--teal);
}
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h1 em, h2 em { font-style: italic; font-weight: 700; color: var(--copper); }
h3 {
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--teal);
}
p { margin: 0; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 10px 18px;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Buttons & links ---------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid var(--teal);
    color: var(--teal);
    background: transparent;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { background: var(--teal); color: #fff; }
.button-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.button-ghost:hover { background: #fff; border-color: #fff; color: var(--teal); }
.button-teal { background: var(--teal); color: #fff; cursor: pointer; }
.button-teal:hover { background: var(--teal-deep); }

/* ---------- Running head (from the brand-book page headers) ---------- */
.running-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}
.running-head span:first-child { color: var(--copper); }

/* ---------- Header (solid white) ---------- */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
    height: 84px;
    padding: 0 var(--gutter);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 47, 51, .06); }
.brand { display: inline-flex; margin-right: auto; }
.brand-logo { height: 40px; width: auto; }

.main-nav {
    display: flex;
    gap: clamp(16px, 2vw, 30px);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}
.main-nav a { position: relative; padding-bottom: 5px; }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--copper);
    transition: right .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border: 1px solid var(--teal);
    color: var(--teal);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease;
}
.header-cta:hover { background: var(--teal); color: #fff; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 0;
}
.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; }
.menu-toggle-bars i { width: 24px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- 01 · Hero ---------- */
.hero {
    position: relative;
    min-height: calc(92svh - 84px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--teal-deep);
    color: #fff;
}
.hero-media {
    position: absolute;
    inset: 0;
    background: url("img/hero.jpg") center 30%/cover no-repeat;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 34, 38, .82) 0%, rgba(10, 34, 38, .35) 42%, rgba(10, 34, 38, .05) 75%);
}
/* the N's diagonal, drawn once across the hero */
.hero-diagonal {
    position: absolute;
    right: -18vh;
    bottom: -18vh;
    width: 140vh;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(177, 122, 90, .7) 30%, rgba(177, 122, 90, .7) 70%, transparent);
    transform: rotate(-45deg);
    transform-origin: left bottom;
}

.hero-inner {
    position: relative;
    padding: 120px var(--gutter) 56px;
}
.hero h1 {
    font-size: clamp(40px, 5vw, 72px);
    color: #fff;
}
.hero h1 em { color: var(--copper-soft); }
.hero-copy {
    max-width: 520px;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}
.hero-inner .reveal:nth-child(2) { transition-delay: .08s; }
.hero-inner .reveal:nth-child(3) { transition-delay: .16s; }

.hero-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 var(--gutter) 28px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.hero-line { flex: 1; height: 1px; background: var(--line-onDark); }

/* ---------- 02 · Why Nazar ---------- */
.statement { background: var(--white); }
.statement-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(36px, 6vw, 100px);
    padding: clamp(64px, 8vw, 110px) var(--gutter);
    align-items: start;
}
.statement h2 { font-size: clamp(32px, 3.8vw, 52px); }
.statement-aside { display: grid; gap: 20px; max-width: 58ch; padding-top: 8px; }
.statement-aside p { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.75; color: var(--ink); }

/* ---------- 03 · Service Pillars ---------- */
.pillars { background: var(--white); padding-bottom: clamp(64px, 8vw, 110px); }
.pillars-heading {
    padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 48px);
}
.pillar-list {
    margin: 0 var(--gutter);
    border-top: 1px solid var(--teal);
}
.pillar {
    display: grid;
    grid-template-columns: 64px minmax(0, .9fr) minmax(0, 1.6fr);
    gap: clamp(16px, 3vw, 48px);
    padding: clamp(26px, 3.5vw, 40px) 4px;
    border-bottom: 1px solid var(--line);
}
.pillar-index {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--copper);
    padding-top: 5px;
}
.pillar h3 { font-size: clamp(19px, 1.9vw, 24px); }
.pillar p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.pillar-list .reveal:nth-child(2) { transition-delay: .05s; }
.pillar-list .reveal:nth-child(3) { transition-delay: .1s; }
.pillar-list .reveal:nth-child(4) { transition-delay: .15s; }
.pillar-list .reveal:nth-child(5) { transition-delay: .2s; }

/* ---------- 04 · Brand story: the teal accent moment ---------- */
.clarity {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(40px, 5vw, 72px) var(--gutter);
    background: var(--white);
}
.clarity-panel {
    position: relative;
    width: min(100%, var(--content));
    text-align: center;
    background: var(--teal);
    color: #fff;
    padding: clamp(44px, 6vw, 80px) clamp(28px, 6vw, 96px);
    clip-path: var(--diag);
    overflow: hidden;
}
/* brand pattern lives quietly inside the panel */
.clarity-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/pattern.svg") center/560px repeat;
    opacity: .1;
}
.clarity-panel > * { position: relative; }
.clarity-symbol { margin: 0 auto 22px; width: 48px; height: 48px; }
.clarity-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--copper-soft);
    margin-bottom: 16px;
}
.clarity-panel h2 { color: #fff; }
.clarity-panel h2 em { color: var(--copper-soft); }
.clarity-panel p:last-child {
    margin: 20px auto 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, .82);
    font-size: 15.5px;
}

/* ---------- 05 · How We Work ---------- */
.approach { background: var(--white); }
.approach-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(32px, 5vw, 80px);
    padding: clamp(56px, 7vw, 100px) var(--gutter);
    align-items: center;
}
.approach-media {
    min-height: 460px;
    background: url("img/about.jpg") center/cover;
    clip-path: var(--diag);
}
.approach-body h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.principle-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.principle-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
}
.principle-list h3 { font-size: 16.5px; }
.principle-list p { color: var(--muted); font-size: 14.5px; }
.principle-list .reveal:nth-child(2) { transition-delay: .05s; }
.principle-list .reveal:nth-child(3) { transition-delay: .1s; }
.principle-list .reveal:nth-child(4) { transition-delay: .15s; }

/* ---------- 06 · Who We Serve ---------- */
.audiences { background: var(--white); }
.audiences-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(40px, 6vw, 100px);
    padding: clamp(56px, 7vw, 100px) var(--gutter);
}
.audiences-intro h2 { max-width: 12ch; }

.sector-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sector-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px 4px;
    border-bottom: 1px solid var(--line);
}
.sector-index {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--copper);
}
.sector-name {
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--teal);
}

/* ---------- 07 · Track Record ---------- */
.proof { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .running-head { border-bottom-color: var(--line); }
.proof-body { padding: clamp(56px, 7vw, 100px) var(--gutter); }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 44px);
    margin-top: clamp(32px, 4vw, 52px);
}
.stat {
    border-top: 1px solid var(--teal);
    padding-top: 18px;
}
.stat strong {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1;
    color: var(--teal);
}
.stat span {
    display: block;
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--muted);
}
.stat-grid .reveal:nth-child(2) { transition-delay: .06s; }
.stat-grid .reveal:nth-child(3) { transition-delay: .12s; }
.stat-grid .reveal:nth-child(4) { transition-delay: .18s; }
.proof-examples {
    margin-top: clamp(36px, 5vw, 56px);
    max-width: 62ch;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.6;
    color: var(--teal);
}

/* ---------- 08 · Closing ---------- */
.closing { background: var(--white); }
.closing-inner {
    padding: clamp(72px, 9vw, 130px) var(--gutter);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 22px;
}
.closing h2 { font-size: clamp(32px, 3.8vw, 52px); }
.closing p { color: var(--muted); max-width: 48ch; font-size: 16px; }
.closing .button { margin-top: 8px; }

/* ---------- Footer (the deep-teal anchor) ---------- */
.site-footer {
    background: var(--teal);
    color: rgba(255, 255, 255, .78);
}
.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(44px, 5vw, 68px) var(--gutter) 40px;
}
.footer-identity { display: grid; gap: 18px; }
.footer-brand img { height: 48px; width: auto; }
.footer-motto {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    color: var(--copper-soft);
}
.footer-meta {
    display: grid;
    gap: 14px;
    justify-items: flex-end;
    text-align: right;
}
.footer-mail {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    box-shadow: inset 0 -1px 0 var(--copper);
    padding-bottom: 3px;
    transition: color .25s ease;
}
.footer-mail:hover { color: var(--copper-soft); }
.footer-locations {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding: 18px var(--gutter) 22px;
    border-top: 1px solid var(--line-onDark);
    font-size: 12.5px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--copper-soft); }
.footer-pattern {
    height: 12px;
    background: url("assets/pattern.svg") center/280px repeat-x;
    opacity: .9;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-layout { grid-template-columns: 1fr; }
    .approach-media { min-height: 320px; clip-path: var(--diag-sm); }
}

@media (max-width: 900px) {
    .statement-body,
    .audiences-layout { grid-template-columns: 1fr; }

    .pillar { grid-template-columns: 48px 1fr; }
    .pillar p { grid-column: 2; }

    .header-cta { display: none; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .brand { margin-right: 0; }
    .site-header { justify-content: space-between; }

    .main-nav {
        position: fixed;
        top: 84px;
        left: 0; right: 0; bottom: 0;
        display: grid;
        align-content: start;
        justify-items: start;
        gap: 4px;
        padding: 32px var(--gutter);
        background: var(--white);
        border-top: 1px solid var(--line);
        transform: translateX(102%);
        transition: transform .3s ease;
    }
    .main-nav a {
        font-size: 26px;
        font-weight: 600;
        color: var(--teal);
        padding: 10px 0;
    }
    .main-nav.open { transform: none; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .hero-foot .hero-tag { display: none; }
    .running-head span:last-child { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .principle-list li { grid-template-columns: 1fr; gap: 4px; }
    .footer-meta { justify-items: flex-start; text-align: left; }
}
