/* ═══════════════════════════════════════════════════════════════
   GREENFIELD HOME SERVICES — Tier 1 Demo Stylesheet
   Design System: "The Digital Estate"
   Pure CSS — no frameworks, no build tools
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Primary (The Forest) */
  --color-primary: #1B3A2D;
  --color-primary-dark: #061b0e;
  --color-primary-container: #1b3022;
  --color-on-primary: #ffffff;

  /* Secondary (The Slate) */
  --color-secondary: #58615a;
  --color-on-surface-variant: #434843;

  /* Tertiary / Accent (Gold) */
  --color-accent: #C49A3C;
  --color-accent-light: #e9c176;
  --color-accent-bg: #ffdea5;

  /* Surfaces (Warm Off-White Tiers) */
  --color-surface: #F5F2EC;
  --color-surface-low: #f0ede7;
  --color-surface-container: #eae7e1;
  --color-surface-high: #e4e1db;
  --color-surface-highest: #dedad4;
  --color-surface-lowest: #ffffff;

  /* Text */
  --color-text: #1A1A1A;
  --color-text-light: #58615a;
  --color-text-on-dark: #ffffff;
  --color-text-muted: rgba(245, 242, 236, 0.8);

  /* Functional */
  --color-outline: rgba(195, 200, 193, 0.2);

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 80rem;
  --container-pad: 1.25rem;

  /* Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Shadows (ambient — no pure black) */
  --shadow-card: 0 2px 24px rgba(26, 26, 26, 0.03);
  --shadow-float: 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-hover: 0 16px 48px rgba(26, 26, 26, 0.08);

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s ease;
  --t-image: 0.7s ease;

  /* Nav */
  --nav-bg: rgba(245, 242, 236, 0.92);
  --nav-blur: 16px;
  --nav-height: 4.25rem;
}


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

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

body {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

ul, ol { list-style: none; }

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


/* ── Typography Scale ──────────────────────────────────────── */
.display { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h1       { font-size: clamp(2rem, 5vw, 3.5rem); }
h2       { font-size: clamp(1.75rem, 4vw, 3rem); }
h3       { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4       { font-size: clamp(1.1rem, 2vw, 1.25rem); }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: all var(--t-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-accent:hover {
  background: var(--color-accent-light);
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-on-primary);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  z-index: 100;
  transition: box-shadow var(--t-base);
}
.site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(26, 26, 26, 0.06);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-links {
  display: none;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  transition: color var(--t-fast);
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active {
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 2px 0 var(--color-accent);
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--t-fast);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  padding: var(--space-sm) 0;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.06);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.875rem var(--container-pad);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  min-height: 44px;
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-primary);
  background: var(--color-surface-low);
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/hero.jpg') center / cover no-repeat fixed;
  padding-top: var(--nav-height);
}
/* iOS doesn't support background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 27, 14, 0.82) 0%,
    rgba(27, 58, 45, 0.6) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: var(--space-3xl) var(--container-pad);
}
.hero .label {
  color: var(--color-accent-light);
  animation: heroFadeUp 0.7s ease both 0.2s;
}
.hero-title {
  color: var(--color-on-primary);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  animation: heroFadeUp 0.7s ease both 0.4s;
}
.hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: heroFadeUp 0.7s ease both 0.6s;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: heroFadeUp 0.7s ease both 0.8s;
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: center / cover no-repeat;
  padding-top: var(--nav-height);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 27, 14, 0.85) 0%,
    rgba(27, 58, 45, 0.75) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--container-pad);
}
.page-hero .label {
  animation: heroFadeUp 0.7s ease both 0.2s;
}
.page-hero h1 {
  color: var(--color-on-primary);
  margin-top: var(--space-xs);
  animation: heroFadeUp 0.7s ease both 0.4s;
}
.page-hero .label { color: var(--color-accent-light); }
.page-hero .accent { color: var(--color-accent-light); }


/* ═══════════════════════════════════════════════════════════════
   SECTIONS — General
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-3xl) 0;
}
.section-alt {
  background: var(--color-surface-low);
}
.section-dark {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-on-primary);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-2xl);
}
.section-header p {
  color: var(--color-secondary);
  margin-top: var(--space-sm);
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   HERITAGE TILES (Service Cards)
   ═══════════════════════════════════════════════════════════════ */
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.heritage-tile {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.heritage-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.tile-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.tile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-image);
}
.heritage-tile:hover .tile-image-wrap img {
  transform: scale(1.08);
}

/* Gold accent bar */
.tile-accent {
  height: 2px;
  background: var(--color-accent);
}

.tile-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.tile-body h3 {
  margin-bottom: var(--space-xs);
}
.tile-body p {
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--t-fast);
}
.tile-link:hover { gap: 0.6rem; }
.tile-link .arrow {
  transition: transform var(--t-fast);
}
.tile-link:hover .arrow { transform: translateX(4px); }

