/* ==========================================================================
   Goodnest — Auckland Home Services Marketplace
   Mobile-first responsive design
   Brand: Blue #106BB5, Green #4A9A17
   ========================================================================== */

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

:root {
  --blue: #0D6EBD;
  --blue-dark: #0A5494;
  --blue-light: #E8F4FD;
  --blue-50: #F0F7FF;
  --green: #3D8B14;
  --green-dark: #2E6A0F;
  --green-light: #EBF5E5;
  --green-bright: #4A9A17;
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F1F5F8;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;
  --gray-400: #A0AEC0;
  --gray-500: #718096;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A2332;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-800);
}

h1 { font-size: 2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

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

.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-height: 48px;
  min-width: 44px;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(61, 139, 20, 0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61, 139, 20, 0.4);
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13, 110, 189, 0.3);
}
.btn-secondary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 110, 189, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--gray-50);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo span {
  color: var(--green);
}

/* Desktop nav — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

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

.header-cta {
  display: none;
}

/* Hamburger — visible on mobile */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--blue);
}

.mobile-nav .btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  overflow: hidden;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 280px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 110, 189, 0.15) 0%,
    rgba(13, 110, 189, 0.35) 100%
  );
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin: 12px 0 24px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.hero-trust .stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-blue .section-header .label {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-card h3 {
  color: var(--gray-800);
}

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

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  object-fit: contain;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.service-card .link-arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card .link-arrow::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card:hover .link-arrow::after {
  transform: translateX(4px);
}

/* ---------- Category List (services page) ---------- */
.category-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.category-section:last-child {
  border-bottom: none;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.service-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  background: var(--blue-50);
}

.service-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
}

.service-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

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

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

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

/* ---------- Features / Benefits ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

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

/* Blue section features */
.section-blue .feature-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.section-blue .feature-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-blue .feature-card p {
  color: rgba(255,255,255,0.8);
}

/* ---------- Two-Column Content ---------- */
.split-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.split-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  text-align: center;
  color: var(--white);
}

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

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 24px;
}

.cta-banner .btn {
  min-width: 200px;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 189, 0.15);
}

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

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

/* Contact form card */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

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

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

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

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

/* ---------- Dual CTA Row ---------- */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.dual-cta-card {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dual-cta-card.customer {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}

.dual-cta-card.worker {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}

.dual-cta-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.dual-cta-card p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ---------- Image with text overlay ---------- */
.img-overlay-section {
  position: relative;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.img-overlay-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 84, 148, 0.88), rgba(26, 35, 50, 0.85));
}

.img-overlay-section .container {
  position: relative;
  z-index: 1;
}

/* ---------- Worker benefits ---------- */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--blue);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Legal pages ---------- */
.legal-content {
  padding: 120px 0 60px;
}

.legal-content h1 {
  margin-bottom: 32px;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
  color: var(--gray-600);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 1em;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 0.5em;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
}

/* ---------- Responsive: Tablet (768px+) ---------- */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .section { padding: 80px 0; }

  .hero {
    min-height: auto;
    flex-direction: row;
    align-items: stretch;
  }

  .hero-image-wrapper {
    width: 50%;
    height: auto;
    min-height: 500px;
    order: 2;
  }

  .hero-content {
    width: 50%;
    padding: 40px 40px 40px 40px;
    order: 1;
    justify-content: center;
  }

  .hero h1 { font-size: 2.4rem; }

  .hero-ctas {
    flex-direction: row;
  }

  .hero-ctas .btn {
    width: auto;
  }

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

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

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

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .split-content {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

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

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

  .dual-cta {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-hero { padding: 120px 0 80px; }
  .page-hero h1 { font-size: 2.5rem; }

  .contact-form-card { padding: 40px; }
}

/* ---------- Responsive: Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .nav-links {
    display: flex;
  }

  .header-cta {
    display: block;
  }

  h1 { font-size: 3rem; }

  .hero-content {
    padding: 60px;
  }

  .hero h1 { font-size: 2.8rem; }

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

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ---------- Responsive: Large Desktop (1280px+) ---------- */
@media (min-width: 1280px) {
  .container { padding: 0 32px; }

  .hero h1 { font-size: 3.2rem; }
}

/* ---------- Utilities ---------- */
.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;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure no horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
