/* South Phoenix Pet Sitting — mobile-first styles.
   Palette sampled from Allie's logo (logo-allie/allie-logo-1.jpeg); contrast checked with tools/contrast_check.py. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 700 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* sampled from the logo */
  --plum: #320c21;          /* badge ring, dog & cat silhouettes */
  --plum-ground: #531431;   /* ground under the dog & cat */
  --pink: #f36a8b;          /* thin ring outline */
  --coral-pink: #f78c9c;    /* "PET SITTING" lettering */
  --rose: #cb5577;          /* mid sunset sky */
  --coral: #f0696d;         /* lower sunset sky */
  --orange: #ffa166;        /* sky at the horizon */
  --peach: #fd9e6e;         /* side dots */
  --cream: #fdf0d9;         /* "South Phoenix" lettering */
  --purple: #6a3d67;        /* top of the sky */
  --mauve: #b96e94;         /* front mountains */
  /* derived (for backgrounds and accessible text) */
  --paper: #fffaf3;         /* page background */
  --sand: #fbf0e6;          /* alternate sections */
  --peach-tint: #feeee2;
  --peach-light: #ffbe94;   /* lighter peach so hero stars clear 4.5:1 even over the purple glow */
  --rose-deep: #a8395d;     /* links/accents on light, 5.5:1+ */
  --plum-dark: #240817;     /* footer */
  --cream-dim: #e8d3cf;     /* secondary text on plum */
  --ink: var(--plum);
  --muted: #6f5060;
  --sunset: linear-gradient(90deg, var(--purple), var(--rose) 38%, var(--coral) 68%, var(--orange));
  --radius: 18px;
  --shadow: 0 10px 30px rgba(50, 12, 33, .10);
  --wrap: 1120px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-family: var(--display); font-style: italic; font-size: clamp(1.85rem, 6.5vw, 2.6rem); font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 64px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--plum); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); font-size: .95rem; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; line-height: 1.1;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }
