/* ==========================================================================
   Strictly Paws Pet Grooming — shared styles
   Palette derived from the client's approved contact form mockup.
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  /* Brand palette */
  --color-primary: #8b008b;        /* deep magenta-purple — buttons, key accents */
  --color-primary-dark: #5b0e67;   /* dark purple — headings, emphasis, hovers */
  --color-navy: #1b1b4d;           /* near-navy indigo — header, footer, bands */
  --color-navy-deep: #141439;      /* footer bottom bar */
  --color-bg-soft: #f2e3f5;        /* soft lavender — section bands, panels */
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-text-soft: #4c4457;      /* secondary text on white/lavender */
  --color-border: #e3cfe9;         /* card + input borders */
  --color-star: #f0a437;           /* review stars only */
  --color-error: #b00020;

  /* Type */
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --font-script: "Yellowtail", cursive;

  --fs-h1: clamp(2.15rem, 4.2vw + 1rem, 3.35rem);
  --fs-h2: clamp(1.65rem, 2.2vw + 0.9rem, 2.35rem);
  --fs-h3: 1.3rem;
  --fs-body: 1.0625rem;

  /* Shape + shadow */
  --radius-card: 20px;
  --radius-panel: 26px;
  --shadow-card: 0 8px 24px rgba(27, 27, 77, 0.09);
  --shadow-lift: 0 14px 32px rgba(27, 27, 77, 0.14);

  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

/* Anchored sections land below the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.band-navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-bg-soft);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.band-soft {
  background: var(--color-bg-soft);
}

.band-navy {
  background: var(--color-navy);
  color: #fff;
}

.band-navy h2,
.band-navy h3 {
  color: #fff;
}

.band-navy a {
  color: var(--color-bg-soft);
}

.band-navy a:hover {
  color: #fff;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.7rem);
  color: var(--color-primary);
  margin-bottom: 0.15em;
  transform: rotate(-2deg);
}

.band-navy .eyebrow {
  color: #d9b8e3;
}

.lede {
  font-size: 1.13rem;
  color: var(--color-text-soft);
}

.band-navy .lede {
  color: #d5d3ea;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 0.78rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 0, 139, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(91, 14, 103, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-ghost:hover {
  background: rgba(139, 0, 139, 0.08);
  color: var(--color-primary-dark);
}

.btn-light {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-light:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Keep button text readable when a button sits on a navy band
   (.band-navy a would otherwise out-rank the button color). */
.band-navy .btn-light,
.band-navy .btn-light:hover {
  color: var(--color-primary-dark);
}

.band-navy .btn-primary,
.band-navy .btn-primary:hover {
  color: #fff;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-navy);
  box-shadow: 0 2px 12px rgba(20, 20, 57, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding-block: 0.55rem;
}

/* The logo artwork lives on a white "shop sign" chip so the supplied
   white-background image reads as intentional on the navy bar. */
.brand {
  display: inline-flex;
  background: #fff;
  border-radius: 14px;
  padding: 0.3rem 0.55rem;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.brand img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 24px rgba(20, 20, 57, 0.35);
  padding: 0.75rem 4% 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
}

.site-nav a:hover {
  background: rgba(242, 227, 245, 0.14);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  color: #e7c8f0;
  box-shadow: inset 0 -3px 0 var(--color-primary);
  border-radius: 10px 10px 4px 4px;
}

.site-nav .nav-cta {
  margin-top: 0.6rem;
}

.site-nav .nav-cta a {
  background: var(--color-primary);
  text-align: center;
  border-radius: 999px;
}

.site-nav .nav-cta a:hover {
  background: var(--color-primary-dark);
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .site-nav a {
    padding: 0.5rem 0.85rem;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.75rem;
  }

  .site-nav .nav-cta a {
    padding-inline: 1.4rem;
  }
}

/* ---------- Paw-trail signature ---------- */
.paw-divider {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.9rem;
  padding-block: 0.4rem;
  color: var(--color-primary);
}

.paw-divider .paw-step {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.paw-divider .paw-step:nth-child(odd) {
  transform: rotate(-14deg) translateY(-7px);
  opacity: 0.75;
}

.paw-divider .paw-step:nth-child(even) {
  transform: rotate(12deg) translateY(3px);
  opacity: 0.45;
}

.paw-divider .paw-step:first-child { opacity: 0.25; }
.paw-divider .paw-step:last-child { opacity: 1; }

.band-navy .paw-divider,
.paw-divider--light {
  color: #b9a0d9;
}

/* Paw list bullets */
.paw-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.paw-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.55rem;
}

.paw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.05em;
  height: 1.05em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%238B008B'%3E%3Cellipse cx='14' cy='26' rx='7' ry='9' transform='rotate(-18 14 26)'/%3E%3Cellipse cx='26.5' cy='17' rx='7' ry='9.5' transform='rotate(-6 26.5 17)'/%3E%3Cellipse cx='39.5' cy='17.5' rx='7' ry='9.5' transform='rotate(7 39.5 17.5)'/%3E%3Cellipse cx='51' cy='27' rx='7' ry='9' transform='rotate(18 51 27)'/%3E%3Cellipse cx='32.5' cy='45' rx='15.5' ry='13'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-10deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero__watermark {
  position: absolute;
  right: -70px;
  top: -50px;
  width: clamp(220px, 30vw, 380px);
  height: auto;
  fill: var(--color-primary);
  opacity: 0.06;
  transform: rotate(22deg);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__copy .eyebrow {
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2rem);
}

