/* ==========================================================================
   Legacy Landscaping — Unified Stylesheet
   Colorado Springs, CO | colegacylandscaping.com

   Brand: Navy (#1B2951) · Red (#B22234) · Gold (#FFB81C)
   Fonts: Inter (body) + Georgia (headings)

   Single source of truth for shared styles. Page-specific overrides may
   live in a small <style> block AFTER this stylesheet in each page's
   <head>, but avoid duplicating tokens or chrome rules inline.

   Reference: ~/.claude/plans/ancient-jumping-crayon.md (Phase 0 plan)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy:         #1B2951;
  --navy-dark:    #0F1A2E;
  --navy-light:   #2A3F6E;
  --red:          #B22234;
  --red-dark:     #8A1A28;
  --red-light:    #D63847;
  --gold:         #FFB81C;
  --gold-dark:    #E0A015;
  --white:        #FFFFFF;

  /* Surfaces — soft off-white so screens don't feel harsh */
  --bg-page:      #F5F5F3;
  --bg-muted:     #EEECEA;
  --bg-soft:      #F2F0EE;
  --bg-dark:      var(--navy);

  /* Text */
  --text-body:          #333333;
  --text-muted:         #666666;
  --text-subtle:        #999999;
  --text-on-dark:       rgba(255, 255, 255, 0.92);
  --text-muted-on-dark: rgba(255, 255, 255, 0.6);
  --text-faint-on-dark: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border-color: #E5E7EB;
  --border-dark:  rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;

  /* Type scale (fluid) */
  --fs-display: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h1:      clamp(2rem, 2.5vw + 1rem, 3rem);
  --fs-h2:      clamp(1.75rem, 2vw + 0.75rem, 2.5rem);
  --fs-h3:      clamp(1.25rem, 1vw + 0.75rem, 1.5rem);
  --fs-h4:      1.125rem;
  --fs-h5:      1rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Radius */
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    8px;
  --radius-xl:    12px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 41, 81, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 41, 81, 0.10), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(27, 41, 81, 0.15), 0 6px 12px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 48px rgba(27, 41, 81, 0.20), 0 12px 24px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition:      all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s ease;

  /* Layout */
  --header-height:    76px;
  --max-width:        1200px;
  --max-width-narrow: 720px;
  --max-width-wide:   1400px;
}


/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--red);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-body); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  text-align: center;
  color: var(--navy);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-body);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section    { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }

.section-muted { background-color: var(--bg-muted); }
.section-soft  { background-color: var(--bg-soft); }

.section-dark {
  background-color: var(--navy);
  color: var(--text-on-dark);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: var(--text-muted-on-dark); }

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   5. Accessibility
   -------------------------------------------------------------------------- */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top 0.3s;
}

.skip-nav:focus { top: 0; }

.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;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   6. Chrome — promo banner, top bar, header, nav
   -------------------------------------------------------------------------- */

.promo-banner {
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: var(--space-3) var(--space-12) var(--space-3) var(--space-5);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
}

.promo-banner strong { color: var(--gold); }

.promo-banner a {
  color: var(--gold);
  text-decoration: underline;
  margin-left: var(--space-2);
  font-weight: 600;
}

.promo-banner a:hover { color: var(--white); }

.promo-banner .promo-close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  line-height: 1;
}

.promo-banner .promo-close:hover { color: var(--white); }

.promo-banner.hidden { display: none; }

.top-bar {
  background: var(--red);
  color: var(--white);
  padding: var(--space-2) var(--space-10);
  font-size: var(--fs-xs);
  text-align: center;
}

.top-bar a,
.top-bar > span:not(.sep) {
  color: var(--white);
  text-decoration: none;
  margin: 0 var(--space-4);
  font-weight: 500;
}

.top-bar a:hover {
  text-decoration: underline;
  color: var(--white);
}

.top-bar .sep { color: rgba(255, 255, 255, 0.4); }

header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-10);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-fast);
}

/* Desktop: center nav absolutely so it aligns with the page center
   regardless of how wide the logo or Free Estimate button are */
@media (min-width: 769px) {
  header { position: sticky; /* keep sticky but also act as positioning parent */ }
  nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

header.scrolled { box-shadow: var(--shadow-md); }

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

nav {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
  position: relative;
}

nav a:hover { color: var(--white); }
nav a.active { color: var(--gold); }

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-sm);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--white);
  padding: var(--space-1);
}

/* Header-specific override: the Free Estimate button lives on a navy
   header now, so the default navy btn-primary would disappear. Flip it
   to red in this one context. */
header .btn.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

header .btn.btn-primary:hover {
  background: var(--red-dark, #8b1a28);
  border-color: var(--red-dark, #8b1a28);
}


/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Primary — navy */
.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Accent — red (conversion CTA only) */
.btn-accent {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-accent:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 52, 0.35);
}

/* Outline on dark backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Outline on light backgrounds */
.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--navy);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-muted);
  color: var(--navy);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-body);
}

.btn-block {
  display: block;
  width: 100%;
}


/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-5);
}

.form-row-3 .form-group:nth-child(1) { min-width: 0; }
.form-row-3 .form-group:nth-child(2) { width: 120px; }
.form-row-3 .form-group:nth-child(3) { width: 100px; }

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--text-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 41, 81, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: var(--space-2);
}

.form-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

/* Alerts */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border-left: 4px solid;
}

.alert-success {
  background-color: #D1FAE5;
  color: #065F46;
  border-left-color: #10B981;
}

.alert-error {
  background-color: #FEE2E2;
  color: #991B1B;
  border-left-color: #DC2626;
}

.alert-info {
  background-color: #DBEAFE;
  color: #1E40AF;
  border-left-color: var(--navy);
}

