/* =========================================================
   O'Driscoll's Recovery — style.css (components & sections)
   ========================================================= */

/* ============================ HEADER ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 68px;
}

.logo { display: inline-flex; color: var(--text); text-decoration: none; }
.logo__lockup { width: 190px; height: auto; }
@media (max-width: 420px) { .logo__lockup { width: 156px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0.35rem; right: 0.35rem; bottom: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--text); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; grid-area: 1 / 1; }
.icon-btn svg:last-child { display: none; }
[data-theme="light"] #theme-toggle svg:first-child { display: none; }
[data-theme="light"] #theme-toggle svg:last-child { display: block; }
.nav-toggle[aria-expanded="true"] svg:first-child { display: none; }
.nav-toggle[aria-expanded="true"] svg:last-child { display: block; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    margin: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s var(--ease);
  }
  .nav.is-open { grid-template-rows: 1fr; }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--sp-2) var(--gutter) var(--sp-4);
    min-height: 0;
  }
  .nav__list a {
    min-height: 52px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav__list a::after { display: none; }
}
@media (max-width: 560px) {
  /* Icon-only call CTA keeps the 24/7 action in the header on small screens */
  .header__call { width: 44px; padding: 0; }
  .header__call .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(5rem, 14vh, 9rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  background: #050506;
}
.hero__media { position: absolute; inset: -4% 0 -4% 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 44% 46%;
}
@media (min-width: 760px) { .hero__media img { object-position: 56% 52%; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(4,4,6,0.92) 0%, rgba(4,4,6,0.4) 26%, rgba(4,4,6,0) 58%),
    linear-gradient(100deg, rgba(4,4,6,0.95) 0%, rgba(4,4,6,0.74) 32%, rgba(4,4,6,0.16) 66%, rgba(4,4,6,0) 100%);
}
.hero__inner { max-width: 62rem; }

.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin-bottom: var(--sp-4);
}
.hero__kicker span { color: rgba(240,165,26,0.55); margin-inline: 0.35em; }
@media (max-width: 430px) { .hero__kicker { letter-spacing: 0.17em; font-size: 0.75rem; } }

.hero__title {
  font-size: var(--text-hero);
  color: #fff;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.6);
}
.hero__title .amber { color: var(--amber-bright); }

.hero__lede { margin-top: var(--sp-5); color: #d9dbdf; max-width: 46ch; }
[data-theme="light"] .hero__lede { color: #d9dbdf; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
.hero__cta .btn--ghost:hover { border-color: var(--amber-bright); color: #fff; }

.hero__note {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: #b6b9bf;
}
.hero__note svg { width: 16px; height: 16px; color: var(--amber-bright); }

/* ============================ TRUST BAND ============================ */
.trust {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.trust__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-block: 0;
}
@media (min-width: 760px) { .trust__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  position: relative;
}
.trust__item + .trust__item::before {
  content: "";
  position: absolute;
  left: -0.5px; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}
@media (max-width: 759px) {
  .trust__item:nth-child(odd)::before { display: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.trust__item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.trust__item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

/* ============================ SECTION HEAD ============================ */
.section__head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .h2 { margin-top: var(--sp-4); text-wrap: balance; }
.section__head .lede { margin-top: var(--sp-4); }

/* ============================ SERVICES ============================ */
.services { background: var(--bg); }

.svc-grid {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .svc-grid {
    grid-template-columns: 1.22fr 0.86fr;
    grid-template-areas:
      "feature b"
      "feature c"
      "feature d";
  }
  .svc--feature { grid-area: feature; }
  .svc-grid > article:nth-child(2) { grid-area: b; }
  .svc-grid > article:nth-child(3) { grid-area: c; }
  .svc-grid > article:nth-child(4) { grid-area: d; }
}

.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-bright), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.svc:hover { border-color: var(--border-strong); transform: translateY(-3px); }
@media (min-width: 900px) {
  .svc-grid > article:not(.svc--feature) { justify-content: center; }
}
.svc:hover::after { transform: scaleX(1); }

.svc .h3 { display: flex; align-items: center; gap: 0.65rem; letter-spacing: 0.01em; }
.svc .h3 svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

.svc--feature { padding: 0; gap: 0; }
.svc__media { display: block; }
.svc__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 42%;
}
.svc__body {
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.svc__tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--amber-bright);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
[data-theme="light"] .svc__tag { color: #fff; background: var(--accent); }

.ticks { display: grid; gap: 0.5rem; margin-top: var(--sp-1); }
.ticks li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.ticks svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.link-cta svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-cta:hover svg { transform: translateX(4px); }

/* ============================ INTERLUDE ============================ */
.interlude {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78svh, 660px);
  display: grid;
  align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: #050506;
}
.interlude__media { position: absolute; inset: -6% 0 -6% 0; z-index: -2; }
.interlude__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.interlude__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(85deg, rgba(4,4,6,0.93) 0%, rgba(4,4,6,0.6) 48%, rgba(4,4,6,0.15) 100%),
    linear-gradient(to top, rgba(4,4,6,0.8), transparent 55%);
}
.interlude__line {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.01em;
}
.interlude__line--amber { color: var(--amber-bright); }
.interlude__btn { margin-top: var(--sp-6); }

/* ============================ PROCESS ============================ */
.process { background: var(--bg-alt); border-block: 1px solid var(--border); }

.steps {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  counter-reset: step;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--border-strong);
}
.step .h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.5rem; }
.step .h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ============================ COVERAGE ============================ */
.coverage__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) { .coverage__grid { grid-template-columns: 1.35fr 1fr; } }

