/* ==========================================================================
   Beckwith Development & Design — Stylesheet
   Custom CSS · No frameworks
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #faf8f5;
  --bg-alt: #f2efe9;
  --bg-card: #ffffff;
  --text: #2c2a26;
  --text-muted: #6b6560;
  --primary: #2d4a6f;
  --primary-light: #3d6494;
  --accent: #b8864e;
  --accent-light: #d4a76a;
  --border: #e0dbd4;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(44,42,38,0.07);
  --shadow-lg: 0 8px 32px rgba(44,42,38,0.10);
  --transition: 0.25s ease;
  --nav-height: 72px;
  --max-width: 1200px;
  --grid-color: rgba(45,74,111,0.04);
}

[data-theme="dark"] {
  --bg: #141312;
  --bg-alt: #1e1d1b;
  --bg-card: #252321;
  --text: #e8e4de;
  --text-muted: #9a9490;
  --primary: #4a7ab0;
  --primary-light: #5a8ac4;
  --accent: #d4a76a;
  --border: #3a3632;
  --shadow: 0 2px 12px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
  --grid-color: rgba(74,122,176,0.05);
}

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

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

body {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased; padding-bottom: 2.25rem; }

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

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

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.875vw, 2.75rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
}

h4 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
}

p + p {
  margin-top: 1em;
}

.section-label {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 640px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

section {
  padding: clamp(3rem, 2.5rem + 2.5vw, 6rem) 0;
}

/* --- Blueprint Grid Background --- */
.bp-grid {
  position: relative;
}

.bp-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.bp-grid > * {
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow);
}

.has-dark-hero .site-nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

.has-dark-hero .site-nav:not(.scrolled) .nav-link,
.has-dark-hero .site-nav:not(.scrolled) .nav-logo-text,
.has-dark-hero .site-nav:not(.scrolled) .nav-logo-sub {
  color: #fff;
}

.has-dark-hero .site-nav:not(.scrolled) .nav-phone-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.has-dark-hero .site-nav:not(.scrolled) .nav-phone-btn:hover {
  background: rgba(255,255,255,0.25);
}

.has-dark-hero .site-nav:not(.scrolled) .theme-toggle {
  color: #fff;
}

.has-dark-hero .site-nav:not(.scrolled) .hamburger span {
  background: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 2rem;
  }
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo-sub {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-phone-btn:hover {
  background: var(--primary);
  color: #fff;
}

.nav-phone-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-phone-btn {
    display: inline-flex;
  }
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
}

.mobile-menu .mobile-phone svg {
  width: 18px;
  height: 18px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,74,111,0.88) 0%, rgba(45,74,111,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

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

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-card-body {
  padding: 1.25rem;
}

.service-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

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

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card-link:hover svg {
  transform: translateX(3px);
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- About Preview (Homepage) --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.about-preview-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-preview-text h2 {
  margin-bottom: 1rem;
}

.about-preview-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: 'Source Serif 4', serif;
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.5em;
  color: var(--accent);
  margin-right: 0.125rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq-list {
  max-width: 780px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 2.5rem + 2.5vw, 5rem) 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-phone {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity var(--transition);
}

.cta-phone:hover {
  opacity: 0.85;
  color: #fff;
}

.cta-phone svg {
  width: 28px;
  height: 28px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

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

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(74,122,176,0.15);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

[data-theme="dark"] .form-status.success {
  background: rgba(46,125,50,0.15);
  color: #81c784;
  border-color: rgba(46,125,50,0.3);
}

[data-theme="dark"] .form-status.error {
  background: rgba(198,40,40,0.15);
  color: #ef9a9a;
  border-color: rgba(198,40,40,0.3);
}

/* --- Page Header (Interior Pages) --- */
.page-header {
  background: var(--primary);
  padding: clamp(3rem, 2.5rem + 2vw, 5rem) 0;
  margin-top: var(--nav-height);
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* --- Service Detail --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .service-detail-grid {
    grid-template-columns: 5fr 4fr;
  }
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.service-detail-text h2 {
  margin-bottom: 1rem;
}

.service-detail-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-detail-text ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.service-detail-text ul li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.service-detail-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.value-card svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1.5rem;
}

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

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

.footer-brand .nav-logo-text {
  font-size: 1.1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* --- Disclaimer Bar --- */
.disclaimer-bar { position:fixed;bottom:0;left:0;right:0;z-index:101;background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* --- Map --- */
.contact-map {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* --- Other Services (sidebar) --- */
.other-services {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.other-services h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.other-services a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.other-services a:last-child {
  border-bottom: none;
}

.other-services a:hover {
  color: var(--primary);
}

.other-services a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Turnstile --- */
.cf-turnstile {
  margin-bottom: 1.25rem;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Subtle Animations (respects motion preferences) --- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes blueprint-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes ruler-slide {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  .hero-content {
    animation: blueprint-fade 0.8s ease both;
  }

  .nav-link.active::after {
    animation: ruler-slide 0.4s ease both;
    transform-origin: left;
  }
}

/* --- 404 Page --- */
.not-found {
  text-align: center;
  padding: clamp(4rem, 3rem + 4vw, 8rem) 0;
  margin-top: var(--nav-height);
}

.not-found h1 {
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
