/* ABD Legal Website V3
   Brand orange: #F28C28
   Main typeface: Times New Roman
*/
:root {
  --orange: #F28C28;
  --orange-strong: #ea7708;
  --orange-dark: #bc5700;
  --ink: #111111;
  --black: #151515;
  --black-soft: #1e1e1e;
  --muted: #67605a;
  --cream: #faf7f2;
  --line: #e6ddd4;
  --white: #ffffff;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: block;
}
.brand img {
  width: 205px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.header-tagline {
  padding-left: 16px;
  border-left: 1px solid #c6bbb1;
  font-size: 14px;
  white-space: nowrap;
  color: #5b534d;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}
.main-nav a { border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--orange-dark); border-color: var(--orange); }

.nav-cta {
  padding: 10px 17px;
  background: var(--orange-strong);
  color: #fff !important;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  padding: 9px 13px;
  font: inherit;
}


.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: 22px;
  align-items: stretch;
  padding: 42px 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(46px, 5.4vw, 68px);
  line-height: 1.01;
  letter-spacing: -.03em;
  color: var(--ink);
}

.hero-text {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: 21px;
  color: #3f3934;
}

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

.secondary {
  color: var(--ink);
  background: transparent;
  border-color: #bfb3a7;
}
.secondary:hover {
  border-color: var(--orange-strong);
  color: var(--orange-dark);
}

.hero-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 0 0 0 120px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f8f5f1 0%, rgba(248,245,241,.96) 6%, rgba(248,245,241,.75) 12%, rgba(248,245,241,0) 27%),
    linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.16));
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
    padding: 30px 0 38px;
  }

  .hero-copy {
    order: 1;
    padding: 10px 0 0;
  }

  .hero-visual {
    order: 2;
    min-height: 290px;
    border-radius: 0 0 0 70px;
  }
}

@media (max-width: 620px) {
  .hero-shell {
    min-height: auto;
    gap: 18px;
    padding: 26px 0 32px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 230px;
    border-radius: 0 0 0 44px;
  }
}

/* TRUST STRIP */

.trust-strip { background: var(--black); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-grid div { padding: 23px 28px; border-right: 1px solid #38332f; }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: var(--orange); font-size: 18px; margin-bottom: 2px; }
.trust-grid span { color: #e3d8ce; font-size: 15px; }

/* GENERAL */
.section { padding: 96px 0; }

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 86px;
  align-items: start;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -.025em;
}

.body-copy {
  max-width: 720px;
  font-size: 20px;
  color: #37312c;
}
.body-copy p:first-child { margin-top: 0; }

.section-heading { margin-bottom: 38px; }
.centred-heading {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.centred-heading p:last-child { color: var(--muted); font-size: 18px; }

/* SERVICES */
.services-section {
  background: #f8f5f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 285px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242,140,40,.08), transparent 28%),
    linear-gradient(145deg, #171717, #202020);
  border: 1px solid #292929;
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .15s ease, border-color .15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--orange-strong);
}
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 25px;
  line-height: 1.11;
}
.service-card p {
  margin: 0 0 22px;
  color: #f1ebe5;
  font-size: 17px;
}
.service-card a {
  color: var(--orange);
  font-weight: bold;
  border-bottom: 1px solid rgba(242,140,40,.5);
}

/* TEAM */
.team-section { background: white; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: stretch;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(51,41,31,.06);
  overflow: hidden;
}

.featured-team {
  grid-column: span 2;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  object-position: center 22%;
}

.team-initials {
  min-height: 205px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #1c1c1c, #292929);
  color: var(--orange);
  font-size: 56px;
  font-weight: bold;
  letter-spacing: .04em;
}

.team-card-body { padding: 22px; }
.team-card h3 { margin: 0 0 5px; font-size: 25px; }
.role { margin: 0; color: var(--orange-dark); font-size: 17px; }
.credentials { color: var(--muted); margin: 8px 0 0; }

/* LEGAL AID */
.legal-aid {
  background: var(--black);
  color: white;
}
.legal-aid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}
.legal-aid p {
  color: #e5dcd3;
  font-size: 20px;
  max-width: 650px;
}
.outline-light {
  border-color: white;
  color: white;
  margin-top: 10px;
}
.outline-light:hover { background: white; color: var(--black); }

/* REVIEWS */
.reviews-section { background: #fff; }
.review-heading {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 60px;
  align-items: end;
}
.review-heading > p { color: var(--muted); font-size: 18px; }

.review-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
}

.review-display,
.review-form {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 30px;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  padding: 30px;
  border: 1px dashed #cfc4ba;
}
.review-empty strong {
  color: var(--ink);
  font-size: 21px;
}

.review-card {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
}
.review-stars { color: var(--orange-strong); letter-spacing: .08em; }
.review-card blockquote { margin: 13px 0; font-size: 18px; }
.review-card cite { color: var(--muted); font-style: normal; }

.review-form h3 { margin: 0 0 5px; font-size: 29px; }
.form-intro { color: var(--muted); margin-top: 0; }

.review-form label,
.enquiry-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: bold;
}