.coverage__copy .h2 { margin-top: var(--sp-4); }
.coverage__copy .lede { margin-top: var(--sp-4); }

.coverage__list { margin-top: var(--sp-5); display: grid; gap: 0.75rem; }
.coverage__list li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.coverage__list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }

.coverage__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.coverage__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.coverage__card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--amber-bright), var(--silver-dim) 65%, transparent);
}
.coverage__card-eyebrow {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.coverage__big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-top: var(--sp-2);
}
.coverage__big span { color: var(--accent); }
.coverage__card-note { margin-top: var(--sp-2); font-size: var(--text-sm); }
.coverage__card hr { margin-block: var(--sp-5); }
.coverage__facts { display: grid; gap: 0.7rem; }
.coverage__facts li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.coverage__facts svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* ============================ CONTACT ============================ */
.contact { background: var(--bg-alt); border-top: 1px solid var(--border); }

.contact__grid {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .contact__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 168px;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__card:hover { border-color: var(--amber-bright); transform: translateY(-3px); color: var(--text); }
.contact__card > svg:first-child { width: 26px; height: 26px; color: var(--accent); margin-bottom: auto; }
.contact__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.contact__meta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.contact__meta svg { width: 14px; height: 14px; }

.contact__card--primary {
  background: linear-gradient(150deg, rgba(240,165,26,0.16), var(--surface) 62%);
  border-color: rgba(240,165,26,0.42);
}
.contact__card--primary .contact__value { font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--accent); }
.contact__card--handle .contact__value { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.contact__card--static { cursor: default; }

/* ---- Enquiry form (template only) ---- */
.enquiry {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 720px) { .enquiry { grid-template-columns: 1fr 1fr; } }
.enquiry__head, .field--wide, .enquiry__foot { grid-column: 1 / -1; }
.enquiry__disclaimer {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 62ch;
}
.enquiry__disclaimer svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea {
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e26a6a; }

.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.enquiry__status { font-size: var(--text-sm); color: var(--text-muted); }
.enquiry__status.is-ok { color: var(--accent); }
.enquiry__status.is-err { color: #e26a6a; }
[data-theme="light"] .enquiry__status.is-err { color: #a02222; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom));
}
.footer__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer__logo { width: 210px; color: var(--text); }
.footer__tag {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__tag span { color: var(--accent); margin-inline: 0.3em; }

.footer__nav ul { display: grid; gap: 0.15rem; }
.footer__nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.footer__nav a:hover { color: var(--accent); }

.footer__phone {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.footer__phone svg { width: 22px; height: 22px; color: var(--accent); }
.footer__phone:hover { color: var(--accent); }

.footer__social { display: flex; gap: 0.5rem; margin-top: var(--sp-3); }
.footer__social a {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 19px; height: 19px; }

.footer__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ============================ MOBILE CALL BAR ============================ */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.callbar.is-visible { transform: none; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 4.5rem; } }

.callbar__call, .callbar__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.callbar__call {
  flex: 1;
  background: var(--amber-bright);
  color: #120d02;
}
[data-theme="light"] .callbar__call { background: var(--accent); color: #fff; }
.callbar__wa {
  width: 54px;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.callbar__call svg, .callbar__wa svg { width: 20px; height: 20px; }

/* ============================ LIGHT-MODE ADJUSTMENTS ============================ */
[data-theme="light"] .hero,
[data-theme="light"] .interlude { background: #0a0a0c; }
[data-theme="light"] .hero__scrim {
  background:
    linear-gradient(to top, rgba(6,6,8,0.9) 4%, rgba(6,6,8,0.55) 45%, rgba(6,6,8,0.2) 78%),
    linear-gradient(100deg, rgba(6,6,8,0.9) 0%, rgba(6,6,8,0.6) 44%, rgba(6,6,8,0.05) 80%);
}
[data-theme="light"] .trust__item strong,
[data-theme="light"] .step__num { color: var(--text); }
[data-theme="light"] .step__num { color: transparent; -webkit-text-stroke: 1.4px var(--border-strong); }
[data-theme="light"] .contact__card--primary {
  background: linear-gradient(150deg, rgba(138,90,5,0.1), var(--surface) 60%);
  border-color: rgba(138,90,5,0.35);
}
[data-theme="light"] .svc::after,
[data-theme="light"] .coverage__card::before { background: linear-gradient(90deg, var(--accent), transparent 70%); }
