/* =========================================================
   Chumaly Maltese & Yorkies — site styles
   Mobile-first: base styles are for phones; wider screens
   are handled in the media queries at the bottom.
   ========================================================= */

:root {
  --pink: #f078c5;        /* signature heading pink (from original site) */
  --plum: #ae40a5;        /* accent purple-pink (from original site) */
  --rose: #e0368f;        /* buttons */
  --rose-dark: #c21f74;
  --blush: #fff3f9;       /* page background */
  --petal: #ffe0f0;       /* soft panels */
  --petal-2: #ffc9e4;
  --ink: #4a2c3f;         /* body text */
  --ink-soft: #7a5a6d;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(174, 64, 165, .15);
  --header-h: 64px;
  --actionbar-h: 62px;
  --serif: "Sorts Mill Goudy", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blush) url("../images/background-images/1143959384.jpg") center top / 100% auto repeat-y;
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom));
}

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

a { color: var(--plum); }

h1, h2, h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-align: center;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; color: var(--plum); }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); padding: .5em 1em; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px;
  background: #f7a8cf url("../images/header-roses.jpg") center / cover no-repeat;
  box-shadow: 0 2px 12px rgba(174, 64, 165, .25);
}
.logo {
  text-decoration: none; color: var(--white);
  text-shadow: 0 1px 3px rgba(150, 20, 90, .6), 0 0 12px rgba(255, 255, 255, .4);
  line-height: 1.05;
}
.logo-name { display: block; font-style: italic; font-size: 1.9rem; letter-spacing: .5px; }
.logo-tag { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; }

.menu-btn {
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(174, 64, 165, .3);
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block;
  width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--rose);
  position: relative;
}
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

/* Text links across the header — computers only */
.top-links { display: none; }
@media (min-width: 960px) {
  .top-links { display: flex; gap: 6px; margin-left: auto; margin-right: 14px; }
  .top-links a {
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .88); color: var(--rose-dark);
    font-family: var(--sans); font-weight: 700; font-size: .95rem; text-decoration: none;
  }
  .top-links a:hover, .top-links a[aria-current="page"] { background: var(--rose); color: var(--white); }
}

/* ---------- Photo menu (hamburger drawer) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--blush);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
}
.menu.open { transform: none; visibility: visible; transition: transform .3s ease; }
body.menu-open { overflow: hidden; }

.menu-top {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  margin: 0 -16px 8px; padding: 0 12px 0 16px;
  background: #f7a8cf url("../images/header-roses.jpg") center / cover no-repeat;
}
.menu-top .logo-name { font-size: 1.6rem; }
.menu-close {
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--rose);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.menu h2 { margin: 18px 0 10px; font-size: 1.4rem; }
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.tile a {
  display: block; text-decoration: none;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 2px solid transparent;
}
.tile a[aria-current="page"] { border-color: var(--pink); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tile span {
  display: block; padding: 8px 6px 10px; text-align: center;
  font-style: italic; color: var(--plum); font-size: 1.05rem; line-height: 1.2;
}
.menu-contact { margin-top: 24px; text-align: center; }

/* ---------- Layout ---------- */
main { display: block; }
.section {
  max-width: 1000px; margin: 0 auto;
  padding: 28px 16px;
}
.panel {
  background: rgba(255, 255, 255, .88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 22px;
}
.center { text-align: center; }
.lead { font-style: italic; text-align: center; font-size: 1.15rem; }
.note { text-align: center; font-style: italic; color: var(--plum); }
.eyebrow {
  display: block; text-align: center;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 2px;
  font-size: .8rem; color: var(--plum); margin-bottom: 4px;
}
.divider { margin: 18px auto; max-width: 240px; }
.welcome-img { margin: 0 auto 10px; width: min(320px, 80%); mix-blend-mode: multiply; }
.hero-img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 0 auto 18px; max-height: 70vh; object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 0;
  background: var(--rose); color: var(--white);
  font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .3px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(224, 54, 143, .3);
}
.btn:hover, .btn:focus-visible { background: var(--rose-dark); }
.btn-soft { background: var(--white); color: var(--rose); border: 2px solid var(--petal-2); box-shadow: none; }
.btn-soft:hover, .btn-soft:focus-visible { background: var(--petal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }

/* ---------- Photo grids + gallery ---------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  list-style: none; padding: 0; margin: 0 0 16px;
}
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-grid a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--petal); }
.photo-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { text-align: center; font-style: italic; color: var(--plum); padding: 4px 0 0; font-size: 1rem; }

/* ---------- Dog cards (puppies & parents) ---------- */
.cards { display: grid; gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 16px 18px 20px; }
.card h3 { margin-bottom: .3em; }
.card .facts { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); text-align: center; margin-bottom: .8em; }
.badge {
  display: inline-block; margin: 0 auto .8em;
  padding: 3px 12px; border-radius: 999px;
  background: var(--petal); color: var(--rose-dark);
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
}
.card .badge-wrap { text-align: center; }

