/* Higginson Beyer — rebuilt from the 2020 Divi design. Colors and fonts match the original. */
:root {
  --charcoal: #505050;      /* header + footer */
  --slate: #313e47;         /* photo overlays */
  --gold: #f9cb4f;          /* consultation line, footer labels, home headings */
  --orange: #ffa40d;        /* practice-page stripe, buttons, underlines */
  --ink: #333;
  --text: #666;
  --light: #f6f6f6;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Open Sans', Helvetica, Arial, sans-serif;
  --slab: 'Roboto Slab', Georgia, serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 15px/1.9 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { background: var(--charcoal); border-bottom: 2px solid var(--gold); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0 10px; }
.brand img { width: 240px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; }
.consult { margin: 0 0 6px; color: var(--gold); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.consult a { color: var(--gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.menu a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--gold); }

/* ── Page hero (interior pages) ─────────────────────────── */
.page-hero {
  background: linear-gradient(rgba(49, 62, 71, .78), rgba(49, 62, 71, .78)), var(--hero) center / cover no-repeat;
  padding: 90px 0 100px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); margin: 0; }

/* Coloured bar down the left edge, as on the original */
.stripe { border-left: 110px solid var(--orange); }
.stripe-yellow { border-left-color: var(--gold); }

/* ── Practice pages ─────────────────────────────────────── */
.practice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 80px 72px; max-width: 1330px; }
.practice-row.flip img { order: 2; }
.prose { font-size: 16px; line-height: 2; }

