:root {
  --navy: #18324A;
  --slate-blue: #45657A;
  --copper: #B56A42;
  --copper-hover: #9E5833;
  --warm-stone: #D8C9B7;
  --off-white: #F5F1EA;
  --soft-gray: #E6E8E7;
  --dark-text: #18242C;
  --light-text: #F5F1EA;
  --border-color: rgba(24, 50, 74, 0.12);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

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

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--off-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 0;
  }
}

/* Typography */
.label-caps {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.75rem;
}

.heading-xl {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .heading-xl {
    font-size: 3.5rem;
  }
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .heading-lg {
    font-size: 2.5rem;
  }
}

.heading-md {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.heading-sm {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.body-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate-blue);
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--copper);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--copper-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--off-white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--off-white);
  border-color: rgba(245, 241, 234, 0.4);
}

.btn-outline-light:hover {
  background-color: var(--off-white);
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--copper);
  margin-top: 1rem;
}

.text-link:hover {
  color: var(--navy);
  gap: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--off-white);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--slate-blue);
  font-weight: 500;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--copper);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--copper);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--off-white);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 5rem 0;
  background-color: var(--off-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Intro Section */
.intro-section {
  background-color: var(--warm-stone);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

/* Services Rows Section */
.services-section {
  background-color: var(--off-white);
}

.service-rows {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: 80px 1.5fr 2fr auto;
    align-items: center;
    gap: 2rem;
  }
}

.service-row:hover {
  background-color: rgba(216, 201, 183, 0.2);
  padding-left: 1rem;
  padding-right: 1rem;
}

.service-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--copper);
  font-weight: 600;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .service-title {
    margin-bottom: 0;
  }
}

.service-desc {
  color: var(--slate-blue);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .service-desc {
    margin-bottom: 0;
  }
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--copper);
  font-size: 0.9375rem;
}

/* Featured Banner Section */
.featured-banner {
  position: relative;
  height: 500px;
  background-color: var(--navy);
}

.featured-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.featured-panel {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  background-color: var(--off-white);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  max-width: 320px;
}

.featured-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.featured-panel-sub {
  font-size: 0.875rem;
  color: var(--slate-blue);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .featured-panel {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: none;
  }
}

/* Why Inspection Section */
.why-section {
  background-color: var(--soft-gray);
}

.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.feature-card {
  background-color: var(--off-white);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--slate-blue);
  font-size: 0.9375rem;
}

/* Projects Section */
.projects-section {
  background-color: var(--off-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-img-container {
  overflow: hidden;
  border-radius: 4px;
  height: 320px;
  margin-bottom: 1rem;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-caption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.project-sub {
  font-size: 0.875rem;
  color: var(--slate-blue);
}

/* About Split Section */
.about-section {
  background-color: var(--warm-stone);
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-image {
  border-radius: 4px;
  height: 420px;
  width: 100%;
  object-fit: cover;
}

/* Contact CTA Section */
.contact-cta-section {
  background-color: var(--navy);
  color: var(--off-white);
  text-align: center;
  padding: 6rem 0;
}

.contact-cta-container {
  max-width: 680px;
  margin: 0 auto;
}

.contact-cta-section .heading-xl {
  color: var(--off-white);
}

.contact-cta-section p {
  color: var(--warm-stone);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

/* Form Styles */
.contact-form-container {
  max-width: 680px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(24, 50, 74, 0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark-text);
  background-color: #ffffff;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(181, 106, 66, 0.15);
}

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

.form-success {
  display: none;
  background-color: #E8F5E9;
  color: #2E7D32;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Page Header / Subpage Hero */
.page-hero {
  background-color: var(--navy);
  color: var(--off-white);
  padding: 5rem 0;
}

.page-hero-content {
  max-width: 720px;
}

.page-hero .heading-xl {
  color: var(--off-white);
}

.page-hero p {
  color: var(--warm-stone);
  font-size: 1.125rem;
}

/* Service Detail Layout */
.service-detail-hero {
  position: relative;
  height: 400px;
  background-color: var(--navy);
}

.service-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.service-detail-hero-content {
  position: absolute;
  bottom: 3rem;
  left: 0;
  width: 100%;
}

.service-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .service-detail-content {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-block {
  margin-bottom: 3rem;
}

.signs-list {
  list-style: none;
  margin-top: 1rem;
}

.signs-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--dark-text);
}

.signs-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: bold;
}

.sidebar-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 100px;
}

/* Footer */
.site-footer {
  background-color: var(--navy);
  color: var(--off-white);
  padding-top: 5rem;
  padding-bottom: 3rem;
  margin-top: auto;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--off-white);
  margin-bottom: 0.25rem;
}

.footer-subtitle {
  color: var(--warm-stone);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--warm-stone);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--off-white);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--warm-stone);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Legal Content Styling */
.legal-content {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin: 3rem 0;
}

.legal-content h2 {
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
  color: var(--dark-text);
}

/* Utilities */
.text-center {
  text-align: center;
}
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }