/* ============================================
   Logan's Doggie B&B — styles.css
   Warm teal + amber on cream, Nunito + Inter
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #FBF8F3;
  --bg-alt: #F2EDE5;
  --bg-card: #FFFFFF;
  --bg-dark: #2A3535;
  --text: #2A2520;
  --text-muted: #5A5450;
  --text-faint: #8A8580;
  --primary: #3A8A8A;
  --primary-rgb: 58, 138, 138;
  --primary-light: #E0F2F0;
  --accent: #D4883A;
  --accent-light: #F8EDD8;
  --border: #DDD8D0;
  --border-light: #F2EDE5;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}

html.dark {
  --bg: #1A1D1A;
  --bg-alt: #222520;
  --bg-card: #2A2D28;
  --bg-dark: #0F1212;
  --text: #E8E4D8;
  --text-muted: #A8A498;
  --text-faint: #686460;
  --primary: #5AB0B0;
  --primary-rgb: 90, 176, 176;
  --primary-light: #1A2A2A;
  --accent: #E0A050;
  --accent-light: #2A2218;
  --border: #353230;
  --border-light: #222520;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p + p { margin-top: 1rem; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.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;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-pad {
  padding: 5rem 0;
}

@media (max-width: 767px) {
  .section-pad { padding: 3.5rem 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-logo .paw {
  font-size: 1.5rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 1.125rem; height: 1.125rem; }

html:not(.dark) .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}

.hamburger svg { width: 1.5rem; height: 1.5rem; }

.hamburger .icon-close { display: none; }
.hamburger.open .icon-menu { display: none; }
.hamburger.open .icon-close { display: block; }

@media (max-width: 767px) {
  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.125rem;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 37, 32, 0.75) 0%,
    rgba(42, 53, 53, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding: 4rem 0;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero .subline {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.65;
}

@media (max-width: 767px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: 3rem 0; }
}

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Why Section (split) --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 767px) {
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.why-content h2 {
  margin-bottom: 1.5rem;
}

.why-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pull-quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  font-style: italic;
}

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Feature chips */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--accent-light);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-heading);
}

.feature-chip svg { width: 0.875rem; height: 0.875rem; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-card .stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.testimonial-card .stars svg { width: 1.125rem; height: 1.125rem; }

.testimonial-card blockquote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-card .author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  margin: 1.25rem 0 1.75rem;
}

.cta-section .cta-email svg { width: 1.125rem; height: 1.125rem; opacity: 0.8; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 20rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li + li { margin-top: 0.5rem; }

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover { color: #fff; }

/* --- About Page --- */
.about-hero {
  background: var(--bg-alt);
  text-align: center;
}

.about-hero h1 { margin-bottom: 1rem; }

.about-hero .subline {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.about-content {
  max-width: 48rem;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

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

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.value-card .value-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.value-card .value-icon svg { width: 1.25rem; height: 1.25rem; }

.value-card h3 { margin-bottom: 0.5rem; }

.value-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail .detail-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-detail .detail-icon svg { width: 1.125rem; height: 1.125rem; }

.contact-detail .detail-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.contact-detail .detail-text span,
.contact-detail .detail-text a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-group label .req { color: #D44; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #D44;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235A5450' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-textarea { resize: vertical; min-height: 6rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 479px) {
  .form-row { grid-template-columns: 1fr; }
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-error {
  background: #FEE;
  color: #D44;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  display: none;
}

.form-success.show { display: block; }

.form-success .success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.form-success .success-icon svg { width: 2rem; height: 2rem; }

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- 404 Page --- */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 h1 {
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-404 h2 {
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
}

/* --- Disclaimer bar --- */
.zg-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-dark);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.zg-disclaimer a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}

.zg-disclaimer a:hover { color: #fff; }

/* --- Print --- */
@media print {
  .site-nav, .zg-disclaimer, .theme-toggle { display: none; }
  body { padding-bottom: 0; }
}