/* Large brand mark in the hero (transparent PNG is 287px wide — don't
   scale past ~320px or it softens) */
.hero__logo {
  width: clamp(220px, 26vw, 320px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(27, 27, 77, 0.12));
}

.hero--center .hero__logo {
  margin-inline: auto;
}

.hero__copy .lede {
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.9rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
  box-shadow: 0 3px 10px rgba(27, 27, 77, 0.07);
}

.trust-chips .star {
  color: var(--color-star);
}

.trust-chips a {
  text-decoration: none;
  color: inherit;
}

.hero__photo {
  justify-self: center;
  max-width: 480px;
  width: 100%;
}

@media (min-width: 920px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero--center .hero__inner {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero--center .hero__actions {
  justify-content: center;
}

.hero--center .lede {
  margin-inline: auto;
}

/* Photo treatment: white "sticker" ring + soft tilt */
.photo-frame {
  border-radius: var(--radius-panel);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background: #fff;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame--tilt {
  transform: rotate(-1.75deg);
}

.photo-frame--tilt-right {
  transform: rotate(1.5deg);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p:last-child {
  margin-bottom: 0;
}

.value-card .value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.value-card .value-card__icon svg {
  width: 28px;
  height: 28px;
}

/* Service teaser cards */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.service-card__icon {
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.service-card__icon svg {
  width: 34px;
  height: 34px;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

.text-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--color-primary);
}

.text-link::after {
  content: " \2192";
}

.text-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Split (photo + copy) sections ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split__photo {
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

@media (min-width: 920px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .split--photo-right .split__photo {
    order: 2;
  }
}

/* ---------- Services page ---------- */
.service-rows {
  display: grid;
  gap: clamp(3rem, 6vw, 4.75rem);
}

.note-panel {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  text-align: center;
  max-width: 780px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
}

.note-panel .btn {
  margin-top: 0.4rem;
}

.note-panel .fine-print {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* Numbered appointment steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(139, 0, 139, 0.3);
}

.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 0.25em;
}

.steps p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-soft);
}

/* Small emphasized notice (e.g., vaccination requirement) */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff;
  border-left: 5px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.2rem;
  max-width: 660px;
  margin: 2.5rem auto 0;
  font-weight: 600;
}

.callout svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--color-primary);
  margin-top: 0.15rem;
}

.callout p {
  margin: 0;
}

/* ---------- Story / prose (About page) ---------- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.pull-quote {
  margin: 2.2rem 0;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 5px solid var(--color-primary);
  font-size: 1.3rem;
  line-height: 1.45;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary-dark);
}

figure.framed {
  margin: 0;
}

figure.framed figcaption {
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-soft);
  margin-top: 0.9rem;
}

/* ---------- Testimonials ---------- */
.google-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.google-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--color-primary-dark);
}

.google-badge .stars {
  color: var(--color-star);
  letter-spacing: 2px;
  font-size: 1rem;
}

