/* =============================================================
   Whisker & Woof — Location ("Vets in [town]") page
   Imported from the "Vets in Lewisham" Claude Design (editorial
   direction) and re-aligned to the live brand: proxima-nova
   (Typekit) + brand navy/gold palette. All rules scoped under
   .ww-location so nothing leaks site-wide.
   ============================================================= */

/* The theme header (.header) is an absolute, transparent overlay built to float
   over a full-bleed hero image — on this dark page it overlapped the hero copy.
   This stylesheet only loads on single 'location' posts, so pin the header in
   normal flow as a solid navy bar; it sits flush above the navy hero. */
.header { position: static; background: #242933; }

.ww-location {
  /* Brand palette (see assets/scss/_vars.scss) */
  --navy: #242933;        /* blue-1 */
  --navy-deep: #1b1f28;
  --navy-soft: #2d3340;
  --gold: #d9b451;        /* gold-3 */
  --line: rgba(217, 180, 81, 0.25);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-mute: rgba(255, 255, 255, 0.85);
  --text-faint: rgba(255, 255, 255, 0.45);

  --font-display: "proxima-nova", "Montserrat", system-ui, sans-serif;
  --font-body: "proxima-nova", system-ui, sans-serif;

  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ww-location *,
.ww-location *::before,
.ww-location *::after { box-sizing: border-box; }

.ww-location h1, .ww-location h2, .ww-location h3, .ww-location h4, .ww-location h5 {
  font-family: var(--font-display);
  margin: 0;
  color: #fff;
}
/* No blanket `p { margin: 0 }` here — the theme already zeroes paragraph margins
   globally, and a `.ww-location p` rule (specificity 0,1,1) would override the
   class-level margins below (e.g. .loc-hero-sub's `margin: … auto …` centring). */
.ww-location a { color: var(--gold); text-decoration: none; }

/* ---- Eyebrow / headings / lead ---- */
.loc-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.loc-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.loc-eyebrow.center { justify-content: center; }
.loc-eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.loc-h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.loc-h2 em { font-style: italic; color: var(--gold); font-weight: 500; }
.loc-lead { font-size: 17px; color: var(--text-mute); line-height: 1.7; margin: 0; max-width: 640px; }

/* ---- Centred hero ---- */
.loc-hero-center { text-align: center; padding: 40px 56px 36px; }
.loc-hero-center .loc-eyebrow { margin-bottom: 0; }
.loc-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 18px 0 0;
}
.loc-h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.loc-hero-sub { max-width: 640px; margin: 20px auto 0; font-size: 18px; color: var(--text-mute); line-height: 1.65; }
.loc-hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.loc-hero-actions.center { justify-content: center; }

/* ---- Buttons ---- */
.loc-btn {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.loc-btn.solid { background: var(--gold); color: var(--navy); }
.loc-btn.solid:hover { filter: brightness(1.06); }
.loc-btn.ghost { background: transparent; color: var(--gold); }
.loc-btn.ghost:hover { background: rgba(217, 180, 81, 0.1); }
.loc-btn .arr { font-style: normal; }

/* ---- Wide hero photo ---- */
.loc-hero-photo-wrap { padding: 0 56px; }
.loc-hero-photo-wide {
  width: 100%;
  height: 380px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}
.loc-hero-photo-wide.is-placeholder {
  background-color: var(--navy-soft);
  background-image: repeating-linear-gradient(135deg, rgba(217, 180, 81, 0.08) 0 12px, rgba(217, 180, 81, 0.02) 12px 24px);
  border: 1px dashed var(--line);
}

/* ---- Breadcrumb ---- */
.loc-crumbs { padding: 20px 56px 0; font-size: 12px; color: var(--text-faint); }
.loc-crumbs span.cur { color: var(--text-mute); }
.loc-crumbs a { color: var(--gold); }

/* ---- Body grid + rail ---- */
.loc-body-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 24px 56px 8px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.loc-intro { font-size: 17px; color: var(--text-mute); line-height: 1.75; }
.loc-intro p { margin: 0 0 1em; }
.loc-intro-emph {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 19px;
  line-height: 1.5;
  margin: 8px 0;
}

/* ---- Area chips ---- */
.loc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(217, 180, 81, 0.04);
}
.loc-chip .pc { font-size: 11px; color: var(--gold); letter-spacing: 0.06em; font-weight: 600; }

/* ---- Getting here (rows) ---- */
.loc-gh-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.loc-gh-row .ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.loc-gh-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: #fff; }
.loc-gh-row p { margin: 5px 0 0; font-size: 14px; color: var(--text-mute); line-height: 1.6; }
.loc-gh-row .meta { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--gold); margin-top: 8px; }

