/* Sirius French Bulldogs - public site
   Faithful port of the real siriusfrenchbulldog.com (Wix) - same copy, colors, and
   photos, rebuilt as plain static HTML/CSS so Friday's own scripts can update it
   directly instead of fighting Wix's editor. See scripts/lib/site_builder.py. */

:root {
  --cream: #f3e8d8;
  --cream-soft: #f8f1e6;
  --navy: #0b0e49;
  --navy-deep: #12143f;
  --sage: #5e6d55;
  --sage-dark: #4a5643;
  --photo-focus: 50% 20%;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Caudex", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Every site photo uses a face-biased crop by default, including future puppy and
   parent uploads. A particular photo can override --photo-focus if needed. */
img { max-width: 100%; display: block; object-fit: cover; object-position: var(--photo-focus); }

h1, h2, h3, .display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.4em;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 20px;
  background: var(--navy);
  color: var(--cream-soft);
}
.nav .logo {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav .phone {
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cream-soft);
}
.nav .nav-link { color: inherit; text-decoration: none; font-size: 15px; }
.nav .nav-quiz {
  color: var(--navy); background: var(--cream-soft); text-decoration: none;
  border-radius: 100px; padding: 6px 14px; font-size: 15px;
}
.nav a:hover, .text-link:hover { text-decoration: underline; }

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
}
.hero h1 {
  font-style: italic;
  font-size: clamp(36px, 6vw, 58px);
  color: var(--navy);
}
.hero .sub {
  font-size: 20px;
  margin: 4px 0;
}
.hero .facts {
  margin: 20px 0 32px;
  font-size: 18px;
}
.hero .facts span { display: block; margin: 2px 0; }
.hero img {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(11, 14, 73, 0.18);
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }

/* Tagline banner */
.tagline {
  background: var(--sage);
  color: var(--cream-soft);
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Generic section */
section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

/* About */
.about { background: var(--cream-soft); }
.about .wrap { max-width: 760px; text-align: center; }
.about p { margin: 0 0 16px; }
.about label { display: block; font-size: 15px; font-weight: 700; margin: 0 0 4px; text-align: left; }
.form-note, .small-note { font-size: 14px; opacity: 0.78; margin: 12px 0 0 !important; }
.quiz-field label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.text-link { font-size: 15px; font-weight: 700; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 3px;
  background: var(--sage);
  color: var(--cream-soft);
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  border: 1px solid var(--sage);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--sage-dark); }
.btn.outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn.outline-light {
  background: transparent;
  color: var(--cream-soft);
  border: 1px solid var(--cream-soft);
}
.btn.outline-light:hover { background: rgba(243, 232, 216, 0.12); }

/* Available puppies */
.puppy-litter {
  margin-bottom: 40px;
}
.puppy-litter h3 {
  text-align: center;
  font-style: italic;
  margin-bottom: 18px;
}
.puppy-grid {
  display: grid;
  /* Fixed-ish card width (not 1fr) + centered justify - a lone puppy card must not
     stretch to fill the whole row width on a wide screen (real bug found live
     2026-09-12: with only one puppy, the card grew far wider than its photo, leaving
     an off-center empty gap). Cards stay a sane, consistent size and simply wrap onto
     new centered rows as more puppies are added. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  justify-content: center;
  gap: 24px;
}
.puppy-card {
  background: var(--cream-soft);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 14, 73, 0.1);
  text-align: center;
}
.puppy-card img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--cream); }
.puppy-card .body { padding: 18px; }
.puppy-card h4 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; margin: 0 0 6px; }
.puppy-card .meta { font-size: 14px; opacity: 0.85; margin-bottom: 10px; }

.empty-state {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream-soft);
  border-radius: 8px;
  padding: 40px 32px;
}
.empty-state p { margin: 0 0 20px; }

/* Parent portraits stay full-frame so ears, faces, and paws are not cropped. */
.parents { background: var(--cream-soft); }
.parent-group-title { text-align: center; font-size: 25px; font-style: italic; margin: 36px 0 18px; }
.parent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}
.parent-grid--dams { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
.parent-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 6px 18px rgba(11, 14, 73, 0.1);
}
.parent-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--cream);
}
.parent-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.parent-card strong { font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.parent-card span { font-size: 14px; opacity: 0.75; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--cream);
  border-radius: 4px;
}

