/* =========================================================
   Pacific Heights Canine Development
   Look: a dramatic navy, full-screen welcome with the dog
   centered, then calm, airy, light sections that let the
   photos breathe. Brand colors: navy, golden paw, cream,
   with soft sky blue and sage green.
   ========================================================= */

:root {
  --navy: #1D2F3F;
  --navy-deep: #152330;
  --night: #0C1520;          /* the dark edges of the welcome photo */
  --night-mid: #1E2D42;      /* the lighter glow behind the dog */
  --gold: #D4B27A;
  --gold-deep: #8A6A35;
  --gold-soft: #F1E4CA;
  --cream: #F8F5EF;
  --paper: #FCFBF8;
  --white: #FFFFFF;
  --sky: #E4EDF3;
  --sky-deep: #5E7F96;
  --sage: #E5ECE1;
  --text: #1D2F3F;
  --muted: #56636F;
  --line: #E6E1D7;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 47, 63, .04), 0 14px 36px rgba(29, 47, 63, .08);
  --container: 1240px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
  color: var(--navy);
  letter-spacing: -.012em;
}

h2 { font-size: clamp(2.5rem, 4.8vw, 4rem); text-wrap: balance; }
h3 { font-size: 1.6rem; line-height: 1.15; letter-spacing: 0; }

p { margin: 0; }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  color: var(--muted);
  max-width: 36ch;
}

.container {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(88px, 12vw, 160px) 0; }

.section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: clamp(52px, 7vw, 88px);
}
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 40ch; }
.section-head .btn { margin-top: 12px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 8px 22px rgba(29, 47, 63, .2); }
.btn-navy:hover { background: var(--navy-deep); }

.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-gold:hover { background: #DFC089; }

.btn-small { padding: 11px 22px; font-size: .95rem; }
.btn-large { padding: 18px 36px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-text { display: grid; line-height: 1.1; }
.logo-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
}
.logo-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .8;
}

/* ---------- Header (dark, blends into the welcome photo) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 21, 32, .97);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(212, 178, 122, .16);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.site-nav { display: flex; gap: 40px; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  font-weight: 400;
  color: rgba(248, 245, 239, .82);
  position: relative;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Welcome (full-screen: headline above a group of three dogs) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 980px);
  background:
    radial-gradient(60% 75% at 50% 70%, var(--night-mid) 0%, #131F2E 55%, var(--night) 100%);
  color: var(--cream);
}
.hero-dog {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  /* large, but never so tall that the dogs reach the headline on short screens */
  height: min(72%, calc((100% - 250px) * 1.07));
  width: auto;
  max-width: none;
  /* the group sits a touch left of the photo's center */
  transform: translateX(-47%);
  /* soften the photo's edges into the navy background */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%);
  mask-composite: intersect;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vh, 22px);
  text-align: center;
  padding: clamp(40px, 6.5vh, 76px) 0 0;
}
.hero-title {
  color: var(--cream);
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(12, 21, 32, .45);
}
.hero-cta .lead { color: rgba(248, 245, 239, .86); max-width: 44ch; margin-inline: auto; }

/* ---------- Services ---------- */
.services { background: var(--white); }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
}
.service-card { display: grid; align-content: start; }
.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover .service-photo { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-body {
  display: grid;
  gap: 8px;
  padding: 20px 4px 0;
}
.service-body h3 { position: relative; padding-top: 14px; }
.service-body h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.service-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* shared line-icon style (About + Contact) */
.value-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-icon svg .fill { fill: var(--gold); stroke: none; }

/* ---------- Banner: "Not sure where to start?" ---------- */
.cta-band {
  position: relative;
  background:
    linear-gradient(rgba(12, 21, 32, .74), rgba(12, 21, 32, .74)),
    url("../images/hero.jpg") center 42% / cover no-repeat;
}
.cta-band-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 32px;
  padding: clamp(96px, 12vw, 150px) 0;
}
.cta-band h2 { color: var(--cream); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 66% 50%;
  border-radius: var(--radius);
}
.about-side { display: grid; gap: 40px; }
.about-text { display: grid; gap: 20px; }
.about-text h2 { max-width: 14ch; margin-bottom: 4px; }
.about-text p:not(.lead) { color: var(--muted); max-width: 44ch; }

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.values li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.values h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.values p { color: var(--muted); font-size: 1rem; }

