/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #446B3A;
  --primary-dark: #2D4A26;
  --accent: #B8703F;
  --bg: #FAFAF6;
  --bg-alt: #F0EDE5;
  --text: #2A2A2A;
  --text-light: #5A5A5A;
  --dark: #1C1C1C;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: var(--bg);
}

.section--dark h2,
.section--dark h3 {
  color: var(--bg);
}

.section--muted {
  background: #E8E4DA;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: #e5e5e0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.nav__logo:hover { color: var(--primary); }

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--primary); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--primary); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: .9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero--page {
  padding: 3rem 0 2.5rem;
}

.hero--page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: .25rem;
}

.hero--memorial {
  background: linear-gradient(135deg, #3a3a3a 0%, #1c1c1c 100%);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: #a0602f;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,112,63,.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--dark {
  background: var(--primary-dark);
  color: var(--white);
}

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

/* ===== INTRO (home page about section) ===== */
.intro {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.intro__text {
  flex: 1;
}

@media (max-width: 640px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== CIRCULAR PORTRAIT ===== */
.portrait {
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.portrait--sm { width: 100px; height: 100px; }
.portrait--md { width: 150px; height: 150px; }
.portrait--lg { width: 180px; height: 180px; }

/* ===== POLAROID / FRAMED IMAGE ===== */
.polaroid {
  display: inline-block;
  background: var(--white);
  padding: 8px 8px 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform var(--transition);
}

.polaroid:nth-child(even) { transform: rotate(1.5deg); }
.polaroid:nth-child(3n) { transform: rotate(-1deg); }

.polaroid:hover { transform: rotate(0deg) scale(1.02); }

.polaroid img {
  display: block;
}

.polaroid__caption {
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.card h3 a {
  color: var(--primary-dark);
}

.card h3 a:hover {
  color: var(--accent);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Number cards (massage steps) */
.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

/* ===== COLLAGE STRIP ===== */
.collage-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 0;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05rem;
}

/* ===== PRICE BOX ===== */
.price-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.price-box__amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  margin-bottom: .25rem;
}

.price-box__label {
  font-size: .95rem;
  opacity: .9;
}

/* ===== BENEFITS LIST ===== */
.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .95rem;
}

.benefits-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CONTENT WITH FLOAT IMAGE ===== */
.float-img {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.float-img--left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

/* ===== DOG PORTRAITS GRID ===== */
.dog-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.dog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.dog-card__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-light);
}

/* Before/after pair */
.before-after {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.before-after__item {
  text-align: center;
}

.before-after__label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== HORSE SECTION ===== */
.horse-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.horse-section__img {
  flex-shrink: 0;
}

.horse-section__text {
  flex: 1;
}

.horse-section--reverse {
  flex-direction: row-reverse;
}

.horse-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-light);
  font-size: .8rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}

/* ===== GALLERY MASONRY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  padding: .75rem .5rem .5rem;
  font-size: .8rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,.5);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  text-align: center;
  max-width: 80%;
}

/* ===== CONTACT ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card__icon {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.contact-card__label {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: .25rem;
}

.contact-card__value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.contact-card__value a {
  color: var(--primary-dark);
}

.contact-card__value a:hover {
  color: var(--accent);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--accent);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: .5rem; }

.cta-band p { opacity: .9; margin-bottom: 1.25rem; }

.cta-band a { color: var(--white); font-weight: 600; text-decoration: underline; }
.cta-band a:hover { color: var(--bg); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 0;
  text-align: center;
  font-size: .85rem;
}

.site-footer a {
  color: rgba(255,255,255,.8);
}

.site-footer a:hover {
  color: var(--white);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer__copy {
  margin-top: .5rem;
  font-size: .8rem;
}

/* ===== MEMORIAL SECTION (special muted treatment) ===== */
.memorial {
  background: #F5F3EE;
  border-top: 1px solid #ddd;
}

.memorial h2 {
  color: var(--text);
}

.memorial-frame {
  display: inline-block;
  background: var(--white);
  padding: 10px;
  border: 1px solid #ddd;
  box-shadow: var(--shadow);
}

.memorial-images {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ===== TEXT ALIGN UTILITY ===== */
.text-center { text-align: center; }

/* ===== SPACER ===== */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .step-cards { grid-template-columns: repeat(2, 1fr); }
  .horse-section { flex-direction: column; }
  .horse-section--reverse { flex-direction: column; }
  .benefits-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #e5e5e0;
    box-shadow: var(--shadow);
  }

  .nav__links.open { display: flex; }

  .nav__hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .step-cards { grid-template-columns: 1fr; }

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }

  .float-img,
  .float-img--left {
    float: none;
    margin: 0 auto 1rem;
  }

  .before-after { flex-direction: column; align-items: center; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .collage-strip { gap: .75rem; }

  .lightbox__nav { width: 40px; height: 40px; font-size: 1.2rem; }
}
