/* =====================================================================
   Brighthill Lawyers — design system
   Faithful recreation of the live brand (teal + natural green, landscape
   photography, light airy type) rebuilt as a modern static site.
   ===================================================================== */

:root {
  /* Brand */
  --ink:        #14303a;   /* deep slate-teal — headings, footer */
  --teal:       #1f4a56;   /* primary teal — nav, accents */
  --teal-soft:  #2c626f;
  --green:      #7ba838;   /* natural leaf green — brand accent */
  --green-deep: #5f8a29;
  --green-lime: #a8c957;   /* the original apple-green, used sparingly */

  /* Neutrals */
  --sand:   #f6f4ee;       /* warm off-white ground */
  --paper:  #ffffff;
  --line:   #e3e0d7;       /* hairlines */
  --text:   #26333a;       /* body text */
  --muted:  #5f7178;       /* secondary text */
  --on-dark:      #f4f6f2;
  --on-dark-muted:#aec3c1;

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(20, 48, 58, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--sand);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 1rem;
}

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--body); font-weight: 500; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 2rem; height: 74px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; color: var(--ink); }
.brand b { font-family: var(--display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand .stop { color: var(--green); }
.brand small { font-family: var(--body); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.primary { margin-left: auto; }
.primary ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.primary a { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 4px 0; position: relative; }
.primary a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--green); transition: right .22s ease; }
.primary a:hover::after, .primary a.active::after { right: 0; }
.head-cta {
  font-family: var(--body); font-weight: 600; font-size: 0.9rem;
  color: #fff; background: var(--teal); padding: 0.6em 1.15em; border-radius: var(--radius);
}
.head-cta:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center/cover no-repeat;
  transform: scale(1.02);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,48,58,0.15) 0%, rgba(20,48,58,0.30) 45%, rgba(20,48,58,0.72) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); }
.hero .meta {
  font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
}
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.7rem, 7vw, 5rem); max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero p { max-width: 54ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.bg-paper { background: var(--paper); }
.bg-sand  { background: var(--sand); }
.bg-ink   { background: var(--ink); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .eyebrow { color: var(--green-lime); }
.bg-ink p { color: var(--on-dark-muted); }

/* Value props */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.prop { padding: 1.75rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.prop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prop .n { font-family: var(--display); font-size: 1.6rem; color: var(--green); margin-bottom: 0.5rem; }
.prop h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.prop p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Practice cards */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.practice {
  display: flex; flex-direction: column; padding: 1.9rem 1.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  border-top: 3px solid var(--green);
}
.practice:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); color: var(--text); }
.practice .cat { font-family: var(--body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 0.8rem; }
.practice h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.practice p { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.2rem; }
.practice .more { margin-top: auto; font-family: var(--body); font-weight: 600; font-size: 0.85rem; color: var(--teal); display: inline-flex; gap: 0.4em; }
.practice:hover .more { color: var(--green-deep); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.stat .k { font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-lime); margin-bottom: 0.6rem; }
.stat .v { font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.stat .v small { font-size: 0.4em; color: var(--on-dark-muted); }
.stat p { margin-top: 0.8rem; font-size: 0.95rem; }

/* Split (about / director) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--teal) var(--split-img, none) center/cover; box-shadow: var(--shadow); }
.split.reverse .media { order: 2; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.credentials dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.credentials dd { margin: 0.2rem 0 0; font-weight: 500; color: var(--ink); }

/* CTA band */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--cta-img) center/cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,48,58,0.9), rgba(31,74,86,0.78)); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.9rem); max-width: 18ch; margin-inline: auto; }
.cta-band .phone { display: inline-block; font-family: var(--display); font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin-top: 0.6rem; }
.cta-band .phone:hover { color: var(--green-lime); }

/* Prose (services / about / articles bodies) */
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.2rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }

/* Service detail blocks */
.service-block { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:first-of-type { border-top: none; }
.service-block .idx { font-family: var(--display); font-weight: 300; font-size: 2.4rem; color: var(--green); line-height: 1; }
.service-block h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.service-block .tag { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 1.02rem; margin-bottom: 1rem; }

/* Article list */
.article-list { display: grid; gap: 1.25rem; max-width: 820px; }
.article-card { display: block; padding: 1.75rem 1.9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); border-left: 3px solid var(--green); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.article-card .k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); }
.article-card h3 { font-size: 1.35rem; margin: 0.5rem 0; color: var(--ink); }
.article-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 0.8em 0.95em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(123,168,56,0.15); }
.contact-detail { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 90px; padding-top: 3px; }
.contact-detail .v { font-weight: 500; color: var(--ink); }
.contact-detail .v a { color: var(--ink); }
.contact-detail .v a:hover { color: var(--green-deep); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.foot-brand b { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: #fff; }
.foot-brand .stop { color: var(--green-lime); }
.foot-brand p { margin-top: 0.8rem; font-size: 0.92rem; max-width: 34ch; }
.site-foot h4 { color: #fff; font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.site-foot a { color: var(--on-dark-muted); }
.site-foot a:hover { color: #fff; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: var(--on-dark-muted); }
.socials { display: flex; gap: 1rem; margin-top: 1.2rem; }
.socials a { color: var(--on-dark-muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }
.socials a:hover { color: var(--green-lime); }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero p { color: var(--on-dark-muted); max-width: 56ch; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--green-lime); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .props { grid-template-columns: repeat(2, 1fr); }
  .practices { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 1.8rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .primary { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--sand); border-bottom: 1px solid var(--line); margin: 0; }
  .primary.open { display: block; }
  .primary ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .primary li { padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
  .primary a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .primary a::after { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5em 0.7em; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
  .head-cta { display: none; }
}
@media (max-width: 560px) {
  .props, .practices { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 0.5rem; }
}
