/* At Home Silver Care
   Layout: one left-aligned reading column on white, with full-width colour bands
   between sections and real photos shown as small album snapshots. */

:root {
  /* Brand colours, taken from the logo */
  --ink: #26344d;         /* text */
  --slate: #4b6187;       /* logo blue */
  --slate-deep: #33466a;  /* buttons, dark band */
  --sky: #87b1cb;         /* light blue */
  --sky-wash: #eaf1f6;    /* pale blue background */
  --peach: #e89674;       /* logo orange */
  --peach-deep: #a9502b;  /* orange dark enough for text */
  --peach-wash: #fcefe7;  /* pale orange background */
  --paper: #ffffff;
  --muted: #55627a;
  --line: #d5dfe8;

  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

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

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

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

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

a { color: var(--slate-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--peach-deep); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--slate-deep); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.measure { max-width: 40rem; }
.lead { font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.5; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 0.75rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; font-family: var(--display); font-size: 1.9rem; line-height: 1.05; letter-spacing: 0.02em; }
.brand-top { color: var(--peach); }
.brand-bottom { color: var(--slate); }
.brand:hover .brand-top { color: var(--peach); }
.brand:hover .brand-bottom { color: var(--slate-deep); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 0.5rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--ink); }
.site-nav a:hover { background: var(--sky-wash); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--slate-deep); color: var(--paper); }
.site-nav .login { color: var(--muted); }
.nav-toggle { display: none; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--slate); border-radius: 999px; padding: 0.45rem 1.1rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid var(--slate-deep); background: var(--slate-deep); color: var(--paper); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--slate-deep); }
.btn.quiet:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band.sky { background: var(--sky-wash); }
.band.peach { background: var(--peach-wash); }
.band.dark { background: var(--slate-deep); color: var(--paper); }
.band.dark h2, .band.dark h3 { color: var(--paper); }
.band.dark a { color: var(--paper); }

/* ---------- Snapshots (the album photos) ---------- */
.snap { margin: 0; background: var(--paper); padding: 0.45rem 0.45rem 0.6rem; border-radius: 3px; box-shadow: 0 1px 2px rgba(38, 52, 77, 0.18), 0 10px 24px -10px rgba(38, 52, 77, 0.35); width: fit-content; flex: none; }
.snap img { border-radius: 2px; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(2.5deg); }

/* ---------- Home hero ---------- */
.hero { background: var(--sky-wash); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero .stack { gap: 1.4rem; }
.hero-photos { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; align-items: center; gap: 1.25rem 0; padding: 2.5rem 0 0.5rem 2.5rem; }
.hero-photos .snap:nth-of-type(1) { grid-row: 1 / span 2; z-index: 1; }
.hero-photos .snap:nth-of-type(2) { margin-left: -0.75rem; z-index: 2; }
.hero-photos .snap:nth-of-type(3) { margin-left: 0.75rem; }
.hero-photos .fly { position: absolute; left: 0; top: 0; width: 5.5rem; opacity: 0.8; z-index: 3; }
.with-fly { display: grid; grid-template-columns: minmax(0, 40rem) auto; gap: 2rem; align-items: center; justify-content: space-between; }
.with-fly > img { width: 11rem; opacity: 0.55; transform: rotate(8deg); }

/* ---------- Two columns ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--peach); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.quotes blockquote { margin: 0; }
.quotes .big p { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.4; }
.quotes cite { display: block; font-style: normal; margin-top: 0.6rem; color: #f6cdb9; font-weight: 700; }
.quotes .small { display: flex; flex-direction: column; gap: 1.75rem; }

/* ---------- Page heading (inner pages) ---------- */
.page-head { background: var(--sky-wash); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 3rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head .photo img { border-radius: 6px; width: 100%; }
.page-head.plain .wrap { grid-template-columns: minmax(0, 1fr); }

/* ---------- Services ---------- */
.services { display: flex; flex-direction: column; gap: 2.75rem; }
.service { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.25rem 2.25rem; align-items: start; }
.service .stack { gap: 0.6rem; max-width: 40rem; }
.service:nth-child(odd) .snap { transform: rotate(-2.5deg); }
.service:nth-child(even) .snap { transform: rotate(2deg); }
.section-title { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.25rem; }
.section-title img { width: 3.5rem; flex: none; }

/* ---------- About ---------- */
.owners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 40rem; }
.owners figure { margin: 0; }
.owners img { border-radius: 6px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; width: 100%; }
.owners figcaption { margin-top: 0.6rem; }
.owners figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--slate-deep); }
.story { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
.story .snaps { display: flex; flex-direction: column; gap: 2rem; align-items: center; padding-top: 4rem; }
.story h2 { margin-top: 1.25rem; }
.story h2:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; }
.field input, .field select { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid #8a98ad; border-radius: 8px; padding: 0.7rem 0.85rem; width: 100%; min-height: 3.2rem; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--slate-deep); }
.field .error { color: #a3261a; font-weight: 700; font-size: 1rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a3261a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.9rem 1.1rem; border-radius: 8px; font-weight: 700; }
.form-status.ok { background: #e4f3e6; color: #1d5a2a; }
.form-status.bad { background: #fbe6e3; color: #8f2116; }
.ways { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ways span { display: block; color: var(--muted); font-size: 1rem; }
.ways a, .ways strong { font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.side { background: var(--sky-wash); border-radius: 10px; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 1.05rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.site-footer .legal { color: var(--muted); width: 100%; }

/* ---------- Narrow screens ---------- */
@media (max-width: 52rem) {
  .hero .wrap, .split, .quotes, .page-head .wrap, .story, .contact { grid-template-columns: minmax(0, 1fr); }
  .with-fly { grid-template-columns: minmax(0, 1fr); }
  .with-fly > img { display: none; }
  .story .snaps { flex-direction: row; flex-wrap: wrap; justify-content: center; padding-top: 0; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 1rem; }
}
@media (max-width: 34rem) {
  .service { grid-template-columns: minmax(0, 1fr); }
  .hero-photos { padding-left: 1.5rem; }
  .hero-photos .snap:nth-of-type(1) img { width: 10.5rem; }
  .hero-photos .snap:nth-of-type(2) img, .hero-photos .snap:nth-of-type(3) img { width: 6.5rem; }
  .hero-photos .fly { width: 4rem; }
  .btn { width: 100%; text-align: center; }
}
