/* =============================================
   Chalwe & Kabalata Legal Practitioners
   "Ink & Brass" design system
   Palette : Ink #1B1A17 · Ivory #F7F5F0 · Brass #CC962A
   Type    : Source Serif 4 (headings) · Archivo (body/UI)
   Note    : legacy tokens (--navy / --gold / --gray-bg …) are
             remapped onto the new palette so existing page
             markup reskins automatically. Navy exists only in
             the logo image — never as a site colour.
   ============================================= */

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

:root {
    /* ---- new palette ---- */
    --ink:        #1B1A17;
    --ink-soft:   #2A2924;
    --ivory:      #F7F5F0;
    --ivory-deep: #EFEBE1;
    --paper:      #FFFFFF;
    --brass:      #CC962A;
    --brass-lite: #E0AC48;   /* brass on dark backgrounds */
    --brass-deep: #8A6516;   /* brass at text sizes (contrast) */
    --stone:      #6E6A60;
    --line:       rgba(27, 26, 23, 0.14);
    --line-light: rgba(247, 245, 240, 0.18);

    /* ---- legacy tokens remapped onto the new palette ---- */
    --navy:       #1B1A17;   /* was #2B3180 — now ink */
    --navy-dark:  #141311;
    --navy-light: #2A2924;
    --gold:       #CC962A;
    --gold-light: #E0AC48;
    --gray:       #6E6A60;
    --gray-light: #9A968C;
    --gray-bg:    #EFEBE1;
    --white:      #FFFFFF;
    --text:       #1B1A17;
    --border:     rgba(27, 26, 23, 0.14);

    --shadow:     0 4px 24px rgba(27, 26, 23, 0.08);
    --shadow-lg:  0 10px 40px rgba(27, 26, 23, 0.13);
    --radius:     3px;
    --transition: all 0.25s ease;

    --max: 1180px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Archivo', system-ui, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--ivory);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

/* Visible keyboard focus — accessibility (no blue) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brass-deep);
    outline-offset: 3px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-style: normal;          /* upright only — never italic */
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.06rem; font-weight: 600; }

p { color: var(--stone); }

.lead { font-size: 1.15rem; color: var(--stone); line-height: 1.75; }

/* ---- Justified body copy ----
   Applied to running prose only. Headings, labels, nav, buttons and
   centred blocks keep their own alignment. */
.hero p.lede,
.cred .cell,
.matters .note,
.ledger .desc,
.about .body p,
.practice-card p,
.tcard p,
.icard p,
.contact .grid > div > p,
.lead,
.section-subtitle,
.practice-detail-card p,
.value-card p,
.exp-body p,
.exp-profile p,
.flip-bio,
.contact-info-card > p,
.contact-form > p,
.article-body p {
    text-align: justify;
}

/* Centred sections stay centred */
.text-center p,
.text-center .section-subtitle { text-align: center; }

.display { font-family: 'Source Serif 4', serif; font-weight: 300; letter-spacing: -0.01em; }
.display em { font-style: normal; color: var(--brass-deep); }

/* ---- Layout ---- */
.wrap,
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--brass-deep);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 32px; border-radius: var(--radius);
    font-family: 'Archivo', sans-serif;
    font-weight: 500; font-size: 0.95rem; letter-spacing: 0.03em;
    cursor: pointer; border: 1.5px solid transparent; transition: var(--transition);
}
.btn-primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-navy { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-navy:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-white { background: var(--ivory); color: var(--ink); border-color: var(--ivory); font-weight: 600; }
.btn-white:hover { background: #fff; border-color: #fff; }

/* arrow link (prototype) */
.link-arrow {
    display: inline-flex; align-items: center;
    font-size: 0.95rem; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid var(--brass); padding-bottom: 3px;
}
.link-arrow span { color: var(--brass-deep); margin-left: 6px; transition: margin 0.2s; }
.link-arrow:hover span { margin-left: 11px; }

.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.02em;
}
.card-link:hover { gap: 10px; }

/* ---- Section labels / titles ---- */
.section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--brass-deep); margin-bottom: 14px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--stone); max-width: 620px; margin-bottom: 48px; }

