/* ========================================
   Austin's Best Plumbing - Styles
   Heritage Craftsman Aesthetic
   ======================================== */

/* --- Custom Properties --- */
:root {
  --primary: #032ca6;
  --primary-dark: #021d6e;
  --primary-light: #e8eefb;
  --accent: #d4a84b;
  --accent-dark: #b8903a;
  --dark: #0a1628;
  --dark-mid: #162035;
  --light: #f8f9fc;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 16px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.14);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Gelasio', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-lg { padding: 100px 0; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  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: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav a.active { color: var(--primary); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}
.header-cta:hover { background: var(--primary-dark); color: var(--white) !important; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.header-cta:active { transform: translateY(0); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-kitchen.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,44,166,0.92) 0%, rgba(10,22,40,0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
  animation: fadeInDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 48px;
  text-align: center;
}

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }

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

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

/* --- Trust Bar --- */
.trust-bar {
  background: var(--dark);
  padding: 40px 0;
  position: relative;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,75,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text {
  font-size: 0.92rem;
  line-height: 1.4;
}

.trust-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--accent);
}

/* --- Services Overview (Index) --- */
.services-overview { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img img { transform: scale(1.05); }

.service-card-icon-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(3,44,166,0.08) 100%);
  border-bottom: 1px solid var(--border);
}

.service-card-icon-wrap svg {
  width: 56px;
  height: 56px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition);
}

.service-card:hover .service-card-icon-wrap { background: var(--primary); }
.service-card:hover .service-card-icon-wrap svg { stroke: var(--white); }

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

.service-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}
.service-card-link:hover { gap: 8px; }

.services-cta {
  text-align: center;
  margin-top: 40px;
}

/* --- About Preview --- */
.about-preview {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(3,44,166,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

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

.about-preview-text .section-label { margin-bottom: 12px; }

.about-preview-text h2 { margin-bottom: 20px; }

.about-preview-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-preview-text .btn { margin-top: 12px; }

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.heritage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.heritage-logo {
  width: 120px;
  margin: 0 auto 16px;
}

.heritage-year {
  font-family: 'Gelasio', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.heritage-text {
  font-size: 0.92rem;
  color: var(--text-mid);
}

.team-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.team-mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.team-mini-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.team-mini-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.team-mini-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.team-mini-title {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* --- Why Choose Us --- */
.why-us { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.why-card:hover .why-icon { background: var(--primary); }
.why-card:hover .why-icon svg { stroke: var(--white); }

.why-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-fast);
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- Map Section --- */
.map-section {
  background: var(--light);
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.map-info h3 { margin-bottom: 16px; }

.map-info p {
  color: var(--text-mid);
  margin-bottom: 12px;
}

.map-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.map-detail svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.map-detail a { font-weight: 600; }

#map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,168,75,0.08) 0%, transparent 50%);
  border-radius: 50%;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; position: relative; }
.cta-section .btn { position: relative; }

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 1.5rem;
  font-family: 'Gelasio', serif;
  font-weight: 700;
  position: relative;
}
.cta-phone:hover { color: var(--white); }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

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

.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--accent); }

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

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

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--dark);
  padding: 120px 0 60px;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(3,44,166,0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  position: relative;
}

.page-header .section-label {
  position: relative;
}

.page-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-size: 0.85rem;
  position: relative;
}

.page-breadcrumb a { color: rgba(255,255,255,0.5); }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb span { color: rgba(255,255,255,0.3); }
.page-breadcrumb .current { color: rgba(255,255,255,0.8); }

/* --- About Page --- */
.about-story { background: var(--white); }

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

.about-content p {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-content p:first-of-type {
  font-size: 1.15rem;
  color: var(--text);
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border: 1px solid rgba(3,44,166,0.15);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-top: 8px;
}

.license-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.license-badge span {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
}

/* Team Section */
.team-section {
  background: var(--light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.team-avatar-initials {
  color: var(--white);
  font-family: 'Gelasio', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- Services Page --- */
.services-list { background: var(--white); }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail:last-child { border-bottom: none; }

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-detail:hover .service-detail-img img { transform: scale(1.03); }

.service-detail-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.service-detail-content p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.key-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.key-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.key-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Contact Page --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 { margin-bottom: 24px; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-row svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contact-row-value {
  font-size: 1rem;
  color: var(--text);
}

.contact-row-value a { font-weight: 600; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.hours-table td {
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-mid);
}

.hours-closed { color: var(--text-light); font-style: italic; }

/* Contact Form */
.contact-form h3 { margin-bottom: 24px; }

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(3,44,166,0.1);
}

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

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

.form-submit { width: 100%; }

#form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}

#form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

#form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(7) { transition-delay: 0.48s; }
.stagger > *:nth-child(8) { transition-delay: 0.56s; }

/* --- Keyframes --- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .hero { margin-top: 64px; min-height: 75vh; }
  .page-header { margin-top: 64px; padding: 100px 0 48px; }
  .logo-link img { height: 40px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .main-nav .header-cta { text-align: center; justify-content: center; }

  .nav-toggle { display: flex; }

  .trust-items { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .map-wrapper { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .key-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-pad { padding: 60px 0; }
  .section-pad-lg { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-items { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 24px; }
  .team-mini { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
