/* Cosy Cats — West Bridgford
   Palette grounded in the photographs: chalky painted plaster, Russian-blue
   grey (her own cats), and warm afternoon daylight used only as light. */

:root {
  --paper:      #F2F4F2;  /* cool painted plaster */
  --paper-deep: #E7EBE8;  /* recessed bands */
  --card:       #FBFCFB;
  --ink:        #22282C;  /* deep slate */
  --ink-soft:   #5C676E;  /* secondary text, AA on paper */
  --slate:      #3B4850;  /* Russian blue, primary structural colour */
  --slate-mid:  #6E7C85;
  --sun:        #E4B25C;  /* daylight — light, not furniture */
  --sun-wash:   rgba(228, 178, 92, 0.16);
  --line:       #D6DCD8;
  --line-soft:  #E4E9E5;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --bay: min(72rem, 100% - var(--gutter) * 2);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}

.bay { width: var(--bay); margin-inline: auto; }
section[id] { scroll-margin-top: 5.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.14; }
h3 { font-size: 1.3125rem; line-height: 1.3; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 31rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 1rem/1 var(--sans);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
  background: var(--slate);
  color: #F7F9F7;
  border-color: var(--slate);
}
.btn-primary:hover { background: #2E3940; border-color: #2E3940; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--slate-mid); background: rgba(255,255,255,0.6); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 244, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.masthead[data-scrolled] { border-bottom-color: var(--line-soft); }

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--slate);
}
.wordmark svg { width: 2.15rem; height: 2.15rem; flex: none; }
.wordmark-text { display: grid; }
.wordmark-name {
  font: 500 1.3125rem/1.05 var(--serif);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.wordmark-place {
  font: 400 0.75rem/1.4 var(--sans);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.masthead nav { display: flex; align-items: center; gap: 1.75rem; }
.masthead nav a {
  font: 400 0.9375rem/1 var(--sans);
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--sun); }
.masthead .btn { padding: 0.7rem 1.15rem; font-size: 0.9375rem; }

@media (max-width: 56rem) { .masthead nav a { display: none; } }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

/* The one bold move: afternoon light falling across the room. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 150%;
  background: linear-gradient(
    201deg,
    transparent 26%,
    rgba(228, 178, 92, 0.22) 35%,
    rgba(228, 178, 92, 0.07) 44%,
    transparent 53%
  );
  /* Concentrate the beam near the top-left, as if from one window. */
  -webkit-mask-image: radial-gradient(115% 85% at 12% -5%, #000 0%, #000 38%, transparent 82%);
  mask-image: radial-gradient(115% 85% at 12% -5%, #000 0%, #000 38%, transparent 82%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-3%, -4%, 0);
  animation: daylight 1400ms cubic-bezier(0.22, 0.61, 0.36, 1) 120ms forwards;
}
@keyframes daylight {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { opacity: 1; transform: none; animation: none; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 27rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px 6px 6px 64px;
  box-shadow: 0 18px 48px -28px rgba(34, 40, 44, 0.55);
}

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 22rem; }
}

/* ---------- Credentials band ---------- */

.credentials {
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.45);
}
.credentials ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.credentials li {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
  border-left: 1px solid var(--line-soft);
}
.credentials li:first-child { border-left: 0; }
.credentials strong {
  display: block;
  font: 500 1.0625rem/1.3 var(--sans);
  color: var(--ink);
  margin-bottom: 0.15rem;
}
@media (max-width: 44rem) {
  .credentials ul { grid-template-columns: 1fr; }
  .credentials li { border-left: 0; border-top: 1px solid var(--line-soft); padding-block: 1rem; }
  .credentials li:first-child { border-top: 0; }
}

/* ---------- Generic section rhythm ---------- */