.google-badge .sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-card .stars {
  color: var(--color-star);
  font-size: 1.05rem;
  letter-spacing: 3px;
}

.review-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--color-text-soft);
  flex-grow: 1;
}

.review-card figcaption {
  font-weight: 800;
  color: var(--color-primary-dark);
}

.review-card .placeholder-note {
  font-size: 0.82rem;
  font-style: normal;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  align-self: flex-start;
}

/* ---------- Visit / hours strip ---------- */
.visit-grid {
  display: grid;
  gap: 1.8rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 640px) {
  .visit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .visit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.visit-grid h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbb7e6;
  margin-bottom: 0.5em;
}

.visit-grid p {
  margin-bottom: 0.35em;
}

.visit-grid a {
  font-weight: 700;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.2rem;
}

.hours-list .note {
  font-weight: 700;
  color: #e7c8f0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}

.cta-band .btn {
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #d5d3ea;
  padding-top: clamp(2.75rem, 5vw, 4rem);
}

.site-footer a {
  color: var(--color-bg-soft);
}

.site-footer a:hover {
  color: #fff;
}

.footer-main {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-social svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.footer-bottom {
  background: var(--color-navy-deep);
  padding-block: 1.1rem;
  font-size: 0.9rem;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ---------- Contact page layout ---------- */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 920px) {
  .contact-layout {
    grid-template-columns: minmax(300px, 0.85fr) 1.25fr;
    gap: 3rem;
  }
}

.contact-card p {
  margin-bottom: 0.4em;
}

.contact-card h2 {
  font-size: 1.35rem;
}

.contact-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 1.4em 0 0.4em;
}

.contact-card .hours-list .note {
  color: var(--color-primary-dark);
}

.contact-card .footer-social {
  margin-top: 0.6rem;
  color: var(--color-primary);
}

.contact-card .footer-social:hover {
  color: var(--color-primary-dark);
}

.map-embed {
  border-radius: var(--radius-card);
  border: 6px solid #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: 1.8rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Forms (contact page) ---------- */
.form-panel {
  background: var(--color-bg-soft);
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-panel);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
}

/* Large brand mark centered above the contact form */
.form-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: clamp(200px, 24vw, 300px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(27, 27, 77, 0.12));
}

.form-panel__title {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 10px;
  padding: 0.45rem 1.1rem;
  margin: 0 0 1.6rem;
  box-shadow: 3px 3px 0 rgba(27, 27, 77, 0.25);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.05rem;
}

@media (min-width: 720px) {
  .form-row {
    grid-template-columns: 250px 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .form-row > label,
  .form-row > .group-label {
    padding-top: 0.55rem;
  }
}

.form-row > label,
.form-row > .group-label {
  font-weight: 800;
  color: var(--color-primary-dark);
}

.form-row .required {
  color: var(--color-primary);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid #c9a9d6;
  border-radius: 9px;
  padding: 0.6rem 0.8rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(139, 0, 139, 0.35);
  outline-offset: 0;
  border-color: var(--color-primary);
}

.form-field ::placeholder {
  color: #767185; /* 4.5:1 on white */
  opacity: 1;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Radio / checkbox clusters sit on white sub-panels, echoing the mockup */
.choice-group {
  background: #fff;
  border: 1.5px solid #c9a9d6;
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.choice-group--stack {
  flex-direction: column;
  gap: 0.45rem;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}

.choice-group input[type="radio"],
.choice-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Validation */
.field-error {
  display: none;
  color: var(--color-error);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.field-error.is-visible {
  display: block;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--color-error) !important;
}

.form-actions {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

@media (min-width: 640px) {
  .form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.form-actions .btn {
  border-radius: 12px;
  border: 2px solid var(--color-navy);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 0.9rem;
}

.form-actions .btn-secondary {
  background: #fff;
  color: var(--color-primary-dark);
}

.form-actions .btn-secondary:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
}

/* Netlify honeypot — visually removed for humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Scroll reveal (armed by JS only when motion is OK) ----------
   The hidden state lives on .reveal and the transition on .is-visible;
   main.js removes both classes once the animation finishes, handing
   transform/transition back to the cards' own rules (hover lift etc.). */
html.reveal-armed .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.reveal-armed .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.reveal-armed .reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
html.reveal-armed .reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
html.reveal-armed .reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
