/* ============================================
   Mobile Dynamics — Main Stylesheet
   mobiledynamicsfl.com

   TABLE OF CONTENTS:
   1. Variables & Design Tokens
   2. Reset & Base
   3. Typography
   4. Utilities & Buttons
   5. Navigation
   6. Mobile Drawer
   7. Hero (Homepage)
   8. Page Header (Interior Pages)
   9. Services Section
   10. Service Cards
   11. Brands Strip
   12. Showroom / Split Section
   13. Trust / Why Us
   14. CTA Banner
   15. Contact Page
   16. Service Page Layouts
   17. Footer
   18. Scroll Reveal
   19. Responsive
   ============================================ */


/* === 1. Variables & Design Tokens === */
:root {
  /* Surfaces */
  --bg:    #ffffff;
  --s1:    #f6f6f6;
  --s2:    #eeeeee;

  /* Borders */
  --rule:  #e0e0e0;
  --hi:    #c81b1b;

  /* Text */
  --text:  #111111;
  --t2:    #484848;
  --t3:    #888888;

  /* Brand */
  --primary:   #c81b1b;
  --secondary: #111111;

  /* Layout */
  --nav-h:   72px;
  --px:      clamp(20px, 5vw, 80px);
  --section: clamp(56px, 7vw, 96px);
  --radius:  6px;
  --shadow:  0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover { text-decoration: underline; }

ul { list-style: none; }

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

/* Offset anchor links by nav height */
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }


/* === 3. Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

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


/* === 4. Utilities & Buttons === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-pad { padding: var(--section) 0; }

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

/* Eyebrow labels above section headings */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.text-center .eyebrow {
  justify-content: center;
}

.text-center .eyebrow::before { display: none; }

/* Section heading block */
.section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.section-header h2 { margin-bottom: 0.75rem; }

.section-header p {
  color: var(--t2);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 55ch;
  margin: 0;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

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

.btn-primary:hover {
  background: #a51515;
  border-color: #a51515;
  transform: translateY(-1px);
}

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

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

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

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

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

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

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

/* Surface backgrounds */
.bg-white { background: var(--bg); }
.bg-light { background: var(--s1); }
.bg-dark   { background: var(--secondary); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark p { color: rgba(255, 255, 255, 0.65); }
.bg-dark .eyebrow { color: #ff6b6b; }
.bg-dark .section-header p { color: rgba(255, 255, 255, 0.6); }


/* === 5. Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

/* Added by JS on scroll */
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

.site-nav.scrolled .logo-main { color: var(--text); }
.site-nav.scrolled .logo-sub  { color: var(--t3); }

/* Desktop nav links */
.nav-links {
  display: none;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.45rem 0.8rem;
  border-radius: calc(var(--radius) - 1px);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(200, 27, 27, 0.08);
}

.site-nav.scrolled .nav-links a {
  color: var(--t2);
}

.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active {
  color: var(--primary);
}

/* Nav CTA button — phone number */
.btn-nav {
  display: none;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #a51515;
  text-decoration: none;
}

/* Hamburger */
.burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}

.site-nav.scrolled .burger span { background: var(--text); }


/* === 6. Mobile Drawer === */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg);
  z-index: 300;
  transition: right 0.3s var(--ease);
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.nav-drawer.open { right: 0; }

.drawer-close {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--t2);
  border-radius: 50%;
  transition: background 0.2s;
  margin-bottom: 1rem;
  line-height: 1;
}

.drawer-close:hover { background: var(--s1); }

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: block;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.drawer-links a:hover {
  background: var(--s1);
  color: var(--primary);
}

.drawer-divider {
  height: 1px;
  background: var(--rule);
  margin: 1.25rem 0;
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

.drawer-email {
  font-size: 0.9rem;
  color: var(--t2);
  text-decoration: none;
}

.drawer-email:hover {
  color: var(--primary);
  text-decoration: underline;
}

.drawer-hours {
  font-size: 0.82rem;
  color: var(--t3);
  margin: 0;
}


/* === 7. Hero (Homepage) === */
.hero {
  min-height: 100vh;
  background: var(--secondary);
  /* Subtle diagonal texture — no image needed */
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 64px
  );
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--section)) var(--px) var(--section);
}

/* Red glow accent */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200, 27, 27, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

/* Accent color on a key word */
.hero h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

/* Stat bar at bottom of hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.2rem;
}

.hero-stat span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}

.hero-stat a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.hero-stat a:hover { color: #fff; }


/* === 8. Page Header (Interior Pages) === */
.page-header {
  background: var(--secondary);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 64px
  );
  padding: calc(var(--nav-h) + 3rem) var(--px) 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(200, 27, 27, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb trail */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep { color: rgba(255, 255, 255, 0.2); }

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

.page-header .lead {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 58ch;
  margin: 0;
}


/* === 9. Services Section === */
.services-section { padding: var(--section) 0; }

/* Group label divider */
.service-group { margin-bottom: 2.75rem; }
.service-group:last-child { margin-bottom: 0; }

.service-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}

