/* ═══════════════════════════════════════════════
   Nitre Law — Shared Stylesheet
   nitre.law
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  --ink:        #1a1814;
  --ink-light:  #4a4640;
  --ink-muted:  #8a8480;
  --paper:      #faf8f5;
  --paper-2:    #f3f0eb;
  --paper-3:    #eae6df;
  --gold:       #b8960c;
  --gold-light: #d4b040;
  --rule:       rgba(26,24,20,0.12);
  --ff-serif:   'Cormorant Garamond', Georgia, serif;
  --ff-sans:    'DM Sans', system-ui, sans-serif;
  --max:        1140px;
  --t:          0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--ink-light); }
a  { color: inherit; text-decoration: none; }

.serif  { font-family: var(--ff-serif); }
.gold   { color: var(--gold); }
.muted  { color: var(--ink-muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rule   { display: block; width: 40px; height: 1px; background: var(--gold); margin: 1.25rem 0; }

/* ── Layout ── */
.container     { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section       { padding: 5.5rem 0; }
.section--alt  { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark p { color: rgba(250,248,245,0.78); }

/* ── Navigation ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--ink-light); letter-spacing: 0.02em; transition: color var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  font-weight: 500; padding: 0.5rem 1.25rem;
  border: 1px solid var(--ink); border-radius: 2px;
  color: var(--ink) !important; transition: background var(--t), color var(--t);
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav-scrolled { box-shadow: 0 2px 20px rgba(26,24,20,0.08); }

/* ── Nav logo image ── */
.nav-logo::before {
  content: '';
  display: inline-block;
  width: 2.7em;
  height: 2.7em;
  background: url('Logo.jpg') no-repeat center / contain;
  vertical-align: middle;
  margin-right: 0.5rem;
}
/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: var(--t); }
.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 99; overflow-y: auto; padding: 2rem;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid var(--rule); }
.nav-mobile ul a { display: block; padding: 1rem 0; font-family: var(--ff-serif); font-size: 1.4rem; color: var(--ink); }
.nav-mobile ul a:hover { color: var(--gold); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 140px 0 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-hero .breadcrumb {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lede { font-size: 1.1rem; color: var(--ink-light); max-width: 680px; line-height: 1.75; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.75rem 1.75rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; border-radius: 2px; transition: var(--t); cursor: pointer; border: 1px solid transparent; }
.btn-primary  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #2d2a26; }
.btn-outline  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-gold     { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #9e7f0a; }

/* ── Service list ── */
.service-list { list-style: none; margin-top: 2rem; }
.service-item {
  border-top: 1px solid var(--rule); padding: 1.75rem 0;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.25rem; align-items: start;
}
.service-item:last-child { border-bottom: 1px solid var(--rule); }
.service-num { font-family: var(--ff-serif); color: var(--gold); font-size: 1rem; padding-top: 0.1rem; }
.service-body h4 { font-family: var(--ff-serif); font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--ink); }
.service-body p  { font-size: 0.9rem; line-height: 1.7; }

/* ── Two-col content ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.two-col--wide { grid-template-columns: 1.1fr 1fr; }

/* ── Highlight box ── */
.highlight-box {
  background: var(--paper-3); border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem; border-radius: 0 4px 4px 0;
  margin: 2rem 0;
}
.highlight-box p { font-size: 0.95rem; }

/* ── Accordion ── */
.accordion-item { border-top: 1px solid var(--rule); }
.accordion-item:last-child { border-bottom: 1px solid var(--rule); }
.accordion-trigger {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.25rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-serif); font-size: 1.1rem; color: var(--ink);
}
.accordion-trigger:hover { color: var(--gold); }
.accordion-icon { font-size: 1.2rem; color: var(--gold); transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-trigger.open .accordion-icon { transform: rotate(45deg); }
/* Body: max-height transition so JS only needs to toggle .open class */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}
.accordion-body.open {
  max-height: 600px; /* large enough to never clip */
  padding: 0 0 1.5rem;
}
.accordion-body p, .accordion-body li { font-size: 0.9rem; color: var(--ink-light); line-height: 1.7; }
.accordion-body ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.accordion-body ul li { margin-bottom: 0.4rem; }

/* ── Cards grid ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  padding: 2rem; transition: box-shadow var(--t);
}
.card:hover { box-shadow: 0 6px 24px rgba(26,24,20,0.07); }
.card-icon { font-size: 1.5rem; margin-bottom: 1rem; color: var(--gold); font-family: var(--ff-serif); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p  { font-size: 0.875rem; line-height: 1.65; }

/* ── Team card ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.team-card { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--paper); transition: box-shadow var(--t); }
.team-card:hover { box-shadow: 0 8px 32px rgba(26,24,20,0.08); }
.team-avatar { width: 100%; height: 200px; background: var(--paper-3); display: flex; align-items: center; justify-content: center; font-family: var(--ff-serif); font-size: 3rem; color: var(--ink-muted); border-bottom: 1px solid var(--rule); }
.team-info { padding: 1.75rem; }
.team-name { font-family: var(--ff-serif); font-size: 1.4rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.team-bio  { font-size: 0.875rem; color: var(--ink-light); line-height: 1.7; }
.team-email { display: inline-block; margin-top: 1rem; font-size: 0.8rem; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ── Contact form ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--paper); color: var(--ink); font-family: var(--ff-sans); font-size: 0.9rem;
  outline: none; transition: border-color var(--t); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.75rem; color: var(--ink-muted); }

/* ── Values strip ── */
.values-strip { background: var(--ink); padding: 1.75rem 0; }
.values-list { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; list-style: none; }
.values-list li { font-family: var(--ff-serif); font-size: 1.1rem; color: var(--paper); letter-spacing: 0.04em; }
.values-list li::before { content: '—'; color: var(--gold); margin-right: 0.5rem; }

/* ── Footer ── */
footer { background: #141210; color: rgba(250,248,245,0.6); padding: 3rem 0 2rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-name { font-family: var(--ff-serif); font-size: 1.4rem; color: var(--paper); margin-bottom: 0.75rem; }
.footer-brand-name span { color: var(--gold); }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.875rem; color: rgba(250,248,245,0.6); transition: color var(--t); }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.1); padding-top: 1.5rem;
  max-width: var(--max); margin: 0 auto; padding-left: 2rem; padding-right: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-disclaimer { font-size: 0.75rem; color: rgba(250,248,245,0.35); margin-top: 1rem; line-height: 1.6; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .two-col, .two-col--wide { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .page-hero { padding: 120px 0 40px; }
}