/* ── Areas of Practice index ────────────────────────────── */
.areas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; padding: 64px 72px 72px 110px; border-left: 68px solid; }
.areas-row:nth-child(even) { background: var(--light); }
.band-1 { border-color: #3a414a; }
.band-2 { border-color: #55636a; }
.band-3 { border-color: #ffb95a; }
.band-4 { border-color: #fdd49a; }
.band-5 { border-color: #4f6fa3; }
.area h2 { font-size: 30px; margin-bottom: .5em; }
.area h2 a { text-decoration: none; }
.area h2::after { content: ''; display: block; width: 42px; height: 2px; background: var(--orange); margin-top: 20px; }
.area p { font-size: 14px; }
.btn { display: inline-block; border: 2px solid var(--orange); color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .25em; padding: 7px 14px; }
.btn:hover { background: var(--orange); color: #fff; }

/* ── Attorneys ──────────────────────────────────────────── */
.attorneys { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 80px 72px 72px 128px; max-width: 1360px; }
.attorneys h2 { font-size: clamp(32px, 3.4vw, 46px); }
.attorneys h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; color: #555; }
.attorneys ul { padding-left: 1.1em; line-height: 1.6; }

/* ── Home ───────────────────────────────────────────────── */
.slider { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 600px; padding: 80px 0; background: #7ebec5; }
.slides div {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(103deg, rgba(49, 62, 71, .6) 8%, rgba(49, 62, 71, .5) 66%), var(--bg) center / cover no-repeat;
  animation: fade 28s infinite;
}
.slides div:nth-child(1) { opacity: 1; animation-delay: 0s; }
.slides div:nth-child(2) { animation-delay: 7s; }
.slides div:nth-child(3) { animation-delay: 14s; }
.slides div:nth-child(4) { animation-delay: 21s; }
@keyframes fade { 0% { opacity: 0 } 4% { opacity: 1 } 25% { opacity: 1 } 29% { opacity: 0 } 100% { opacity: 0 } }
.slides div:nth-child(1) { animation-name: fade-first; }
@keyframes fade-first { 0% { opacity: 1 } 25% { opacity: 1 } 29% { opacity: 0 } 96% { opacity: 0 } 100% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .slides div { animation: none; } }
.slider-text { position: relative; max-width: 860px; text-align: center; color: #fff; }
.slider-text h1 { color: var(--gold); text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); }
.slider-text p { font-size: 15px; line-height: 1.95; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }

.practice-areas { padding: 80px 0 70px; }
.section-title { text-align: center; font-size: clamp(30px, 3.6vw, 46px); }
.section-title::after { content: ''; display: block; width: 70px; height: 3px; background: var(--orange); margin: 28px auto 0; }
.tiles { list-style: none; margin: 56px auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.tiles a { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--tile) center / cover no-repeat; text-decoration: none; }
.tiles span {
  position: absolute; left: 0; bottom: 26px; padding: 6px 14px;
  background: rgba(60, 60, 60, .82); color: var(--gold); font: 500 17px/1.5 var(--slab);
}
.tiles a:hover span, .tiles a:focus span { background: var(--slate); }

.team {
  background: linear-gradient(103deg, #313e47 8%, rgba(49, 62, 71, .5) 66%), url('/img/office-front.jpg') center bottom / cover no-repeat;
  padding: 140px 0 120px; color: #fff;
  clip-path: polygon(0 6%, 50% 0, 100% 6%, 100% 100%, 0 100%);
}
.team h2 { color: var(--gold); text-transform: uppercase; font-size: clamp(28px, 3.4vw, 42px); }
.team p { max-width: 640px; font-size: 16px; line-height: 2; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: #fff; padding: 70px 0 80px; }
.footer-inner { display: grid; grid-template-columns: 250px 260px 1fr; gap: 32px; align-items: start; max-width: 1080px; }
.footer-links { list-style: none; padding: 0; margin: 28px 0 0; font-weight: 600; line-height: 2.2; }
.footer-links a, .office a { color: #fff; text-decoration: none; }
.footer-links a:hover, .office a:hover { color: var(--gold); }
.office-label { font: 700 13px/1.5 var(--sans); color: var(--gold); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.office p { margin: 0; line-height: 1.95; font-size: 16px; }
.office strong { font-weight: 700; }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ── Contact ────────────────────────────────────────────── */
.contact {
  min-height: calc(100vh - 136px); padding: 160px 0; display: grid; place-items: center;
  background: url('/img/conference-room.jpg') center / cover no-repeat; position: relative;
}
.contact::before { content: ''; position: absolute; inset: 0; background: #fff; mix-blend-mode: saturation; }
.contact-box {
  position: relative; width: min(1280px, 100% - 32px); display: grid; grid-template-columns: 260px 1fr 1.5fr; gap: 36px; align-items: start;
  background: rgba(70, 70, 70, .78); color: #fff; padding: 60px;
}
.contact-box .office a[href^="mailto"] { color: var(--gold); text-decoration: underline; }
.contact-box .map iframe { height: 420px; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 980px) {
  .header-inner { gap: 12px; }
  .brand img { width: 170px; }
  .header-right { flex-direction: row; align-items: center; gap: 8px; }
  .consult { margin: 0; }
  .consult-label { display: none; }
  /* Thumb-sized tap areas (≥44px) without changing how the links look */
  .consult a { display: inline-block; padding: 12px 6px; }
  .footer-links { line-height: 1.5; margin-top: 16px; }
  .footer-links a { display: inline-block; padding: 11px 0; }
  .office p { line-height: 1.6; }
  .office a { padding: 12px 0; }  /* inline: taller tap area, text keeps flowing */
  .menu-toggle { display: grid; gap: 5px; cursor: pointer; padding: 10px; background: none; border: 0; }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: var(--gold); }
  .menu { display: none; }
  .menu.open { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--charcoal); border-top: 2px solid var(--gold); padding: 8px 16px 16px; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .stripe { border-left-width: 16px; }
  .practice-row, .attorneys { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .practice-row.flip img { order: 0; }
  .areas-row { grid-template-columns: 1fr; padding: 48px 24px 56px; border-left-width: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .map { grid-column: 1 / -1; }
  .contact { padding: 40px 0; }
  .contact-box { grid-template-columns: 1fr; padding: 32px 24px; }
  .contact-box .map iframe { height: 300px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .page-hero { padding: 60px 0 64px; }
  .slider { min-height: 0; padding: 64px 0; }
  .tiles { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .team { padding: 90px 0 70px; clip-path: polygon(0 3%, 50% 0, 100% 3%, 100% 100%, 0 100%); }
}
