/**
 * Aloha Veterinary Services — Design System v3.0
 * Sunset gradient palette from logo. Depth, glow, vibrancy.
 * Architecture: BeargrassAI generator + Cloudflare Pages
 * Design patterns: beargrass-designs component library (adapted for light theme)
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Logo sunset gradient */
  --sunset-gold: #D4943C;
  --sunset-coral: #D4644A;
  --sunset-pink: #C94070;
  --sunset-magenta: #8B3A8B;

  /* Backgrounds — sunset-tinted, not flat neutrals */
  --bg-cream: #FFF8F0;
  --bg-warm: #FBF0E5;
  --bg-tinted: #F8EBE0;
  --bg-white: #FFFFFF;
  --bg-section-coral: rgba(212, 100, 74, 0.04);
  --bg-section-gold: rgba(212, 148, 60, 0.05);

  /* Text */
  --text-primary: #2C2420;
  --text-secondary: #5C4F46;
  --text-light: #8A7D74;
  --text-white: #FFF8F0;

  /* Accent */
  --accent-primary: #D4644A;
  --accent-hover: #C94070;
  --accent-gradient: linear-gradient(135deg, #D4943C, #D4644A, #C94070, #8B3A8B);

  /* Borders — accent-derived, not flat gray */
  --border-light: rgba(212, 148, 60, 0.15);
  --border-warm: rgba(212, 100, 74, 0.18);
  --border-accent: rgba(212, 100, 74, 0.25);

  /* Functional */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-shadow: 0 1px 0 rgba(212, 148, 60, 0.1);
  --footer-bg: #5C2D5C;
  --footer-text: #F5EDE4;

  /* Typography */
  --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1100px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows — glow-style, warm-tinted, HEAVY like designs.html */
  --shadow-sm: 0 2px 8px rgba(212, 100, 74, 0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(212, 100, 74, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(212, 100, 74, 0.16), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 30px rgba(212, 100, 74, 0.12), 0 0 60px rgba(212, 148, 60, 0.06);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  margin-top: var(--space-12);
  color: var(--sunset-coral);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  margin-top: var(--space-8);
  color: var(--text-primary);
}

h4 { font-size: var(--text-lg); margin-bottom: var(--space-2); color: var(--text-primary); }

p { margin-bottom: var(--space-4); }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

strong { font-weight: 600; }
em { font-style: italic; }

ul, ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
li { margin-bottom: var(--space-2); }


/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-6);
  background: var(--accent-primary);
  color: var(--text-white);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--text-white);
}


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

.page-wrapper {
  padding-top: var(--space-8);
  padding-bottom: var(--space-16);
}

.prose {
  max-width: 100%;
}

.prose > * + * {
  margin-top: 0;
}


/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--nav-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

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

.nav-logo a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
}

.nav-item a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-item a:hover {
  color: var(--accent-primary);
  background: rgba(212, 100, 74, 0.06);
}

.nav-item.active a {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  background: var(--accent-primary);
  color: var(--text-white) !important;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-left: var(--space-4);
  box-shadow: 0 2px 16px rgba(212, 100, 74, 0.3), 0 2px 6px rgba(0,0,0,0.15);
}

.nav-cta a:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(201, 64, 112, 0.35);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

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

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


/* ==========================================================================
   Content Sections — sunset-tinted alternating backgrounds
   ========================================================================== */
.content-section {
  padding: var(--space-12) var(--space-8) var(--space-12);
  position: relative;
}

.content-section > h2:first-child {
  margin-top: 0;
}

.content-section--base {
  background: var(--bg-cream);
}

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

/* ==========================================================================
   Hero section — BIG, bold, in-your-face with glow and gradient
   ========================================================================== */