/* ---- Services grid ---- */
.loc-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.loc-service { background: var(--navy); padding: 30px 28px; transition: background 0.25s; }
.loc-service:hover { background: var(--navy-soft); }
.loc-service .ic { color: var(--gold); margin-bottom: 16px; display: block; }
.loc-service h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.loc-service p { font-size: 13.5px; color: var(--text-mute); margin: 0; line-height: 1.6; }

/* ---- Why-us values ---- */
.loc-values { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.loc-value { display: flex; gap: 16px; }
.loc-value .ic { width: 36px; height: 36px; flex-shrink: 0; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.loc-value h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 5px; }
.loc-value p { font-size: 13.5px; color: var(--text-mute); margin: 0; line-height: 1.55; }

/* ---- Accreditation badges ---- */
.loc-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.loc-badge {
  width: 92px; height: 92px;
  border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  padding: 8px;
}
.loc-badge.rcvs { background: #1f4a8b; }
.loc-badge.cat { background: linear-gradient(180deg, #c03b6f, #8e2350); }
.loc-badge.zero { background: #1b3a63; }
.loc-badge .big { font-size: 13px; letter-spacing: 0.02em; }
.loc-badge .sm { font-size: 8px; letter-spacing: 0.12em; opacity: 0.85; margin-top: 4px; }
.loc-badge-logo { display: flex; align-items: center; justify-content: center; height: 92px; }
.loc-badge-logo img { display: block; max-height: 72px; max-width: 140px; width: auto; height: auto; }

/* ---- Map + directions ---- */
.loc-map-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
.loc-map { position: relative; min-height: 320px; }
.loc-map-embed { position: relative; overflow: hidden; background: #1d222c; }
.loc-map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.loc-map-canvas {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(217,180,81,0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(217,180,81,0.05) 0 1px, transparent 1px 46px),
    radial-gradient(circle at 52% 46%, rgba(217,180,81,0.10), transparent 60%),
    linear-gradient(160deg, #2a3340, #1d222c);
}
.loc-map-roads {
  position: absolute; inset: 0; opacity: 0.5;
  background:
    linear-gradient(28deg, transparent 47%, rgba(255,255,255,0.07) 47% 49%, transparent 49%),
    linear-gradient(-52deg, transparent 60%, rgba(255,255,255,0.06) 60% 61.5%, transparent 61.5%),
    linear-gradient(80deg, transparent 33%, rgba(255,255,255,0.05) 33% 34%, transparent 34%);
}
.loc-map-pin { position: absolute; top: 46%; left: 52%; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.loc-map-pin .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(217, 180, 81, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4); }
.loc-map-pin .tag { background: var(--navy); border: 1px solid var(--line); font-family: var(--font-display); font-size: 11px; font-weight: 600; color: #fff; padding: 5px 10px; border-radius: 3px; white-space: nowrap; }
.loc-map-note { position: absolute; left: 14px; bottom: 12px; font-family: ui-monospace, monospace; font-size: 10px; color: var(--text-faint); letter-spacing: 0.05em; }
.loc-directions { padding: 32px; background: var(--navy-deep); }
.loc-directions h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 6px; }
.loc-directions .addr { font-size: 14px; color: var(--text-mute); line-height: 1.6; margin-bottom: 18px; }
.loc-dir-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-mute); line-height: 1.5; }
.loc-dir-step .num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-weight: 600; }

/* ---- Sticky info rail ---- */
.loc-rail { position: sticky; top: 20px; align-self: start; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--navy-deep); }
.loc-rail .rail-map { height: 150px; position: relative; }
.loc-rail .rail-body { padding: 22px 22px 24px; }
.loc-rail .rail-body h4 { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.loc-rail-row { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.loc-rail-row:first-of-type { border-top: 0; }
.loc-rail-row .ic { color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.loc-rail-row .k { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.loc-rail-row .v { font-size: 14px; color: #fff; font-family: var(--font-display); font-weight: 500; }
.loc-rail-row .v.gold { color: var(--gold); }
.loc-rail .rail-cta { margin-top: 18px; }
.loc-rail .rail-cta .loc-btn { width: 100%; justify-content: center; }

/* ---- Testimonials (stacked) ---- */
.loc-quote-stack { border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; margin-bottom: 26px; }
.loc-quote-stack p { font-family: var(--font-display); font-style: italic; font-size: 18px; color: #fff; line-height: 1.5; margin: 0 0 10px; }
.loc-quote-stack .who { font-size: 13px; color: var(--text-faint); }
.loc-quote-stack .who b { color: var(--gold); font-weight: 600; font-style: normal; }

/* ---- FAQ accordion ---- */
.loc-acc .ww-acc-flat { border-bottom: 1px solid var(--line-soft); }
.loc-acc .ww-acc-flat:first-child { border-top: 1px solid var(--line-soft); }
.loc-acc .ww-acc-flat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 18px 0; cursor: pointer;
  background: none; border: 0; text-align: left; font: inherit; color: inherit;
}
.loc-acc .ww-acc-flat-head .q { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; flex: 1; }
.loc-acc .ww-acc-flat-head .ic { color: var(--gold); font-size: 22px; font-family: var(--font-display); font-weight: 400; line-height: 1; }
.loc-acc .ww-acc-flat-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.loc-acc .ww-acc-flat.open .ww-acc-flat-body { max-height: 600px; }
.loc-acc .ww-acc-flat-body p { margin: 0 40px 18px 0; color: var(--text-mute); }

/* ---- CTA band ---- */
.loc-cta-band {
  background: linear-gradient(120deg, var(--navy-soft), var(--navy-deep));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px;
  margin-top: 48px;
}
.loc-cta-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.loc-cta-band h3 { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: #fff; margin: 0; line-height: 1.15; }
.loc-cta-band h3 em { font-style: italic; color: var(--gold); font-weight: 500; }
.loc-cta-band p { color: var(--text-mute); margin: 12px 0 0; font-size: 15px; }
.loc-cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.loc-cta-phone { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); font-weight: 600; }

/* ---- Sticky CTA pill ---- */
.ww-location .ww-sticky-cta {
  position: fixed;
  right: 28px; bottom: 28px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 14px 18px 14px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(217, 180, 81, 0.12);
  z-index: 50;
  text-decoration: none;
}
.ww-location .ww-sticky-cta .dot { width: 28px; height: 28px; background: var(--navy); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ww-location .ww-sticky-cta small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(36, 41, 51, 0.7); margin-bottom: 1px; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .loc-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .loc-rail { position: static; max-width: 420px; }
}

@media (max-width: 900px) {
  .loc-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .loc-hero-center,
  .loc-hero-photo-wrap,
  .loc-crumbs,
  .loc-body-grid,
  .loc-cta-band { padding-left: 24px; padding-right: 24px; }
  .loc-map-grid { grid-template-columns: 1fr; }
  .loc-values { grid-template-columns: 1fr; }
  .loc-hero-photo-wide { height: 280px; }
  .loc-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .loc-services { grid-template-columns: 1fr; }
  .loc-hero-actions.center { flex-direction: column; }
  .loc-hero-actions.center .loc-btn { width: 100%; justify-content: center; }
  .ww-location .ww-sticky-cta { display: none; }
}