/* Swipeable photo carousel inside a card */
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; background: var(--petal);
}
.slides::-webkit-scrollbar { display: none; }
.slides a { flex: 0 0 100%; scroll-snap-align: center; }
.slides img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--petal-2); cursor: pointer;
}
.dots button[aria-current="true"] { background: var(--rose); }

/* Traits list */
.traits { list-style: none; padding: 0; margin: 0 0 1em; }
.traits li { padding: 8px 0; border-bottom: 1px dashed var(--petal-2); }
.traits li:last-child { border-bottom: 0; }
.traits strong { color: var(--plum); font-weight: 400; font-style: italic; }

/* Contact info */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.contact-list .ic {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--petal); font-size: 1.3rem;
}
.contact-list small { display: block; font-family: var(--sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: var(--plum); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 14px; }
label, legend { display: block; font-family: var(--sans); font-weight: 700; font-size: .92rem; margin-bottom: 4px; color: var(--ink); }
.req { color: var(--rose); }
input, select, textarea {
  width: 100%; font: inherit; font-family: var(--sans); font-size: 16px; /* 16px stops iPhone zoom-on-focus */
  padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--petal-2); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240, 120, 197, .25); }
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-weight: 400; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--rose); }
.form-note { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.hidden { display: none !important; }

.terms { font-size: 1rem; }
.terms ul { columns: 2; column-gap: 20px; padding-left: 1.1em; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 26px 16px 20px;
  background: linear-gradient(180deg, rgba(255, 224, 240, 0) 0%, var(--petal) 30%);
  font-family: var(--sans); font-size: .9rem; color: var(--ink-soft);
}
.site-footer .footer-title { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--plum); margin-bottom: 6px; }
.site-footer a { color: var(--plum); }
.social { display: flex; justify-content: center; gap: 14px; margin: 12px 0; }

/* ---------- Sticky action bar (phones) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  box-shadow: 0 -2px 14px rgba(174, 64, 165, .2);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  height: var(--actionbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--rose); font-family: var(--sans); font-size: .78rem; font-weight: 700;
}
.action-bar a span { font-size: 1.3rem; line-height: 1.2; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(60, 20, 45, .94);
  display: none; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--rose);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-family: var(--sans); font-size: .9rem; }
.lb-caption { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 70px; right: 70px; text-align: center; color: #fff; font-style: italic; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 14px; margin: 0 0 20px; }
.reviews:empty { display: none; }
.review {
  margin: 0; padding: 16px 18px; text-align: left;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.review p { margin: 0 0 .5em; font-style: italic; }
.review footer { font-family: var(--sans); font-size: .9rem; color: var(--plum); font-weight: 700; }
.review footer span { font-weight: 400; color: var(--ink-soft); }

/* ---------- Bigger screens ---------- */
@media (min-width: 640px) {
  /* On bigger screens, show the page as a centered column with the hearts background
     at its natural size — the same look as on a phone — instead of stretching it wide. */
  body { background: linear-gradient(90deg, #ffd3e8, #fff0f7 50%, #ffd3e8) fixed; }
  main {
    max-width: 760px; margin: 0 auto;
    background: var(--blush) url("../images/background-images/1143959384.jpg") center top / 100% auto repeat-y;
    box-shadow: 0 0 40px rgba(174, 64, 165, .18);
  }
  .welcome-img { width: 400px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .photo-grid.three { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.4rem; }
}
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  body { font-size: 1.2rem; padding-bottom: 0; }
  .site-header { padding: 0 28px; }
  .logo-name { font-size: 2.6rem; }
  .logo-tag { font-size: .85rem; }
  .action-bar { display: none; }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-grid.three { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .menu { left: auto; width: 560px; box-shadow: -10px 0 30px rgba(0, 0, 0, .2); }
  .menu .tiles { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 40px 24px; }
  .panel { padding: 30px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
