:root {
  /* Colors — matched to Zamora logo */
  --primary: #1B2A4A;
  --accent: #2980B9;
  --accent-hover: #2471A3;
  --red-accent: #5A6D7B;
  --bg-white: #FFFFFF;
  --bg-gray: #F0F2F5;
  --text-dark: #1A1A1A;
  --text-light: #4A4A4A;
  --border: #CDD5DE;

  /* Typography */
  --font-stack: 'Lato', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --h-clamp: clamp(2.5rem, 6vw, 4rem);
  --h2-clamp: clamp(1.75rem, 4vw, 2.5rem);
  --h3-clamp: clamp(1.25rem, 3vw, 1.75rem);

  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --container: 1200px;
  --transition: all 0.3s ease;
}

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

html {
  font-family: var(--font-stack);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Account for sticky header */
}

body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  padding-bottom: 60px;
  /* Space for mobile sticky CTA */
}

@media (min-width: 769px) {
  body {
    font-size: 1.125rem;
    padding-bottom: 0;
    /* Remove mobile CTA space on desktop */
  }
}

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

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

a:hover {
  color: var(--accent);
}

/* Skip Link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--primary);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--bg-white);
}

/* Breadcrumb — hidden (SEO value kept in HTML) */
.breadcrumb {
  display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--h-clamp);
}

h2 {
  font-size: var(--h2-clamp);
}

h3 {
  font-size: var(--h3-clamp);
}

p {
  margin-bottom: 1.5rem;
}

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

.section {
  padding: 4rem 0;
}

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

.bg-gray {
  background-color: var(--bg-gray);
}

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

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p {
  color: var(--bg-white);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-logo-img {
  height: 50px;
  width: auto;
  display: block;
  background: var(--bg-white);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.logo-accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 700;
}

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

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  min-width: 200px;
  list-style: none;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: var(--bg-gray);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-phone {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
  }
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 1rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 4rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero .container {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero {
    padding: 6rem 0;
  }
}

.hero-content h1 {
  color: var(--bg-white);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Forms */
.form-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.form-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.1);
}

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

.honeypot {
  display: none !important;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Services Grid */
.services-grid,
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {

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

@media (min-width: 992px) {

  .services-grid,
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  flex-grow: 1;
  color: var(--text-light);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Feature Item */
.feature-item {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
}

/* Service Area */
.service-area-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.city-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
}

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

.city-list a {
  display: block;
  padding: 0.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 500;
}

.city-list a:hover {
  background: var(--primary);
  color: var(--bg-white);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: none;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

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

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

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

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Sticky Mobile CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .mobile-cta-bar .btn {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Animations */
/* Fallback: Elements are visible by default if JS fails to load */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JS adds this class to hide elements initially so they can fade in */
body.js-active .fade-in {
  opacity: 0;
  transform: translateY(20px);
}

body.js-active .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service Detail Pages */
.service-detail-section {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.service-content-img {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.service-anchors {
  background: var(--bg-gray);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  position: sticky;
  top: 100px;
}

.service-anchors ul {
  list-style: none;
}

.service-anchors li {
  margin-bottom: 0.5rem;
}

.service-anchors a {
  display: block;
  padding: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.service-anchors a:hover {
  background: var(--bg-white);
  color: var(--primary);
}

/* About / Info grid */
/* === Reviews === */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 0 0 3rem 0;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
}

.trust-bar span:not(:last-child)::after {
  content: "•";
  margin-left: 2rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .trust-bar {
    gap: 0.5rem 1rem;
    flex-direction: column;
  }

  .trust-bar span:not(:last-child)::after {
    display: none;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.review-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.review-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-quote {
  font-style: italic;
  color: var(--text-dark);
  margin: 0;
  flex-grow: 1;
}

.review-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Scroll Snap for Home Page Testimonials */
.testimonials-snap {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1023px) {
  .testimonials-snap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    margin: 0 -1.5rem;
    padding: 0 1.5rem 1rem 1.5rem;
    scrollbar-width: none;
  }

  .testimonials-snap::-webkit-scrollbar {
    display: none;
  }

  .testimonials-snap>* {
    scroll-snap-align: center;
    flex: 0 0 85%;
    max-width: 350px;
  }
}

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

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