/* ==========================================================================
   Sandra's Place for Dogs stylesheet
   Palette taken from the brand logo: warm cream, sage/olive green,
   charcoal, with a soft blush accent.
   ========================================================================== */

:root {
  --cream:        #EDEADB;
  --cream-soft:   #F4F2E7;
  --sage:         #7B8352;
  --sage-dark:    #5E6640;
  --sage-darker:  #474d31;
  --charcoal:     #2E2E2C;
  --charcoal-soft:#4a4a45;
  --blush:        #D79A9A;
  --white:        #ffffff;
  --shadow:       0 8px 30px rgba(46, 46, 44, 0.10);
  --shadow-sm:    0 3px 12px rgba(46, 46, 44, 0.08);
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1160px;
  --serif:        "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:         "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--charcoal);
  margin: 0 0 .5em;
  letter-spacing: .3px;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--cream-soft); }
.section--sage { background: var(--sage-dark); color: var(--cream-soft); }
.section--sage h2, .section--sage h3 { color: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--charcoal-soft); font-size: 1.08rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--sage);
  display: block;
  margin-bottom: .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--sage); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-dark); }

.btn--messenger { background: #0084FF; color: #fff; box-shadow: var(--shadow-sm); }
.btn--messenger:hover { background: #0070d8; }

.btn--ghost { background: transparent; color: var(--charcoal); border-color: rgba(46,46,44,.25); }
.btn--ghost:hover { border-color: var(--charcoal); background: rgba(255,255,255,.4); }

.btn--light { background: var(--cream-soft); color: var(--sage-darker); }
.btn--light:hover { background: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 234, 219, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(94, 102, 64, 0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;    /* nav links sit on the right; logo is absolute */
  gap: 1rem;
  padding: 0 22px;
  padding-left: calc(var(--logo-size) + 22px);  /* clear the corner badge */
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--logo-size);
  --logo-size: clamp(100px, 14vw, 150px);
}
/* Square logo badge, flush into the top-left corner, filling the full header height.
   The source logo has a lot of empty margin and a tiny tagline, so we zoom in past
   the whitespace to keep the dog and "Sandra's Place" large and legible. */
.brand {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--logo-size, clamp(100px, 14vw, 150px));
  height: var(--logo-size, clamp(100px, 14vw, 150px));
  overflow: hidden;
  border-right: 1px solid rgba(94, 102, 64, 0.15);
  background: #E7E4D4;                   /* matches the logo's own cream */
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.16);               /* crop the outer whitespace without clipping the name */
  transform-origin: center 50%;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--charcoal); font-weight: 700; font-size: .98rem; }