.divider {
    width: 54px; height: 2px; background: var(--brass);
    margin: 16px 0 32px; border-radius: 2px;
}
.text-center .divider { margin-left: auto; margin-right: auto; }


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(247, 245, 240, 0.92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}
#navbar.scrolled { box-shadow: 0 4px 20px rgba(27, 26, 23, 0.07); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo img { height: 54px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 30px; }

.nav-link {
    font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
    padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active { border-color: var(--brass); color: var(--ink); }

.nav-cta {
    margin-left: 6px; padding: 11px 22px;
    background: var(--ink); color: var(--ivory);
    border-radius: var(--radius); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--ink-soft); color: var(--ivory); }

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 4px; background: none; border: none;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================
   HOMEPAGE — HERO
   ============================================ */
.hero { position: relative; overflow: hidden; padding: 108px 0 120px; background: var(--ivory); }
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.06; margin-bottom: 30px; }
.hero h1 em { font-style: normal; font-weight: 700; color: var(--brass-deep); }
.hero p.lede { font-size: 1.25rem; color: var(--stone); max-width: 640px; margin: 0 auto 44px; text-align: center; }
.hero-actions { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }


/* ============================================
   CREDIBILITY STRIP
   ============================================ */
.cred { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory-deep); }
.cred .wrap { display: flex; gap: 0; flex-wrap: wrap; }
.cred .cell { flex: 1; min-width: 220px; padding: 30px 32px 30px 0; font-size: 0.95rem; color: var(--stone); }
.cred .cell + .cell { border-left: 1px solid var(--line); padding-left: 32px; }
.cred strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }


/* ============================================
   SELECTED MATTERS (dark ink band)
   ============================================ */
.matters { background: var(--ink); color: var(--ivory); padding: 100px 0; }
.matters .eyebrow { color: var(--brass); }
.matters h2 { color: var(--ivory); font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 18px 0 14px; }
.matters .note { color: rgba(247, 245, 240, 0.55); font-size: 0.95rem; max-width: 560px; margin-bottom: 56px; }
.ledger { list-style: none; }
.ledger li {
    display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: baseline;
    padding: 26px 0; border-top: 1px solid var(--line-light);
}
.ledger li:last-child { border-bottom: 1px solid var(--line-light); }
.ledger .year { font-family: 'Source Serif 4', serif; font-style: normal; font-size: 1.2rem; color: var(--brass); }
.ledger .desc { font-size: 1.05rem; line-height: 1.55; color: rgba(247, 245, 240, 0.92); max-width: 640px; }
.ledger .tag {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(247, 245, 240, 0.5); white-space: nowrap;
}


/* ============================================
   PRACTICE AREAS — ruled list (homepage)
   ============================================ */
.practice { padding: 110px 0; }
.practice h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 18px 0 48px; }
.practice .practice-grid { margin-top: 0; }
.practice .practice-card { display: flex; flex-direction: column; }
.practice .practice-card .card-link { margin-top: auto; padding-top: 18px; }
.plist { list-style: none; }
.plist li { border-top: 1px solid var(--line); }
.plist li:last-child { border-bottom: 1px solid var(--line); }
.plist a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px 8px; transition: background 0.2s, padding 0.2s; }
.plist a:hover { background: var(--paper); padding-left: 20px; }
.plist .pname { font-family: 'Source Serif 4', serif; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; color: var(--ink); }
.plist .pdesc { font-size: 0.95rem; color: var(--stone); max-width: 640px; }
.plist .go { font-size: 1.4rem; color: var(--brass-deep); transition: transform 0.2s; }
.plist a:hover .go { transform: translateX(6px); }


/* ============================================
   ABOUT (homepage two-column)
   ============================================ */
.about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 110px 0; }
.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; }
.about h2 em { font-style: normal; color: var(--brass-deep); }
.about .body p { color: var(--stone); margin-bottom: 20px; }
.about .body p strong { color: var(--ink); font-weight: 600; }
.about .reg { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 0.87rem; color: var(--stone); }


/* ============================================
   TEAM (homepage cards)
   ============================================ */
