/* =====================================================================
   Paradigm Inspection — styles.css
   Brand token system, layout, responsive design
   ===================================================================== */

/* =====================================================================
   Section 1 — CSS Custom Properties (Design Tokens)
   ===================================================================== */
:root {
  /* Colors */
  --color-black: #0A0A0A;
  --color-cream: #F5EDD6;
  --color-orange: #E07A2F;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Font Sizes */
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 28px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-body: 1.5;
  --line-height-heading: 1.2;
}

/* =====================================================================
   Section 2 — Reset / Base
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-black);
  background-color: var(--color-cream);
}

/* =====================================================================
   Section 3 — Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 92px;
}

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

.logo {
  max-height: 80px;
  width: auto;
}

.header-phone {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-orange);
  text-decoration: none;
  transition: text-decoration 200ms ease;
}

.header-phone:hover {
  text-decoration: underline;
}

/* =====================================================================
   Section 4 — Navigation (Desktop)
   ===================================================================== */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  padding: var(--space-sm) var(--space-xs);
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-bottom-color 200ms ease;
}

.nav-link:hover {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
}

/* Phone link inside nav — hidden on desktop */
.nav-phone {
  display: none;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
}

/* =====================================================================
   Section 5 — Mobile Navigation (max-width: 768px)
   ===================================================================== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  /* Hide desktop phone in header — moves into hamburger menu */
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 200ms ease;
  }

  .nav-toggle:hover {
    color: var(--color-orange);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Open state — toggled by JS adding nav-open to .site-header */
  .site-header.nav-open .main-nav {
    display: flex;
  }

  /* Phone link inside mobile menu */
  .nav-phone {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--color-orange);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
  }

  /* Mobile nav links — enlarged for touch targets */
  .nav-link {
    padding: var(--space-md) var(--space-lg);
    color: var(--color-cream);
    border-bottom: none;
  }

  .nav-link:hover {
    color: var(--color-orange);
    border-bottom-color: transparent;
  }
}

/* =====================================================================
   Section 6 — Section Stubs
   ===================================================================== */
.section {
  min-height: 320px;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section--hero {
  min-height: 100vh;
  background-color: var(--color-black);
  color: var(--color-cream);
}

.section--tinted {
  background-color: rgba(10, 10, 10, 0.04);
}

/* =====================================================================
   Section 6a -- Hero
   ===================================================================== */
.section--hero {
  background: linear-gradient(to bottom, #0A0A0A 0%, #1a0e08 60%, #2d1810 100%);
  justify-content: center;
}

.hero-content {
  max-width: 760px;
  text-align: center;
}

.hero-brand-name {
  font-family: 'Bebas Neue', var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  color: var(--color-cream);
}

.hero-brand-inspection {
  color: var(--color-orange);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-cream);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-lg);
}

.hero-sub {
  font-size: var(--font-size-lg);
  color: var(--color-orange);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================================
   Section 6b -- Shared Button Styles
   ===================================================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: opacity 200ms ease, transform 200ms ease;
}

.btn--primary {
  background-color: var(--color-orange);
  color: #FFFFFF;
  border: 2px solid var(--color-orange);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-cream);
  border: 2px solid var(--color-cream);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* =====================================================================
   Section 6c -- Section Inner Wrapper
   ===================================================================== */
.section-inner {
  width: 100%;
  max-width: 960px;
}

/* =====================================================================
   Section 6d -- Service Cards Grid
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  width: 100%;
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.service-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-badge svg {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.card-cta {
  color: var(--color-orange);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  margin-top: auto;
}

.card-cta:hover {
  text-decoration: underline;
}

/* =====================================================================
   Section 6e -- How It Works Steps
   ===================================================================== */
.steps-list {
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
}

.step {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-orange);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.step > svg {
  width: 32px;
  height: 32px;
  color: var(--color-orange);
  stroke: var(--color-orange);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
}

/* =====================================================================
   Section 6f -- About Section
   ===================================================================== */
.about-inner {
  display: flex;
  gap: var(--space-3xl);
  align-items: flex-start;
  max-width: 900px;
  text-align: left;
  margin: var(--space-2xl) auto 0;
}

.about-photo-placeholder {
  width: 320px;
  height: 400px;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: #e8dfc8;
  border: 2px dashed rgba(10, 10, 10, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.about-photo-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-orange);
  stroke: var(--color-orange);
}

.about-photo-label {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
}

