/* =============================================================
   ClearPath Exterior Cleaning — Main Stylesheet
   Cary, NC's Premier Driveway & Exterior Cleaning Service
   ============================================================= */

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

/* ===== CSS VARIABLES ===== */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1e429f;
  --primary-light: #3f83f8;
  --primary-bg:    #eff6ff;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-light:  #fef3c7;
  --white:         #ffffff;
  --off-white:     #f9fafb;
  --gray-50:       #f8fafc;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-400:      #94a3b8;
  --gray-600:      #475569;
  --text:          #1e293b;
  --text-med:      #475569;
  --text-light:    #64748b;
  --success:       #10b981;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.12);
  --shadow-blue:   0 6px 24px rgba(26,86,219,0.22);
  --radius:        10px;
  --radius-lg:     18px;
  --radius-full:   9999px;
  --transition:    all 0.28s ease;
  --container:     1180px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-med); line-height: 1.75; }

/* ===== UTILITIES ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-light { background: var(--gray-50); }
.section-blue  { background: var(--primary-bg); }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-label.accent { color: var(--accent-dark); background: var(--accent-light); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p   { font-size: 1.05rem; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-white p, .text-white h1, .text-white h2, .text-white h3 { color: var(--white); }
.fw-700 { font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,86,219,0.45), 0 0 24px rgba(26,86,219,0.35);
}
.btn-accent {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,158,11,0.5), 0 0 24px rgba(245,158,11,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(26,86,219,0.45), 0 0 24px rgba(26,86,219,0.3);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,86,219,0.45), 0 0 24px rgba(26,86,219,0.3);
}
.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-dark);
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo span { color: var(--accent-dark); }
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-dark);
  white-space: nowrap;
}
.nav-cta .btn-primary { color: #000000; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li a {
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-med);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.85rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.75rem;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.87rem;
  color: var(--text);
  border-radius: 6px;
}
.dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 130px 0 70px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p   { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { font-size: 0.7rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a56db 55%, #2563eb 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 40v-8h-2v8h-8v2h8v8h2v-8h8v-2h-8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  right: -100px; top: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(245,158,11,0.1);
  border-radius: 50%;
  left: -80px; bottom: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.03); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 760px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-trust-item svg, .hero-trust-item .icon {
  color: var(--accent);
  font-size: 1rem;
}

/* ===== HERO TWO-COLUMN LAYOUT & ANIMATIONS ===== */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}
.hero-inner .hero-content {
  flex: 1;
  min-width: 0;
  max-width: none;
}

/* Staggered entry animations for hero text */
.hero-label   { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero h1      { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero p       { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.25s both; }
.hero-actions { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both; }
.hero-trust   { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.45s both; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sparkles on highlight text */
.hero h1 .highlight { position: relative; display: inline-block; }
.sparkle {
  position: absolute;
  pointer-events: none;
  color: #fff;
  font-size: 0.45em;
  line-height: 1;
  opacity: 0;
  animation: sparkle-pop 6s ease-in-out var(--d, 0s) infinite;
}
@keyframes sparkle-pop {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  8%       { opacity: 0.45; transform: scale(1.1) rotate(15deg); }
  20%      { opacity: 0; transform: scale(0.3) rotate(40deg); }
}

/* Hero visual photo stack */
.hero-visual {
  flex-shrink: 0;
  width: 420px;
  position: relative;
  padding-bottom: 80px;
  animation: hero-slide-right 0.9s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}
@keyframes hero-slide-right {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-img-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,255,255,0.18);
}
.hero-img-main {
  width: 100%;
  transform: rotate(-2.5deg);
  animation: float-hero-main 9s ease-in-out infinite;
}
.hero-img-main img {
  width: 100%; height: 240px;
  object-fit: cover; display: block;
}
.hero-img-secondary {
  width: 60%;
  position: absolute;
  bottom: 0; right: -10px;
  transform: rotate(3.5deg);
  animation: float-hero-sec 11s ease-in-out infinite;
  z-index: 2;
}
.hero-img-secondary img {
  width: 100%; height: 155px;
  object-fit: cover; display: block;
}
@keyframes float-hero-main {
  0%,100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-14px); }
}
@keyframes float-hero-sec {
  0%,100% { transform: rotate(3.5deg) translateY(0); }
  50%      { transform: rotate(3.5deg) translateY(-10px); }
}

/* Floating stat / star badges */
.hero-stat-badge, .hero-star-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  text-align: center;
  z-index: 3;
  line-height: 1.3;
}
.hero-stat-badge {
  top: -18px; left: -18px;
  animation: float-badge-a 7s ease-in-out infinite;
}
.hero-star-badge {
  bottom: 24px; left: -18px;
  font-size: 0.78rem;
  animation: float-badge-b 8s ease-in-out 1s infinite;
}
.hsb-number {
  font-size: 1.5rem; font-weight: 900;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}