.team { padding: 110px 0; }
.team h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 18px 0 60px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.tcard .photo {
    aspect-ratio: 4/5; background: var(--ivory-deep); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    overflow: hidden; transition: border-color 0.25s;
}
.tcard:hover .photo { border-color: var(--brass); }
.tcard .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tcard .mono { font-family: 'Source Serif 4', serif; font-style: normal; font-size: 3.5rem; color: var(--stone); opacity: 0.5; }
.tcard h3 { font-family: 'Source Serif 4', serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 4px; }
.tcard .role { font-size: 0.87rem; color: var(--brass-deep); letter-spacing: 0.06em; margin-bottom: 10px; }
.tcard p { font-size: 0.9rem; color: var(--stone); line-height: 1.6; }


/* ============================================
   INSIGHTS (homepage teaser grid)
   ============================================ */
.insights { background: var(--ivory-deep); border-top: 1px solid var(--line); padding: 110px 0; }
.insights h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-top: 18px; }
.ihead { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; gap: 24px; flex-wrap: wrap; }
.igrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.icard { background: var(--ivory-deep); padding: 34px 30px; transition: background 0.2s; display: block; }
.icard:hover { background: var(--paper); }
.icard .date { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.icard h3 { font-family: 'Source Serif 4', serif; font-weight: 400; font-size: 1.3rem; line-height: 1.3; margin-bottom: 12px; }
.icard p { font-size: 0.9rem; color: var(--stone); }


/* ============================================
   CONTACT BAND (dark ink — homepage)
   ============================================ */
.contact { background: var(--ink); color: var(--ivory); padding: 110px 0; }
.contact .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.contact .eyebrow { color: var(--brass); }
.contact h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3.25rem); margin: 18px 0 20px; }
.contact h2 em { font-style: normal; color: var(--brass); }
.contact > .grid > div > p { color: rgba(247, 245, 240, 0.65); max-width: 460px; margin-bottom: 36px; }
.cdetails { font-size: 1rem; line-height: 2.1; color: rgba(247, 245, 240, 0.85); }
.cdetails .lbl {
    display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(247, 245, 240, 0.45); margin-top: 22px; line-height: 1.4;
}
.cdetails a { border-bottom: 1px solid var(--brass); }
.cdetails a:hover { color: var(--brass-lite); }


/* ============================================
   CTA BANNER (inner pages) — restyled ink
   ============================================ */
.cta-banner { background: var(--ink); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--ivory); font-size: 1.9rem; }
.cta-banner p { color: rgba(247, 245, 240, 0.7); margin-top: 6px; }


/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info-card { background: var(--ink); color: var(--ivory); border-radius: var(--radius); padding: 40px 36px; }
.contact-info-card h3 { color: var(--ivory); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(247, 245, 240, 0.65); font-size: 0.9rem; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-detail-icon {
    width: 40px; height: 40px; background: rgba(204, 150, 42, 0.16); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; color: var(--brass-lite); flex-shrink: 0;
}
.contact-detail h4 { color: rgba(247, 245, 240, 0.5); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.contact-detail p, .contact-detail a { color: var(--ivory); font-size: 0.92rem; font-weight: 500; }
.contact-detail a:hover { color: var(--brass-lite); }

.contact-form { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--stone); font-size: 0.9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--paper); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brass); box-shadow: 0 0 0 3px rgba(204, 150, 42, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--gray-light); margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.alert-success { background: #eef6ee; color: #2f5d33; border: 1px solid #cfe6cf; }
.alert-error   { background: #fbf0ee; color: #8a3b2e; border: 1px solid #eecfc8; }


/* ============================================
   PAGE HERO (inner pages) — ink band
   ============================================ */
.page-hero { background: var(--ink); padding: 132px 0 66px; position: relative; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ivory); margin-bottom: 12px; }
.page-hero p { color: rgba(247, 245, 240, 0.7); font-size: 1.05rem; max-width: 580px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.8rem; color: rgba(247, 245, 240, 0.5); }
.breadcrumb a { color: var(--brass-lite); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span { color: rgba(247, 245, 240, 0.35); }


/* ============================================
   PRACTICE AREAS PAGE
   ============================================ */
.practice-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.practice-detail-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; transition: var(--transition); }
.practice-detail-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brass); }
.practice-icon {
    width: 52px; height: 52px; background: rgba(204, 150, 42, 0.12); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--brass-deep);
}
.practice-detail-card .practice-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.practice-detail-card h3 { margin-bottom: 10px; }
.practice-detail-card p { font-size: 0.95rem; margin-bottom: 16px; }
.practice-detail-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.practice-detail-card ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--stone); }
.practice-detail-card ul li::before { content: '›'; color: var(--brass-deep); font-weight: 700; font-size: 1.1rem; line-height: 1.3; flex-shrink: 0; }

