:root {
  --bg-cream: #fdfbf1;
  --navy: #1c2b48;
  --gold: #c98a2c;
  --link-blue: #3a5a9c;
  --purple: #a48fc0;
  --olive: #5c6b3c;
  --hairline: #cfc9b8;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-cream);
  color: var(--navy);
  font-family: var(--font-serif);
}

a {
  color: var(--link-blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.site-header {
  position: relative;
  text-align: center;
  padding: 28px 20px 0;
}

.cart-icon {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--navy);
}

.site-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0 10px;
}

.main-nav a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  padding-bottom: 3px;
}

.main-nav a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.header-rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 18px 0 0;
}

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

.hero-intro {
  text-align: center;
  padding: 40px 20px 26px;
}

.hero-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.subheading {
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Photos ---------- */

.photo {
  background-color: #ded6c3;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-placeholder-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #6b6353;
  background: rgba(253, 251, 241, 0.85);
  padding: 6px 14px;
  border: 1px dashed #a89f88;
}

.hero-photo {
  width: 100%;
  height: 260px;
  background-image: url("../images/hero-goats.jpg");
}

/* ---------- Shared text sections ---------- */

main > section,
.tagline {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 24px;
  text-align: center;
}

.notice { padding-bottom: 10px; }

.notice-title,
.notice-subtitle {
  font-weight: 700;
  margin: 0 0 6px;
}

.notice-body {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 14px 0;
}

.rescue-note {
  font-weight: 700;
  font-style: italic;
  margin: 18px 0;
}

.heart-paw {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 10px 0 0;
}

.heart-paw .heart {
  color: #c0392b;
}

.hours h2,
.references h2,
.get-in-touch h2,
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.bookings-note {
  font-weight: 700;
  margin: 0 0 16px;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.9;
}


.references { padding-top: 10px; }

.reference {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.reference p { margin: 2px 0; }

.tagline {
  font-style: italic;
  color: var(--olive);
  font-weight: 600;
  padding-top: 4px;
  padding-bottom: 40px;
}

/* ---------- Get in touch band ---------- */

.get-in-touch {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0;
  margin: 0;
  background: var(--purple);
  text-align: left;
}

.git-text {
  flex: 1 1 340px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
}

.git-text h2 { color: #fff; }

.git-text p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.git-text a { color: #fff; }

.git-photo {
  flex: 1 1 340px;
  min-height: 300px;
  background-color: #cfc3db;
  background-image: url("../images/get-in-touch.jpg");
}

/* ---------- Service prices ---------- */

.price-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px 10px;
}

.price-section {
  padding: 30px 0;
}

.price-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 24px;
}

.price-section-centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.price-section-centered p {
  font-size: 0.9rem;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.price-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.price-photo {
  width: 100%;
  height: 200px;
  margin-bottom: 14px;
}

.hoof-care-photo {
  background-image: url("../images/hoof-care.jpg");
}

.farm-care-photo {
  background-image: url("../images/farm-care.jpg");
}

.price-note {
  font-size: 0.85rem;
}

.price-highlight {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.price-list,
.plain-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.plain-list li::before {
  content: "- ";
}

.price-fineprint {
  font-style: italic;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.rescue-callout {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.barn-icon {
  margin-bottom: 6px;
}

.dot-divider {
  height: 8px;
  max-width: 900px;
  margin: 10px auto;
  background-image: radial-gradient(circle, var(--gold) 2.5px, transparent 3px);
  background-size: 20px 8px;
  background-repeat: repeat-x;
  background-position: center;
}

@media (max-width: 640px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Book Now ---------- */

.booking-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 24px 0;
}

.booking-intro {
  text-align: center;
  padding: 34px 0 20px;
}

.booking-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0;
}

.heading-dash {
  width: 34px;
  height: 2px;
  background: var(--navy);
  margin: 14px auto;
}

.booking-subheading {
  font-size: 0.95rem;
  margin: 0;
}

.animal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}

.animal-card-grid.single {
  grid-template-columns: repeat(3, 1fr);
}

.animal-card-grid.single .animal-card {
  grid-column: span 1;
}

.animal-card {
  background: var(--purple);
  color: var(--navy);
  padding: 28px 26px;
  text-align: center;
}

.animal-icon,
.heart-hoof-icon {
  margin-bottom: 6px;
}

.animal-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 6px 0 2px;
}

.animal-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  text-align: left;
  margin: 0 0 12px;
}

.animal-card .price-highlight {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 10px;
}

.book-btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: #fff;
  background: var(--navy);
  padding: 10px 22px;
  border-radius: 2px;
  margin-top: 4px;
}

.book-btn:hover {
  background: #2a3d63;
  text-decoration: none;
}

.wide-photo {
  width: 100%;
  height: 260px;
  margin-bottom: 0;
}

.homestead-photo {
  background-image: url("../images/homestead-sitting.jpg");
}

.booking-band {
  background: var(--purple);
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 20px;
}

.booking-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.booking-band .price-highlight {
  font-size: 1rem;
  margin: 0 0 14px;
}

.booking-band p {
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.booking-band .price-fineprint {
  margin: 16px 0 0;
}

@media (max-width: 760px) {
  .animal-card-grid,
  .animal-card-grid.single {
    grid-template-columns: 1fr;
  }
}

/* ---------- Application form ---------- */

.application {
  max-width: 560px;
  padding-top: 10px;
}

.app-form {
  text-align: left;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 9px 12px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.form-row input[type="file"] {
  border: 1px dashed var(--hairline);
  background: var(--bg-cream);
  padding: 12px;
  font-size: 0.85rem;
}

.field-hint {
  font-size: 0.78rem;
  font-style: italic;
  color: #8a8471;
  margin: 6px 0 0;
}

.submit-btn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: 2px;
  padding: 12px 30px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #8f79ac;
}

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

.site-footer {
  text-align: center;
  padding: 40px 20px 24px;
  background: #fff;
}

.site-footer p {
  margin: 3px 0;
  font-size: 0.9rem;
}

.copyright {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #8a8471;
  font-style: normal;
}

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

@media (max-width: 600px) {
  .site-title { font-size: 1.5rem; }
  .hero-intro h2 { font-size: 1.6rem; }
  .main-nav ul { gap: 6px 16px; }
  .git-text { padding: 40px 28px; }
}

/* ---------- iPhone: tap size, safe areas, readable text ---------- */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.site-header { padding-top: max(28px, calc(env(safe-area-inset-top) + 12px)); }
.cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  top: max(6px, env(safe-area-inset-top));
  right: max(4px, env(safe-area-inset-right));
}
.main-nav ul { gap: 0 10px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 6px;
  font-size: 15px;
  box-sizing: border-box;
}
.form-row input, .form-row textarea, .form-row input[type="file"] { font-size: 16px; min-height: 44px; padding: 11px 12px; }
.submit-btn { min-height: 48px; padding: 12px 30px; }
.field-hint, .copyright { font-size: 14px; }
.site-footer { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
.site-footer a { display: inline-block; padding: 14px 8px; }
.tagline a { display: inline-block; padding: 12px 10px; }
@media (max-width: 600px) {
  .site-title { font-size: 1.5rem; }
}
