/* ============================================
   Smog Check Sites — Core Stylesheet
   Professional & Trustworthy Automotive Design
   Navy / Amber palette
   ============================================ */

:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-dark: #111b30;
  --amber: #d4911e;
  --amber-light: #e8a83a;
  --amber-dark: #b87a15;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --light-gray: #e8eaef;
  --mid-gray: #9ba3b2;
  --dark-gray: #4a5568;
  --charcoal: #2d3748;
  --green: #2d8a4e;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26,39,68,0.08);
  --shadow-md: 0 4px 12px rgba(26,39,68,0.1);
  --shadow-lg: 0 8px 30px rgba(26,39,68,0.12);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--charcoal); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.25; }
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.6rem); }
p { margin-bottom: 1rem; color: var(--dark-gray); }

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-pad) 0; }
.section--gray { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.8); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 0.75rem auto 0; font-size: 1.1rem; }
.label { display: inline-block; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem; }
.section--navy .label { color: var(--amber-light); }

/* === Grid === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all 0.25s;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--amber); color: var(--white); }
.btn--primary:hover { background: var(--amber-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--off-white); color: var(--navy); transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === Top Bar === */
.top-bar { background: var(--navy-dark); color: rgba(255,255,255,0.85); font-size: 0.85rem; padding: 0.5rem 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--amber-light); }
.top-bar__contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 768px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar__hours { display: none; }
}

/* === Header === */
.header {
  background: var(--white); border-bottom: 1px solid var(--light-gray);
  position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm);
}
.header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo__icon {
  width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); font-size: 1.2rem; font-weight: 800;
}
.logo__img { height: 40px; width: auto; }
@media (max-width: 600px) { .logo__img { height: 32px; } }
.logo__text { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); line-height: 1.15; }
.logo__text span { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; color: var(--mid-gray); }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.5rem 0.85rem; font-size: 0.88rem; font-weight: 500; color: var(--charcoal); border-radius: var(--radius); transition: all 0.2s; }
.nav a:hover, .nav a.active { color: var(--navy); background: var(--off-white); }
.nav__cta { margin-left: 0.5rem; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--light-gray); box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.75rem 1rem; }
  .nav__cta { margin-left: 0; margin-top: 0.5rem; }
}

/* === Hero === */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-dark);
  padding: clamp(4rem, 10vw, 7rem) 0; overflow: hidden;
}
.hero__bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(212,145,30,0.08) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light), var(--amber));
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 680px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--amber-light);
}
.hero h1 { color: var(--white); margin: 1.5rem 0 1.25rem; font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
.hero h1 em { font-style: normal; color: var(--amber-light); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 540px; line-height: 1.8; }
.hero--sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }

.hero__stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stat-value { font-family: var(--font-display); font-size: 1.8rem; color: var(--amber-light); line-height: 1; }
.hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }
@media (max-width: 600px) { .hero__stats { flex-wrap: wrap; gap: 1.5rem; } }

/* === Trust Bar === */
.trust-bar { background: var(--white); padding: 1.5rem 0; border-bottom: 1px solid var(--light-gray); }
.trust-bar .container { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.trust-item__icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--off-white);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}

/* === Cards === */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--light-gray); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }
.card--dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.card--dark h3 { color: var(--white); }

/* === Feature Row === */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row__image {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--light-gray);
  aspect-ratio: 4/3;
}
.feature-row__image img {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-row__content h2 { margin-bottom: 1rem; }
.feature-row__content p { margin-bottom: 1rem; }
@media (max-width: 900px) {
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
}

/* === Steps === */
.step { display: flex; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--light-gray); }
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step__number {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--amber-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem;
}
.step__content h3 { margin-bottom: 0.4rem; }
.step__content p { font-size: 0.95rem; margin-bottom: 0; }
.section--navy .step { border-bottom-color: rgba(255,255,255,0.1); }

/* === FAQ Accordion === */
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-item__question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  color: var(--navy); text-align: left; line-height: 1.4;
}
.faq-item__question:hover { color: var(--amber-dark); }
.faq-item__icon { font-size: 1.2rem; color: var(--amber); transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
.faq-item.open .faq-item__answer { max-height: 500px; padding-bottom: 1.25rem; }
.faq-item__answer p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius-lg); padding: 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; left: -30%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(212,145,30,0.06) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 1.5rem; position: relative; }
.cta-banner .btn-group { justify-content: center; position: relative; }

/* === Info Box === */
.info-box { background: var(--off-white); border-radius: var(--radius-lg); padding: 2rem; border-left: 4px solid var(--amber); }
.info-box h4 { margin-bottom: 0.5rem; }
.info-box p { font-size: 0.95rem; margin-bottom: 0; }
.info-box--dark { background: rgba(255,255,255,0.05); border-left-color: var(--amber-light); }
.info-box--dark h4 { color: var(--white); }

/* === Map === */
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); }
.map-container iframe { width: 100%; height: 400px; display: block; border: none; }

/* === Yocale Embed === */
.yocale-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--light-gray); min-height: 600px; }
.yocale-embed iframe { width: 100%; min-height: 600px; border: none; display: block; }

/* === Footer === */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer a { color: rgba(255,255,255,0.7); display: block; padding: 0.25rem 0; font-size: 0.9rem; }
.footer a:hover { color: var(--amber-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.max-w-prose { max-width: 720px; margin-left: auto; margin-right: auto; }