.content-section--hero {
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-left: var(--space-8);
  padding-right: var(--space-8);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 148, 60, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(212, 100, 74, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 64, 112, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  position: relative;
  overflow: hidden;
}

/* Soft glow orb behind hero content */
.content-section--hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  width: 700px;
  height: 500px;
  transform: translate(-50%, -30%);
  background: radial-gradient(ellipse,
    rgba(212, 148, 60, 0.15) 0%,
    rgba(212, 100, 74, 0.08) 40%,
    transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* Subtle grain texture overlay */
.content-section--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.content-section--hero > * {
  position: relative;
  z-index: 1;
}

.content-section--hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  margin-bottom: var(--space-4);
}

.content-section--hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* ==========================================================================
   Section Dividers — Full-width SVG wave transitions
   ========================================================================== */
.section-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 70px);
}


/* ==========================================================================
   Header Word Colors — clean, solid, no gradients
   H2 is solid coral. H1 hero: dark with last words in coral.
   ========================================================================== */
.grad-word {
  display: inline;
  color: inherit;
  background: none;
  -webkit-text-fill-color: inherit;
}

/* H1 hero: last 2 words in solid coral */
.content-section--hero h1 .grad-word {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

.content-section--hero h1 .grad-word:last-child,
.content-section--hero h1 .grad-word:nth-last-child(2) {
  color: var(--sunset-coral);
  -webkit-text-fill-color: var(--sunset-coral);
}

/* H2 is already coral via h2 color — grad-word just inherits */
h2 .grad-word {
  color: inherit;
  -webkit-text-fill-color: inherit;
}


/* ==========================================================================
   Buttons — real buttons with glow, not just text links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-white);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 16px rgba(212, 100, 74, 0.3), 0 2px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-white);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(201, 64, 112, 0.35), 0 4px 12px rgba(0,0,0,0.12);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 2px 12px rgba(212, 100, 74, 0.1);
}

.btn-secondary:hover {
  background: rgba(212, 100, 74, 0.06);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 100, 74, 0.15);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-6);
}

/* Hero buttons — flexbox row, equal width, centered */
.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.hero-buttons p {
  margin: 0;
}

.hero-buttons .btn {
  min-width: 220px;
  justify-content: center;
  box-sizing: border-box;
}


/* ==========================================================================
   Link CTAs (arrow links — for inline use)
   ========================================================================== */
.link-cta {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color 0.2s, gap 0.2s;
}

.link-cta:hover {
  color: var(--accent-hover);
  gap: var(--space-2);
}


/* ==========================================================================
   Trust Bar
   ========================================================================== */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background: rgba(212, 148, 60, 0.06);
  border: 1px solid rgba(212, 148, 60, 0.12);
  border-radius: var(--radius-lg);
  margin: var(--space-8) auto;
  max-width: 700px;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust-item .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(212, 148, 60, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--sunset-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   Why Choose Cards — prominent 4-card grid, section #2
   ========================================================================== */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.why-choose-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s, transform 0.3s;
  position: relative;
}

.why-choose-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Accent bar at top */
.why-choose-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.why-choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(139, 58, 139, 0.10), rgba(201, 64, 112, 0.10));
  border-radius: 50%;
  margin: 0 auto var(--space-4);
}

.why-choose-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--sunset-magenta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-choose-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.why-choose-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   Service Cards — with glow hover, real depth
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: box-shadow 0.4s, transform 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 58, 139, 0.08);
  border: 1px solid rgba(139, 58, 139, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--sunset-magenta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-top: 0;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 0;
}


/* ==========================================================================
   Team Cards
   ========================================================================== */
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-6);
  transition: box-shadow 0.4s, transform 0.3s;
  box-shadow: var(--shadow-sm);
}

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

.team-card h3 {
  margin-top: 0;
  color: var(--sunset-coral);
  font-size: var(--text-2xl);
}

.team-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ==========================================================================
   Star Rating — 5 gold stars + review count
   ========================================================================== */
.star-rating {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.star-rating__stars {
  display: flex;
  gap: 4px;
}

.star-rating__stars svg {
  width: 28px;
  height: 28px;
  fill: #F5A623;
  stroke: #E09500;
  stroke-width: 0.5;
}

.star-rating__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}


