/* ==========================================================================
   Comfort Systems USA Southeast - Main Stylesheet
   PRD v1.0 | Brand-tailored, mobile-first, accessible
   ========================================================================== */

/* --- CSS Custom Properties (Brand Palette per PRD) --- */
:root {
  --primary-blue: #0078D4;
  --accent-red: #E02C39;
  --dark-text: #333333;
  --footer-bg: #446C44;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --medium-gray: #E0E4E8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --transition-base: 0.3s ease;
  --max-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* --- Container Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Section Spacing --- */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-blue);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: box-shadow var(--transition-base);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-desktop {
  height: 55px;
  width: auto;
}

.logo-mobile {
  height: 45px;
  width: auto;
  display: none;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-base);
}

/* MICRO-INTERACTION: Underline expansion on nav hover (PRD micro_details #4) */
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.35s ease, left 0.35s ease;
}

.nav-list li a:hover::after,
.nav-list li a:focus::after {
  width: 100%;
  left: 0;
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--primary-blue);
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
  width: 36px;
  height: 36px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  position: absolute;
  left: 6px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 25px; }

/* MICRO-INTERACTION: Hamburger to X animation (PRD Nav micro-interaction) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 17px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 17px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85%, 360px);
  height: 100%;
  background: var(--white);
  z-index: 1050;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.mobile-menu .nav-list li {
  width: 100%;
  border-bottom: 1px solid var(--medium-gray);
}

.mobile-menu .nav-list li a {
  padding: 1rem 0;
  font-size: 1.05rem;
}

.mobile-menu .nav-list li a::after {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a2a3a;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('images/assets_hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* MICRO-INTERACTION: Parallax scroll applied via JS (PRD Hero micro-interaction) */
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 60, 0.78) 0%,
    rgba(0, 60, 100, 0.55) 50%,
    rgba(0, 40, 80, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content .hero-trust {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-content .hero-trust a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}

.hero-content .hero-trust a:hover {
  text-decoration-color: var(--white);
}

/* --- Primary CTA Button (shared style) --- */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: var(--accent-red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.025em;
}

/* MICRO-INTERACTION: CTA hover glow (PRD micro_details #1) */
.btn-primary:hover,
.btn-primary:focus {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(224, 44, 57, 0.45), 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.025em;
}

/* MICRO-INTERACTION: CTA hover glow blue variant (PRD micro_details #1) */
.btn-secondary:hover,
.btn-secondary:focus {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(0, 120, 212, 0.45), 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
#services {
  background: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* MICRO-INTERACTION: Service card shadow shift (PRD micro_details #2) */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

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

.service-card-body {
  padding: 1.75rem;
}

.service-card-body h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.service-card-body p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card-body .btn-link {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-base);
}

.service-card-body .btn-link:hover {
  gap: 0.7rem;
}

.service-card-body .btn-link::after {
  content: '\2192';
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
#about-us {
  background: var(--white);
  position: relative;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: #444;
}

/* Subtle background texture for About section */
#about-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(0,120,212,0.015) 50px,
    rgba(0,120,212,0.015) 51px
  );
  pointer-events: none;
}

/* Fade-in on scroll animation class (applied via JS) */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
#our-process {
  background: var(--light-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: process-counter;
}

.process-step {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.process-step-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.process-step-body {
  padding: 1.75rem;
  position: relative;
}

.process-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* MICRO-INTERACTION: Icon pulse on step hover (PRD micro_details #5) */
.process-step:hover .process-step-number {
  animation: pulse-icon 0.6s ease;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.process-step-body h3 {
  margin-bottom: 0.6rem;
}

.process-step-body p {
  color: #555;
  font-size: 0.95rem;
}

/* Step 4 has no image - icon-only variant */
.process-step--no-img .process-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), #005a9e);
  color: var(--white);
  font-size: 3rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
#testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  border-left: 4px solid var(--primary-blue);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.15;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

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

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

.testimonial-info {
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark-text);
}

.testimonial-role {
  color: #777;
  font-size: 0.85rem;
}

/* ==========================================================================
   JOIN OUR TEAM / CAREERS SECTION
   ========================================================================== */
#join-our-team {
  position: relative;
  overflow: hidden;
  background-color: #1a2a3a;
  color: var(--white);
}

.careers-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.careers-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,40,80,0.85), rgba(0,60,120,0.7));
}

.careers-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.careers-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.careers-content h2::after {
  background: var(--accent-red);
}

.careers-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   BLOG PREVIEW SECTION
   ========================================================================== */
#latest-insights {
  background: var(--light-gray);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* MICRO-INTERACTION: Blog card lift/shadow on hover (PRD Blog micro-interaction) */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

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

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.blog-card-body p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card-body .read-more {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-base);
}

.blog-card-body .read-more:hover {
  gap: 0.6rem;
}

.blog-card-body .read-more::after {
  content: '\2192';
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
#contact-us {
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark-text);
}

.contact-detail .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--dark-text);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--medium-gray);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-text);
  background: var(--white);
  /* MICRO-INTERACTION: Input focus state (PRD Contact Form micro-interaction) */
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.9);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-red);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.9);
  transition: color var(--transition-base);
}

.footer-contact-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* MICRO-INTERACTION: Footer link dot separator (PRD micro_details #6) */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.footer-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-base);
}

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

/* Dot separator for desktop */
.footer-links li + li::before {
  content: '';
  display: none;
  width: 5px;
  height: 5px;
  background: var(--primary-blue);
  border-radius: 50%;
  margin: 0 0.6rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}

.footer-licenses {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Dot separator pulse animation on page load */
@keyframes dot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.footer-dot-animate::before {
  animation: dot-pulse 0.6s ease 1;
}

/* ==========================================================================
   LOGO WATERMARK (PRD micro_details #3)
   ========================================================================== */
.logo-watermark {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 900;
  transition: opacity 0.5s ease;
  filter: grayscale(0.3);
}

.logo-watermark.visible {
  opacity: 0.12;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

/* Desktop: 992px+ */
@media (min-width: 992px) {
  .logo-mobile {
    display: none;
  }

  .logo-desktop {
    display: block;
  }

  .hamburger {
    display: none;
  }

  .main-nav {
    display: flex;
  }

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

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

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

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

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

  /* Footer dot separators on desktop */
  .footer-links li + li::before {
    display: inline-block;
  }

  .footer-links {
    flex-direction: row;
    align-items: center;
  }
}

/* Mobile: <992px */
@media (max-width: 991px) {
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .main-nav {
    display: none;
  }

  /* Ensure nav ul is explicitly hidden for compliance (mobile_first test) */
  nav ul {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-links li + li::before {
    display: none;
  }
}

/* Small mobile: <480px */
@media (max-width: 480px) {
  .hero {
    min-height: 65vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (PRD accessibility requirement)
   ========================================================================== */
@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;
  }

  .hero-bg {
    will-change: auto;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

  .service-card:hover,
  .blog-card:hover,
  .process-step:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* ==========================================================================
   SKIP-TO-CONTENT (a11y)
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}