/* Editorial touches: real Sirius photos, generous reading space, no extra AI calls. */
.quiz-invite { background: var(--cream); }
.quiz-invite-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.quiz-invite h2 { font-size: clamp(29px, 4vw, 43px); font-style: italic; line-height: 1.2; }
.quiz-invite p { max-width: 590px; }
.quiz-invite-grid > img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 30px rgba(11,14,73,.12); }
.journal-preview, .journal-list { background: var(--cream-soft); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journal-card { overflow: hidden; background: #fffaf2; border: 1px solid rgba(11,14,73,.12); border-radius: 8px; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.journal-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,14,73,.1); }
.journal-card-photo { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--cream); }
.journal-card-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.journal-card .eyebrow { margin: 0 0 6px; color: var(--sage-dark); }
.journal-card time, .article-hero time { font-size: 14px; opacity: .7; }
.journal-card h2, .journal-card h3 { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.3; margin: 8px 0 10px; }
.journal-card h2 a, .journal-card h3 a { text-decoration: none; }
.journal-card h2 a:hover, .journal-card h3 a:hover { text-decoration: underline; }
.journal-card p { font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.journal-card .text-link { margin-top: auto; }
.journal-more { text-align: center; margin: 28px 0 0; }
.journal-header { background: var(--cream); text-align: center; padding: 64px 0 50px; }
.journal-header .wrap { max-width: 780px; }
.journal-header h1 { font-size: clamp(36px, 5vw, 52px); font-style: italic; line-height: 1.16; }
.journal-header p:last-child { max-width: 600px; margin: 12px auto 0; }
.journal-list .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journal-list .featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; }
.journal-feature-photo { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--cream); }
.journal-list .featured .journal-card-content { justify-content: center; padding: 34px; }
.journal-cta { text-align: center; }
.journal-cta .wrap { max-width: 680px; }
.article-hero { background: var(--cream); padding: 48px 0 34px; }
.article-hero .wrap { max-width: 800px; }
.article-hero .eyebrow { margin: 32px 0 8px; color: var(--sage-dark); }
.article-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.17; }
.article-deck { font-size: 20px; max-width: 690px; margin: 18px 0 12px; }
.article-cover { max-width: 800px; margin: 0 auto; }
.article-cover img { width: 100%; height: auto; border-radius: 8px; }
.article-shell { background: var(--cream-soft); }
.article-shell .wrap { max-width: 760px; }
.post-body { text-align: left; }
.post-body h2 { font-size: 29px; font-style: italic; line-height: 1.25; margin: 1.6em 0 .45em; }
.post-body h2:first-child { margin-top: 0; }
.post-body p, .post-body li { font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0 0 1.15em; }
.post-body ul { padding-left: 1.5em; margin: 0 0 1.3em; }
.post-body li { padding-left: .2em; margin-bottom: .45em; }
.article-related .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 680px) {
  .parent-grid, .parent-grid--dams { grid-template-columns: 1fr; gap: 16px; max-width: 400px; }
  .parent-card figcaption { padding: 9px 11px; }
  .parent-card strong { font-size: 18px; }
}

/* Testimonials */
.testimonials { background: var(--navy-deep); color: var(--cream-soft); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(243, 232, 216, 0.06);
  border: 1px solid rgba(243, 232, 216, 0.18);
  border-radius: 6px;
  padding: 24px;
}
.testimonial-card .name {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  margin-bottom: 10px;
}
.testimonial-card .quote { font-size: 15px; opacity: 0.95; }

/* FAQ */
.faq-group { margin-bottom: 28px; }
.faq-group h3 { font-style: italic; margin-bottom: 12px; }
details {
  background: var(--cream-soft);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p { margin: 10px 0 0; font-size: 16px; }

/* Footer / contact */
footer.contact {
  background: var(--navy);
  color: var(--cream-soft);
  padding: 56px 24px 40px;
  text-align: center;
}
footer.contact h2 { font-style: italic; }
footer.contact .phone-big {
  font-size: 28px;
  margin: 10px 0 24px;
  display: inline-block;
  text-decoration: none;
  color: var(--cream-soft);
}
footer.contact .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
footer.contact .fine {
  opacity: 0.75;
  font-size: 14px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  section { padding: 40px 0; }
  .hero { padding: 48px 16px 32px; }

  /* Logo takes its own full-width row so it never wraps mid-word; nav links + phone
     form a smaller, centered row below it. */
  .nav { justify-content: center; text-align: center; padding: 14px 16px; gap: 10px 16px; }
  .nav .logo { flex-basis: 100%; text-align: center; margin-right: 0 !important; font-size: 19px; }
  .nav a { font-size: 13px !important; }
  .nav .phone { flex-basis: 100%; font-size: 14px !important; }

  /* 160px/260px minmax breakpoints leave a 375px phone with exactly one column and a
     huge, uncropped-looking tile - drop the minimum so photos/testimonials actually
     form a real grid instead of one giant image per row. */
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .puppy-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .quiz-invite-grid, .journal-list .featured { grid-template-columns: 1fr; }
  .quiz-invite-grid { gap: 24px; }
  .journal-grid, .journal-list .journal-grid, .article-related .journal-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 34px 0 24px; }
  .article-deck { font-size: 18px; }
  .article-cover { padding: 0 16px; }
  .post-body p, .post-body li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-card { transition: none; }
  .journal-card:hover { transform: none; }
}