/* Main service card grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Simple list for additional / secondary services */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.services-list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--t2);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.services-list-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.services-list-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}


/* === 10. Service Cards === */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) * 2);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s var(--ease),
    box-shadow  0.2s var(--ease),
    transform   0.2s var(--ease);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  transition: color 0.2s;
}

.service-card:hover h3 { color: var(--primary); }

.service-card p {
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.card-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

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


/* === 11. Brands Strip === */
.brands-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.brands-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 1.5rem;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.brand-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.2s, color 0.2s;
}

.brand-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* === 12. Showroom / Split Section === */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.split-content { max-width: 52ch; }

.split-content h2 { margin-bottom: 1rem; }

.split-content p { color: var(--t2); }

.split-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.split-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.split-feature-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 36px;
  flex-shrink: 0;
}

.split-feature-text h4 { margin-bottom: 0.2rem; }

.split-feature-text p {
  font-size: 0.9rem;
  color: var(--t2);
  margin: 0;
}

/* Right side panel — info block */
.split-panel {
  background: var(--s1);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
}

.split-panel h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.split-detail {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.split-detail:last-child { border-bottom: none; }

.split-detail-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.split-detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.2rem;
}

.split-detail a, .split-detail span {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.split-detail a:hover { color: var(--primary); }


/* === 13. Trust / Why Us === */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.trust-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.trust-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(200, 27, 27, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.trust-item h4 {
  margin-bottom: 0.3rem;
  color: #fff;
}

.trust-item p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}


/* === 14. CTA Banner === */
.cta-banner {
  background: var(--primary);
  padding: var(--section) var(--px);
  text-align: center;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}


/* === 15. Contact Page === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: var(--section) var(--px);
  max-width: 1280px;
  margin: 0 auto;
}

.contact-info h2 { margin-bottom: 0.5rem; }

.contact-info .lead {
  font-size: 1rem;
  color: var(--t2);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--s1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.3rem;
}

.contact-detail a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.4;
}

.contact-detail a:hover { color: var(--primary); }

.contact-detail p {
  font-size: 0.9rem;
  color: var(--t2);
  margin: 0;
  line-height: 1.5;
}

/* Contact form panel */
.contact-form-wrap {
  background: var(--s1);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
}

.contact-form-wrap h3 { margin-bottom: 1.5rem; }

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--t3);
  margin-top: 1rem;
}


/* === 16. Service Page Layouts === */
.service-page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section) var(--px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Main content column */
.service-main h2 { margin-bottom: 1rem; }

.service-main h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.service-main p { color: var(--t2); }

.service-main ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--t2);
  margin: 0.5rem 0 1rem;
}

.service-main ul li { margin-bottom: 0.35rem; }

/* Feature highlight list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-item {
  padding: 1.25rem;
  background: var(--s1);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.feature-item h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.feature-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Right sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Info card in sidebar */
.info-card {
  background: var(--s1);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
}

.info-card h4 { margin-bottom: 1rem; }

.info-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--t2);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.info-card li:last-child { border-bottom: none; }

.info-card li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Pricing card in sidebar */
.pricing-card {
  background: var(--secondary);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
}

.pricing-card h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.price-row:last-child { border-bottom: none; }

.price-label { color: rgba(255, 255, 255, 0.55); }

.price-val {
  font-weight: 700;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* CTA card in sidebar */
.cta-card {
  background: var(--primary);
  border-radius: calc(var(--radius) * 2);
  padding: 1.5rem;
  text-align: center;
}

.cta-card h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Related services at bottom of service pages */
.related-section {
  background: var(--s1);
  padding: var(--section) var(--px);
}

.related-section .section-header { margin-bottom: 1.75rem; }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}


/* === 17. Footer === */
.site-footer {
  background: var(--secondary);
  padding: var(--section) var(--px) 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  display: block;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 30ch;
  margin: 0;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
}


/* === 18. Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Staggered delays for card grids */
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }


/* === 19. Responsive === */

/* 480px and up — small phones landscape */
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* 640px and up — tablets */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-list { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 768px and up — medium */
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr 1fr; }
  .service-page-body { grid-template-columns: 1fr 320px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* 1024px and up — desktop */
@media (min-width: 1024px) {
  .btn-nav { display: inline-flex; }
  .nav-links { display: flex; }
  .burger { display: none; }

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

/* 1280px and up — wide */
@media (min-width: 1280px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
