/* ===========================================================
   Rattenbury's Auto Works — design tokens
   =========================================================== */
:root {
  --charcoal:     #191d21;
  --charcoal-mid: #23282e;
  --slate:        #3f4c5c;
  --slate-light:  #5c6b7d;
  --gold:         #c99a3d;
  --gold-dark:    #a97f2c;
  --gold-light:   #e0bd6f;
  --offwhite:     #f5f2ea;
  --white:        #ffffff;
  --text:         #22262a;
  --text-mid:     #565f68;
  --border:       #e4ded0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text, .navbar-nav .nav-link {
  font-family: 'Oswald', sans-serif;
}

h2.section-title, h3 {
  font-weight: 600;
}

a { color: var(--gold-dark); }
a:hover { color: var(--gold); }

.section-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ===========================================================
   Navbar
   =========================================================== */
#mainNav {
  background: var(--charcoal);
  padding: 0.6rem 0;
  border-bottom: 3px solid var(--gold);
}

.brand-chip {
  background: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-chip img { width: 34px; height: 34px; object-fit: contain; }

.brand-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-accent { color: var(--gold); }

.navbar-nav .nav-link {
  color: var(--offwhite);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
}
.navbar-nav .nav-link:hover { color: var(--gold); }
.navbar-nav .nav-cta {
  border: 1px solid var(--gold);
  border-radius: 3px;
  margin-left: 0.5rem;
  color: var(--gold) !important;
}
.navbar-nav .nav-cta:hover { background: var(--gold); color: var(--charcoal) !important; }
.navbar-toggler { border-color: var(--gold); }
.navbar-toggler:focus { box-shadow: none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(25,29,33,0.35) 0%, rgba(25,29,33,0.15) 45%, rgba(25,29,33,0.55) 100%);
}

.hero-content {
  max-width: 720px;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 8px;
}

.hero-eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: var(--gold-light);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-tagline {
  color: var(--white);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 1rem auto 1.75rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9);
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

.btn-outline-light {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }

/* ===========================================================
   About
   =========================================================== */
.section-about { padding: 6rem 0; background: var(--white); }

.about-photo-wrap {
  border: 6px solid var(--offwhite);
  box-shadow: 0 20px 40px rgba(25,29,33,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.about-photo { display: block; width: 100%; height: auto; }

.family-quote {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--slate);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

.ase-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.ase-cert-img {
  width: 130px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.ase-badge-text { display: flex; flex-direction: column; }
.ase-badge-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ase-badge-label i { color: var(--gold-dark); }
.ase-badge-detail { color: var(--text-mid); font-size: 0.92rem; margin-top: 0.25rem; }

/* ===========================================================
   Why Choose Us
   =========================================================== */
.section-why {
  background: var(--charcoal);
  padding: 6rem 0;
}
.section-why .section-eyebrow { color: var(--gold-light); }
.section-why .section-title { color: var(--white); }

.why-card {
  background: var(--charcoal-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.why-icon { font-size: 2.1rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.why-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.why-card p { color: #b8bfc7; font-size: 0.95rem; margin: 0; }

/* ===========================================================
   Services
   =========================================================== */
.section-services { padding: 6rem 0; background: var(--offwhite); }
.section-services .section-title { max-width: 800px; margin-left: auto; margin-right: auto; }

.service-card {
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(25,29,33,0.06);
  padding: 2.25rem 1.75rem;
  height: 100%;
  text-align: center;
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}
.service-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-mid); font-size: 0.95rem; margin: 0; }

/* ===========================================================
   Gallery
   =========================================================== */
.section-gallery { padding: 6rem 0; background: var(--white); }
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: var(--white);
  font-size: 0.8rem;
  padding: 1.75rem 0.75rem 0.6rem;
  line-height: 1.2;
}

/* ===========================================================
   Financing
   =========================================================== */
.section-financing {
  background: linear-gradient(135deg, var(--slate) 0%, var(--charcoal) 100%);
  padding: 5rem 0;
}
.section-financing .section-eyebrow { color: var(--gold-light); }
.financing-title {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 700px;
  margin: 0 auto 1rem;
}
.financing-text {
  color: #d9dee3;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ===========================================================
   Contact
   =========================================================== */
.section-contact { padding: 6rem 0; background: var(--offwhite); }
.contact-lead { color: var(--text-mid); margin-bottom: 2rem; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i { color: var(--gold-dark); font-size: 1.2rem; margin-top: 0.15rem; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--gold-dark); }

.map-wrap {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(25,29,33,0.12);
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--charcoal);
  color: #b8bfc7;
  padding: 2.5rem 0;
  border-top: 3px solid var(--gold);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
}
.footer-brand img { border-radius: 50%; background: var(--white); }
.footer-copy { font-size: 0.8rem; margin: 0.5rem 0 0; color: #8a929b; }

.footer-links { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #b8bfc7; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }

.footer-social {
  color: var(--gold);
  font-size: 1.3rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.footer-social:hover { color: var(--gold-light); }
.powered-by { font-size: 0.85rem; margin: 0; color: #8a929b; }
.powered-by a { color: var(--gold); text-decoration: none; font-weight: 600; }
.powered-by a:hover { color: var(--gold-light); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: var(--charcoal);
    margin-top: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
  }
  .navbar-nav .nav-cta { display: inline-block; margin-top: 0.5rem; margin-left: 1rem; }
}

@media (max-width: 575.98px) {
  .ase-badge { flex-direction: column; text-align: center; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-content { padding: 2rem 1.25rem !important; }
}
