/* =============================================
   Titusville Auto Glass Repair — Shared Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Questrial&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #1a1a1a;
  background: #eee;
}

a { color: #ef4e3e; text-decoration: none; }
a:hover { color: #c7382a; }
img { max-width: 100%; display: block; }

/* ---- NAV ---- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ef4e3e;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

nav.site-nav .nav-brand {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 60px;
}

nav.site-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  height: 100%;
  transition: opacity 0.15s;
}

nav.site-nav ul li a:hover { opacity: 0.8; color: #fff; }

nav.site-nav ul li a.active {
  border: 2px solid #fff;
  padding: 0 16px;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  background: rgba(199, 56, 42, 0.5);
  padding: 50px 60px;
  max-width: 700px;
  width: 90%;
}

.hero-overlay h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-overlay .hero-phone {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  display: block;
}

.btn {
  display: inline-block;
  background: #ef4e3e;
  color: #fff;
  font-family: 'Questrial', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: #c7382a; color: #fff; }

.btn-white {
  background: #fff;
  color: #ef4e3e;
}
.btn-white:hover { background: #f0f0f0; color: #c7382a; }

/* ---- CONTENT CARD ---- */
.content-card {
  background: #fff;
  max-width: 860px;
  margin: -100px auto 0;
  padding: 50px 40px 60px;
  box-shadow: 0 3px 11px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* ---- SECTION HEADINGS ---- */
.section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
}

.heading-rule {
  width: 100px;
  height: 7px;
  background: #c7382a;
  margin: 0 auto 28px;
  border: none;
}

/* ---- BODY TEXT ---- */
p {
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  line-height: 2;
  color: rgba(0,0,0,1);
  margin-bottom: 16px;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: flex;
  gap: 24px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 200px;
  padding: 24px 20px;
  border-top: 4px solid #ef4e3e;
  background: #fafafa;
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

/* ---- FEATURE CARDS ---- */
.features-grid {
  display: flex;
  gap: 24px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.feature-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 30px 20px;
  background: #fafafa;
  border-bottom: 4px solid #ef4e3e;
}

.feature-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

/* ---- FAQ ---- */
.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* ---- FORM ---- */
.form-section {
  background: #fff;
  padding: 40px;
  max-width: 620px;
  margin: 40px auto 0;
}

.form-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-family: 'Questrial', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid #000;
  padding: 10px 12px;
  font-family: 'Questrial', sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  border-radius: 0;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ef4e3e;
}

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

.form-submit { width: 100%; margin-top: 8px; font-size: 16px; padding: 16px; }

/* ---- FULL-WIDTH SECTIONS ---- */
.section-outer {
  padding: 60px 40px;
  background: #fff;
}

.section-outer.grey { background: #f5f5f5; }

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: #ef4e3e;
  text-align: center;
  padding: 50px 40px;
}

.cta-banner h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

/* ---- FOOTER ---- */
footer {
  background: #ef4e3e;
  color: #fff;
  text-align: center;
  padding: 30px 40px;
}

footer p {
  color: #fff;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
}

footer a { color: #fff; text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; min-height: 56px; }
  nav.site-nav ul { height: 56px; }
  nav.site-nav ul li a { padding: 0 10px; font-size: 14px; }
  nav.site-nav .nav-brand { font-size: 15px; max-width: 160px; }

  .hero { min-height: 360px; background-attachment: scroll; }
  .hero-overlay { padding: 30px 24px; }
  .hero-overlay h1 { font-size: 28px; }
  .hero-overlay .hero-phone { font-size: 26px; }

  .content-card { margin-top: -60px; padding: 30px 20px 40px; }

  .section-outer { padding: 40px 20px; }
  .features-grid, .services-grid { flex-direction: column; }

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