/* ===========================================================
   CaliLock Solutions & Locksmith — Design System
   Sunset gradient premium/Westside brand
   =========================================================== */

:root {
  --sunset-gold: #F5A623;
  --sunset-orange: #E0592A;
  --sunset-gradient: linear-gradient(135deg, #F5A623 0%, #E0592A 100%);
  --sunset-gradient-soft: linear-gradient(135deg, rgba(245,166,35,0.12) 0%, rgba(224,89,42,0.12) 100%);
  --charcoal: #2B2B2B;
  --charcoal-soft: #3A3A3C;
  --gray: #8B8F96;
  --gray-light: #C8CBD0;
  --off-white: #FAF9F7;
  --white: #FFFFFF;
  --border-soft: #ECEAE6;
  --shadow-sm: 0 2px 8px rgba(43,43,43,0.06);
  --shadow-md: 0 8px 24px rgba(43,43,43,0.10);
  --shadow-lg: 0 20px 48px rgba(43,43,43,0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Inline icon SVGs default to a sane size everywhere; specific contexts override below */
svg { width: 20px; height: 20px; flex-shrink: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunset-orange);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sunset-gradient);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(224,89,42,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224,89,42,0.36); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  /* Note: backdrop-filter lives on ::before, not here — putting it directly on
     .site-header would create a CSS containing block for position:fixed
     descendants (like .main-nav on mobile), trapping the mobile menu inside
     the header's own box instead of letting it cover the viewport. */
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--charcoal-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--sunset-gradient);
  transition: width 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--sunset-orange); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--charcoal);
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 90px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(245,166,35,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(224,89,42,0.22), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 26px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lede { color: var(--gray-light); margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--gray-light); font-weight: 500; }
.trust-item svg { color: var(--sunset-gold); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(43,43,43,0.55) 100%);
}
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge svg { color: var(--sunset-orange); flex-shrink: 0; }
.hero-badge strong { display: block; font-size: 0.95rem; color: var(--charcoal); }
.hero-badge span { font-size: 0.78rem; color: var(--gray); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
}

/* ---------- Section spacing ---------- */

.section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-header { max-width: 680px; margin-bottom: 52px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-dark .lede { color: var(--gray-light); }
.section-dark h2 { color: var(--white); }

/* ---------- Service cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--sunset-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.icon-badge {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--sunset-gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--sunset-orange);
}
.icon-badge svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.96rem; margin-bottom: 16px; }
.service-card .card-link { font-weight: 600; font-size: 0.9rem; color: var(--sunset-orange); display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--charcoal); color: var(--white); padding: 4px 10px; border-radius: 999px;
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Why us / feature list ---------- */

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-item { text-align: center; padding: 10px; }
.feature-item .icon-badge { margin: 0 auto 18px; }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { color: var(--gray); font-size: 0.92rem; }

@media (max-width: 900px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- Split content blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img, .split .split-media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.split-media { aspect-ratio: 4/3; background: var(--border-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }

.checklist { margin-top: 22px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.98rem; }
.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--sunset-orange); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Stats ---------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  box-shadow: var(--shadow-md);
  margin-top: -108px;
  position: relative;
  z-index: 3;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; background: var(--sunset-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.86rem; color: var(--gray); font-weight: 500; }

@media (max-width: 860px) { .stats-bar { grid-template-columns: repeat(2,1fr); margin-top: -60px; } }

/* ---------- Areas ---------- */

.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.area-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.area-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.area-card h3 svg { color: var(--sunset-orange); }
.area-card p { color: var(--gray); font-size: 0.92rem; }

@media (max-width: 860px) { .area-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--sunset-gold); }
.testimonial-card p.quote { font-size: 0.98rem; margin-bottom: 18px; color: var(--charcoal-soft); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sunset-gradient);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; font-size: 1.02rem; gap: 20px;
}
.faq-question svg { flex-shrink: 0; transition: transform 0.25s ease; color: var(--sunset-orange); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--gray); font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 14px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sunset-gradient);
  border-radius: var(--radius-lg);
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-primary { background: var(--white); color: var(--sunset-orange); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.cta-band .btn-primary:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.24); }

@media (max-width: 760px) { .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; } }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--charcoal-soft); }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.96rem;
  background: var(--off-white);
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--sunset-orange); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: var(--gray-light); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 38px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--gray); max-width: 300px; margin-bottom: 18px; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.social-row a:hover { background: var(--sunset-orange); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--gray-light); transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--sunset-gold); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin-bottom: 14px; color: var(--gray-light); }
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; color: var(--sunset-gold); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--gray); }
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--sunset-gold); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(245,166,35,0.2), transparent 50%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; color: var(--gray-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--sunset-gold); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: var(--gray-light); max-width: 620px; }

/* ---------- Gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid img { width: 100%; background: var(--border-soft); border-radius: var(--radius-sm); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-sm); transition: transform 0.25s ease; }
.gallery-grid img:hover { transform: scale(1.03); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.badge-license {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: var(--gray-light);
  padding: 8px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
}

/* ---------- Icon size overrides ---------- */

.btn svg { width: 18px; height: 18px; }
.nav-toggle svg { width: 24px; height: 24px; }
.trust-item svg { width: 16px; height: 16px; }
.hero-badge svg { width: 24px; height: 24px; }
.checklist svg { width: 18px; height: 18px; }
.area-card h3 svg { width: 18px; height: 18px; }
.card-link svg { width: 14px; height: 14px; }
.social-row svg { width: 18px; height: 18px; }
.stars svg { width: 16px; height: 16px; }
.badge-license svg { width: 16px; height: 16px; }
.author-avatar svg { display: none; }

/* ---------- 404 ---------- */

.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 28px; }
.error-page .code { font-size: 6rem; font-weight: 800; background: var(--sunset-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
