/* ============================================================
   Sunny Acres Boarding — Stylesheet
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  --green-900: #1a3d2b;
  --green-800: #2d6648;
  --green-700: #3d7a5c;
  --green-600: #4a8f6a;
  --green-500: #5a9975;
  --green-400: #6aaa84;
  --green-200: #c8e6d8;
  --green-100: #eef7f2;
  --green-50:  #f4fbf7;

  --cream:     #f9f6f1;
  --cream-dark: #ede8e0;
  --white:     #ffffff;

  --text-dark:   #1d2d2a;
  --text-medium: #3a4e48;
  --text-light:  #627870;
  --text-faint:  #8fa89f;

  --border:    #dde8e2;
  --border-focus: var(--green-600);

  --error:     #c53030;
  --error-bg:  #fff5f5;
  --error-border: #fc8181;

  --success:   #2d6648;
  --success-bg: #f0fff4;
  --success-border: #68d391;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --transition: 200ms ease;

  --font-sans: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --container: 1140px;
  --nav-h: 72px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text-dark);
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; }

p { color: var(--text-medium); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 12px auto 0;
}

.section {
  padding: 96px 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Focus outline for accessibility */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo { color: var(--text-dark); }

.logo-paw { font-size: 1.4rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: all var(--transition);
}

.navbar.scrolled .nav-link { color: var(--text-medium); }

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.15);
}

.navbar.scrolled .nav-link:hover {
  color: var(--green-700);
  background: var(--green-100);
}

.nav-cta {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 9px 18px;
}

.nav-cta:hover {
  background: var(--green-800) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span { background: var(--text-dark); }

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    var(--green-900) 0%,
    var(--green-800) 40%,
    var(--green-700) 70%,
    #2a6b54 100%
  );
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(255,255,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0,0,0,.15) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 40px) 24px 100px;
  max-width: 760px;
}

.hero-eyebrow {
  color: var(--green-200);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--green-200);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--green-200);
  animation: bounce 2s infinite;
  opacity: .7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-content h2 { margin-bottom: 20px; }
.about-content .lead { font-size: 1.1rem; margin-bottom: 16px; }
.about-content p { margin-bottom: 20px; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
}

.feature-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
}

.badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

/* ---------- RATES ---------- */
.rates h2 { margin-bottom: 12px; }

.rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.rate-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 2px solid transparent;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.rate-card-featured {
  border-color: var(--green-700);
}

.rate-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green-700);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 100px;
}

.rate-card-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.rate-card-featured .rate-card-header {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
}

.rate-card-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.rate-card-header p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

.rate-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rate-section-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 12px;
}

.rate-list { display: flex; flex-direction: column; gap: 10px; }

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  gap: 12px;
}

.rate-row:last-child { border-bottom: none; }

.rate-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.rate-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-faint);
}

.rate-price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-700);
  white-space: nowrap;
}

.rate-per {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-faint);
}

.rates-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* ---------- GALLERY ---------- */
.gallery h2 { margin-bottom: 12px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item-hero {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.gallery-item:not(.gallery-item-hero) img {
  height: 200px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-label { opacity: 1; }

/* ---------- BOOKING FORM ---------- */
.booking h2 { margin-bottom: 12px; }

.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  margin-top: 48px;
}

.booking-form { display: flex; flex-direction: column; gap: 0; }

.form-section {
  border: none;
  padding: 0;
  margin-bottom: 40px;
}

.form-section:last-of-type { margin-bottom: 0; }

.form-section-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-100);
}

.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row:last-child { margin-bottom: 0; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.form-row.one-col { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label,
.label-block {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

.required { color: var(--green-600); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23627870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(61,122,92,.15);
}

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(197,48,48,.1);
}

textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.field-error {
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 600;
  min-height: 1.2em;
  display: block;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}

.radio-option:hover { border-color: var(--green-400); background: var(--green-50); }

.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.radio-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}

.radio-option input[type="radio"]:checked ~ .radio-mark {
  border-color: var(--green-700);
  background: var(--green-700);
}

.radio-option input[type="radio"]:checked ~ .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--green-700);
  background: var(--green-50);
}

.radio-text { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

/* Submit area */
.form-submit {
  margin-top: 32px;
  text-align: center;
}

/* Status messages */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.form-status[hidden] { display: none !important; }

.form-status-success {
  background: var(--success-bg);
  border: 1.5px solid var(--success-border);
  color: var(--success);
}

.form-status-error {
  background: var(--error-bg);
  border: 1.5px solid var(--error-border);
  color: var(--error);
}

.status-icon { font-size: 1.4rem; flex-shrink: 0; }

.form-status strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.form-status p { font-size: 0.88rem; color: inherit; margin: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li { font-size: 0.9rem; }

.footer-col ul li a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-contact li { color: rgba(255,255,255,.65); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}

.footer-credit { color: rgba(255,255,255,.6); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { order: -1; }
  .about-badge { bottom: -16px; left: 16px; }

  .rates-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-hero { grid-column: 1 / -1; grid-row: auto; }
  .gallery-item:not(.gallery-item-hero) img { height: 180px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    transform: translateY(-110%);
    transition: transform 300ms ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-menu.open { transform: translateY(0); }

  .nav-link {
    color: var(--text-medium) !important;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-link:hover { background: var(--green-50) !important; color: var(--green-700) !important; }

  .nav-cta {
    background: var(--green-700) !important;
    color: var(--white) !important;
    text-align: center;
    margin-top: 8px;
  }

  /* Form */
  .form-row.two-col { grid-template-columns: 1fr; }
  .booking-card { padding: 28px 20px; }

  /* Gallery */
  .gallery-item:not(.gallery-item-hero) img { height: 140px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px !important; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .hero-scroll, .btn, footer { display: none; }
  .section { padding: 32px 0; }
}
