/* ==========================================================
   ACHLAD Chambers
   Colours are taken from the logo: black, gold and ivory.
   ========================================================== */

:root {
  --ink: #111111;
  --night: #0c0c0b;
  --charcoal: #1c1b19;
  --gold: #c9a13b;
  --gold-light: #e3c46a;
  --gold-text: #8a6618;      /* darker gold for readable text on light backgrounds */
  --ivory: #faf6ec;
  --paper: #ffffff;
  --text: #2b2924;
  --muted: #625d52;
  --on-dark: #d9d4c7;
  --on-dark-muted: #a39d8f;
  --line: #e8dfc9;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --header-h: 84px;
  /* Gold edge + glow so the black map stays visible on dark backgrounds */
  --logo-glow: drop-shadow(0 0 1px rgba(227, 196, 106, 0.9)) drop-shadow(0 0 28px rgba(201, 161, 59, 0.3));
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.9em;
}

.eyebrow-light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { border-color: rgba(227, 196, 106, 0.6); color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(227, 196, 106, 0.1); border-color: var(--gold-light); }

.btn-sm { padding: 0.6em 1.2em; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo { width: 54px; height: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s;
}

.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    radial-gradient(circle at 78% 45%, rgba(201, 161, 59, 0.22), transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(201, 161, 59, 0.08), transparent 40%),
    var(--night);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 104px;
  padding-bottom: 104px;
}

.hero h1 { color: var(--paper); margin-bottom: 0.25em; }

.hero h1 em,
.pull-quote,
.cta h2 { font-style: italic; }

.hero h1 em { color: var(--gold-light); }

.hero .lead {
  font-size: 1.12rem;
  color: var(--on-dark-muted);
  max-width: 32em;
  margin: 1.4em 0 2.2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual img {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  filter: var(--logo-glow);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Heartbeat line: the site's signature, linking health and law */
.pulse {
  display: block;
  width: min(360px, 100%);
  height: 44px;
  overflow: visible;
}

.pulse path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: pulse-draw 3.2s ease-in-out 0.3s infinite;
}

@keyframes pulse-draw {
  0% { stroke-dashoffset: 520; opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: 1; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.pulse-center { margin: 0 auto 28px; }

/* ---------- Pillars strip ---------- */
.pillars {
  background: var(--gold);
  color: var(--ink);
}

.pillars-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.pillars p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
}

.pillars span { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-ivory { background: var(--ivory); }

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-dark h2,
.section-dark h3 { color: var(--paper); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 88px;
}

.pull-quote {
  margin: 0;
  padding-left: 32px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.about-text > p:not(.eyebrow) { color: var(--muted); }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  padding: 40px 28px 8px;
  border-right: 1px solid var(--line);
}

.principle:last-child { border-right: 0; }
.principle h3 { font-size: 1.4rem; margin-bottom: 0.4em; }
.principle p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.principle-icon {
  display: inline-flex;
  margin-bottom: 18px;
}

.principle-icon svg,
.team-photo-placeholder svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Practice areas */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.practice-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.practice-card:hover::after { width: 100%; }

.practice-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.practice-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

/* Approach */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* gold line joining the four steps */
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line));
}

.step { position: relative; }
.step h3 { margin: 20px 0 0.35em; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.step-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--paper);
}

/* Who we serve + offices */
.serve-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.clients-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.clients-list li {
  padding: 16px 0 16px 32px;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  font-weight: 500;
}

.clients-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.offices-card {
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 44px 40px;
}

.offices-card > p:not(.eyebrow) { color: var(--on-dark-muted); }

.offices-card ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.offices-card li {
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--gold);
  margin-bottom: 12px;
}

.offices-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-light);
}

/* Team */
.team-feature {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
  box-shadow: 18px 18px 0 var(--gold);
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.team-photo-placeholder svg { width: 96px; height: 96px; stroke-width: 1; }

.team-info h2 { margin-bottom: 0.1em; }

.team-credentials {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.team-role {
  color: var(--gold-text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-info p:last-child { color: var(--muted); }

/* Call to action */
.cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 161, 59, 0.2), transparent 55%),
    var(--night);
  color: var(--on-dark);
  padding: 96px 0;
  text-align: center;
}

.cta h2 { color: var(--paper); font-weight: 600; }
.cta p { max-width: 36em; margin: 0 auto 2em; font-size: 1.08rem; color: var(--on-dark-muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info > p { color: var(--muted); }

.contact-details { margin: 32px 0 0; }

.contact-details div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.contact-details dd { margin: 4px 0 0; font-weight: 500; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--gold-text); }

.contact-form {
  background: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid #d8cfba;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 59, 0.2);
}

.form-status { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--on-dark-muted);
  padding-top: 72px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-about {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  width: 72px;
  flex-shrink: 0;
  filter: var(--logo-glow);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 8px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 4px;
}

.site-footer h4 { color: var(--paper); font-size: 1.2rem; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.82rem;
}

.footer-bottom p { margin: 0; }
.footer-note { color: #7d776a; }

/* ---------- WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img,
  .pulse path { animation: none; stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 240px; margin: 0 auto; }

  .about-grid,
  .serve-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { margin-bottom: 64px; }

  .team-feature { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .team-photo { max-width: 260px; margin: 0 auto; }

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

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .brand-logo { width: 44px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.32em; }

  .pillars-inner { flex-direction: column; align-items: center; text-align: center; }
  .pillars p { font-size: 1.25rem; }

  .principles,
  .practice-grid,
  .steps,
  .form-row-split,
  .footer-grid { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 4px; }
  .principle:last-child { border-bottom: 0; }
  .pull-quote { padding-left: 20px; }

  .offices-card { padding: 32px 24px; }
  .contact-form { padding: 28px 20px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
}
