/* Milne Family Law — home page (matched to milnefamilylaw.com) */

:root {
  --navy: #262e4a;
  --gold: #af8b69;
  --ink: #333333;
  --muted: #666666;
  --line: #d8dde8;
  --contact-bg: #f2f6ff;
  --white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --cdn: https://media.cwd-cdn.com/Milne-Family_Law/images;
  --wrap: 1080px;
  --wrap-narrow: 920px;
  --header-wrap: 994px;
  --header-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.header-call:focus-visible,
.cta-pair__btn:focus-visible,
.contact-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, var(--wrap-narrow));
}

/* Header — matched to live Divi header (~994px row, ~160px logo, menu left of remaining space) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}

.site-header__inner {
  width: min(100% - 2rem, max(var(--header-wrap), 1100px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem 1.4rem;
}

.site-logo {
  flex: 0 0 auto;
}

.site-logo img {
  width: 120px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 500;
}

.site-nav > a,
.nav-dropdown__toggle {
  color: #2a2a2a;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a.is-active,
.site-nav > a[aria-current="page"],
.nav-dropdown__toggle:hover,
.nav-item--dropdown.is-open > .nav-dropdown__toggle {
  color: var(--gold);
}

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: normal;
  cursor: pointer;
}

.nav-dropdown__toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 22rem;
  width: max-content;
  max-width: min(28rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.55rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  z-index: 50;
}

.nav-item--dropdown.is-open > .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: #2a2a2a;
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--gold);
  background: #f7f8fb;
}

.header-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  background: var(--navy);
  color: var(--white) !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-call:hover {
  background: var(--gold);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--navy);
}

.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin: 1.75rem auto;
}

.cta-pair__btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 1rem 1.15rem 1rem 1.35rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--white) !important;
  background-image: url("https://media.cwd-cdn.com/Milne-Family_Law/images/texture-tailor.png");
  background-position: 100% 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cta-pair__btn::after {
  content: "›";
  flex: 0 0 auto;
  font-size: 1.85rem;
  line-height: 1;
  opacity: 0.95;
}

.cta-pair__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.cta-pair__text span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.92;
}

.cta-pair__btn--call {
  background-color: var(--navy);
}

.cta-pair__btn--call:hover {
  background-color: var(--gold);
  color: var(--white) !important;
}

.cta-pair__btn--msg {
  background-color: var(--gold);
}

.cta-pair__btn--msg:hover {
  background-color: var(--navy);
  color: var(--white) !important;
}

.content-page {
  padding: 3.25rem 0 2.5rem;
}

.content-page__intro {
  margin-bottom: 0.5rem;
}

.content-prose {
  color: var(--ink);
}

.content-prose > * + * {
  margin-top: 1.1rem;
}

.content-prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--navy);
}

.content-prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.content-prose p,
.content-prose li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.content-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  margin-left: auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] > summary::after {
  margin-top: 0.65rem;
  transform: rotate(-135deg);
}

.faq-list summary h3 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 1.15rem;
}

.faq-list details[open] summary h3 {
  color: var(--gold);
}

.faq-list details > p {
  margin: 0.75rem 0 0.35rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: grid;
  place-items: start center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 5rem;
  background:
    linear-gradient(
      to bottom,
      rgba(20, 24, 36, 0.55) 0%,
      rgba(20, 24, 36, 0.28) 28%,
      rgba(20, 24, 36, 0.08) 48%,
      transparent 62%
    ),
    url("https://media.cwd-cdn.com/Milne-Family_Law/images/hero.jpg") center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.hero__content {
  max-width: 40rem;
  padding: 0.35rem 0.75rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 0, 0, 0.45);
}

.hero__tagline {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 0, 0, 0.4);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero__scroll:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Navy band */
.band--navy {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1.65rem 1.25rem;
}