.review-form input,
.review-form select,
.review-form textarea,
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 12px;
  border: 1px solid #cfc3b8;
  background: white;
  font: 16px/1.35 "Times New Roman", Times, serif;
}

.review-form textarea,
.enquiry-form textarea { resize: vertical; }

.check-row {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: normal !important;
}
.check-row input {
  width: auto;
  margin: 5px 0 0;
}

.full { width: 100%; }
.form-note { color: #6b625a; font-size: 13px; margin: 12px 0 0; }

/* CONTACT */
.contact-section { background: #faf8f5; }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 84px;
}
.contact-lead { font-size: 20px; max-width: 540px; color: #514a44; }

.contact-list { margin-top: 36px; }
.contact-list p {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
}
.contact-list p:last-child { border-bottom: 1px solid var(--line); }
.contact-list strong { color: var(--orange-dark); }

.enquiry-form {
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* FOOTER */
footer {
  padding: 66px 0 24px;
  background: #f1ebe4;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 54px;
}
.footer-brand img { width: 215px; margin-bottom: 14px; }
footer h3 { font-size: 18px; margin-bottom: 14px; }
footer a, footer span {
  display: block;
  margin: 7px 0;
  color: #4e4741;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid #d7cdc1;
  font-size: 13px;
  color: #6a625a;
}

/* POLICY PAGES - shared with V2, refined */
.policy-page { background: #fff; min-height: 70vh; }
.policy-wrap { max-width: 850px; padding-top: 74px; padding-bottom: 90px; }
.policy-wrap > h1 {
  font-size: clamp(46px, 7vw, 72px);
  line-height: 1;
  margin: 0 0 10px;
}
.policy-updated { color: var(--muted); margin: 0 0 48px; }
.policy-wrap section { padding: 30px 0; border-top: 1px solid var(--line); }
.policy-wrap section h2 { font-size: 30px; margin-bottom: 14px; }
.policy-wrap p, .policy-wrap li { font-size: 18px; color: #39332e; }
.policy-wrap ul { padding-left: 22px; }
.policy-wrap a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-contact {
  padding: 18px 22px;
  background: var(--cream);
  border-left: 4px solid var(--orange);
  margin: 18px 0;
}
.policy-contact p { margin: 5px 0; }
.text-link { font-weight: bold; }
.policy-footer { padding-top: 20px; }
.policy-footer .footer-bottom { margin-top: 0; }
.policy-footer .footer-bottom a { display: block; }
.policy-nav { margin-left: auto; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .header-tagline { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-team { grid-column: span 1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .main-nav:not(.policy-nav) {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 18px 22px;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav.open { display: flex !important; }
  .main-nav a { padding: 10px 0; }
  .nav-cta { padding: 10px 12px !important; text-align: center; }

  .hero { min-height: 560px; background-position: center; }
  .hero h1 { max-width: 620px; }

  .split,
  .legal-aid-grid,
  .contact-grid,
  .review-layout,
  .review-heading {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .section { padding: 72px 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 170px; }
  .nav-wrap { min-height: 70px; }
  .hero { min-height: 520px; }
  .hero-content { padding: 72px 0; }
  .hero h1 { font-size: 48px; }
  .hero-text { font-size: 18px; }

  .trust-grid,
  .service-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-right: 0;
    border-bottom: 1px solid #38332f;
  }

  .team-photo { aspect-ratio: 1.35 / 1; }
  .team-initials { min-height: 165px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list p { grid-template-columns: 1fr; gap: 2px; }
  .footer-bottom { display: block; }

  .policy-nav { gap: 12px; font-size: 15px; }
  .policy-nav .nav-cta { display: none; }
}


/* PROFESSIONAL BODIES / LEGAL AID */
.recognition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.recognition-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.recognition-badge {
  width: 92px;
  min-height: 108px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.slab-card .recognition-badge {
  background: linear-gradient(180deg, #274ca3 0%, #1c3475 100%);
  border: 2px solid rgba(255,255,255,.6);
}

.law-card .recognition-badge {
  background: linear-gradient(180deg, #24201d 0%, #4a3d31 100%);
  border: 2px solid rgba(255,255,255,.28);
}

.recognition-body h3 {
  margin: 2px 0 10px;
  font-size: 26px;
  color: #fff6ed;
}

.recognition-body p {
  margin: 0;
  color: #efe3d8;
  font-size: 16px;
}

.contact-list p {
  align-items: flex-start;
}

.contact-list strong {
  min-width: 190px;
}

footer span strong {
  color: #fff;
}

@media (max-width: 860px) {
  .recognition-grid {
    grid-template-columns: 1fr;
  }

  .recognition-card {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .recognition-badge {
    width: 80px;
    min-height: 96px;
    font-size: 18px;
  }

  .contact-list strong {
    min-width: 100%;
    margin-bottom: 6px;
  }
}

/* V6 team layout */
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-team {
  grid-column: span 1;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== V7 FINAL OVERRIDES ===== */
.header-tagline { display: none !important; }

.hero {
  overflow: hidden !important;
  border-bottom: 1px solid var(--line) !important;
  background:
    radial-gradient(circle at 82% 20%, rgba(242,140,40,.10), transparent 30%),
    linear-gradient(120deg, #fff 0%, #fff 53%, #fbf7f1 53%, #f6ecdf 100%) !important;
  min-height: auto !important;
  display: block !important;
  color: var(--ink) !important;
}

.hero-grid {
  min-height: 520px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr) !important;
  align-items: center !important;
  gap: 72px !important;
  padding: 58px 0 !important;
}

.hero-copy {
  display: block !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.hero h1 {
  max-width: 720px !important;
  margin: 0 0 22px !important;
  font-size: clamp(50px, 6.6vw, 76px) !important;
  line-height: .99 !important;
  letter-spacing: -.035em !important;
  color: var(--ink) !important;
}

.hero-text {
  max-width: 690px !important;
  margin: 0 0 28px !important;
  color: #403a35 !important;
  font-size: 21px !important;
}

.hero-actions { display: flex !important; gap: 12px !important; flex-wrap: wrap !important; }
.quick-contact { margin-top: 26px !important; display: flex !important; gap: 10px !important; flex-wrap: wrap !important; color: #4f4944 !important; }
.quick-contact a { border-bottom: 1px solid #b7ada3 !important; }

.hero-logo-panel {
  display: grid !important;
  place-items: center !important;
  min-height: 370px !important;
  margin: 0 !important;
}

.hero-logo-inner {
  position: relative !important;
  width: min(100%, 380px) !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255,255,255,.96) !important;
  border: 5px solid #111 !important;
  box-shadow: 0 24px 60px rgba(82,52,23,.12) !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

.hero-logo-inner::before,
.hero-logo-inner::after {
  content: "" !important;
  position: absolute !important;
  background: var(--orange) !important;
}
.hero-logo-inner::before { width: 115% !important; height: 4px !important; transform: rotate(-10deg) !important; opacity: .52 !important; }
.hero-logo-inner::after { width: 4px !important; height: 115% !important; transform: rotate(12deg) !important; opacity: .14 !important; }
.hero-logo-inner img { width: 67% !important; max-height: 67% !important; object-fit: contain !important; position: relative !important; z-index: 2 !important; }

/* Contact table: long addresses never collide with labels. */
.contact-list p {
  grid-template-columns: 92px minmax(0,1fr) !important;
  gap: 20px !important;
  align-items: start !important;
}
.contact-list strong { min-width: 0 !important; }
.contact-list span, .contact-list a { min-width: 0 !important; overflow-wrap: anywhere !important; }

/* Footer address labels */
.footer-address strong {
  color: var(--orange) !important;
  font-weight: 700 !important;
}

/* Small professional-logo strip only; no separate professional-bodies section. */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #d7cdc1;
}
.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd4cb;
  border-radius: 4px;
  padding: 8px 12px;
  min-height: 56px;
}
.footer-badge img { display: block; width: auto; object-fit: contain; }
.slab-footer-badge img { height: 48px; max-width: 205px; }
.law-footer-badge img { height: 42px; max-width: 250px; }

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    min-height: auto !important;
    padding: 46px 0 !important;
  }
  .hero-logo-panel { min-height: 280px !important; }
  .hero-logo-inner { max-width: 310px !important; }
}

@media (max-width: 620px) {
  .hero-grid { padding: 38px 0 !important; }
  .hero h1 { font-size: 46px !important; }
  .hero-text { font-size: 18px !important; }
  .hero-logo-panel { min-height: 230px !important; }
  .hero-logo-inner { max-width: 255px !important; border-width: 4px !important; }
  .contact-list p { grid-template-columns: 1fr !important; gap: 3px !important; }
  .footer-badges { gap: 12px; align-items: stretch; }
  .footer-badge { width: 100%; justify-content: flex-start; }
}

/* Requested wording and layout refinements. */
.hero-actions { flex-direction: column; align-items: flex-start; }
#about .split > div:first-child { text-align: center; }
#team .section-heading { max-width: 100%; }
#team .section-heading > .eyebrow { font-size: 20px; }
#team .section-heading > h2 {
  font-size: clamp(16px, 4.5vw, 54px);
  white-space: nowrap;
}

/* Footer logos sit directly on the footer background. */
.footer-brand img { mix-blend-mode: multiply; }
.slab-footer-badge {
  background: transparent;
  border: 0;
  padding: 0;
}
.slab-footer-badge img { mix-blend-mode: multiply; }