/* ==========================================================================
   Testimonial Cards — 3-column grid, each in own card with glow
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.4s, transform 0.3s;
}

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

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  font-size: 3.5rem;
  color: rgba(212, 148, 60, 0.12);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Accent bar at top of card */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  padding-top: var(--space-6);
  border: none;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.testimonial-card blockquote p {
  margin-bottom: 0;
}

.testimonial-author {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}


/* ==========================================================================
   Hours Table
   ========================================================================== */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.hours-table th,
.hours-table td {
  padding: var(--space-3) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.hours-table th {
  background: rgba(212, 148, 60, 0.06);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table .hours-open {
  color: var(--accent-primary);
  font-weight: 600;
}

.hours-table .hours-closed {
  color: var(--text-light);
}


/* ==========================================================================
   CTA Block (sunset gradient background with glow)
   ========================================================================== */
.cta-block {
  background: var(--accent-gradient);
  color: var(--text-white);
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-12) 0;
  box-shadow: 0 8px 40px rgba(212, 100, 74, 0.2), 0 0 80px rgba(212, 100, 74, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle glow inside CTA block */
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2,
.cta-block h3 {
  color: var(--text-white);
}

.cta-block h2 .grad-word,
.cta-block h3 .grad-word,
.cta-block h2 .grad-word:last-child,
.cta-block h3 .grad-word:last-child {
  color: var(--text-white);
  -webkit-text-fill-color: var(--text-white);
  background: none;
}

.cta-block p {
  color: rgba(255, 248, 240, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  position: relative;
}

.cta-block a {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  background: var(--bg-white);
  color: var(--accent-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}


/* ==========================================================================
   Contact Card
   ========================================================================== */
.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s;
}

.contact-card:hover {
  box-shadow: var(--shadow-glow);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card a {
  font-weight: 600;
}

.contact-card .contact-phone {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-primary);
}


/* ==========================================================================
   Contact Form (hidden when data-contact="false")
   ========================================================================== */
body[data-contact="false"] .contact-form {
  display: none;
}

.contact-form {
  max-width: 500px;
  margin: var(--space-8) 0;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(212, 100, 74, 0.12);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  padding: var(--space-3) var(--space-8);
  background: var(--accent-primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: var(--text-base);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(212, 100, 74, 0.3);
}

.contact-form button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(201, 64, 112, 0.35);
}


/* ==========================================================================
   Why Choose Us / Feature List
   ========================================================================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.feature-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-list li:last-child {
  border-bottom: none;
}


/* ==========================================================================
   Page Images — low-res originals, use sparingly with softening
   ========================================================================== */

/* Inline photo beside text */
.photo-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.photo-feature img {
  width: clamp(180px, 30%, 280px);
  height: auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  flex-shrink: 0;
}

.photo-feature .photo-text {
  flex: 1;
  min-width: 0;
}

.photo-feature .photo-text h3 {
  margin-top: 0;
}

/* Centered standalone photo */
.photo-accent {
  display: block;
  max-width: 360px;
  margin: var(--space-8) auto;
  border-radius: var(--radius-lg);
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* Small inline portrait — team bios */
.photo-portrait {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  float: left;
  margin: 0 var(--space-6) var(--space-4) 0;
  shape-outside: circle(50%);
}


/* ==========================================================================
   Map Embed
   ========================================================================== */
.map-embed {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-md);
}


/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, #3A1B3A 100%);
  color: var(--footer-text);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 3px solid var(--sunset-coral);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(212, 148, 60, 0.25);
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--footer-text);
  margin-bottom: var(--space-4);
}

.footer-section p {
  color: rgba(245, 237, 228, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.footer-section a {
  color: rgba(245, 237, 228, 0.7);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--sunset-gold);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  font-size: var(--text-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
}

.footer-copyright {
  color: rgba(245, 237, 228, 0.5);
}

.footer-managed-by a {
  color: rgba(245, 237, 228, 0.4);
  font-size: var(--text-xs);
  transition: color 0.2s;
}

.footer-managed-by a:hover {
  color: var(--sunset-gold);
}


/* ==========================================================================
   Chat Widget (hidden when data-chat="false")
   ========================================================================== */
body[data-chat="false"] #aloha-chat-widget {
  display: none;
}

#aloha-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: var(--font-body);
}

#aloha-chat-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--accent-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

#aloha-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 100, 74, 0.25);
}

.chat-toggle-active { display: none !important; }
.chat-toggle-label { display: inline; }
.chat-panel-hidden { display: none !important; }

#aloha-chat-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--accent-primary);
  color: var(--text-white);
}