.band--bordered {
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.band__subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Headings */
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.heading--gold {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.heading--navy {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.heading--sub {
  margin-top: 0.15rem;
  font-style: italic;
  font-weight: 500;
}

.heading--small {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Intro + video */
.intro {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  background: var(--white);
}

.intro__heading {
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.intro__copy {
  margin: 1.35rem 0 2rem;
  color: var(--muted);
}

.intro__copy p {
  margin: 0 0 0.85rem;
}

.intro__lead {
  margin-bottom: 1.15rem !important;
  font-size: 1.08rem;
  line-height: 1.65;
}

.intro__copy strong {
  color: var(--ink);
  font-weight: 600;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}

.video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: var(--navy);
}

.video__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
}

.video.is-playing .video__play {
  display: none;
}

.video__play-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(38, 46, 74, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video__play-icon::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent #fff;
}

.video__play:hover .video__play-icon,
.video__play:focus-visible .video__play-icon {
  background: var(--gold);
  transform: scale(1.06);
}

/* CTA bars — same width as intro video (.wrap--narrow) */
.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--wrap-narrow));
  margin: 0.75rem auto;
  padding: 1.15rem 1.5rem;
  background-color: var(--navy);
  background-image: url("https://media.cwd-cdn.com/Milne-Family_Law/images/texture-tailor.png");
  background-position: 100% 100%;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cta-bar:hover {
  color: var(--white);
  background-color: var(--gold);
}

.cta-bar__chevron {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.9;
}

/* Services */
.services {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.services h2 {
  margin-bottom: 0.55rem;
}

.services__lead {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.services li {
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  padding: 1rem 0 3rem;
  background: var(--white);
  text-align: center;
}

.testimonials .heading--sub {
  margin-bottom: 1.75rem;
}

.testimonial-slider {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  grid-template-areas:
    "prev viewport next"
    "dots dots dots";
  align-items: center;
  gap: 0.75rem 0.5rem;
}

.testimonial-slider__viewport {
  grid-area: viewport;
  overflow: hidden;
  background: var(--gold);
  color: var(--white);
  min-height: 18rem;
}

.testimonial-slider__track {
  position: relative;
}

.testimonial {
  display: none;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  text-align: left;
}

.testimonial.is-active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial blockquote {
  margin: 0;
}

.testimonial p {
  margin: 0;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--white);
}

.testimonial figcaption {
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.testimonial__more {
  margin-top: 0.85rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font: 600 0.85rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  padding: 0;
}

.testimonial__more:hover {
  color: #fff;
}

.testimonial-slider__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.testimonial-slider__arrow--prev { grid-area: prev; }
.testimonial-slider__arrow--next { grid-area: next; }

.testimonial-slider__dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.testimonial-slider__dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c9c9c9;
  cursor: pointer;
}

.testimonial-slider__dots button.is-active {
  background: var(--gold);
}

.testimonial-slider__cta {
  grid-area: cta;
  width: 100%;
  max-width: none;
  margin: 0.35rem 0 0;
  text-align: left;
}

.testimonial-slider__cta.cta-pair {
  width: 100%;
}

/* Contact */
.contact {
  background: var(--contact-bg);
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.contact__info .heading--navy {
  margin-bottom: 0.35rem;
}

.contact__reassure {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.75rem;
}

.contact-item__icon {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}

.contact-item h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-item a {
  color: var(--muted);
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  position: relative;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.contact-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-form label span abbr {
  text-decoration: none;
  color: var(--gold);
}

.contact-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

.contact-form__note {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.content-prose a,
.contact-form__note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-prose a:hover,
.contact-form__note a:hover {
  color: var(--gold);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c5cad6;
  background: var(--white);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: #aeb4c2;
}

.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(175, 139, 105, 0.2);
}

.contact-form button[type="submit"] {
  justify-self: start;
  margin-top: 0.2rem;
  border: 0;
  background: var(--gold);
  color: var(--white);
  font: 600 0.9rem/1 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  border-radius: 2px;
  transition: filter 0.15s ease, background 0.15s ease;
}

.contact-form button[type="submit"]:hover {
  filter: brightness(1.05);
  background: #9d7a58;
}

[data-cwd-contact-status] {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

[data-cwd-contact-status][data-cwd-contact-state="ok"],
[data-cwd-contact-status][data-cwd-contact-state="error"] {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

[data-cwd-contact-status][data-cwd-contact-state="error"] {
  border-left-color: #b3261e;
  color: #8a1c14;
}

.form-dialog {
  width: min(30rem, calc(100vw - 2rem));
  padding: 2rem 1.75rem 1.6rem;
  border: 0;
  border-top: 4px solid var(--gold);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 18px 50px rgba(38, 46, 74, 0.25);
}

.form-dialog::backdrop {
  background: rgba(38, 46, 74, 0.55);
}

.form-dialog__message {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-dialog__message a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-dialog__close {
  border: 0;
  padding: 0.7rem 1.4rem;
  background: var(--gold);
  color: var(--white);
  font: 600 0.9rem/1 var(--font-body);
  cursor: pointer;
  border-radius: 2px;
}

.form-dialog__close:hover {
  background: #9d7a58;
}

.form-dialog__close:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer__inner p {
  margin: 0.15rem 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 2px;
  background: #9aa0a8;
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--navy);
  color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
  .services__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
    grid-template-areas:
      "viewport"
      "dots";
  }

  .testimonial-slider__arrow {
    position: absolute;
    top: 42%;
    z-index: 2;
    color: var(--white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }

  .testimonial-slider__arrow--prev { left: 0.25rem; }
  .testimonial-slider__arrow--next { right: 0.25rem; }
}

@media (max-width: 980px) {
  .site-header__inner {
    width: min(100% - 1.25rem, 100%);
    gap: 0.75rem;
  }

  .header-call {
    order: 2;
    margin-left: auto;
  }

  .nav-toggle {
    order: 3;
    display: block;
    margin-left: 0;
  }

  .site-nav {
    display: none;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown__toggle {
    padding: 0.85rem 1.25rem;
    text-align: left;
  }

  .nav-dropdown {
    position: static;
    border: 0;
    border-top: 1px solid var(--line);
    min-width: 0;
    width: auto;
    max-width: none;
    background: #f7f8fb;
  }

  .nav-dropdown a {
    white-space: normal;
    padding: 0.65rem 1.5rem 0.65rem 2rem;
  }

  .nav-item--dropdown.is-open > .nav-dropdown {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .cta-pair {
    grid-template-columns: 1fr;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 62vh;
  }
}

/* Soft scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Request a Consultation */
.booking {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--white);
}

.booking .intro__heading {
  margin-bottom: 1rem;
}

.booking .intro__heading .heading {
  font-size: clamp(1.85rem, 3.6vw, 2.35rem);
}

.booking__lead {
  margin: 0 0 1rem;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.request-form {
  margin-top: 1.75rem;
  gap: 1.25rem;
}

.request-form__group {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1.1rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--contact-bg);
}

.request-form__group > legend {
  padding: 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
}

.request-form__group > legend abbr,
.request-form__choices > legend abbr {
  text-decoration: none;
  color: var(--gold);
}

.request-form__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-form__choices > legend {
  margin-bottom: 0.3rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-form .request-form__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.contact-form input[type="radio"],
.contact-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.25rem 0 0;
  padding: 0;
  accent-color: var(--navy);
}

.request-form__slot {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: end;
}

.request-form__slot-label {
  padding-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.request-form__note {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.request-form__count {
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.request-form button[type="submit"] {
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .request-form__slot {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .request-form__slot-label {
    padding-bottom: 0;
  }
}

/* About */
.about {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
  background: var(--white);
}

.about .intro__heading {
  margin-bottom: 1.25rem;
}

.about__copy {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.about__copy p {
  margin: 0 0 0.9rem;
}

.about__goal {
  margin: 1.35rem 0 0 !important;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.about__goal strong {
  font-weight: 500;
  color: var(--muted);
}

.about__photo {
  margin: 0 0 1.25rem;
}

.about__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about__cta {
  width: 100%;
  margin: 0;
}

/* 404 */
.notfound {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.75rem);
  background: var(--white);
}

.notfound__kicker {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notfound__lead {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.notfound .cta-pair {
  margin-top: 1.5rem;
}

.notfound h2 {
  margin-top: 2.25rem;
}

.notfound-links {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.notfound-links a {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--contact-bg);
  color: var(--navy);
}

.notfound-links a:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.notfound-links strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.notfound-links span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .notfound-links {
    grid-template-columns: 1fr;
  }
}
