/* Good Shepherd Kennels — site styles
   Fonts: Fredoka (headings, echoing the logo's rounded lettering) and
   Atkinson Hyperlegible Next (text). Both SIL OFL, hosted locally.
   Colors come from the logo: its sky blue, the dog's golden fur, and dark ink. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #3FACED;        /* the logo's background */
  --sky-deep: #0B5E95;   /* links on white */
  --ink: #0B1620;        /* text, buttons */
  --fur: #E3BC87;        /* the dog's coat */
  --fur-pale: #FBF3E7;   /* FUREVER Friends band */
  --paper: #FFFFFF;

  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --wrap: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a {
  color: var(--sky-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 4px; }

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

.wrap {
  width: min(100% - 3rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Sky bands (header + hero, contact) ---------- */

.sky { background: var(--sky); color: var(--ink); }
.sky a:not(.btn) { color: var(--ink); }

.btn {
  display: inline-block;
  padding: 0.55em 1.4em 0.6em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}
.btn:hover { background: #22384A; }
.sky :focus-visible { outline-color: var(--paper); }

/* ---------- Header ---------- */

.site-head { padding-block: 1.1rem 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  white-space: nowrap;
}
.brand img { width: 3.75rem; height: auto; }

/* ---------- Hero ---------- */

.hero { padding-block: 2.5rem 4.5rem; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem 4rem;
}
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.75rem); line-height: 1.05; }
.lede { margin-top: 1.4rem; font-size: 1.375rem; max-width: 34ch; }
.hero .btn { margin-top: 2.2rem; font-size: 1.5rem; }

/* Photos in a white "snapshot" border */
.snap {
  margin: 0;
  background: var(--paper);
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: 6px;
  box-shadow: 0 1.1rem 2.2rem -1.1rem rgba(11, 22, 32, 0.55);
}
.snap img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.snap.tall img { aspect-ratio: 2 / 3; }
.speak .svc { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr); }
.hero .snap { transform: rotate(1.5deg); }

/* ---------- Services ---------- */

.services { padding-block: 5rem 3rem; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem 4.5rem;
}
.svc + .svc { margin-top: 5rem; }
.svc:nth-of-type(even) .snap { order: -1; }
.svc h2, .furever h2, .speak h2, .photos h2, .contact h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
.svc p, .furever p, .speak p { margin-top: 1rem; max-width: 60ch; }
.act { margin-top: 1.4rem; font-weight: 700; }

.grooming {
  margin-top: 4rem;
  padding: 1.6rem 1.8rem;
  border-radius: 14px;
  background: var(--fur-pale);
  border-left: 8px solid var(--fur);
}
.grooming h2 { font-size: 1.75rem; }
.grooming p { margin-top: 0.5rem; }

/* ---------- FUREVER Friends ---------- */

.furever { background: var(--fur-pale); padding-block: 4.5rem; margin-top: 3rem; }
.furever .svc { margin: 0; }

/* ---------- Speaking ---------- */

.speak { padding-block: 5rem 1rem; }

/* ---------- Photos ---------- */

.photos { padding-block: 4rem 5rem; }
.photos .note { margin-top: 0.6rem; color: #3D4C58; font-size: 1.0625rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery a { display: block; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Contact ---------- */

.contact { padding-block: 4.5rem 2.5rem; }
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 5rem;
  margin-top: 2rem;
}
.contact-grid > div { min-width: 0; }
.contact h3 { font-size: 1.375rem; margin-bottom: 0.6rem; }
.contact address { font-style: normal; }
.contact address + p { margin-top: 0.6rem; }
.big { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }

.foot-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid rgba(11, 22, 32, 0.2);
  font-size: 1rem;
}
.foot-end img { width: 6rem; border-radius: 8px; flex: none; }
.foot-end p + p { margin-top: 0.3rem; }

/* ---------- 404 page ---------- */

.notfound { padding-block: 4rem; min-height: 100vh; }
.notfound h1 { margin-top: 2.5rem; font-size: 2.5rem; }
.nf-text { margin-top: 1rem; }
.nf-act { margin-top: 2rem; }

/* ---------- Smaller screens ---------- */

@media (max-width: 62rem) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  body { font-size: 1.125rem; }
  .hero { padding-block: 2rem 3.5rem; }
  .hero-inner, .svc, .speak .svc { grid-template-columns: 1fr; }
  .snap.tall { max-width: 20rem; }
  .svc:nth-of-type(even) .snap { order: 0; }
  .services { padding-block: 3.5rem 2rem; }
  .svc + .svc { margin-top: 3.5rem; }
  .lede { font-size: 1.25rem; }
}

@media (max-width: 34rem) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 3rem; }
  .foot-end { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
  .hero .snap { transform: none; }
}

@media print {
  .skip, .gallery { display: none; }
  .sky { background: none; }
}
