/* ==========================================================================
   Pulsar Canine — styles.css
   Palette sampled from the supplied Pulsar Canine logo.
   ========================================================================== */

:root {
  /* Brand colours (sampled from supplied logo) */
  --ink: #12141d;         /* deep navy-black — logo outline */
  --ink-2: #191d29;       /* raised surface */
  --ink-3: #212636;       /* card surface */
  --steel: #1f5770;       /* mid steel blue — logo body */
  --pulse: #4ba5bd;       /* bright cyan — logo highlight */
  --pulse-strong: #6fc3d9;
  --paper: #eef3f5;       /* near-white cool text */
  --muted: #9aa7b4;       /* secondary text */
  --line: rgba(238, 243, 245, 0.12);
  --pulse-tint: rgba(75, 165, 189, 0.12);

  /* Type */
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --track-wide: 0.18em;

  /* Layout */
  --max-width: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.75rem;
  --header-h: 4.25rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink);
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pulse-strong); }
a:hover { color: var(--paper); }

ul { padding-left: 1.2em; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--pulse);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--pulse-strong);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--pulse);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 42rem;
}

.muted { color: var(--muted); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--ink-2); }

/* Signature: pulse divider (ECG line referencing "Pulsar") */
.pulse-divider {
  display: block;
  width: min(100%, 22rem);
  height: 2rem;
  color: var(--pulse);
  margin: 0 0 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--pulse);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--ink); }

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--pulse);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--pulse-strong);
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--pulse);
  color: var(--pulse-strong);
}

.btn--small {
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 29, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.brand:hover { color: var(--paper); }

/* Header logo: fixed small height that always fits inside the bar and can
   never change the header height. Height is a hard value well under the bar. */
.brand__logo {
  display: block;
  width: auto;
  height: 2.25rem;
  max-height: 2.25rem;
}

.brand--footer {
  height: auto;
  align-items: flex-start;
  overflow: visible;
}
.brand--footer .brand__logo {
  height: 4rem;
  max-height: 4rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

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

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover {
  color: var(--pulse-strong);
  background: var(--pulse-tint);
}

/* Active page: colour + underline mark (not colour alone) */
.site-nav a[aria-current="page"] {
  color: var(--pulse-strong);
  position: relative;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--pulse);
}

.site-nav .nav-cta a {
  border: 2px solid var(--pulse);
  color: var(--pulse-strong);
  margin-left: 0.4rem;
}
.site-nav .nav-cta a:hover,
.site-nav .nav-cta a[aria-current="page"] {
  background: var(--pulse);
  color: var(--ink);
}
.site-nav .nav-cta a[aria-current="page"]::after { display: none; }

@media (max-width: 47.99rem) {
  /* Header stays a fixed compact bar on mobile. */
  .site-header__inner {
    flex-wrap: nowrap;
    padding-block: 0;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
  }

  /* The hamburger button is always shown on mobile. */
  .nav-toggle { display: inline-flex; }

  /* The nav is a drawer that is CLOSED by default and only opens when the
     toggle sets data-open="true". This does not depend on JavaScript adding
     any class, so the menu can never be stuck open if the script fails. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gutter) 1.25rem;
    gap: 0.15rem;
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0.85rem;
    font-size: 1.05rem;
  }
  .site-nav .nav-cta a { margin: 0.4rem 0 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 12vw, 9rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(18, 20, 29, 0.96) 0%, rgba(18, 20, 29, 0.82) 42%, rgba(18, 20, 29, 0.45) 100%),
    linear-gradient(to top, rgba(18, 20, 29, 0.95), transparent 45%);
}

.hero__content { max-width: 38rem; }

.hero h1 span { color: var(--pulse-strong); }

/* Page hero (interior pages) */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 85% -20%, var(--pulse-tint), transparent 60%),
    var(--ink);
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 63.99rem) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 47.99rem) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--pulse);
  transform: translateY(-3px);
}

.card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pulse-strong);
  letter-spacing: -0.01em;
}
.card__meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
}
.card__actions {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Split layout with controlled asymmetry */
.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split--flip { grid-template-columns: 5fr 7fr; }

@media (max-width: 63.99rem) {
  .split, .split--flip { grid-template-columns: 1fr; }
}

.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--offset { transform: rotate(-1deg); }
.frame--offset-r { transform: rotate(1deg); }
@media (max-width: 47.99rem) {
  .frame--offset, .frame--offset-r { transform: none; }
}

/* Photo strip */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.photo-grid .frame { aspect-ratio: 4 / 5; }
.photo-grid .frame--wide {
  grid-column: span 2;
  aspect-ratio: auto;
}
@media (max-width: 47.99rem) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .frame--wide { grid-column: auto; }
  .photo-grid .frame { aspect-ratio: 4 / 3; }
}

/* Video placeholder (future-ready, loads nothing) */
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed rgba(75, 165, 189, 0.5);
  background:
    radial-gradient(40rem 20rem at 50% 120%, var(--pulse-tint), transparent 70%),
    var(--ink-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.video-shell__badge {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--pulse);
  display: grid;
  place-items: center;
  color: var(--pulse-strong);
  margin-inline: auto;
  margin-bottom: 1rem;
}
.video-shell__badge svg { width: 1.4rem; height: 1.4rem; }

/* CTA band */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(50rem 25rem at 10% 120%, var(--pulse-tint), transparent 60%),
    var(--ink-2);
  text-align: center;
}
.cta-band .btn-row { justify-content: center; }
.cta-band h2 { max-width: 34rem; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.price-table { border-top: 1px solid var(--line); }

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row__body { max-width: 40rem; }
.price-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  text-align: right;
}
.price-row__price {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--pulse-strong);
  white-space: nowrap;
}
.price-row__price small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.price-row__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }

@media (max-width: 47.99rem) {
  .price-row { grid-template-columns: 1fr; }
  .price-row__side { align-items: flex-start; text-align: left; }
  .price-row__actions { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Payment page
   -------------------------------------------------------------------------- */
.embed-shell {
  border: 1px dashed rgba(75, 165, 189, 0.5);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 22rem;
  display: grid;
  place-items: center;
  text-align: center;
}
.embed-shell > * { max-width: 34rem; }

.service-summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.service-summary caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.6rem;
}
.service-summary th,
.service-summary td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.service-summary th { color: var(--muted); font-weight: 600; }
.service-summary td:last-child,
.service-summary th:last-child { text-align: right; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Forms (contact)
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.25rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 47.99rem) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--pulse);
  outline-offset: 1px;
  border-color: var(--pulse);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #e2725b;
}

.field .error {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0a292;
}
.field .error[data-visible="true"] { display: block; }
.field .error::before { content: "⚠ "; }

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--pulse);
  background: var(--pulse-tint);
  font-weight: 600;
}
.form-status[data-visible="true"] { display: block; }

/* Contact info list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.2rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--pulse-strong);
}

/* Map shell */
.map-shell {
  border: 1px dashed rgba(75, 165, 189, 0.5);
  border-radius: var(--radius);
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.map-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 47.99rem) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--pulse-strong); text-decoration: underline; }

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