.about-photo-sublabel {
  font-size: var(--font-size-sm);
  color: rgba(10, 10, 10, 0.5);
}

.about-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-bio h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.license-text {
  font-weight: var(--font-weight-medium);
  color: rgba(10, 10, 10, 0.7);
}

.cert-badge-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 2px dashed rgba(10, 10, 10, 0.15);
  border-radius: 8px;
  background-color: rgba(10, 10, 10, 0.02);
}

.cert-badge-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--color-orange);
  stroke: var(--color-orange);
}

.cert-badge-placeholder span {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.cert-badge-placeholder small {
  font-size: var(--font-size-sm);
  color: rgba(10, 10, 10, 0.5);
}

.about-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Outline button variant for light backgrounds */
.btn--outline {
  background-color: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

@media (max-width: 768px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
  }

  .about-photo-placeholder {
    width: 100%;
    max-width: 320px;
  }
}

/* =====================================================================
   Section 6g -- Service Area
   ===================================================================== */
.areas-intro {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: rgba(10, 10, 10, 0.7);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  text-align: left;
}

@media (max-width: 768px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

.area-county h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.area-county h3 svg {
  width: 20px;
  height: 20px;
  color: var(--color-orange);
  stroke: var(--color-orange);
  flex-shrink: 0;
}

.area-county p {
  color: rgba(10, 10, 10, 0.7);
  line-height: var(--line-height-body);
}

.areas-concerns {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-lg);
  background-color: rgba(224, 122, 47, 0.08);
  border-radius: 8px;
  border-left: 4px solid var(--color-orange);
  text-align: left;
}

/* =====================================================================
   Section 6h -- Testimonials / Reviews
   ===================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  width: 100%;
  max-width: 960px;
  margin: var(--space-2xl) auto;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.review-stars {
  color: var(--color-orange);
  font-size: var(--font-size-lg);
  letter-spacing: 2px;
}

.review-text {
  flex: 1;
  font-style: italic;
  line-height: var(--line-height-body);
}

.review-author {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.review-date {
  color: rgba(10, 10, 10, 0.5);
  font-weight: var(--font-weight-regular);
}

.reviews-cta {
  margin-top: var(--space-lg);
  text-align: center;
}

/* =====================================================================
   Section 7 — Footer
   ===================================================================== */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-cream);
  padding: var(--space-2xl) var(--space-lg);
  min-height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.footer-logo {
  max-height: 40px;
  width: auto;
  margin-bottom: var(--space-md);
}

.site-footer a {
  color: var(--color-orange);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =====================================================================
   Section 6i -- Contact Section
   ===================================================================== */
.contact-intro {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  color: rgba(10, 10, 10, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-orange);
  stroke: var(--color-orange);
  flex-shrink: 0;
}

.contact-link {
  color: var(--color-black);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
}

.contact-link:hover {
  color: var(--color-orange);
}

.contact-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(10, 10, 10, 0.06);
  color: var(--color-black);
  transition: background-color 200ms ease, color 200ms ease;
}

.social-link:hover {
  background-color: var(--color-orange);
  color: #FFFFFF;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* =====================================================================
   Section 6j -- Contact Form
   ===================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form label {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px var(--space-md);
  border: 1px solid rgba(10, 10, 10, 0.2);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  background-color: #FFFFFF;
  transition: border-color 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(224, 122, 47, 0.15);
}

.contact-form .btn {
  margin-top: var(--space-md);
  align-self: flex-start;
  border: none;
}

/* =====================================================================
   Section 7 -- Footer (expanded)
   ===================================================================== */
.footer-inner {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin: var(--space-sm) 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-cream);
  transition: color 200ms ease;
}

.footer-social a:hover {
  color: var(--color-orange);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-license {
  font-size: var(--font-size-sm);
  color: rgba(245, 237, 214, 0.6);
}

.footer-copy {
  font-size: var(--font-size-sm);
  color: rgba(245, 237, 214, 0.6);
}

/* =====================================================================
   Section 8 — 404 Error Page
   ===================================================================== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  background-color: var(--color-cream);
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.error-page p {
  margin-bottom: var(--space-md);
  max-width: 480px;
}

.error-cta {
  color: var(--color-orange);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.error-cta:hover {
  text-decoration: underline;
}

/* =====================================================================
   Section 9 — Accessibility
   ===================================================================== */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

/* =====================================================================
   Section 10 — Scroll Offset for Sticky Header
   ===================================================================== */
section[id] {
  scroll-margin-top: 76px;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 64px;
  }
}