/* generic practice cards (kept for compatibility) */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.practice-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; transition: var(--transition); position: relative; overflow: hidden; }
.practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brass); }
.practice-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.practice-card p { font-size: 0.9rem; line-height: 1.65; }
.practice-card .card-link { margin-top: 18px; }


/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.img-frame { background: var(--ivory-deep); border-radius: var(--radius); overflow: hidden; }
.values-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.value-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: var(--transition); border-left: 3px solid var(--brass); }
.value-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.value-card h4 { margin-bottom: 6px; font-size: 1rem; }
.value-card p { font-size: 0.88rem; }
.compliance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.compliance-item { display: flex; align-items: center; gap: 12px; background: var(--ivory-deep); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.compliance-icon { width: 32px; height: 32px; background: var(--brass); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 0.85rem; }


/* ============================================
   EXPERIENCE PAGE
   ============================================ */
.exp-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.exp-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brass); }
.exp-card-header { display: flex; align-items: flex-start; gap: 18px; padding: 28px 32px; background: var(--ivory-deep); border-bottom: 1px solid var(--border); }
.exp-icon { width: 48px; height: 48px; background: var(--ink); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--brass-lite); flex-shrink: 0; margin-top: 4px; }
.exp-card-header h3 { font-size: 1.15rem; margin-top: 6px; }
.exp-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-deep); background: rgba(204, 150, 42, 0.12); padding: 3px 12px; border-radius: 100px; margin-bottom: 6px; }
.exp-tag-gold  { color: var(--brass-deep); background: rgba(204, 150, 42, 0.14); }
.exp-tag-green { color: #2f5d33; background: rgba(47, 93, 51, 0.1); }
.exp-tag-blue  { color: var(--brass-deep); background: rgba(204, 150, 42, 0.12); }
.exp-body { padding: 28px 32px; }
.exp-body p { margin-bottom: 12px; font-size: 0.95rem; }
.exp-outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.exp-outcome span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--ivory-deep); padding: 5px 14px; border-radius: 100px; }
.exp-outcome span::before { content: '✓'; color: var(--brass-deep); font-weight: 800; }
.exp-profile { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; border-left: 3px solid var(--brass); }
.exp-profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.exp-profile-initials { width: 48px; height: 48px; background: var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brass-lite); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.exp-profile-header strong { display: block; color: var(--ink); font-size: 0.95rem; }
.exp-profile-header span { font-size: 0.8rem; color: var(--stone); }
.exp-profile p { font-size: 0.9rem; line-height: 1.7; }


/* ============================================
   TEAM PAGE — flip cards
   ============================================ */
