/* Smith & Company - Main Stylesheet */
/* Design System Variables */
:root {
  --color-primary: #1a365d;
  --color-background: #f7f5f0;
  --color-accent: #2b6cb0;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  
  --font-headline: 'Montserrat', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  --spacing-section: 80px;
  --spacing-card: 32px;
  --max-width: 1200px;
  
  --shadow-sm: 0 2px 4px rgba(26, 54, 93, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.12);
  --shadow-lg: 0 8px 24px rgba(26, 54, 93, 0.15);
  
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: #1e4e7a;
  border-color: #1e4e7a;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Section */
.section {
  padding: var(--spacing-section) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

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

.logo img {
  display: block;
  height: 48px;
  width: auto;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  width: 240px;
  height: auto;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.03) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.03) 87.5%, rgba(255,255,255,0.03)),
    linear-gradient(150deg, rgba(255,255,255,0.03) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.03) 87.5%, rgba(255,255,255,0.03)),
    linear-gradient(30deg, rgba(255,255,255,0.03) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.03) 87.5%, rgba(255,255,255,0.03)),
    linear-gradient(150deg, rgba(255,255,255,0.03) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.03) 87.5%, rgba(255,255,255,0.03)),
    linear-gradient(60deg, rgba(43, 108, 176, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(43, 108, 176, 0.1) 75%, rgba(43, 108, 176, 0.1)),
    linear-gradient(60deg, rgba(43, 108, 176, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(43, 108, 176, 0.1) 75%, rgba(43, 108, 176, 0.1));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  z-index: -1;
}

/* Hero with real photo background */
.hero-photo .hero-bg {
  background-image: none;
  background-color: transparent;
}

.hero-photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-photo .hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 54, 93, 0.75) 0%,
    rgba(26, 54, 93, 0.65) 50%,
    rgba(26, 54, 93, 0.85) 100%
  );
}

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

.hero-title {
  color: var(--color-white);
  font-size: 56px;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--color-background);
  font-size: 22px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Grid */
.services {
  background-color: var(--color-white);
}

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

.service-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: var(--spacing-card);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background);
  border-radius: 50%;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.service-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}

/* Trust Section */
.trust {
  background-color: var(--color-background);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.trust-item {
  padding: 24px;
}

.trust-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.trust-icon svg { display: block; }

.trust-item h3 {
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--color-text-light);
}

/* Portfolio Gallery */
.portfolio {
  background-color: #0f1a2e;
  padding: 80px 0;
}

.portfolio-title {
  color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background-color: #1a2744;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 16px;
  background: linear-gradient(transparent, rgba(15, 26, 46, 0.92));
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 48px;
  cursor: pointer;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-body);
}

/* CTA Banner */
.cta-banner {
  background-color: var(--color-primary);
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 20px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sticky Header CTA */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.sticky-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.sticky-header-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sticky-header-phone a {
  color: var(--color-white);
  text-decoration: none;
}

.btn-sticky {
  padding: 8px 16px;
  font-size: 13px;
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Emergency CTA Section */
.emergency-cta {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  color: var(--color-white);
  padding: 60px 24px;
  text-align: center;
}

.emergency-content {
  max-width: 800px;
  margin: 0 auto;
}

.emergency-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.emergency-content h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.emergency-content p {
  margin: 0 0 24px;
  font-size: 18px;
  opacity: 0.95;
}

.emergency-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.emergency-buttons .btn-accent {
  background-color: var(--color-white);
  color: #8b0000;
  border-color: var(--color-white);
}

.emergency-buttons .btn-accent:hover {
  background-color: var(--color-background);
  border-color: var(--color-background);
}

.emergency-note {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: 64px;
}

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

.footer-brand p {
  opacity: 0.8;
  margin-top: 16px;
  font-size: 16px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-background);
}

.footer-contact p {
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-contact a:hover {
  color: var(--color-background);
}

.social-links {
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--color-accent);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  opacity: 0.7;
  font-size: 14px;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
}

/* Cookie Banner — REMOVED (Plausible is cookieless) */

/* Page Hero */
.page-hero {
  background-color: var(--color-primary);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-photo .page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.page-hero-photo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 54, 93, 0.78) 0%,
    rgba(26, 54, 93, 0.7) 50%,
    rgba(26, 54, 93, 0.85) 100%
  );
  z-index: 1;
}

