/* ============================================
   Scott Lockhart Drainage Contractor
   Editorial Nature Aesthetic
   ============================================ */

:root {
  --navy: #0B1D2E;
  --navy-light: #132D44;
  --steel: #2b5672;
  --steel-light: #3A7999;
  --teal: #5CC8D4;
  --teal-pale: #D5F2F5;
  --green: #3E8B34;
  --green-light: #5AAE50;
  --cream: #F8F6F0;
  --cream-dark: #EDE9DF;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #5A6577;
  --text-on-dark: #D1DAE3;
  --shadow: rgba(11, 29, 46, 0.12);
  --shadow-deep: rgba(11, 29, 46, 0.25);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
}

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

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

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

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

a {
  color: var(--steel);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--teal); }
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; }
ul { list-style: none; }

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

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600; border: none;
  border-radius: var(--radius); cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none; line-height: 1.3; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow-deep); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.btn--primary { background: var(--steel); color: var(--white); }
.btn--primary:hover { background: var(--steel-light); color: var(--white); }
.btn--secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn--secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: #4AB8C5; color: var(--navy); }
.btn--outline { background: transparent; color: var(--steel); border: 2px solid var(--steel); }
.btn--outline:hover { background: var(--steel); color: var(--white); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11, 29, 46, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 200, 212, 0.15);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 72px; max-width: 1280px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo-text {
  font-family: 'Newsreader', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--white); line-height: 1.2;
}
.logo-text span {
  display: block; font-size: 0.65rem; font-weight: 400;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-on-dark); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal); background: rgba(92, 200, 212, 0.08); }
.nav-cta {
  background: var(--steel) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: var(--radius) !important;
  font-weight: 600 !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--steel-light) !important; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform var(--transition-fast), opacity var(--transition-fast); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; width: 24px; height: 2px;
  background: var(--white); left: 0; transition: transform var(--transition-fast);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active span::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero {
  position: relative; min-height: 85vh; display: flex;
  align-items: center; overflow: hidden; padding-top: 72px;
}
.hero--inner { min-height: 60vh; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,46,0.92) 0%, rgba(11,29,46,0.7) 40%, rgba(43,86,114,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 1; max-width: 680px; padding: 60px 0;
}
.hero h1 {
  color: var(--white); margin-bottom: 24px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-accent { color: var(--teal); }
.hero p {
  color: var(--text-on-dark); font-size: 1.15rem; line-height: 1.8;
  margin-bottom: 32px; max-width: 560px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(92,200,212,0.15); border: 1px solid rgba(92,200,212,0.3);
  color: var(--teal); font-size: 0.82rem; font-weight: 600;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

/* Sections */
section { padding: 100px 0; }
.section--dark { background: var(--navy); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--cream { background: var(--cream); }
.section--gradient {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--text-on-dark);
}
.section--gradient h2 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 1.1rem; color: var(--text-light);
  max-width: 640px; margin: 0 auto;
}
.section--dark .section-header p { color: var(--text-on-dark); }
.section-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  margin: 16px auto 0; border-radius: 2px;
}

/* Services Grid (index) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 40px var(--shadow-deep);
}
.service-card-img { position: relative; height: 220px; 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-body { padding: 28px; }
.service-card-body h3 { margin-bottom: 12px; }
.service-card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9rem; color: var(--steel);
}
.service-card-link:hover { color: var(--teal); gap: 10px; }

/* Service Page Hero */
.service-page-hero {
  position: relative; padding: 160px 0 80px; overflow: hidden;
}
.service-page-hero .hero-bg::after {
  background: linear-gradient(135deg, rgba(11,29,46,0.9) 0%, rgba(11,29,46,0.65) 100%);
}
.service-page-hero h1 { color: var(--white); margin-bottom: 16px; }
.service-page-hero p { color: var(--text-on-dark); font-size: 1.1rem; max-width: 600px; }

/* Service Intro */
.service-intro { padding: 80px 0; }
.service-intro-content {
  max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 1.9;
}

/* Service Detail Grid (alternating image/text) */
.service-detail-grid { display: grid; gap: 48px; }
.service-detail-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.service-detail-item:nth-child(even) { direction: rtl; }
.service-detail-item:nth-child(even) > * { direction: ltr; }
.service-detail-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
}
.service-detail-img img { width: 100%; height: 300px; object-fit: cover; }
.service-detail-content h3 { margin-bottom: 12px; }
.service-detail-content p { color: var(--text-light); margin-bottom: 16px; }

