/* Kingdom Quality Roofing and Exteriors - Main Stylesheet */
/* Design: Royal Shield - Spartan warrior aesthetic with maroon + blue palette */

/* ========== CSS Custom Properties ========== */
:root {
  --color-primary: #6B331A;
  --color-primary-dark: #4d2412;
  --color-primary-light: #8b4a2e;
  --color-secondary: #2D59E6;
  --color-secondary-dark: #1e3fa6;
  --color-secondary-light: #4a72f0;
  --color-bg: #ffffff;
  --color-bg-warm: #faf6f2;
  --color-bg-dark: #1a1019;
  --color-bg-maroon: #2e1a12;
  --color-text: #2d2320;
  --color-text-light: #6b5e58;
  --color-text-on-dark: #f0ebe7;
  --color-text-muted: #9a8e88;
  --color-border: #e0d6cf;
  --color-gold: #c8a55a;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 8px rgba(26, 16, 25, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 16, 25, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 16, 25, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 150ms ease;
}

/* ========== Reset ========== */
*, *::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.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-secondary-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
}
.header__logo img {
  height: 48px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 300ms var(--ease-out);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.nav a:hover { color: var(--color-primary); }
.nav a.active { color: var(--color-primary); font-weight: 600; }
.nav__cta {
  background: var(--color-secondary) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover {
  background: var(--color-secondary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.btn:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--color-secondary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 89, 230, 0.3);
}
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--white {
  background: #fff;
  color: var(--color-primary);
}
.btn--white:hover {
  background: var(--color-bg-warm);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg-maroon) 0%, rgba(26, 16, 25, 0.7) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 120px 0 80px;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-out) 100ms both;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-out) 200ms both;
}
.hero__text {
  font-size: 1.15rem;
  color: var(--color-text-on-dark);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-out) 300ms both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-out) 400ms both;
}
.hero__shield {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 360px;
  height: 360px;
  border: 3px solid rgba(200, 165, 90, 0.15);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  animation: scaleIn 1000ms var(--ease-out) 600ms both;
}
.hero__shield::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 2px solid rgba(200, 165, 90, 0.1);
  border-radius: 50%;
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  background: var(--color-bg-maroon);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(200, 165, 90, 0.1);
  border-radius: 50%;
}
.page-hero .section__eyebrow { color: var(--color-gold); }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p {
  color: var(--color-text-on-dark);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ========== Sections ========== */
.section {
  padding: 80px 0;
}
.section--warm {
  background: var(--color-bg-warm);
}
.section--dark {
  background: var(--color-bg-maroon);
  color: var(--color-text-on-dark);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}
.section--dark p {
  color: var(--color-text-on-dark);
}
.section--gradient {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
}
.section__header {
  text-align: center;
  margin-bottom: 48px;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section__header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 580px;
  margin: 12px auto 0;
}

/* ========== Services Overview (Index) ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 300ms var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-warm);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ========== Why Choose Us ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.why-item {
  padding: 36px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.why-item:nth-last-child(-n+2) { border-bottom: none; }
.why-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(200, 165, 90, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-item h4 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.why-item p {
  font-size: 0.9rem;
  color: rgba(240, 235, 231, 0.8);
  line-height: 1.55;
}

/* ========== Trust Bar ========== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-badge__icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 165, 90, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-badge__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 2;
}
.trust-badge span {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 235, 231, 0.7);
}

/* ========== Service Detail Page ========== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail:nth-child(even) .service-detail__img { order: -1; }
.service-detail__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-detail__img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.service-detail__img:hover img { transform: scale(1.03); }
.service-detail__content h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.service-detail__content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}
.service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--color-bg-warm);
  border-radius: 20px;
  color: var(--color-primary);
}
.service-detail__tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}

/* ========== About ========== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p {
  color: var(--color-text-light);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.owner-card {
  background: var(--color-bg-warm);
  border-left: 4px solid var(--color-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
}
.owner-card h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.owner-card span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ========== Awards / Badges ========== */
.badges-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-width: 140px;
  text-align: center;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.badge-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.badge-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}
.badge-item strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}
.badge-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--color-primary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}
.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info__text h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-info__text p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 2px;
}
.contact-info__text a { color: var(--color-secondary); font-weight: 500; }
.contact-info__text a:hover { color: var(--color-secondary-dark); }

/* ========== Form ========== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45, 89, 230, 0.12);
}
.form__group textarea { resize: vertical; min-height: 120px; }
#form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
}
#form-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
#form-status.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ========== Map ========== */
#map,
#map-home {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 0;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-bg-dark);
  padding: 56px 0 0;
  color: var(--color-text-on-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer__brand p {
  font-size: 0.88rem;
  color: rgba(240, 235, 231, 0.65);
  line-height: 1.6;
}
.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  font-size: 0.88rem;
  color: rgba(240, 235, 231, 0.65);
  transition: color var(--transition);
}
.footer ul a:hover { color: #fff; }
.footer ul li:not(:has(a)) {
  font-size: 0.88rem;
  color: rgba(240, 235, 231, 0.65);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom span {
  font-size: 0.82rem;
  color: rgba(240, 235, 231, 0.45);
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.footer__social svg {
  width: 16px;
  height: 16px;
  fill: rgba(240, 235, 231, 0.65);
}

/* ========== Animations ========== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal--left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal--right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible,
.reveal--left.visible,
.reveal--right.visible,
.reveal--scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ========== Service Area ========== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.area-tag {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition);
}
.area-tag:hover {
  background: var(--color-bg-warm);
  border-color: var(--color-primary-light);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right 300ms var(--ease-out);
    z-index: 100;
  }
  .nav.open { right: 0; }
  .nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }
  .nav a::after { display: none; }
  .nav__cta {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    width: 100% !important;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero__content { padding: 100px 0 60px; }
  .hero__shield { display: none; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .service-detail:nth-child(even) .service-detail__img { order: 0; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-img img { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(odd) { border-right: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .badges-row { gap: 12px; }
  .badge-item { min-width: 120px; padding: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: 85vh; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .trust-bar { gap: 24px; }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal--left, .reveal--right, .reveal--scale {
    opacity: 1;
    transform: none;
  }
}
