/* ==========================================================================
   NISHKA GROUP — "Trust Ledger" design system
   Navy / Parchment / Brass, serif+sans+mono type system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* Color tokens */
    --ink-navy: #16273D;
    --ink-navy-deep: #0E1A29;
    --parchment: #F3EEE4;
    --parchment-warm: #EAE2D2;
    --brass: #A9822F;
    --brass-light: #C9A44F;
    --slate: #536170;
    --brick: #8B4332;
    --ink-black: #14181F;
    --white: #FFFFFF;
    --line: rgba(22, 39, 61, 0.14);
    --line-brass: rgba(169, 130, 47, 0.35);

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    --container: 1180px;
    --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink-black);
    background: var(--parchment);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-navy);
    line-height: 1.15;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--brass);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-light); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--ink-navy); color: var(--parchment); }
.btn-navy:hover { background: var(--ink-navy-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink-navy); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink-navy);
    border-bottom: 1px solid rgba(169, 130, 47, 0.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: var(--container);
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--parchment);
}
.logo .mark {
    width: 34px; height: 34px;
    border: 1.5px solid var(--brass);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--brass);
}
.logo small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--brass-light); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    color: rgba(243,238,228,0.85);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--brass-light); }
.main-nav .has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0;
    background: var(--ink-navy);
    border: 1px solid var(--line-brass);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all 0.18s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 18px; font-size: 0.88rem; }
.dropdown a:hover { background: rgba(169,130,47,0.12); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { color: var(--parchment); font-family: var(--font-mono); font-size: 0.85rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--parchment); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
    .main-nav { position: fixed; top: 63px; left: 0; right: 0; bottom: 0; background: var(--ink-navy); flex-direction: column; align-items: flex-start; padding: 24px; transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
    .main-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding-left: 12px; background: transparent; }
    .has-dropdown.open .dropdown { display: block; }
    .header-phone { display: none; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background: var(--ink-navy-deep);
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,26,41,0.55) 0%, rgba(14,26,41,0.35) 40%, rgba(14,26,41,0.96) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px 72px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}
.hero-content .eyebrow { color: var(--brass-light); }
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    color: var(--white);
    max-width: 14ch;
    margin-bottom: 20px;
}
.hero-sub {
    color: rgba(243,238,228,0.82);
    font-size: 1.12rem;
    max-width: 46ch;
    margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-seal {
    position: absolute;
    top: 48px; right: 48px;
    z-index: 2;
    width: 108px; height: 108px;
    border: 1.5px solid var(--brass-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--brass-light);
    text-transform: uppercase;
    animation: seal-spin 40s linear infinite;
}
.hero-seal span { display: block; }
.hero-seal .seal-word { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--white); letter-spacing: 0; margin: 4px 0; }
@keyframes seal-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 700px) { .hero-seal { display: none; } }

/* ---------- Pillars strip ---------- */
.pillars {
    background: var(--ink-navy);
    border-top: 1px solid var(--line-brass);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: var(--container);
    margin: 0 auto;
}
.pillar {
    padding: 34px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.pillar:last-child { border-right: none; }
.pillar .icon { color: var(--brass-light); font-size: 1.3rem; margin-bottom: 10px; }
.pillar h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { color: rgba(243,238,228,0.7); font-size: 0.88rem; }
@media (max-width: 700px) { .pillars-grid { grid-template-columns: 1fr; } .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); } }

/* ---------- Section basics ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--slate); font-size: 1.02rem; margin-top: 12px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About band ---------- */
.about-band { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); }
.about-media::before {
    content: '';
    position: absolute; top: -18px; left: -18px;
    width: 100%; height: 100%;
    border: 1.5px solid var(--brass);
    z-index: -1;
}
.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--ink-navy);
    border-left: 3px solid var(--brass);
    padding-left: 22px;
    margin: 26px 0;
    line-height: 1.4;
}
.about-copy p { color: var(--slate); margin-bottom: 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-media { order: 2; } }