.key-points { display: flex; flex-direction: column; gap: 8px; }
.key-point {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
}
.key-point::before {
  content: ''; width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%; flex-shrink: 0;
}

/* Service Compact Cards */
.service-compact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-compact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--teal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.service-compact-card:hover {
  transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow-deep);
}
.service-compact-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-compact-card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 32px 16px; }
.why-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: rgba(92,200,212,0.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.section--dark .why-icon { background: rgba(92,200,212,0.15); }
.why-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0; }
.section--dark .why-item p { color: var(--text-on-dark); }

/* Stats */
.stats-bar { display: flex; justify-content: center; gap: 60px; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Newsreader', serif; font-size: 3rem;
  font-weight: 700; color: var(--teal); line-height: 1;
}
.stat-label {
  font-size: 0.85rem; font-weight: 500; color: var(--text-on-dark);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: 0 4px 20px var(--shadow); position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: 'Newsreader', serif; font-size: 4rem;
  color: var(--teal); opacity: 0.3; position: absolute; top: 12px; left: 20px; line-height: 1;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; color: #F5A623; font-size: 1rem; }
.testimonial-text {
  font-size: 0.95rem; line-height: 1.7; color: var(--text);
  margin-bottom: 20px; font-style: italic;
}
.testimonial-author { font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.testimonial-source { font-size: 0.8rem; color: var(--text-light); }

/* CTA Section */
.cta-section { position: relative; padding: 100px 0; overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,46,0.9) 0%, rgba(43,86,114,0.85) 100%);
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p {
  color: var(--text-on-dark); font-size: 1.1rem; margin-bottom: 32px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* About */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { line-height: 1.9; }
.about-image {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow-deep); position: relative;
}
.about-image img { width: 100%; height: auto; }

.founder-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 48px; color: var(--text-on-dark); margin-top: 60px;
}
.founder-card h3 { color: var(--teal); margin-bottom: 4px; }
.founder-title { font-size: 0.9rem; color: var(--text-on-dark); opacity: 0.8; margin-bottom: 20px; }
.founder-card p { line-height: 1.9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; background: var(--teal-pale);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-item h4 { margin-bottom: 4px; }
.contact-item p, .contact-item a {
  font-size: 0.95rem; color: var(--text-light); margin-bottom: 0;
}
.contact-item a:hover { color: var(--steel); }

.social-links { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--cream); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.social-link:hover { background: var(--steel); color: var(--white); }

/* Form */
.contact-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: 0 8px 30px var(--shadow);
}
.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 select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(92,200,212,0.2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 8px; }

#form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; display: none;
}
#form-status.success {
  display: block; background: rgba(62,139,52,0.1);
  color: var(--green); border: 1px solid rgba(62,139,52,0.2);
}
#form-status.error {
  display: block; background: rgba(200,50,50,0.1);
  color: #c83232; border: 1px solid rgba(200,50,50,0.2);
}

/* Map */
.map-container {
  height: 400px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 4px 20px var(--shadow);
}
#map { width: 100%; height: 100%; }

/* Footer */
.site-footer { background: var(--navy); color: var(--text-on-dark); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-on-dark); opacity: 0.8; line-height: 1.7; }
.footer-col h4 {
  color: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.footer-col a {
  display: block; color: var(--text-on-dark); opacity: 0.8;
  font-size: 0.9rem; padding: 4px 0;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
.footer-col a:hover { color: var(--teal); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.82rem; opacity: 0.6;
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  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(-20px);
  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(20px);
  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 > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

@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 { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-split { gap: 40px; }
  .service-detail-item { gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 16px 24px; border-top: 1px solid rgba(92,200,212,0.15);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform var(--transition), opacity var(--transition); gap: 0;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 8px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .service-detail-item { grid-template-columns: 1fr; gap: 24px; }
  .service-detail-item:nth-child(even) { direction: ltr; }
  .service-compact-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 32px; }
  .stat-item { min-width: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { min-height: 60vh; padding-top: 72px; }
  .hero-content { padding: 40px 0; }
  .hero-actions { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .service-page-hero { padding: 120px 0 60px; }
}
