/* ==========================================================================
   Integrity Construction KC — Main Stylesheet
   Fencing construction company, Kansas City
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-primary: #2D5F3F;
  --color-primary-dark: #234a31;
  --color-primary-light: #3a7a52;
  --color-secondary: #C8A951;
  --color-secondary-dark: #b09440;
  --color-secondary-light: #d4ba6e;
  --color-surface: #f5f5f5;
  --color-dark: #1a1a1a;
  --color-white: #ffffff;
  --color-border: #e0e0e0;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

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

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

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

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

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  transition: background-color var(--transition), box-shadow var(--transition);
}

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

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  padding: 8px 0;
  margin-top: 8px;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.dropdown a:hover {
  background-color: var(--color-surface);
  color: var(--color-primary);
}

/* Nav CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #8a8a7a !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-size: 0.9rem !important;
  transition: background-color var(--transition), transform var(--transition) !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background-color: var(--color-secondary-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: var(--color-white);
  color: var(--color-text);
}

.hero::before {
  display: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

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

.hero h1 {
  color: var(--color-text);
  margin-bottom: 0.3em;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero .btn {
  margin: 0 8px 8px;
}

/* Page Header (subpages) */
.page-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.75),
    rgba(26, 26, 26, 0.6)
  );
  z-index: 1;
}

.page-header > * {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.3em;
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

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

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

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

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

/* White variant for dark backgrounds */
.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-gold {
  background-color: var(--color-secondary);
  color: var(--color-dark);
  border-color: var(--color-secondary);
}

.btn-gold:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: 80px 24px;
}

.section-full > .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 80px 24px;
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section-surface {
  background-color: var(--color-surface);
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 800px;
}

.intro-text.centered {
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   SERVICES / FENCE TYPES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

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

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

.service-card .btn {
  margin-top: 1rem;
}

/* Individual Service Page */
.service-page {
  padding-top: var(--header-height);
}

.service-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 60px 24px;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.3) 100%
  );
}

.service-hero > * {
  position: relative;
  z-index: 2;
}

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

.service-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.service-content h2 {
  margin-top: 2rem;
}

.service-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.service-content ul li {
  margin-bottom: 0.5em;
  color: var(--color-text-muted);
}

.service-sidebar {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

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

/* Portfolio Section (within service pages) */
.portfolio-section {
  background-color: var(--color-surface);
  padding: 60px 24px;
}

.portfolio-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================================================
   REPAIRS GRID
   ========================================================================== */
.repairs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.repair-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.repair-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.repair-card-body {
  padding: 24px;
}

.repair-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background-color: var(--color-surface);
  padding: 80px 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-card blockquote,
.testimonial-card .quote {
  font-style: italic;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .attribution,
.testimonial-card cite {
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.testimonial-card .attribution span,
.testimonial-card cite span {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.testimonial-card .stars {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 95, 63, 0);
  transition: background var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  background: rgba(45, 95, 63, 0.25);
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition);
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-section {
  background-color: var(--color-surface);
  padding: 80px 24px;
}

.form-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.form-section form {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.content-section {
  padding: 60px 24px 80px;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-bottom: 0;
}

.form-section .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

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

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card-body {
  padding: 24px;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

/* Values */
.values-section {
  background-color: var(--color-surface);
  padding: 80px 24px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-card .icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-white);
  font-size: 1.5rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   FEATURES / BENEFITS (common pattern)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 24px;
  text-align: center;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-banner .btn {
  margin: 0 8px;
}

/* ==========================================================================
   CTA SECTION (homepage bottom)
   ========================================================================== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background-color: var(--color-surface);
}

.cta-section h2 {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 24px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   RESPONSIVE — Mobile First Breakpoints
   ========================================================================== */

/* Tablet & below: 768px */
@media (max-width: 768px) {

  :root {
    --header-height: 70px;
  }

  /* Header / Nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

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

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Mobile dropdown */
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    padding: 0;
  }

  .has-dropdown.open .dropdown {
    max-height: 500px;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.75);
    padding: 12px 32px;
    font-size: 0.9rem;
  }

  .dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-secondary);
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    min-height: 50vh;
    padding: 100px 20px 60px;
  }

  .page-header {
    min-height: 35vh;
    padding: 100px 20px 40px;
  }

  /* Sections */
  .section,
  .section-full,
  .section-dark,
  .section-surface {
    padding: 50px 20px;
  }

  /* Grids to single column */
  .services-grid,
  .repairs-grid,
  .testimonials-grid,
  .team-grid,
  .values-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-section form {
    padding: 24px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }
}

/* Small tablets: 2 columns */
@media (min-width: 600px) and (max-width: 768px) {
  .services-grid,
  .repairs-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid,
  .repairs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Large screens */
@media (min-width: 1025px) {
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta-banner {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero,
  .page-header {
    min-height: auto;
    padding: 20px;
    background: none;
    color: #000;
  }

  .hero::before,
  .page-header::before {
    display: none;
  }

  .hero h1,
  .page-header h1 {
    color: #000;
  }
}
