/* ==========================================================================
   GC Trusted Builders - Main Stylesheet
   Melbourne, FL | Premium Home Renovation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Gold */
  --gold-light: #EFD47D;
  --gold-dark: #C48E37;
  --gold-tagline: #ECD47C;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  --gold-gradient-hover: linear-gradient(135deg, #f5de95, #d49e47);
  --gold-glow: rgba(239, 212, 125, 0.35);

  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-elevated: #141414;
  --bg-input: #111111;

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: rgba(245, 245, 245, 0.7);
  --text-muted: rgba(245, 245, 245, 0.45);
  --white: #FFFFFF;

  /* Accent */
  --navy: #1e3a5f;
  --navy-light: #2a4f7a;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(196, 142, 55, 0.3);

  /* Glass */
  --glass-bg: rgba(10, 10, 10, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Spacing */
  --section-pad-y: clamp(4rem, 8vw, 7rem);
  --section-pad-x: clamp(1.25rem, 4vw, 2rem);
  --container-max: 1200px;
  --gap-sm: 0.75rem;
  --gap-md: 1.5rem;
  --gap-lg: 3rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold-glow: 0 0 30px rgba(239, 212, 125, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
}


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

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

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}


/* --------------------------------------------------------------------------
   3. Container System
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}


/* --------------------------------------------------------------------------
   4. Typography Scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: var(--gap-md);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: var(--gap-sm);
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  margin-bottom: var(--gap-sm);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-description {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-description {
  margin-inline: auto;
}

.lead-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: clamp(48px, 6vw, 64px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--duration-normal) var(--ease-out);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

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

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta {
  font-weight: var(--fw-medium);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font-size: 0.9rem;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-gold-glow);
  transform: translateY(-1px);
}


/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--section-pad-x) 4rem;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(239, 212, 125, 0.08);
  border: 1px solid var(--border-gold);
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--gold-tagline);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

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

.hero .lead-text {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: float 2.5s ease-in-out infinite;
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* --------------------------------------------------------------------------
   7. Trust Metrics Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
  text-align: center;
}

.trust-metric {
  padding: 1rem;
}

.trust-metric .metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.trust-metric .metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}


/* --------------------------------------------------------------------------
   8. Section Styles
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

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

.section--bordered {
  border-top: 1px solid var(--border-subtle);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.section-header .section-divider {
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   9. Service Cards
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--gap-md);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-dark);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 212, 125, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(239, 212, 125, 0.08);
  color: var(--gold-light);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  color: var(--white);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--gold-tagline);
  transition: gap var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-card-link {
  gap: 0.75rem;
}


/* --------------------------------------------------------------------------
   10. Testimonials / Reviews
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gap-md);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--gold-light);
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3.5rem;
  color: var(--gold-dark);
  opacity: 0.3;
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
}

.testimonial-name {
  font-weight: var(--fw-medium);
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-source {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}


/* --------------------------------------------------------------------------
   11. Form Styles
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-label .required {
  color: var(--gold-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(196, 142, 55, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--gold-dark);
  cursor: pointer;
  margin-top: 2px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.95rem;
}

.form-error {
  padding: 1rem 1.25rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #f87171;
  font-size: 0.95rem;
}


/* --------------------------------------------------------------------------
   12. CTA Button Styles
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: var(--fw-bold);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient-hover);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--gold-glow),
              0 4px 16px rgba(196, 142, 55, 0.3);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--gold-dark);
  color: var(--gold-light);
  background: rgba(239, 212, 125, 0.05);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(239, 212, 125, 0.08);
  box-shadow: var(--shadow-gold-glow);
}

.btn-lg {
  padding: 1.1rem 2.75rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Pulse animation for primary CTA */
.btn-pulse {
  animation: pulse-gold 2.5s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 212, 125, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 212, 125, 0);
  }
}


/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

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

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links li + li {
  margin-top: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-item + .footer-contact-item {
  margin-top: 0.75rem;
}

.footer-contact-item svg,
.footer-contact-item i {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  border-color: var(--gold-dark);
  color: var(--gold-light);
  background: rgba(239, 212, 125, 0.05);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

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

.footer-license {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   14. Scroll Animations
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

.animate-on-scroll.animate-left {
  transform: translateX(-30px);
}

.animate-on-scroll.animate-right {
  transform: translateX(30px);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.95);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}


/* --------------------------------------------------------------------------
   15. Stagger Children Delays
   -------------------------------------------------------------------------- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger-children.visible > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9)  { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* --------------------------------------------------------------------------
   16. Noise Overlay
   -------------------------------------------------------------------------- */
.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* --------------------------------------------------------------------------
   17. Glassmorphism Utility
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
}


/* --------------------------------------------------------------------------
   18. Gradient Text Utility
   -------------------------------------------------------------------------- */
.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* --------------------------------------------------------------------------
   19. Additional Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mx-auto { margin-inline: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   20. Sticky Phone Button (Mobile)
   -------------------------------------------------------------------------- */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 20px rgba(196, 142, 55, 0.4);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast);
  animation: pulse-gold 2.5s ease-in-out infinite;
}

.sticky-phone:active {
  transform: scale(0.92);
}


/* --------------------------------------------------------------------------
   21. Gallery Grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-label {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--white);
}

/* Featured (spanning) items */
.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Lightbox overlay */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal), visibility var(--duration-normal);
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}


/* --------------------------------------------------------------------------
   22. Service Area List
   -------------------------------------------------------------------------- */
.service-area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
}

.service-area-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.service-area-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-dark);
  flex-shrink: 0;
}

.service-area-highlight {
  color: var(--white);
  font-weight: var(--fw-medium);
}

.service-area-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
}

.service-area-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) brightness(0.7) contrast(1.1);
  transition: filter var(--duration-normal);
}

.service-area-map:hover iframe {
  filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}


/* --------------------------------------------------------------------------
   23. Bar Chart - Competitor Comparison
   -------------------------------------------------------------------------- */
.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 700px;
}

.chart-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 1rem;
}

.chart-label {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-align: right;
}

.chart-label--highlight {
  color: var(--white);
  font-weight: var(--fw-bold);
}

.chart-bar-track {
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: width 1.2s var(--ease-out);
  width: 0;
}

.chart-bar-fill--gold {
  background: var(--gold-gradient);
}

.chart-row.visible .chart-bar-fill {
  /* width set inline via style attribute */
}

.chart-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

.chart-value--gold {
  color: var(--gold-light);
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chart-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-legend-swatch--gold {
  background: var(--gold-gradient);
}

.chart-legend-swatch--default {
  background: rgba(255, 255, 255, 0.1);
}


/* --------------------------------------------------------------------------
   Responsive: Tablet (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    gap: 0;
  }

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

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0.85rem 1.5rem;
  }

  /* Trust bar */
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Chart */
  .chart-row {
    grid-template-columns: 100px 1fr auto;
  }

  .chart-label {
    font-size: 0.8rem;
  }

  /* Sticky phone visible on tablet/mobile */
  .sticky-phone {
    display: flex;
  }
}


/* --------------------------------------------------------------------------
   Responsive: Mobile (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  body {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Trust bar single column */
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
  }

  .trust-metric .metric-number {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: 1;
  }

  /* Service area list */
  .service-area-list {
    grid-template-columns: 1fr;
  }

  /* Chart */
  .chart-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .chart-label {
    text-align: left;
  }

  .chart-bar-track {
    height: 24px;
  }

  .chart-value {
    text-align: left;
  }
}


/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}