.team-role { font-size: 0.82rem; font-weight: 700; color: var(--brass-deep); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-exp { display: inline-block; margin-top: 14px; background: var(--ivory-deep); color: var(--ink); font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; max-width: 1060px; margin: 48px auto 0; }
.team-grid-center { grid-template-columns: repeat(2, minmax(238px, 334px)); justify-content: center; }
.flip-card { perspective: 1600px; height: 384px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.flip-front { background: var(--ivory-deep); }
.flip-front img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.flip-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27, 26, 23, 0) 42%, rgba(27, 26, 23, 0.9) 100%); }
.flip-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.flip-label h3 { font-size: 1.15rem; color: #fff; margin: 0 0 2px; }
.flip-label span { font-size: 0.8rem; color: var(--brass-lite); font-weight: 600; }
.flip-hint { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(247, 245, 240, 0.16); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; color: #fff; }
.flip-back { background: var(--ink); border: 1px solid rgba(204, 150, 42, 0.3); transform: rotateY(180deg); display: flex; flex-direction: column; padding: 28px 24px; color: #fff; text-align: left; }
.flip-bio { font-size: 0.88rem; line-height: 1.65; overflow-y: auto; flex: 1; color: rgba(247, 245, 240, 0.9); }
.flip-foot { border-top: 1px solid rgba(247, 245, 240, 0.2); padding-top: 14px; margin-top: 16px; flex-shrink: 0; }
.flip-foot h3 { color: #fff; font-size: 1.05rem; margin: 0 0 2px; }
.flip-foot span { color: #fff; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.flip-back .team-exp { align-self: flex-start; margin-top: 12px; background: rgba(204, 150, 42, 0.22); color: var(--brass-lite); }


/* ============================================
   CLIENTS PAGE
   ============================================ */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.client-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; transition: var(--transition); min-height: 120px; }
.client-card:hover { box-shadow: var(--shadow); border-color: var(--brass); transform: translateY(-2px); }
.client-card img { max-height: 56px; max-width: 140px; object-fit: contain; filter: grayscale(1) opacity(0.65); transition: var(--transition); }
.client-card:hover img { filter: grayscale(0) opacity(1); }
.client-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sector-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; justify-content: center; }
.sector-tab { padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--stone); cursor: pointer; transition: var(--transition); background: var(--paper); }
.sector-tab:hover, .sector-tab.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }


/* ============================================
   FOOTER (light — logo sits on light background)
   ============================================ */
.footer { background: var(--ivory-deep); color: var(--stone); padding: 64px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-logo img { height: 46px; margin-bottom: 16px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: var(--stone); max-width: 280px; }
.footer h4 { color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; font-family: 'Archivo', sans-serif; font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--stone); border-bottom: 1px solid transparent; }
.footer-links a:hover { color: var(--ink); border-color: var(--brass); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.88rem; color: var(--stone); align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--brass-deep); }
.footer-contact-item a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: var(--stone); }
.footer-bottom a { color: var(--brass-deep); font-size: 0.82rem; border-bottom: 1px solid transparent; }
.footer-bottom a:hover { border-color: var(--brass); }


/* ============================================
   STICKY MOBILE CALL / WHATSAPP BAR
   ============================================ */
.mcall { display: none; }
@media (max-width: 760px) {
    .mcall {
        display: grid; grid-template-columns: 1fr 1fr;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
        border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(27, 26, 23, 0.12);
    }
    .mcall a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }
    .mcall .call { background: var(--ink); color: var(--ivory); }
    .mcall .whats { background: var(--brass); color: var(--ink); }
    body { padding-bottom: 54px; }
}


/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .flip-inner { transition: none; }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .practice-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .about .grid, .contact .grid { grid-template-columns: 1fr; gap: 44px; }
    .ledger li { grid-template-columns: 84px 1fr; grid-template-rows: auto auto; }
    .ledger .tag { grid-column: 2; }
}

@media (max-width: 768px) {
    .wrap, .container { padding: 0 22px; }
    .nav-logo img { height: 46px; }
    .nav-inner { height: 72px; }
    .section { padding: 64px 0; }

    .nav-menu {
        display: none; position: fixed; top: 72px; left: 0; right: 0;
        background: var(--ivory); flex-direction: column; padding: 16px 22px 24px; gap: 0;
        box-shadow: 0 8px 24px rgba(27, 26, 23, 0.1); border-top: 1px solid var(--line);
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 14px 0; width: 100%; font-size: 1rem; }
    .nav-cta { margin: 10px 0 0; text-align: center; }
    .nav-toggle { display: flex; }

    .hero { padding: 76px 0 90px; }

    .cred .cell + .cell { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
    .cred .cell { padding: 22px 0; }

    .about-strip-grid, .why-grid, .contact-grid, .about-section-grid, .practice-detail-grid { grid-template-columns: 1fr; gap: 40px; }

    .team-grid { grid-template-columns: 1fr; max-width: 340px; }
    .team-grid-center { grid-template-columns: 1fr; max-width: 340px; }
    .flip-card { height: 420px; }

    .practice-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }

    .cta-inner { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .values-cards, .compliance-list { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; justify-content: center; }
    .clients-grid { grid-template-columns: 1fr 1fr; }
}