/* Square tile variant (services page — no image) */
.tile-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-low);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.tile-compact .tile-body {
  padding: var(--space-lg);
}
.tile-compact .tile-accent {
  height: 3px;
}


/* ═══════════════════════════════════════════════════════════════
   STATS STRIP (Animated Counters)
   ═══════════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--color-primary);
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}
.stat-item { padding: var(--space-sm); }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIAL CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.testimonials { overflow: hidden; }

.testimonial-wrap {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 var(--container-pad);
}
.testimonial-card-inner {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.testimonial-quote-icon {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-lg);
}

.testimonial-text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  color: var(--color-primary);
}
.testimonial-location {
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-top: 0.2rem;
}

/* Carousel arrows */
.testimonial-arrows {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.testimonial-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-lowest);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-card);
}
.testimonial-arrow:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Carousel dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-surface-high);
  transition: all var(--t-fast);
  cursor: pointer;
}
.testimonial-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}


/* ═══════════════════════════════════════════════════════════════
   CTA SECTION (Asymmetric 2-col)
   ═══════════════════════════════════════════════════════════════ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.cta-image-wrap {
  position: relative;
}
.cta-image-wrap img {
  border-radius: var(--radius-lg);
}
/* Decorative blur circle behind image */
.cta-image-wrap::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  bottom: -8%;
  right: -8%;
  background: var(--color-accent);
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.cta-content h2 { margin-bottom: var(--space-sm); }
.cta-content p {
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════════════════════════ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
.trust-item {
  padding: var(--space-lg) var(--space-sm);
}
.trust-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}
.trust-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-on-primary);
  margin-bottom: 0.3rem;
}
.trust-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   TEAM CARDS
   ═══════════════════════════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.team-card {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--t-image);
}
.team-card:hover .team-card-image img {
  filter: grayscale(0%);
}

.team-card-body {
  padding: var(--space-md) var(--space-lg);
}
.team-card-body h3 {
  margin-bottom: 0.15rem;
}
.team-card-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}
.team-card-bio {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT — Company Story (2-col)
   ═══════════════════════════════════════════════════════════════ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.story-text h2 { margin-bottom: var(--space-sm); }
.story-text p {
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}
.story-image img {
  border-radius: var(--radius-lg);
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.form-control {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.875rem var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface-high);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  background: var(--color-surface-lowest);
  border-bottom-color: var(--color-primary);
}
.form-control::placeholder {
  color: var(--color-secondary);
  opacity: 0.6;
}

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

/* Business hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hours-table thead th {
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem var(--space-sm);
  text-align: left;
}
.hours-table tbody tr:nth-child(odd) {
  background: var(--color-surface-lowest);
}
.hours-table tbody tr:nth-child(even) {
  background: var(--color-surface-low);
}
.hours-table td {
  padding: 0.75rem var(--space-sm);
  color: var(--color-text);
}

/* Address block */
.address-block {
  margin-top: var(--space-lg);
}
.address-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: var(--color-secondary);
}
.address-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-accent);
  width: 1.5rem;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-text-muted);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-on-primary);
  margin-bottom: var(--space-xs);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--color-on-primary); }

.footer-bottom {
  padding-top: var(--space-lg);
  font-size: 0.8rem;
  color: rgba(245, 242, 236, 0.5);
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   FLOATING CTA
   ═══════════════════════════════════════════════════════════════ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(196, 154, 60, 0.35);
  z-index: 50;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  min-height: 44px;
  touch-action: manipulation;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--color-accent-light);
  box-shadow: 0 6px 28px rgba(196, 154, 60, 0.45);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (min 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --container-pad: 2rem; }

  .tiles-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(3, 1fr); }
  .trust-grid       { grid-template-columns: repeat(4, 1fr); }
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .story-grid       { grid-template-columns: 1fr 1fr; }
  .cta-grid         { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 7fr 5fr; }
  .footer-grid      { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Desktop (min 769px+)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  .hamburger    { display: none; }
  .mobile-menu  { display: none !important; }

  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }

  .tiles-grid       { grid-template-columns: repeat(3, 1fr); }
  .team-grid        { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 2fr 1fr 1fr 1fr; }

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

  .hero-content { padding: var(--space-4xl) var(--container-pad); }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (max 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .page-hero {
    min-height: 18rem;
  }
  .testimonial-card-inner {
    padding: var(--space-lg);
  }
  .floating-cta {
    right: 1rem;
    bottom: 1rem;
    font-size: 0.75rem;
    padding: 0.75rem 1.25rem;
  }
}


/* ── Hero Fade-Up Keyframe ──────────────────────────────────── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero {
    background-attachment: scroll;
  }
}