.page-hero-photo .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 48px;
}

.page-hero p {
  color: var(--color-background);
  font-size: 20px;
  margin-top: 16px;
  opacity: 0.9;
}

/* About Page */
.about-section {
  padding: var(--spacing-section) 0;
}

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

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

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-background);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.stat-item {
  text-align: center;
  padding: 32px;
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.stat-label {
  color: var(--color-text-light);
  font-size: 16px;
}

/* Services Page */
.service-detail {
  padding: var(--spacing-section) 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.service-row:nth-child(even) .service-image {
  order: 2;
}

.service-image {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-background);
  aspect-ratio: 4/3;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info h2 {
  margin-bottom: 16px;
}

.service-info p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.service-features {
  margin-bottom: 32px;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* Contact Page */
.contact-section {
  padding: var(--spacing-section) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.contact-info {
  background-color: var(--color-white);
  padding: var(--spacing-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.contact-item {
  margin-bottom: 24px;
}

.contact-item h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 18px;
}

.contact-item a {
  color: var(--color-accent);
}

.contact-map {
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-background);
  aspect-ratio: 16/9;
}

/* Form */
.form-wrapper {
  background-color: var(--color-white);
  padding: var(--spacing-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.form-wrapper h3 {
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label .required {
  color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background-color: var(--color-background);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-white);
}

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

.radio-group {
  display: flex;
  gap: 24px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
}

.form-submit {
  margin-top: 24px;
}

.form-submit .btn {
  width: 100%;
}

.form-success {
  display: none;
  padding: 16px;
  background-color: #c6f6d5;
  color: #22543d;
  border-radius: 6px;
  text-align: center;
}

.form-success.show {
  display: block;
}

/* Blog */
.blog-section {
  padding: var(--spacing-section) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.blog-image {
  aspect-ratio: 16/9;
  background-color: var(--color-background);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
}

.blog-date {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.blog-content h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.blog-content p {
  color: var(--color-text-light);
  font-size: 16px;
}

.blog-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-section) 24px;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-post-header .blog-date {
  margin-bottom: 16px;
}

.blog-post-header h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.blog-post-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16/9;
}

.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content {
  font-size: 18px;
  line-height: 1.8;
}

.blog-post-content h2 {
  margin: 40px 0 20px;
}

.blog-post-content p {
  margin-bottom: 24px;
  color: var(--color-text-light);
}

/* Privacy & Terms */
.legal-section {
  padding: var(--spacing-section) 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  margin-bottom: 32px;
  text-align: center;
}

.legal-content h2 {
  margin: 32px 0 16px;
  font-size: 24px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid,
  .stats-grid {
    gap: 24px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 40px;
    --spacing-card: 20px;
  }
  
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  
  body {
    font-size: 16px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  
  .nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 18px;
  }
  
  .nav .btn {
    width: 100%;
  }
  
  .hero {
    padding: 40px 24px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content,
  .contact-grid,
  .service-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .service-row:nth-child(even) .service-image {
    order: 0;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    display: flex;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    margin-bottom: 28px;
  }

  .trust-item {
    padding: 12px;
  }

  .page-hero {
    padding: 32px 24px;
  }

  .page-hero h1 {
    font-size: 32px;
  }
  
  .legal-content {
    padding: 24px;
  }
  
  /* Phase 5 Responsive */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-question {
    font-size: 18px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens (iPhone SE at 375px, iPhone 14 at 390px) */
@media (max-width: 480px) {
  :root {
    --spacing-section: 32px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 16px;
    min-height: auto;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-ctas .btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .logo img {
    height: 34px;
    width: auto;
  }

  .hero-logo {
    width: 160px;
  }

  .header-inner {
    height: 64px;
  }

  .nav {
    top: 64px;
    height: calc(100vh - 64px);
    width: 100%;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 14px;
  }

  .trust-badges .container {
    overflow-x: hidden;
  }

  .badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
  }

  .badge-card {
    padding: 16px 12px;
    min-width: 0;
    overflow: hidden;
  }

  .badge-icon svg {
    width: 32px;
    height: 32px;
  }

  .badge-text {
    font-size: 14px;
    line-height: 1.4;
  }

  /* What You Get — force no overflow */
  .testimonials {
    overflow-x: hidden !important;
  }

  .testimonials .container {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .testimonials-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    overflow: hidden;
    word-wrap: break-word;
  }

  .testimonial-text {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .testimonial-source {
    padding-top: 8px;
  }

  .source-name {
    font-size: 14px;
  }

  /* Portfolio gallery — clean 2-col grid, fixed height */
  .portfolio {
    padding: 32px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .portfolio-item {
    aspect-ratio: auto !important;
    height: 160px;
  }

  .portfolio-item:nth-child(n+7) {
    display: none;
  }

  .portfolio-overlay span {
    font-size: 11px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 32px;
    padding: 8px;
  }

  /* FAQ accordion — compact */
  .faq-question {
    font-size: 16px;
    padding: 14px 0;
  }

  .faq-answer {
    font-size: 14px;
    padding-bottom: 14px;
  }

  /* Tighter section spacing */
  .section {
    padding: 28px 0 !important;
  }

  .section-title {
    margin-bottom: 20px;
  }

  /* Emergency CTA compact */
  .emergency-cta {
    padding: 28px 16px !important;
  }

  .emergency-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .emergency-content p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .emergency-buttons .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* CTA banner compact */
  .cta-banner h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .cta-banner p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .page-hero {
    padding: 32px 16px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .emergency-cta {
    padding: 40px 16px;
  }

  .emergency-content h2 {
    font-size: 22px;
  }

  .blog-post-header h1 {
    font-size: 26px;
  }

  .blog-post-content {
    font-size: 16px;
  }

  .blog-post-content h2 {
    font-size: 22px;
  }

  .sticky-header {
    padding: 8px 16px;
  }

  .sticky-header-phone {
    font-size: 13px;
  }

  .btn-sticky {
    padding: 6px 12px;
    font-size: 12px;
  }

  .cta-banner h2 {
    font-size: 22px;
  }

  .cta-banner p {
    font-size: 16px;
  }

  .footer-inner {
    gap: 32px;
  }

  .footer-brand svg {
    width: 150px;
    height: 42px;
  }

  .contact-info {
    padding: 20px;
  }

  .form-wrapper {
    padding: 20px;
  }

  .legal-content {
    padding: 16px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .trust-icon svg {
    width: 40px;
    height: 40px;
  }

  .trust-item h3 {
    font-size: 18px;
  }

  .trust-item p {
    font-size: 15px;
  }

  .about-jesse-text {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  .emergency-content p {
    font-size: 15px;
  }

  .emergency-note {
    font-size: 12px;
  }

  /* Prevent horizontal overflow */
  .about-jesse-contact a {
    word-break: break-all;
  }

  .footer-contact a {
    word-break: break-all;
  }
}

/* Focus States */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Phase 5: New Sections
   ======================================== */

/* Testimonials Section */
.testimonials {
  background-color: var(--color-background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--color-text);
}

.testimonial-source {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.source-name {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 16px;
}

.source-context {
  display: block;
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* Trust Badges Section */
.trust-badges {
  background-color: var(--color-white);
}

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

.badge-card {
  background-color: var(--color-background);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

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

.badge-icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.badge-icon svg { display: block; }

.badge-text {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

/* About Jesse Section */
.about-jesse {
  background-color: var(--color-background);
}

.about-jesse-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-jesse-text {
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-jesse-contact p {
  font-size: 18px;
}

.about-jesse-contact a {
  color: var(--color-accent);
  font-weight: 600;
}

/* FAQ Section — Accordion */
.faq {
  background-color: var(--color-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-headline);
  font-size: 20px;
  color: var(--color-primary);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 0 0 20px;
}