/* Honeypot — visually hidden */
.form-honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   9. Page header banner (interior pages)
   -------------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(178, 34, 52, 0.18), transparent 60%);
  pointer-events: none;
}

.page-header > .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-header p {
  color: var(--text-on-dark);
  font-size: var(--fs-body);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}


/* --------------------------------------------------------------------------
   10. Hero (home page)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 20s ease-in-out infinite;
}

@keyframes heroZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback { animation: none; }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hide video on reduced-motion preference — poster/fallback shows instead */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 41, 81, 0.65), rgba(15, 26, 46, 0.78));
  z-index: 1;
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(27, 41, 81, 0.6);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  z-index: 99;
  backdrop-filter: blur(4px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: rgba(27, 41, 81, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 780px;
  padding: var(--space-8) var(--space-5);
}

.hero-logo img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.55);
  border: 5px solid rgba(255, 255, 255, 0.4);
  margin: 0 auto var(--space-6);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.1;
  color: var(--white);
  letter-spacing: 0.5px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero .hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1vw + 0.75rem, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  font-weight: 300;
  opacity: 0.95;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 180px;
}


/* --------------------------------------------------------------------------
   11. Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--navy);
  padding: var(--space-10) var(--space-5);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.trust-icon.red  { background: var(--red); color: var(--white); }
.trust-icon.gold { background: var(--gold); color: var(--navy); }

.trust-text {
  font-weight: 600;
  color: var(--white);
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------------------------
   12. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Slideshow: stacked images that crossfade.
   Primary image has .is-active on page load; js/main.js rotates the
   class every 5s and pauses on hover so people can read the card. */
.card-image-stack {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-image-stack .card-image {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.card-image-stack .card-image.is-active {
  opacity: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* Service card */
.service-features {
  list-style: none;
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.service-features li {
  color: var(--text-body);
  margin-bottom: var(--space-3);
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
}

.service-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
  align-self: flex-start;
  margin-top: auto;
}

.service-link:hover { color: var(--navy); }

/* Testimonial card (dark sections) */
.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: var(--space-4);
  letter-spacing: 3px;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
}

.testimonial-location {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
  margin-top: var(--space-1);
}

/* Value card (About page) */
.value-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-size: var(--fs-h4);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

/* Login card (Portal page) */
.login-card {
  background: var(--white);
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red);
  text-align: center;
}

.login-card img.login-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-5);
}

.login-card h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-3);
}

.login-card > p {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  font-size: var(--fs-sm);
}

.login-card .form-group {
  text-align: left;
}

.login-divider {
  margin: var(--space-6) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}

.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }


/* --------------------------------------------------------------------------
   13. Grids
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
}

.view-all {
  text-align: center;
  margin-top: var(--space-10);
}


/* --------------------------------------------------------------------------
   14. Gallery (filters, items, lightbox)
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: var(--space-2) var(--space-5);
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-muted);
  transition: opacity 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(27, 41, 81, 0.9));
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: var(--fs-h4);
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-8);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}


/* --------------------------------------------------------------------------
   15. CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: var(--space-20) var(--space-5);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.cta-banner p {
  font-size: 1.125rem;
  margin-bottom: var(--space-8);
  font-weight: 300;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* Invert button colors against red background */
.cta-banner .btn-primary,
.cta-banner .btn-accent {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.cta-banner .btn-primary:hover,
.cta-banner .btn-accent:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cta-banner .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-banner .btn-outline:hover {
  background: var(--white);
  color: var(--red);
}


/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: var(--space-16) var(--space-5) 0;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto var(--space-10);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-brand .footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand .footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  color: var(--text-muted-on-dark);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social-links a {
  color: var(--text-muted-on-dark);
  transition: color var(--transition-fast), background var(--transition-fast);
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  color: var(--white);
  margin-bottom: var(--space-5);
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--text-muted-on-dark);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--red-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--text-muted-on-dark);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.footer-contact-item a {
  color: var(--white);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--red-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-dark);
  padding: var(--space-5) 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-faint-on-dark);
}

.footer-bottom a {
  color: var(--text-muted-on-dark);
  text-decoration: none;
  margin: 0 var(--space-2);
}

.footer-bottom a:hover {
  color: var(--red-light);
}


/* --------------------------------------------------------------------------
   17. Responsive breakpoints
   -------------------------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    gap: var(--space-5);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .promo-banner {
    font-size: var(--fs-xs);
    padding: var(--space-2) var(--space-10) var(--space-2) var(--space-4);
  }

  .top-bar {
    padding: var(--space-2) 0;
    font-size: var(--fs-xs);
  }

  .top-bar a {
    margin: 0 var(--space-2);
  }

  header {
    padding: var(--space-3) var(--space-5);
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
    text-align: center;
    z-index: 101;
  }

  nav a {
    color: rgba(255, 255, 255, 0.85);
  }

  nav a:hover {
    color: var(--white);
  }

  nav a.active {
    color: var(--gold);
  }

  nav.active {
    display: flex;
  }

  header > .btn {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-logo img {
    width: 200px;
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .trust-bar {
    gap: var(--space-5);
    padding: var(--space-6) var(--space-5);
  }

  .section,
  .section-lg {
    padding: var(--space-12) 0;
  }

  .services-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .form-row-3 .form-group:nth-child(2),
  .form-row-3 .form-group:nth-child(3) {
    width: auto;
  }

  .cta-banner {
    padding: var(--space-12) var(--space-5);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .page-header {
    padding: var(--space-12) 0 var(--space-10);
  }

  .login-card {
    padding: var(--space-8) var(--space-5);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero {
    min-height: 460px;
  }

  .hero-logo img {
    width: 160px;
    height: 160px;
  }

  .hero p {
    font-size: var(--fs-sm);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    padding: var(--space-3) var(--space-5);
    font-size: var(--fs-sm);
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