.value-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
}

/* ---------- Consultation ---------- */
.consult { background: var(--cream); }
.consult-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.consult-intro { display: grid; gap: 20px; }
.consult-intro h2 { max-width: 12ch; }
.consult-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: var(--radius);
  margin-top: 20px;
}

.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.steps p { color: var(--muted); font-size: 1rem; }
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  font-variant-numeric: lining-nums;
}

.consult-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 22px;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  padding: 0;
}
.field legend { margin-bottom: 10px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder,
textarea::placeholder { color: #93A0AB; }
input:focus,
textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--sky-deep);
  box-shadow: 0 0 0 4px rgba(94, 127, 150, .15);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-size: .95rem;
  color: var(--navy);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.contact-grid li {
  padding: 12px 28px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}
.contact-grid li + li { border-left: 1px solid var(--line); }
.contact-grid h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.contact-grid a,
.contact-grid p { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-grid a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--cream); }
.footer-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 64px 0 52px;
}
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; opacity: .9; }
.footer-copy { font-size: .9rem; opacity: .6; }

/* ---------- Phone booking bar (phones and tablets only) ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }

  /* welcome on phones: headline and short line at the top, the three dogs right below */
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* matches the photo's backdrop where the two meet */
    background: linear-gradient(to bottom, var(--night) 0%, #172536 60%, #182638 100%);
  }
  .hero-inner { padding: 40px 0 0; }
  .hero-title { font-size: clamp(2.5rem, 10.5vw, 4.2rem); }
  .hero-line { display: block; }
  .hero-dog {
    order: 2;
    flex: none;
    align-self: flex-start;
    position: relative;
    bottom: auto;
    width: min(158%, 1100px);
    height: auto;
    margin-top: 12px;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 10%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 10%);
  }

  .about-inner,
  .consult-inner { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid li { padding: 28px 12px; }
  .contact-grid li + li { border-left: 0; border-top: 1px solid var(--line); }

  /* phone booking bar */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 245, 239, .95);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid rgba(212, 178, 122, .35);
    box-shadow: 0 -8px 24px rgba(29, 47, 63, .08);
  }
  .mobile-bar .btn { padding: 15px 18px; font-size: 1rem; box-shadow: none; }
  .mobile-bar .btn:hover { transform: none; }
  .mobile-bar-book { flex: 1; }
  .mobile-bar-call { flex: none; }
  .mobile-bar-call svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linejoin: round;
  }
}

@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .container { width: min(100% - 40px, var(--container)); }
  .logo img { width: 32px; height: 32px; }
  .logo-name { font-size: 1.05rem; }
  .logo-sub { font-size: .6rem; letter-spacing: .24em; }
  .site-header .btn-small { padding: 10px 16px; font-size: .875rem; }
  .field-row { grid-template-columns: 1fr; }
  .btn-large { width: 100%; }
  .hero-cta { justify-items: stretch; }

  /* services: compact listing rows, photo on the left */
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .service-photo { aspect-ratio: 1 / 1; border-radius: 12px; }
  .service-body { padding: 0; gap: 4px; }
  .service-body h3 { font-size: 1.4rem; padding-top: 0; }
  .service-body h3::before { display: none; }
  .service-card p { font-size: .95rem; }
}

.label-short { display: none; }

@media (max-width: 420px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .header-inner { gap: 12px; }
  .logo { gap: 9px; }
  .logo-name { font-size: .95rem; letter-spacing: .06em; }
  .logo-sub { font-size: .55rem; letter-spacing: .2em; }
  .site-header .btn-small { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