.nav-links a:hover { color: var(--sage); text-decoration: none; }
.nav-cta { margin-left: .3rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--charcoal); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 11vw, 8.5rem) 0;
  background-color: #5E6640;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
  margin-bottom: .3em;
}
.hero p.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: #f4f2e7;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-stars { color: #f2c94c; letter-spacing: 3px; font-size: 1.15rem; margin-bottom: .6rem; }
.hero-loc {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; letter-spacing: .5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: .35rem 1rem; border-radius: 999px;
  margin-bottom: 1.6rem; font-size: .92rem;
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--sage-darker); color: var(--cream-soft); }
.trustbar ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem;
  list-style: none; margin: 0; padding: 1.1rem 22px; max-width: var(--maxw); margin-inline: auto;
  text-align: center;
}
.trustbar li { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; }
.trustbar svg { width: 20px; height: 20px; color: #b9c088; flex: none; }

/* ---------- Intro / pitch ---------- */
.pitch { text-align: center; max-width: 760px; margin: 0 auto; }
.pitch .lede { font-size: 1.3rem; font-family: var(--serif); color: var(--sage-dark); font-style: italic; }

/* ---------- Services ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94,102,64,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--cream); color: var(--sage-dark);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: .35rem; }
.card .price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--sage-dark); margin: .2rem 0 .6rem; }
.card p { color: var(--charcoal-soft); font-size: .97rem; margin-bottom: 0; }

.services-note { text-align: center; margin-top: 1.4rem; color: var(--charcoal-soft); font-size: .95rem; }

.terms {
  max-width: 720px; margin: 2.2rem auto 0; padding: 1.4rem 1.6rem;
  list-style: none; background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(94,102,64,.14); box-shadow: var(--shadow-sm);
}
.terms li {
  position: relative; padding: .35rem 0 .35rem 1.7rem; font-size: .96rem; color: var(--charcoal-soft);
}
.terms li + li { border-top: 1px solid rgba(94,102,64,.10); }
.terms li::before {
  content: "🐾"; position: absolute; left: 0; top: .35rem; font-size: .85rem;
}

/* ---- Facebook feed embed ---- */
.fb-feed-wrap { display: flex; justify-content: center; }
.fb-embed {
  width: 100%; max-width: 500px; border: none; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
  min-height: 620px;
}
.fb-fallback {
  max-width: 500px; margin: 0 auto; text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(94,102,64,.12);
}

/* ---------- Meet Stanley ---------- */
.stanley-card {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  max-width: 720px;
  margin: 2.6rem auto 0;
  padding: 1.5rem 1.8rem;
  background: var(--white);
  border: 1px solid rgba(94, 102, 64, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stanley-photo {
  flex: none;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--cream);
}
.stanley-card h3 { margin-bottom: .3rem; }
.stanley-card p { margin-bottom: 0; color: var(--charcoal-soft); }

@media (max-width: 560px) {
  .stanley-card { flex-direction: column; text-align: center; padding: 1.8rem 1.4rem; }
}

/* ---------- Areas ---------- */
.areas-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center; }
.areas-map img { border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; }
.chips li {
  background: var(--cream); border: 1px solid rgba(94,102,64,.25);
  color: var(--sage-darker); font-weight: 700; font-size: .92rem;
  padding: .4rem .95rem; border-radius: 999px;
}

/* ---------- Gallery carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem 4px 1.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track figure {
  flex: 0 0 min(84%, 380px); scroll-snap-align: center; margin: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff;
}
.carousel-track img { width: 100%; height: 300px; object-fit: cover; }
.carousel-btns { display: flex; justify-content: center; gap: .8rem; margin-top: .4rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--sage);
  background: #fff; color: var(--sage-dark); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.carousel-btn:hover { background: var(--sage); color: #fff; }

.fb-note { text-align: center; margin-top: 1.4rem; font-size: .9rem; color: var(--charcoal-soft); }

/* ---------- Testimonials ---------- */
.grid--testi { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(94,102,64,.10); position: relative;
}
.quote .stars { color: #e0a93b; letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { font-style: italic; color: var(--charcoal); }
.quote .who { font-weight: 800; color: var(--sage-dark); font-style: normal; margin-top: .8rem; margin-bottom: 0; }
.section--sage .quote { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.section--sage .quote p, .section--sage .quote .who { color: var(--cream-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--cream-soft); max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid rgba(94,102,64,.14);
  border-radius: var(--radius); margin-bottom: .9rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--sage); font-weight: 400; transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .answer { padding: 0 1.4rem 1.25rem; color: var(--charcoal-soft); }
.faq details .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #d8d6cc; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: #b9c088; margin: 0 0 1rem; }
.site-footer a { color: #d8d6cc; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 88px; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-social { display: flex; gap: .7rem; margin-top: .3rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: .15s;
}
.footer-social a:hover { background: var(--sage); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.2rem;
  text-align: center; font-size: .85rem; color: #a3a196;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .areas-wrap { grid-template-columns: 1fr; }
  .areas-map { order: -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .trustbar ul { gap: .6rem 1.6rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-soft); border-bottom: 1px solid rgba(94,102,64,.2);
    padding: .5rem 22px 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(94,102,64,.12); }
  .nav-links a { display: block; padding: .85rem 0; }
  .nav-cta { margin: .8rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
