/* =========================================================
   Jones Pet Services — Main Stylesheet
   Warm direction, production
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --teal: #5DC0B3;
  --teal-deep: #3A9C90;
  --teal-dark: #1F5953;
  --teal-darkest: #1A3F3B;
  --coral: #E84B4B;
  --coral-deep: #C53A3A;
  --cream: #FAF7F2;
  --sand: #F1ECE0;
  --charcoal: #2A2A2A;
  --slate: #555;
  --hair: rgba(31, 89, 83, 0.12);
  --shadow-sm: 0 2px 8px rgba(31, 89, 83, 0.06);
  --shadow-md: 0 8px 30px rgba(31, 89, 83, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 89, 83, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-full: 999px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--teal-dark);
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.5vw, 48px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin: 0; }
em { font-style: italic; color: var(--coral); font-weight: 500; }
strong { font-weight: 700; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-head p { color: var(--slate); font-size: 18px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  padding: 16px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dark); padding: 12px 20px; }
.btn-ghost:hover { background: rgba(93, 192, 179, 0.1); }

/* ---------- Pills ---------- */
.pill-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  background: rgba(93, 192, 179, 0.12);
  color: var(--teal-dark);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--teal-dark);
}
.nav-logo img { width: 48px; height: 48px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); }
.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--coral-deep); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: 0.2s;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { width: 100%; justify-content: center; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(93, 192, 179, 0.15);
  color: var(--teal-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero p.hero-lede {
  font-size: 19px;
  color: var(--slate);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}
.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.hero-badge .badge-icon {
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-badge .text { font-size: 15px; color: var(--charcoal); }
.hero-badge .text small {
  font-weight: 500;
  color: var(--slate);
  display: block;
  font-size: 12px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-badge { left: 16px; bottom: -16px; }
}

/* ---------- Inner-page hero (smaller, for about/services/etc) ---------- */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero .hero-eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.page-hero p {
  font-size: 19px;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--teal-dark);
  color: #fff;
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-item strong {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  color: var(--teal);
}
.trust-item span { font-size: 13px; opacity: 0.9; font-weight: 500; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 24px; margin-bottom: 10px; }
.service-body p { color: var(--slate); margin-bottom: 20px; flex: 1; }
.service-link {
  color: var(--coral);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { color: var(--coral-deep); }
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Services page detail block ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--hair);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse > div:first-child { order: 2; }
.service-detail img {
  border-radius: var(--radius-lg);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.service-detail h2 { font-size: 36px; margin-bottom: 16px; }
.service-detail .meta { color: var(--coral); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.service-detail p { color: var(--slate); margin-bottom: 16px; font-size: 17px; }
.service-detail ul { color: var(--slate); padding-left: 20px; margin-bottom: 24px; }
.service-detail ul li { margin-bottom: 6px; }
@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse > div:first-child { order: 0; }
}

/* ---------- Why us ---------- */
.why { background: var(--sand); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item {
  background: var(--cream);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
}
.why-icon {
  width: 64px; height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.why-item h4 { margin-bottom: 10px; color: var(--teal-dark); }
.why-item p { font-size: 15px; color: var(--slate); }
@media (max-width: 880px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pet categories block ---------- */
.pet-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.pet-cat {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pet-cat-icon { font-size: 36px; margin-bottom: 10px; }
.pet-cat strong { display: block; color: var(--teal-dark); font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 4px; }
.pet-cat span { color: var(--slate); font-size: 13px; }
@media (max-width: 880px) { .pet-cats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pack grid (About page) ---------- */
.pack-feature {
  display: block;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  margin: 0 auto 48px;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.pack-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pack-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.pack-card-body { padding: 18px 12px 22px; }
.pack-card-body h4 {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--teal-dark);
}
.pack-card-body span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}
@media (max-width: 720px) {
  .pack-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.review-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #F4B400; letter-spacing: 3px; margin-bottom: 16px; font-size: 16px; }
.review-card p { font-style: italic; color: var(--charcoal); margin-bottom: 24px; }
.review-author { font-weight: 700; color: var(--teal-dark); }
.review-source { font-size: 13px; color: var(--slate); margin-top: 2px; }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- About teaser & team ---------- */
.about-teaser {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  color: #fff;
}
.about-teaser .about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-teaser .about-img img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.about-teaser h2 { color: #fff; font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 24px; }
.about-teaser .about-eyebrow { color: var(--teal); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.about-teaser p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 20px; }
.about-teaser .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.4); margin-top: 12px; }
.about-teaser .btn-secondary:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
@media (max-width: 880px) {
  .about-teaser .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Team grid (About page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.team-card-body { padding: 32px; }
.team-card-body h3 { font-size: 26px; margin-bottom: 6px; }
.team-card-body .role { color: var(--coral); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.team-card-body p { color: var(--slate); }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--cream);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 16px; }
.cta-strip p { color: var(--slate); font-size: 18px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(93, 192, 179, 0.15);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 4px; font-size: 16px; }
.contact-item p, .contact-item a { color: var(--slate); }
.contact-item a:hover { color: var(--teal-deep); }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--hair);
  border-radius: 12px;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-group { margin-bottom: 48px; }
.faq-group h3 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
  color: var(--teal-dark);
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px;
  color: var(--teal-deep);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 24px 24px;
  color: var(--slate);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-darkest);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h5 {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a { display: block; padding: 4px 0; color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--teal); }
.footer-brand img { width: 56px; height: 56px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Visible-when-needed helpers ---------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