.chat-header-info strong { display: block; font-size: var(--text-sm); }
.chat-header-subtitle { font-size: var(--text-xs); opacity: 0.8; }

#aloha-chat-close {
  background: none; border: none; color: var(--text-white);
  font-size: 1.5rem; cursor: pointer; padding: var(--space-1); line-height: 1;
}

.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-4); max-height: 320px; }
.chat-message { margin-bottom: var(--space-3); line-height: 1.5; }
.chat-message p { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); }
.chat-message-assistant p { background: var(--bg-warm); color: var(--text-primary); }
.chat-message-user p { background: var(--accent-primary); color: var(--text-white); margin-left: auto; max-width: 85%; }
.chat-meta { font-size: var(--text-xs) !important; color: var(--text-light) !important; background: transparent !important; padding: var(--space-1) var(--space-4) !important; }

.chat-typing .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-light); margin-right: 4px; animation: chatBounce 1.2s infinite;
}
.chat-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.chat-input-area { display: flex; padding: var(--space-3); border-top: 1px solid var(--border-light); gap: var(--space-2); }
#aloha-chat-input { flex: 1; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: var(--text-sm); font-family: var(--font-body); }
#aloha-chat-input:focus { outline: none; border-color: var(--accent-primary); }
#aloha-chat-send { background: var(--accent-primary); color: var(--text-white); border: none; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); cursor: pointer; display: flex; align-items: center; transition: background 0.2s; }
#aloha-chat-send:hover { background: var(--accent-hover); }


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--nav-bg); flex-direction: column;
    padding: var(--space-4); gap: 0; box-shadow: var(--shadow-md);
  }

  .nav-menu.active { display: flex; }
  .nav-item a { padding: var(--space-3) var(--space-4); }
  .nav-cta { margin-top: var(--space-2); }
  .nav-cta a { margin-left: 0; text-align: center; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { margin-top: var(--space-4); margin-bottom: var(--space-6); }
  .star-rating { margin-bottom: var(--space-3); }
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
  .trust-bar { gap: var(--space-4); padding: var(--space-4) var(--space-4); }
  #aloha-chat-panel { width: calc(100vw - 48px); right: -12px; }
  .chat-toggle-label { display: none; }

  .photo-feature { flex-direction: column; align-items: center; }
  .photo-feature img { width: 80%; max-width: 300px; }
  .photo-portrait { width: 100px; height: 100px; }
  /* Contact page: reduce gap between first section and Get in Touch */
  .page-contact .content-section:first-of-type { padding-bottom: var(--space-6); }
  .page-contact .content-section:first-of-type + .section-divider + .content-section { padding-top: var(--space-6); }
}

/* Mobile (640px) — service tiles stack to single column */
@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .service-cards { grid-template-columns: 1fr; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; align-items: center; gap: var(--space-3); }
  .cta-block { padding: var(--space-8) var(--space-4); }
  h1 { font-size: var(--text-3xl); }
  .content-section--hero { padding-top: var(--space-16); padding-bottom: var(--space-12); }
  .content-section { padding-left: var(--space-4); padding-right: var(--space-4); padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .testimonials-grid { margin-top: var(--space-3); margin-bottom: var(--space-4); }
  .star-rating { margin-bottom: var(--space-2); }
  .section-divider svg { height: 32px; }
  /* Contact page: reduce gap between first section and Get in Touch */
  .page-contact .content-section:first-of-type { padding-bottom: var(--space-4); }
  .page-contact .content-section:first-of-type + .section-divider + .content-section { padding-top: var(--space-4); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
