/* ==========================================
   HandyMan Joe Services - Design System
   ========================================== */

:root {
  --dark: #0c1524;
  --dark-light: #1a2333;
  --dark-mid: #2a3340;
  --coral: #fe8159;
  --coral-dark: #e87048;
  --coral-light: #f7bdab;
  --white: #ffffff;
  --light-bg: #f5f7fb;
  --light-bg-alt: #fbfcfd;
  --gray-100: #f0f3f8;
  --gray-200: #dee6ec;
  --gray-300: #b3b6ba;
  --gray-400: #7e828a;
  --gray-500: #636973;
  --gray-600: #3a434f;
  --border-light: #e2e9ef;
  --border-dark: #b4bcc4;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(12, 21, 36, 0.08);
  --shadow-md: 0 4px 16px rgba(12, 21, 36, 0.1);
  --shadow-lg: 0 8px 32px rgba(12, 21, 36, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --section-padding: 100px 24px;
}

/* ==========================================
   Reset & Base
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 12px;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 129, 89, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* ==========================================
   Header / Navigation
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
}

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

.nav-cta {
  padding: 10px 24px;
  background: var(--coral);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
}

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

.nav-cta:hover {
  background: var(--coral-dark);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  padding: 180px 24px 120px;
  background: url('../images/hero-bg.jpg') 72% center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 21, 36, 0.62) 0%, rgba(12, 21, 36, 0.38) 50%, rgba(12, 21, 36, 0.12) 100%),
    linear-gradient(to bottom, rgba(12, 21, 36, 0.08) 0%, rgba(12, 21, 36, 0.28) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero .section-label {
  color: var(--coral-light);
}

.hero-content h1 {
  margin-bottom: 20px;
  color: var(--white);
}

.hero-content h1 .highlight {
  color: var(--coral);
  position: relative;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Hero Trust Panel (replaces image card)
   ========================================== */

.hero-trust-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.trust-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.trust-stars {
  color: #f5c842;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.trust-score {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.trust-quote {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}

.trust-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.trust-location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.badge-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 8s ease;
}

.hero-image-wrapper:hover .hero-photo {
  transform: scale(1.03);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(12, 21, 36, 0.18) 0%, transparent 45%),
    linear-gradient(to top, rgba(12, 21, 36, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, transparent 40%, rgba(12, 21, 36, 0.25) 100%);
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-icon {
  width: 44px;
  height: 44px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-text .float-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.float-text .float-sub {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.hero-accent-dots {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--coral-light) 3px, transparent 3px);
  background-size: 16px 16px;
}

/* ==========================================
   Services Section (Dark)
   ========================================== */

.services {
  padding: var(--section-padding);
  background: var(--dark);
  color: var(--white);
  position: relative;
}

.services .section-label {
  color: var(--coral-light);
}

.services h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.services-intro {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--dark-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* Card background image */
.service-card::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

/* Dark gradient overlay */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(12, 21, 36, 0.55) 70%, rgba(12, 21, 36, 0.85) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Per-service background images */
.service-card:nth-child(1)::before { background-image: url('../images/service-plumbing.jpg'); }
.service-card:nth-child(2)::before { background-image: url('../images/service-electrical.jpg'); }
.service-card:nth-child(3)::before { background-image: url('../images/service-carpentry.jpg'); }
.service-card:nth-child(4)::before { background-image: url('../images/service-painting.jpg'); }
.service-card:nth-child(5)::before { background-image: url('../images/service-hvac.jpg'); }
.service-card:nth-child(6)::before { background-image: url('../images/service-general.jpg'); }
.service-card:nth-child(7)::before { background-image: url('../images/service-bakkie.jpg'); }
.service-card:nth-child(8)::before { background-image: url('../images/service-removals.jpg'); }
.service-card:nth-child(9)::before { background-image: url('../images/service-cleaning.jpg'); }

/* Content above backgrounds */
.service-card > * {
  position: relative;
  z-index: 1;
}

/* Hover — card lift */
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(254, 129, 89, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(254, 129, 89, 0.12);
}

/* Hover — background image reveal + slow zoom */
.service-card:hover::before {
  opacity: 0.28;
  transform: scale(1.06);
}

/* Icon */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}

/* Hover — icon bounce + glow */
.service-card:hover .service-icon {
  transform: scale(1.18) rotate(-4deg);
}

.service-icon.plumbing { background: rgba(254, 129, 89, 0.15); color: var(--coral); }
.service-icon.electrical { background: rgba(100, 180, 255, 0.15); color: #64b4ff; }
.service-icon.carpentry { background: rgba(180, 140, 100, 0.15); color: #b48c64; }
.service-icon.painting { background: rgba(160, 200, 140, 0.15); color: #a0c88c; }
.service-icon.hvac { background: rgba(140, 160, 200, 0.15); color: #8ca0c8; }
.service-icon.general { background: rgba(200, 160, 180, 0.15); color: #c8a0b4; }
.service-icon.bakkie { background: rgba(140, 200, 180, 0.15); color: #8cc8b4; }
.service-icon.removals { background: rgba(220, 180, 100, 0.15); color: #dcb464; }
.service-icon.cleaning { background: rgba(160, 200, 220, 0.15); color: #a0c8dc; }

/* Hover — icon accent glow */
.service-card:hover .service-icon.plumbing { box-shadow: 0 0 20px rgba(254, 129, 89, 0.3); }
.service-card:hover .service-icon.electrical { box-shadow: 0 0 20px rgba(100, 180, 255, 0.3); }
.service-card:hover .service-icon.carpentry { box-shadow: 0 0 20px rgba(180, 140, 100, 0.3); }
.service-card:hover .service-icon.painting { box-shadow: 0 0 20px rgba(160, 200, 140, 0.3); }
.service-card:hover .service-icon.hvac { box-shadow: 0 0 20px rgba(140, 160, 200, 0.3); }
.service-card:hover .service-icon.general { box-shadow: 0 0 20px rgba(200, 160, 180, 0.3); }
.service-card:hover .service-icon.bakkie { box-shadow: 0 0 20px rgba(140, 200, 180, 0.3); }
.service-card:hover .service-icon.removals { box-shadow: 0 0 20px rgba(220, 180, 100, 0.3); }
.service-card:hover .service-icon.cleaning { box-shadow: 0 0 20px rgba(160, 200, 220, 0.3); }

.service-card h3 {
  color: var(--white);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

/* Hover — heading subtly shifts to coral */
.service-card:hover h3 {
  color: var(--coral);
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--gray-300);
}

/* ==========================================
   About Section
   ========================================== */

.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: var(--shadow-lg);
}

.about-experience-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--coral);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-experience-badge .years {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.8rem;
  opacity: 0.9;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content .lead {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature .check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: rgba(254, 129, 89, 0.12);
  color: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.about-feature span {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ==========================================
   How It Works
   ========================================== */

.how-it-works {
  padding: var(--section-padding);
  background: var(--light-bg-alt);
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 12px;
}

.how-it-works .section-subtitle {
  color: var(--gray-400);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-number {
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 8px;
}

.step-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ==========================================
   CTA Banner (Full Coral)
   ========================================== */

.cta-banner {
  padding: 80px 24px;
  background: var(--coral);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--coral);
  border-color: var(--white);
  font-size: 1.05rem;
  padding: 16px 40px;
}

.cta-banner .btn-primary:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  box-shadow: 0 6px 24px rgba(12, 21, 36, 0.3);
}

/* ==========================================
   Testimonials
   ========================================== */

.testimonials {
  padding: var(--section-padding);
  background: var(--white);
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 12px;
}

.testimonials .section-subtitle {
  color: var(--gray-400);
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray-500);
}

.author-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
  padding: var(--section-padding);
  background: url('../images/contact-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 21, 36, 0.78) 0%, rgba(12, 21, 36, 0.55) 45%, rgba(12, 21, 36, 0.32) 100%),
    linear-gradient(to top, rgba(12, 21, 36, 0.15) 0%, rgba(12, 21, 36, 0.35) 100%);
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info .section-label {
  color: var(--coral-light);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--coral);
  box-shadow: var(--shadow-sm);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light-bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(254, 129, 89, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.contact-form .btn-primary {
  justify-self: start;
  margin-top: 4px;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 72px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-hours {
  display: grid;
  gap: 10px;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-hours li span:first-child {
  color: var(--gray-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--coral);
  color: var(--white);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-trust-panel {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-image-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact .container {
    grid-template-columns: 1fr;
  }

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

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

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-stats {
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered entrance for service cards */
.services-grid .service-card[data-animate] {
  opacity: 0;
}

.services-grid .service-card.animate-in {
  animation-delay: var(--stagger, 0s);
  animation-fill-mode: both;
}

/* ==========================================
   Utility: visually hidden
   ========================================== */

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