.btn-lg { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.125rem; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
/* primary: plum text on the logo's pink (6:1); hover lightens to coral-pink (7.6:1) */
.btn-rose { background: var(--pink); color: var(--plum); box-shadow: 0 6px 18px rgba(243, 106, 139, .3); }
.btn-rose:hover { background: var(--coral-pink); }
.btn-outline { border-color: var(--pink); color: var(--cream); background: transparent; }
.btn-outline:hover { background: var(--plum-ground); }
.btn-outline-dark { border-color: var(--plum); color: var(--plum); background: #fff; }
.btn-outline-dark:hover { background: var(--plum); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* light so Allie's horizontal logo keeps its own plum + rose colours (it disappears on plum) */
  background: rgba(255, 250, 243, .97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(203, 85, 119, .28);
  box-shadow: 0 2px 10px rgba(50, 12, 33, .06);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 60px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; min-width: 0; border-radius: 6px; }
/* horizontal logo: 611x168 source, shown 44 px tall on phones (160 px wide) and 52 px on desktop */
.brand-logo { display: block; width: auto; height: 44px; max-width: 100%; }
.header-cta { display: none; }

/* Mobile menu: a toggle button reveals a dropdown panel (JS adds .is-open; see main.js).
   Without JS the links simply show as a row under the brand. */
.nav-toggle { display: none; }
.site-nav a { color: var(--plum); text-decoration: none; font-weight: 700; }
.site-nav a:hover { color: var(--rose-deep); }
html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
html:not(.js) .site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; width: 100%; font-size: .95rem; }
.js .nav-toggle {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  background: none; border: 1px solid var(--rose); border-radius: 12px; color: var(--plum); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.js .site-nav {
  display: none; position: absolute; top: 100%; left: -1.25rem; right: -1.25rem;
  background: var(--paper); border-bottom: 1px solid rgba(203, 85, 119, .28);
  padding: .25rem 1.25rem .75rem; box-shadow: 0 14px 24px rgba(36, 8, 23, .18);
}
.js .site-nav.is-open { display: grid; }
.js .site-nav a { padding: .8rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(50, 12, 33, .1); }
.js .site-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  /* dusk: a soft purple glow (top of the logo's sky) fading into plum */
  background: radial-gradient(120% 75% at 50% 0%, var(--purple) 0%, #4a1a3a 40%, var(--plum) 78%);
  color: var(--cream);
  padding: 2rem 0 2.75rem;
  text-align: center;
}
.hero-inner { display: grid; gap: 2rem; justify-items: center; }
.hero-logo { width: min(64vw, 240px); height: auto; margin: 0 auto 1.25rem; filter: drop-shadow(0 14px 28px rgba(20, 4, 12, .45)); }
.hero-tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.55rem, 6.4vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: .6rem; color: var(--cream); }
.hero-sub { color: var(--cream-dim); max-width: 34rem; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.cta-row .btn { flex: 1 1 140px; max-width: 260px; }
.hero-note { margin-top: .5rem; font-size: .95rem; color: var(--cream-dim); }
.hero-rating { margin: 1.1rem 0 0; font-weight: 800; }
.hero-rating a { color: var(--cream); text-decoration: none; }
.hero-rating a:hover { text-decoration: underline; }
.stars { color: var(--rose-deep); letter-spacing: .08em; }
.hero .stars { color: var(--peach-light); }
.hero-rating .stars { margin-right: .25rem; }
.hero-photo { margin: 0; width: min(100%, 440px); }
.hero-photo img {
  border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
  border: 6px solid transparent;  /* sunset-gradient frame */
  background: linear-gradient(var(--plum), var(--plum)) padding-box, linear-gradient(160deg, var(--purple), var(--rose) 40%, var(--coral) 70%, var(--orange)) border-box;
  box-shadow: 0 20px 40px rgba(20, 4, 12, .4);
  aspect-ratio: 1 / 1; object-fit: cover;
}
/* sunset band (purple -> rose -> coral -> orange), echoing the sky in the logo */
.shine { height: 8px; background: var(--sunset); }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-blush { background: var(--sand); }
.section-dark { background: var(--plum); color: var(--cream); }
.section-dark h2 { color: var(--cream); }
/* small spaced capitals, like "PET SITTING" on the badge */
.eyebrow { color: var(--rose-deep); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .4rem; }
.section-dark .eyebrow { color: var(--coral-pink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.section-dark .lead { color: var(--cream-dim); }

/* ---------- Services ---------- */
.cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.card {
  background: var(--sunset) top / 100% 6px no-repeat, #fff;
  border-radius: var(--radius); padding: 1.7rem 1.4rem 1.4rem; box-shadow: var(--shadow);
}
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peach-tint); color: var(--rose-deep); margin-bottom: .9rem; }
.card-icon svg { width: 26px; height: 26px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.price .from { font-size: .9rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.price .amount { font-size: 2.6rem; font-weight: 900; color: var(--rose-deep); line-height: 1; }
.price .unit { font-weight: 700; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px dashed #ead7d0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed #ead7d0; }
.price-list strong { color: var(--ink); font-weight: 900; }
.fine-print { margin-top: 1.25rem; background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: .98rem; }
.fine-print p:last-child { margin-bottom: 0; }
.fine-print-title { font-size: 1.05rem; margin: 0 0 .5rem; }
.fine-print-list { margin: 0; padding-left: 1.15rem; }
.fine-print-list li { margin: .3rem 0; }
.fine-print-list li::marker { color: var(--rose); }
/* closing call to action: Allie's line + the same Text Allie button as the hero */
.fine-print-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin: 1rem 0; padding: .9rem 0; border-top: 1px dashed rgba(203, 85, 119, .45); border-bottom: 1px dashed rgba(203, 85, 119, .45);
}
.fine-print-cta p { margin: 0; flex: 0 1 auto; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--plum); }
.fine-print-cta .btn { flex: none; }
.fine-print-pay { font-size: .93rem; color: var(--muted); }

/* ---------- Area ---------- */
.area { display: grid; gap: 2rem; align-items: center; }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  background: #fff; border: 2px solid var(--rose); color: var(--ink);
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 800;
}
.chips li::before { content: "\2022"; color: var(--peach); margin-right: .45rem; }
.area-art { color: var(--mauve); width: min(70%, 240px); justify-self: center; }
.area-art .area-sun { stroke: var(--coral); }
@media (min-width: 900px) { .area-art { width: 320px; } }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; align-items: center; }
.about-photo { margin: 0; }
.about-facts { margin: 1.25rem 0 0; }
.about-facts li { font-size: .95rem; padding: .45rem .95rem; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }

/* ---------- Reviews ---------- */
.rating-summary { font-size: 1.15rem; margin: 0 0 1.5rem; }
.rating-summary .stars { font-size: 1.25rem; margin-right: .2rem; }
.reviews { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 1.25rem; }
.review { break-inside: avoid; margin: 0 0 1.25rem; }
.review figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); }
.review .stars { margin: 0 0 .5rem; font-size: 1.05rem; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: .75rem; font-weight: 800; color: var(--rose-deep); }
.review figcaption::before { content: "\2014\00a0"; }
.reviews-more { margin: .5rem 0 0; text-align: center; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.gallery li { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; }
.gallery .g-wide { grid-column: span 2; }
.gallery a { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery-insta { margin: 1.25rem 0 0; text-align: center; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-mark { width: 128px; height: 128px; margin-bottom: 1.25rem; filter: drop-shadow(0 10px 20px rgba(20, 4, 12, .4)); }
.contact .lead { margin-inline: auto; }
.contact-number { font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 900; margin: .25rem 0 0; letter-spacing: .01em; }
.contact-number a { color: var(--cream); text-decoration: none; }
.cta-center { width: 100%; }
.text-tips { margin-top: 1.5rem; text-align: left; background: rgba(253, 240, 217, .05); border: 1px solid rgba(243, 106, 139, .35); border-radius: var(--radius); padding: 1.1rem 1.4rem; max-width: 26rem; width: 100%; }
.text-tips p { margin-bottom: .4rem; font-weight: 800; color: var(--coral-pink); }
.text-tips ul { margin: 0; padding-left: 1.2rem; color: var(--cream-dim); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-dark); color: var(--cream); padding: 2rem 0 calc(2rem + 76px + env(safe-area-inset-bottom)); text-align: center; font-size: .95rem; } /* extra bottom room for the mobile CTA bar */
.site-footer a { color: var(--pink); }
.site-footer p { margin: .3rem 0; }
.site-footer .muted { color: #c4a9b4; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem;
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(50, 12, 33, .97);
  border-top: 1px solid rgba(243, 106, 139, .3);
}
.mobile-cta .btn { min-height: 50px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(36, 8, 23, .9); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ================= Larger screens ================= */
@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .reviews { columns: 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .g-wide { grid-column: span 1; }
  .gallery li:nth-child(n) { aspect-ratio: 1 / 1; }
}

@media (min-width: 900px) {
  .site-footer { padding-bottom: 2rem; }
  .mobile-cta { display: none; }
  .header-inner { min-height: 68px; }
  section[id] { scroll-margin-top: 72px; }
  .brand-logo { height: 52px; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav, .js .site-nav.is-open, html:not(.js) .site-nav {
    display: flex; position: static; width: auto; gap: 1.5rem; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .site-nav a, .js .site-nav a { padding: 0; border: 0; font-size: .98rem; }
  html:not(.js) .header-inner { flex-wrap: nowrap; padding-bottom: 0; }
  .header-cta { display: inline-flex; }

  .hero { padding: 3.75rem 0 4.25rem; text-align: left; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3.5rem; justify-items: stretch; }
  .hero-logo { margin: 0 0 1.5rem; width: 280px; }
  .hero-sub { margin-inline: 0; }
  .cta-row { justify-content: flex-start; }
  .cta-row .btn { flex: 0 0 auto; }
  .cta-center { justify-content: center; }
  .hero-photo { justify-self: end; }

  .section { padding: 4rem 0; }
  .area { grid-template-columns: 1.3fr 1fr; }
  .about { grid-template-columns: 420px 1fr; gap: 3.5rem; }
  .about-copy { font-size: 1.125rem; }

  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .9rem; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 2; }
  .reviews { columns: 3; }

}

/* ---------- Phone number protection (see assets/js/contact.js) ---------- */
html:not(.js) .js-only { display: none !important; }
.reveal-btn {
  font: inherit; font-weight: 800; color: var(--rose-deep); background: none; border: 0; padding: 0;
  text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: .2em;
  cursor: pointer;
}
.reveal-btn:hover { text-decoration-style: solid; }
.hero-note .reveal-btn, .hero-note a { color: inherit; }
.site-footer .reveal-btn { color: var(--pink); }
.contact-number .reveal-btn {
  color: var(--cream); font-size: .6em; font-weight: 900; min-height: 48px; padding: .25rem .5rem;
  text-decoration-color: var(--pink);
}
.noscript-note { max-width: 32rem; margin: .5rem auto 0; color: var(--cream-dim); }
.noscript-note a { color: var(--pink); }