.hsb-label {
  font-size: 0.68rem; font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
@keyframes float-badge-a {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-badge-b {
  0%,100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}

/* Hide visual on smaller screens */
@media (max-width: 960px) {
  .hero-visual { display: none; }
  .hero-inner .hero-content { max-width: 760px; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.trust-item .ti-icon {
  width: 36px; height: 36px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number .accent { color: var(--accent); }
.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card.featured {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
  color: var(--white);
}
.service-card.featured::before { display: none; }
.service-card.featured h3,
.service-card.featured p { color: var(--white); }
.service-card.featured p { opacity: 0.85; }

.service-icon {
  width: 62px; height: 62px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.service-card.featured .service-icon {
  background: rgba(255,255,255,0.15);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p  { font-size: 0.93rem; margin-bottom: 20px; }
.service-card .card-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card.featured .card-link { color: var(--accent); }
.service-card .card-link:hover { gap: 10px; }

/* ===== BEFORE / AFTER ===== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.ba-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.ba-img {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.ba-img.before {
  background: linear-gradient(to bottom, #6b7280 0%, #374151 100%);
}
.ba-img.after  {
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
}
.ba-img .img-label {
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 4px;
}
.ba-divider {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.ba-card-body {
  background: var(--white);
  padding: 18px 20px;
}
.ba-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--primary-bg);
  line-height: 1;
}
.stars {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-med);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text);
}
.author-info span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 0; right: 0;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-number {
  width: 58px; height: 58px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-blue);
}
.step-card h4 { margin-bottom: 8px; }

/* ===== SERVICE AREAS ===== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.area-pill {
  background: var(--primary-bg);
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}
.area-pill:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.area-pill.featured {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2  { color: var(--white); }
.cta-section p   { color: rgba(255,255,255,0.8); max-width: 520px; margin: 14px auto 36px; font-size: 1.05rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.cta-phone strong { color: var(--white); }

/* ===== QUOTE FORM ===== */
.quote-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .required { color: #ef4444; margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control {
  min-height: 130px;
  resize: vertical;
}
.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}
.form-submit-wrap { text-align: center; margin-top: 8px; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #065f46;
  font-weight: 600;
}
.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-light);
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img .blog-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-body { padding: 24px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 0.88rem; margin-bottom: 18px; }
.read-more {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more:hover { gap: 10px; color: var(--primary-dark); }

/* Blog Post Layout */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.blog-content h2 { margin: 32px 0 14px; font-size: 1.4rem; }
.blog-content h3 { margin: 24px 0 10px; font-size: 1.15rem; color: var(--primary-dark); }
.blog-content p  { margin-bottom: 18px; line-height: 1.8; }
.blog-content ul, .blog-content ol { padding-left: 24px; margin-bottom: 18px; }
.blog-content li { margin-bottom: 8px; color: var(--text-med); line-height: 1.7; }
.blog-content .highlight-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.blog-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
  color: var(--primary-dark);
}
.sidebar-widget ul li a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-med);
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-widget ul li a:hover { color: var(--primary); padding-left: 6px; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
}
.sidebar-cta h4 { color: var(--white); border-bottom-color: rgba(255,255,255,0.2); }
.sidebar-cta p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 18px; }

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.team-photo {
  height: 240px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.4);
}
.team-body { padding: 24px; }
.team-body h3 { margin-bottom: 4px; }
.team-role {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.team-body p { font-size: 0.9rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  padding: 28px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.value-card h4 { margin-bottom: 8px; color: var(--primary-dark); }
.value-card p  { font-size: 0.88rem; }

/* ===== SERVICES PAGE DETAILS ===== */
.service-detail {
  padding: 70px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-visual-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 4rem;
}
.service-visual-placeholder span {
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.service-detail-content .section-label { margin-bottom: 12px; }
.service-detail-content h2 { margin-bottom: 16px; }
.service-detail-content p  { margin-bottom: 18px; }
.service-detail-content ul.check-list { margin-bottom: 28px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-med);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .nav-logo { margin-bottom: 18px; color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 280px; }
.footer-nap {
  margin-top: 22px;
  font-size: 0.88rem;
}
.footer-nap li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-nap .nap-icon { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-links li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  display: block;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--white); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: var(--white); }

/* ===== ADMIN DASHBOARD ===== */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { font-size: 1.2rem; color: var(--white); }
.admin-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.admin-stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.admin-stat-card .lbl { font-size: 0.85rem; color: var(--text-light); }
.submissions-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.submissions-table h2 { padding: 22px 28px; border-bottom: 1px solid var(--gray-200); font-size: 1.1rem; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray-50);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-align: left;
}
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-new { background: #dcfce7; color: #166534; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  width: 380px;
  text-align: center;
}
.login-card h2 { margin-bottom: 8px; }
.login-card p  { margin-bottom: 28px; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 36px; }
  .service-detail-inner.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 72px);
    background: var(--white);
    padding: 24px;
    gap: 4px;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--gray-200);
  }
  .nav-menu.open .nav-cta { display: block; margin: 16px 0 0; }
  .nav-menu.open li a { font-size: 1rem; padding: 14px 16px; border-radius: 10px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-50); margin-top: 4px; }

  /* Hero */
  .hero h1 { font-size: 2rem; }
  .hero-content { padding: 48px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-trust { gap: 12px; }
  .hero-trust-item { font-size: 0.82rem; }

  /* Page header */
  .page-header { padding: 90px 0 48px; }
  .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Section headings */
  .section-header h2, .section h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }

  /* Service/about detail images — prevent 360px fixed height from miscropping on mobile */
  .service-detail-visual img { height: 220px !important; object-position: center !important; }

  /* About team grid */
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .quote-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Misc */
  .process-steps::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .cta-section { padding: 60px 0; }
  .testimonial-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; text-align: center; }
  .btn-lg { padding: 15px 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header { padding: 80px 0 40px; }
  .section { padding: 44px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; justify-content: flex-start; }
  .service-detail-visual img { height: 180px !important; }
}
