/*
Theme Name: Carl's Transmission
Theme URI: https://carlstransmission.com
Author: Carl's Transmission
Description: A clean, professional theme for Carl's Transmission auto repair shop.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: carls-transmission
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C0392B;
  --dark:   #C0392B;
  --gray:   #555;
  --light:  #fff5f5;
  --white:  #ffffff;
  --border: #ddd;
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1,h2,h3,h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4rem 0; }
.section--gray { background: var(--light); }

/* ===========================
   HEADER & NAV
=========================== */
.site-header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: relative; /* needed for mobile nav dropdown */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.site-logo { display: flex; flex-direction: column; gap: 0; }
.site-logo .name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-logo .tagline {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.site-logo a:hover { text-decoration: none; }

nav ul { list-style: none; display: flex; gap: 2rem; }
nav a {
  color: #ccc;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--red); text-decoration: none; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 25px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  #site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav a { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
}

/* ===========================
   HERO
=========================== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://carlstransmission.com/wp-content/uploads/2019/10/DSCN0259.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--red); }
.hero p  { font-size: 1.15rem; color: #ddd; margin-bottom: 2rem; }
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #a93226; text-decoration: none; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  margin-left: 0.75rem;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

/* ===========================
   TRUST BAR
=========================== */
.trust-bar {
  background: var(--red);
  color: var(--white);
  padding: 1rem 1.5rem;
}
.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
}
.trust-item {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.trust-item strong { display: block; font-size: 1.3rem; }

/* ===========================
   SERVICES GRID
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
  border-radius: 3px;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.service-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Section heading */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0.5rem; }
.section-heading p { color: var(--gray); }
.divider {
  width: 50px; height: 3px;
  background: var(--red);
  margin: 0.75rem auto 0;
}

/* ===========================
   ABOUT STRIP
=========================== */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-strip img { border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.about-strip h2 { margin-bottom: 1rem; }
.about-strip ul { padding-left: 1.25rem; color: var(--gray); }
.about-strip ul li { margin-bottom: 0.5rem; }

@media (max-width: 700px) {
  .about-strip { grid-template-columns: 1fr; }
}

/* ===========================
   CONTACT BAR
=========================== */
.contact-bar {
  background: var(--red);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.contact-bar h2 { color: var(--white); margin-bottom: 0.5rem; }
.contact-bar p { color: #aaa; margin-bottom: 1.5rem; }
.contact-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-item .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #888; }
.contact-item .value { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); }
.contact-item a.value { color: var(--red); }

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
  background: var(--red);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 { color: var(--white); }
.page-header .breadcrumb { color: #888; font-size: 0.85rem; margin-top: 0.5rem; }
.page-header .breadcrumb a { color: #aaa; }

/* ===========================
   SERVICES PAGE LIST
=========================== */
.services-list { max-width: 800px; margin: 0 auto; }
.services-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}
.services-list ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  font-size: 0.95rem;
}
.services-list ul li::before { content: '✓ '; color: var(--red); font-weight: bold; }
@media (max-width: 600px) { .services-list ul { grid-template-columns: 1fr; } }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #111;
  color: #888;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: #aaa; }
.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #888; }
.footer-nav a:hover { color: var(--red); }
