/* ==========================================================================
   Fenway Bark — Dog Resort
   Custom site styles. Palette drawn from the logo: baseball red, Fenway
   green, warm cream, golden tan.
   ========================================================================== */

:root {
  --green: #1d5436;
  --green-dark: #143d27;
  --green-deep: #0e2e1d;
  --red: #c0392b;
  --red-bright: #d6452f;
  --cream: #faf6ee;
  --cream-dark: #f3ecdd;
  --gold: #d9a441;
  --tan: #e8c98f;
  --ink: #20231f;
  --ink-soft: #4d544c;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(20, 40, 25, 0.10);
  --shadow-lg: 0 12px 48px rgba(20, 40, 25, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--green { background: var(--green-deep); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section--green p { color: rgba(250, 246, 238, 0.78); }
.section--green .eyebrow { color: var(--gold); }
.section--alt { background: var(--cream-dark); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-bright); }

.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--cream); }

.btn--light { background: var(--cream); color: var(--green-deep); }
.btn--ghost { border-color: rgba(250,246,238,0.5); color: var(--cream); }
.btn--ghost:hover { background: rgba(250,246,238,0.12); }

/* --- Header ------------------------------------------------------------ */

.topbar {
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.topbar a { color: var(--gold); font-weight: 600; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 61, 39, 0.10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-deep);
  letter-spacing: 0.01em;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--green); border-bottom-color: var(--red); }
.nav .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.nav .btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-deep);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 60%, var(--green) 100%);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}
.hero::after {
  /* faint baseball stitching arc */
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border: 3px dashed rgba(214, 69, 47, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5rem 0 5.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--cream); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.2rem; color: rgba(250, 246, 238, 0.85); max-width: 32em; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(250,246,238,0.75);
}
.hero__badges span { display: flex; align-items: center; gap: 0.45rem; }

.hero__photo {
  position: relative;
}
.hero__photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.65;
}

/* --- Cards / grids ------------------------------------------------------ */

.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0.25rem; }
.card p { font-size: 0.98rem; margin-bottom: 0; }
.card .card__link { margin-top: auto; padding-top: 1.25rem; font-weight: 700; text-decoration: none; color: var(--red); }
.card .card__link:hover { text-decoration: underline; }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Steps -------------------------------------------------------------- */

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(20, 61, 39, 0.12);
}
.step:last-child { border-bottom: none; }
.step__num {
  counter-increment: step;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin-bottom: 0; }

/* --- Pricing ------------------------------------------------------------ */

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.9rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--green);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--featured {
  border-top-color: var(--red);
  outline: 3px solid var(--red);
  outline-offset: -3px;
}
.price-card__flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card__tier {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.price-card__price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
  margin: 0.6rem 0 0.2rem;
}
.price-card__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-card__sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.price-card ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 0.95rem;
}
.price-card li {
  padding: 0.45rem 0 0.45rem 1.7rem;
  position: relative;
  color: var(--ink-soft);
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; text-align: center; }

/* --- Tables ------------------------------------------------------------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
}
.price-table th {
  background: var(--green-deep);
  color: var(--cream);
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1.2rem;
}
.price-table td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid rgba(20, 61, 39, 0.08);
  color: var(--ink-soft);
}
.price-table td:last-child { font-weight: 700; color: var(--green-deep); white-space: nowrap; }
.price-table tr:nth-child(even) td { background: var(--cream); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* --- FAQ accordion ------------------------------------------------------ */

.faq-group { margin-bottom: 3rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__body { padding: 0 1.4rem 1.25rem; }
.faq-item__body p { margin-bottom: 0; font-size: 0.98rem; }

/* --- Photo strip -------------------------------------------------------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.photo-strip img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.photo-strip img:hover { transform: scale(1.025); }

/* --- Banner CTA --------------------------------------------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 36em; margin-inline: auto; }
.cta-banner .btn { margin-top: 1.25rem; }

/* --- Info / contact ----------------------------------------------------- */

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.6rem 0;
  align-items: baseline;
}
.info-list strong { color: var(--green-deep); min-width: 6.5rem; display: inline-block; }

.map-embed {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(250, 246, 238, 0.78);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,246,238,0.15);
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(250,246,238,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.25rem 0; }
.site-footer__brand img { height: 64px; margin-bottom: 1rem; background: var(--cream); border-radius: 12px; padding: 6px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(250,246,238,0.5);
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.footer-badges span {
  border: 1px solid rgba(250,246,238,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
}

/* --- Reveal animation --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .hero__photo { max-width: 440px; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(20, 61, 39, 0.12);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 4%;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; width: 100%; border-bottom: 1px solid rgba(20,61,39,0.07); }
  .nav .btn { margin: 0.85rem 0; text-align: center; }

  .cta-banner { padding: 2.5rem 1.5rem; }
  .step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .step__num { width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
