/* ============================================
   Sunny Coast Veterinary — Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Open+Sans:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-olive-dark: #3B4739;
  --color-olive-medium: #4E5A49;
  --color-olive-light: #6B7B66;
  --color-cream: #FEFFFC;
  --color-warm-beige: #F4F0E8;
  --color-light-beige: #F7F4ED;
  --color-gold: #D3C650;
  --color-gold-muted: #C4B85A;
  --color-cta-blue: #3E7CCC;
  --color-cta-blue-hover: #2D6AB8;
  --color-text-dark: #333333;
  --color-text-medium: #5A5A5A;
  --color-text-light: #FFFFFF;
  --color-border: #E0DCD4;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-padding: 48px;
  --section-padding-mobile: 60px;
  --container-max: 1200px;
  --container-narrow: 900px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lifted: 0 12px 40px rgba(0, 0, 0, 0.14);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-dark);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.25rem); font-family: var(--font-ui); font-weight: 700; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-medium);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.eyebrow--tag {
  background: var(--color-gold);
  color: var(--color-olive-dark);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section--beige { background-color: var(--color-warm-beige); }
.section--olive { background-color: var(--color-olive-dark); color: var(--color-text-light); }
.section--cream { background-color: var(--color-cream); }

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

/* Gold separator */
.separator {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem auto 2rem;
  border: none;
}

.separator--left { margin-left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header--top {
  background: rgba(59, 71, 57, 0.5);
  backdrop-filter: blur(0px);
}

.site-header--scrolled {
  background: rgba(59, 71, 57, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  width: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-self: start;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-smooth);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.header-emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 20px;
  border-radius: 4px;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.header-emergency-btn svg {
  flex-shrink: 0;
}

.header-emergency-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-text-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero--full { min-height: 85vh; }
.hero--short { min-height: 40vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 71, 57, 0.75) 0%, rgba(59, 71, 57, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 72px;
}

.hero-content h1 {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Diagonal divider at bottom of hero */
.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-cta-blue);
  color: var(--color-text-light);
}

.btn--primary:hover {
  background: var(--color-cta-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 124, 204, 0.3);
}

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

.btn--outline:hover {
  background: var(--color-text-light);
  color: var(--color-olive-dark);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-olive-dark);
}

.btn--gold:hover {
  background: var(--color-gold-muted);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 198, 80, 0.3);
}

/* ---------- Horse Icon Divider ---------- */
.icon-divider {
  text-align: center;
  padding: 2rem 0;
}

.icon-divider img {
  width: 48px;
  height: auto;
  margin: 0 auto;
  opacity: 0.6;
  filter: brightness(0) saturate(100%) invert(28%) sepia(8%) saturate(1200%) hue-rotate(70deg) brightness(95%) contrast(85%);
}

/* ---------- About Preview (Homepage) ---------- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  margin-top: 2rem;
}

.about-preview-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

.about-preview-text h2 {
  color: var(--color-olive-dark);
  margin-bottom: 0.25rem;
}


/* ---------- Page Header (Interior Pages) ---------- */
.page-header {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-header .hero-bg::after {
  background: linear-gradient(135deg, rgba(59, 71, 57, 0.8) 0%, rgba(59, 71, 57, 0.55) 100%);
}

.page-header h1 {
  position: relative;
  z-index: 2;
  color: var(--color-text-light);
  padding-top: 100px;
  padding-bottom: 60px;
}

/* ---------- Service Detail List ---------- */
.service-detail {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 48px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  transition: all var(--transition-smooth);
}

.service-detail:hover {
  box-shadow: var(--shadow-soft);
}

.service-detail h4 {
  color: var(--color-olive-dark);
  margin-bottom: 0.75rem;
}

.service-detail ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}

.service-detail ul li {
  font-size: 0.95rem;
  color: var(--color-text-medium);
  padding: 3px 0;
}

.service-detail-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(78, 90, 73, 0.06);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}


/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.service-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(78, 90, 73, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
}

.service-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-card h5 {
  margin-bottom: 0.5rem;
  color: var(--color-olive-dark);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Testimonial Block ---------- */
.testimonial {
  background-color: var(--color-olive-dark);
  background-image: url('../images/testimonial-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
  padding: var(--section-padding) 0;
  text-align: center;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59, 71, 57, 0.88);
}

.testimonial-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after { content: '\201D'; }

.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--color-olive-medium);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h3 {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* ---------- News Cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--color-text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.news-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-warm-beige);
}

.news-card-body {
  padding: 24px;
}

.news-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-olive-dark);
}

.news-card-body .category {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-gold-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Article / Blog Post ---------- */
.article-body {
  max-width: 780px;
  margin: 0 auto;
}

.article-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-olive-dark);
}

.article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-olive-dark);
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}

.article-back:hover {
  color: var(--color-gold);
}

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

.team-card-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-border);
  transition: border-color var(--transition-smooth);
}