/* ---------- Key facts (ledger stat row) ---------- */
.key-facts { background: var(--parchment-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-row { display: flex; flex-wrap: wrap; }
.fact {
    flex: 1 1 20%;
    padding: 30px 24px;
    text-align: center;
    border-right: 1px solid var(--line);
    position: relative;
}
.fact:last-child { border-right: none; }
.fact .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--ink-navy); display: block; }
.fact .label { font-size: 0.8rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; display: block; }
@media (max-width: 760px) { .fact { flex: 1 1 50%; border-bottom: 1px solid var(--line); } }

/* ---------- Projects grid ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,39,61,0.12); }
.project-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--ink-navy); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .thumb img { transform: scale(1.05); }
.status-chip {
    position: absolute; top: 14px; left: 14px;
    background: var(--ink-navy);
    color: var(--brass-light);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--line-brass);
}
.project-card .body { padding: 22px 24px 26px; }
.project-card h3 { font-size: 1.24rem; margin-bottom: 6px; }
.project-card .loc { color: var(--slate); font-size: 0.86rem; margin-bottom: 12px; }
.project-card .desc { color: var(--slate); font-size: 0.9rem; margin-bottom: 16px; }
.project-card .link { color: var(--brass); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- TRUST LEDGER (signature transparency section) ---------- */
.trust-ledger {
    background: var(--ink-navy);
    color: var(--parchment);
    position: relative;
}
.trust-ledger .section-head h2 { color: var(--white); }
.trust-ledger .section-head p { color: rgba(243,238,228,0.72); }
.trust-ledger .eyebrow { color: var(--brass-light); }

.ledger-book {
    background: var(--parchment);
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}
.ledger-spine {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 14px;
    background: repeating-linear-gradient(180deg, var(--brass) 0px, var(--brass) 3px, var(--ink-navy) 3px, var(--ink-navy) 14px);
}
.ledger-inner { padding: 40px 40px 40px 56px; }

.ledger-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1.5px dashed var(--line);
}
.filter-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 7px;
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink-black);
}
.filter-group select:focus, .filter-group input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.category-tabs { display: flex; gap: 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; overflow: hidden; }
.category-tabs button {
    padding: 10px 22px;
    background: var(--white);
    border: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    color: var(--slate);
    border-right: 1px solid var(--line);
}
.category-tabs button:last-child { border-right: none; }
.category-tabs button.active { background: var(--ink-navy); color: var(--brass-light); }

.ledger-table-wrap { overflow-x: auto; }
table.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.ledger-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate);
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--ink-navy);
}
table.ledger-table td {
    padding: 14px 14px;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-black);
}
table.ledger-table tr:last-child td { border-bottom: none; }
table.ledger-table td.mono, table.ledger-table th.mono { font-family: var(--font-mono); }
.verified-stamp {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #3E7050;
    border: 1px solid #3E7050;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ledger-empty { padding: 50px 20px; text-align: center; color: var(--slate); }
.ledger-loading { padding: 50px 20px; text-align: center; color: var(--slate); font-family: var(--font-mono); font-size: 0.85rem; }
.ledger-note { margin-top: 22px; font-size: 0.82rem; color: var(--slate); font-style: italic; }

@media (max-width: 800px) {
    .ledger-filters { grid-template-columns: 1fr 1fr; }
    .ledger-inner { padding: 30px 20px 30px 34px; }
}

/* ---------- Articles ---------- */
.articles-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 26px;
    border-radius: var(--radius);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,39,61,0.1); }
.article-card .tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brick);
    border: 1px solid var(--brick);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.article-card p { color: var(--slate); font-size: 0.88rem; margin-bottom: 14px; }
.article-card .read-more { color: var(--brass); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 900px) { .articles-strip { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--brick) 0%, #6f3324 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-navy-deep); color: rgba(243,238,228,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-light); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    font-size: 1.6rem;
}

/* ---------- Generic page header (inner pages) ---------- */
.page-header {
    background: var(--ink-navy);
    padding: 64px 0 48px;
    color: var(--white);
}
.page-header .eyebrow { color: var(--brass-light); }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(243,238,228,0.6); margin-top: 10px; }
.breadcrumb a { color: var(--brass-light); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-navy); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 10px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #E5F3E9; color: #285C3B; border: 1px solid #B7DDC3; }
.alert-error { background: #FBE9E5; color: #7A2E1E; border: 1px solid #EEC1B4; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}