.band { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.band--sunk { background: var(--paper-deep); }
.band > .bay > h2 { margin-bottom: 0.85rem; }
.band-intro { color: var(--ink-soft); max-width: 36rem; margin-bottom: 2.75rem; }

/* ---------- Why at home ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.reasons article { max-width: 30rem; }
.reasons h3 { margin-bottom: 0.6rem; }
.reasons p { color: var(--ink-soft); }
.reason-mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--slate-mid);
  margin-bottom: 1rem;
}

/* ---------- Prices ---------- */

.prices {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.prices th, .prices td {
  padding: 1.15rem 1.35rem;
  vertical-align: top;
  border-top: 1px solid var(--line-soft);
}
.prices thead th {
  border-top: 0;
  font: 500 0.9375rem/1.4 var(--sans);
  color: var(--ink-soft);
  background: rgba(231, 235, 232, 0.55);
  letter-spacing: 0.01em;
}
.prices tbody th {
  font: 500 1.0625rem/1.4 var(--sans);
  color: var(--ink);
  width: 32%;
}
.prices tbody th span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}
.prices td { color: var(--ink-soft); font-size: 1rem; }
.prices .price {
  font: 400 1.5rem/1.2 var(--serif);
  color: var(--ink);
  white-space: nowrap;
  width: 22%;
}
.prices .price span {
  display: block;
  font: 400 0.8125rem/1.4 var(--sans);
  color: var(--ink-soft);
}
.price-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

@media (max-width: 46rem) {
  .prices, .prices tbody, .prices tr, .prices td, .prices th { display: block; }
  .prices thead { display: none; }
  .prices tr { border-top: 1px solid var(--line-soft); padding: 0.5rem 0; }
  .prices tr:first-child { border-top: 0; }
  .prices th, .prices td { border-top: 0; width: auto; padding-block: 0.4rem; }
  .prices tbody th { width: auto; padding-top: 1.1rem; }
  .prices .price { width: auto; }
  .prices .price { padding-bottom: 1.1rem; }
  .prices .price span { display: inline; }
}

/* ---------- How it works (a real sequence) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  counter-reset: step;
}
.steps article {
  counter-increment: step;
  border-top: 2px solid var(--sun);
  padding-top: 1.25rem;
}
.steps article::before {
  content: counter(step);
  display: block;
  font: 300 2.25rem/1 var(--serif);
  color: var(--slate-mid);
  margin-bottom: 0.65rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 26rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-figure { margin: 0; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px 64px 6px 6px;
  box-shadow: 0 18px 44px -30px rgba(34, 40, 44, 0.5);
}
.about-figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
}
.about-body p { color: var(--ink-soft); max-width: 36rem; }
.about-body h2 { margin-bottom: 1.1rem; }
.about-sign {
  font: 400 1.5rem/1 var(--serif);
  font-style: italic;
  color: var(--slate);
  margin-top: 1.75rem;
}
@media (max-width: 52rem) {
  .about-inner { grid-template-columns: 1fr; }
  .about-figure { max-width: 20rem; }
}

/* ---------- Gallery (placeholders for future photos) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.photo-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  background: rgba(228, 178, 92, 0.05);
  color: var(--slate-mid);
  text-align: center;
  padding: 1rem;
}
.photo-slot svg { width: 1.75rem; height: 1.75rem; opacity: 0.8; }
.photo-slot span { font-size: 0.8125rem; line-height: 1.45; max-width: 11rem; }

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.quotes figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quotes blockquote {
  margin: 0 0 1.25rem;
  font: 400 1.0625rem/1.62 var(--serif);
  color: var(--ink);
  flex: 1;
}
.quotes blockquote p { max-width: none; }
.quotes blockquote p:first-child::before { content: "\201C"; }
.quotes blockquote p:last-child::after { content: "\201D"; }
.quotes figcaption {
  font: 500 0.9375rem/1.4 var(--sans);
  color: var(--ink);
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.quotes figcaption span {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

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

.contact {
  background: var(--slate);
  color: #E9EDEA;
}
.contact h2 { color: #FBFCFB; }
.contact p { color: #C3CCD2; }
.contact .btn-primary {
  background: var(--sun);
  color: #22282C;
  border-color: var(--sun);
}
.contact .btn-primary:hover { background: #EFC275; border-color: #EFC275; }
.contact .btn-quiet {
  color: #F2F4F2;
  border-color: rgba(242, 244, 242, 0.4);
}
.contact .btn-quiet:hover {
  border-color: #F2F4F2;
  background: rgba(242, 244, 242, 0.08);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contact-direct {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  display: grid;
  gap: 0.6rem;
}
.contact-direct a {
  color: #F2F4F2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration-color: rgba(242, 244, 242, 0.4);
  text-underline-offset: 3px;
}
.contact-direct a:hover { text-decoration-color: #F2F4F2; }
.contact-direct svg { width: 1.05rem; height: 1.05rem; flex: none; opacity: 0.75; }
@media (max-width: 52rem) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.foot {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot a { color: var(--ink-soft); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