.team-card:hover .team-card-photo {
  border-color: var(--color-gold);
}

.team-card h3 { margin-bottom: 0.25rem; color: var(--color-olive-dark); }

.team-card .credentials {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-olive-dark);
  color: var(--color-text-light);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--color-text-light); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: var(--color-gold);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--color-text-light); }

/* ---------- Contact Cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-card h4 {
  color: var(--color-olive-dark);
  margin-bottom: 1rem;
}

.contact-card p, .contact-card a {
  font-size: 0.95rem;
}

.contact-card .phone-link {
  color: var(--color-cta-blue);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Emergency Callout ---------- */
.emergency-callout {
  margin-top: 3rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(180, 40, 40, 0.06), rgba(180, 40, 40, 0.02));
  border: 1px solid rgba(180, 40, 40, 0.15);
  border-left: 4px solid #b42828;
  border-radius: var(--radius-md);
  text-align: center;
}

.emergency-callout-icon {
  color: #b42828;
  margin-bottom: 0.75rem;
}

.emergency-callout-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #8b1a1a;
  margin-bottom: 0.5rem;
}

.emergency-callout-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-medium);
  margin-bottom: 2rem;
}

.emergency-callout-numbers {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.emergency-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.emergency-number-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-medium);
  font-weight: 600;
}

.emergency-number-phone {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #b42828;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.emergency-number-phone:hover {
  color: #8b1a1a;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-olive-medium);
  box-shadow: 0 0 0 3px rgba(78, 90, 73, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ---------- Product Cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--color-text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.product-card-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-warm-beige);
}

.product-card-body {
  padding: 24px;
}

.product-card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-olive-dark);
  margin-bottom: 0.75rem;
}

.product-card-body p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- Accordion (Client Education) ---------- */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-olive-dark);
  transition: color var(--transition-fast);
}

.accordion-header:hover { color: var(--color-gold-muted); }

.accordion-chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-body-inner {
  padding: 0 0 24px;
}

.accordion-body-inner p {
  font-size: 0.95rem;
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { gap: 24px; }
  .header-inner { padding: 0 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-preview-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
  }

  /* Header */
  .site-header { padding: 0 12px; }
  .header-inner {
    padding: 0 8px;
    grid-template-columns: 1fr auto;
    height: 64px;
  }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-emergency-btn { display: none; }

  /* Mobile nav overlay */
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #3B4739;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
    padding: 80px 24px 40px;
  }

  .header-nav.open a {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #fff;
  }

  /* Hero */
  .hero { min-height: 55vh; }
  .hero--full { min-height: 65vh; }
  .hero-content {
    padding: 72px 0 0;
    max-width: 100%;
  }
  .hero-content p { font-size: 1rem; }

  /* Page header (interior pages) */
  .page-header { min-height: 300px; }
  .page-header h1 {
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* About preview */
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-preview-image { text-align: center; }
  .about-preview-image img {
    max-width: 100%;
    height: auto;
  }

  /* Grids to single column */
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }

  /* Service cards */
  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
  }

  /* Service detail */
  .service-detail {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .service-detail-icon { display: none; }

  /* Contact cards */
  .contact-card { padding: 28px 20px; }

  /* CTA banner */
  .cta-banner {
    padding: 40px 16px;
    text-align: center;
  }
  .cta-banner h3 { font-size: 1.4rem; }

  /* Article body */
  .article-body { padding: 0 4px; }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Testimonial */
  .testimonial-quote { font-size: 1.1rem; }

  /* Footer */
  .footer-brand { text-align: center; }
  .footer-brand img { margin: 0 auto; display: block; }
  .footer-col { text-align: center; }
  .footer-bottom { font-size: 0.75rem; }

  /* Container padding */
  .container { padding: 0 16px; }

  /* Icon divider */
  .icon-divider { padding: 1.5rem 0; }

  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  /* Only full-width CTAs for hero and standalone buttons */
  .hero-content .btn,
  .cta-banner .btn { width: auto; }

  /* Store grid (if inline) */
  .store-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }

  .hero { min-height: 50vh; }
  .hero--full { min-height: 55vh; }
  .hero-content { padding: 64px 0 0; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }

  .page-header { min-height: 240px; }
  .page-header h1 {
    padding-top: 64px;
    padding-bottom: 32px;
    font-size: 1.5rem;
  }

  .service-card { padding: 24px 16px; }
  .service-card h5 { font-size: 1rem; }

  .news-card-body h4 { font-size: 1rem; }

  .about-preview-text h2 { font-size: 1.4rem; }

  .cta-banner h3 { font-size: 1.2rem; }
  .cta-banner p { font-size: 0.85rem; }

  .testimonial-quote { font-size: 1rem; padding: 0 8px; }

  .header-nav.open a { font-size: 1.2rem; }

  .eyebrow { font-size: 0.65rem; }

  .footer-grid { gap: 24px; }
}

