/* ============================================================
   All American Overhead Garage Door - Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }

ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --red:    #cc1f26;
  --red-dk: #a01820;
  --blue:   #1a3a6b;
  --blue-lt:#2255a4;
  --white:  #ffffff;
  --gray:   #f5f5f5;
  --text:   #333333;
  --border: #dde2ea;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--red);
  padding: 8px 0;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar-text {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.top-bar-text i { margin-right: 6px; }
.top-bar-phone {
  background: var(--white);
  color: var(--blue);
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.top-bar-phone:hover { background: var(--blue); color: var(--white); }
.top-bar-phone i { margin-right: 6px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-wrap { padding: 10px 0; }
.logo-wrap img { height: 70px; width: auto; }

nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
nav ul li a {
  color: var(--white);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  letter-spacing: .4px;
  transition: background .2s;
}
nav ul li a:hover,
nav ul li a.active { background: var(--red); }

/* Dropdown */
nav ul li { position: relative; }
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-lt);
  min-width: 220px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
nav ul li ul li:last-child a { border-bottom: none; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  nav ul li ul { position: static; display: none; box-shadow: none; }
  nav ul li ul.open { display: flex; }
  nav ul li a { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  background: linear-gradient(135deg, rgba(26,58,107,.88) 40%, rgba(204,31,38,.7) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 20px;
  color: var(--white);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero h1 span { color: #f9c840; }
.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: .92;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-red:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover { background: var(--white); color: var(--blue); }

/* Hero Form Card */
.hero-form-card {
  flex: 0 0 340px;
  background: var(--red);
  padding: 30px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  color: var(--white);
}
.hero-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.hero-form-card p { font-size: 13px; margin-bottom: 18px; opacity: .9; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.form-group textarea { height: 80px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-top: 6px;
}
.btn-submit:hover { background: var(--blue-lt); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--blue);
  padding: 18px 20px;
}
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.trust-item {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.trust-item i { color: #f9c840; font-size: 18px; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
section { padding: 70px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-title span { color: var(--red); }
.section-desc {
  font-size: 1rem;
  color: #555;
  max-width: 650px;
  margin-bottom: 40px;
}
.divider {
  width: 55px;
  height: 4px;
  background: var(--red);
  border-radius: 3px;
  margin-bottom: 20px;
}

/* ============================================================
   SERVICES GRID (Home)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--blue);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
  transition: opacity .3s;
}
.service-card:hover .service-card-bg { opacity: .35; }
.service-card-body {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  width: 100%;
}
.service-card-body h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card-body p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.55;
}
.btn-card {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-card:hover { background: var(--white); color: var(--blue); }

/* ============================================================
   ABOUT SECTION (Home)
   ============================================================ */
.about-home { background: var(--blue); color: var(--white); }
.about-home .section-title { color: var(--white); }
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-home-text p { margin-bottom: 16px; opacity: .9; font-size: 15px; }
.about-home-text .section-title { margin-bottom: 14px; }
.about-home-text .divider { background: var(--white); }
.features-list { margin-top: 24px; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.features-list li i { color: #f9c840; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.about-home-img img {
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  object-fit: cover;
  max-height: 480px;
}
@media (max-width: 768px) {
  .about-home-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--red);
  padding: 50px 20px;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta-band p { font-size: 1.05rem; opacity: .92; margin-bottom: 26px; }
.cta-band .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--red);
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  border: 2px solid var(--white);
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-white:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-outline-wh {
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  border: 2px solid var(--white);
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-wh:hover { background: var(--white); color: var(--red); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--gray); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 3px 15px rgba(0,0,0,.07);
  border-top: 4px solid var(--red);
}
.stars { color: #f9c840; margin-bottom: 12px; font-size: 16px; }
.testimonial-card p { font-size: 14.5px; color: #444; line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.reviewer-name { font-weight: 700; color: var(--blue); font-size: 14px; }

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info-box h3 { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info-item i {
  color: var(--red);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
}
.contact-info-item strong { display: block; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.contact-info-item span { font-size: 15px; color: #444; }
.contact-info-item a:hover { color: var(--red); }
.map-wrap { margin-top: 24px; border-radius: 10px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form-box { background: var(--blue); padding: 36px; border-radius: 10px; color: var(--white); }
.contact-form-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.contact-form-box p { font-size: 13.5px; opacity: .85; margin-bottom: 22px; }
.contact-form-box .form-group label { color: rgba(255,255,255,.85); }
.contact-form-box .btn-submit { background: var(--red); }
.contact-form-box .btn-submit:hover { background: var(--red-dk); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (Inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, rgba(26,58,107,.92) 0%, rgba(204,31,38,.75) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=80') center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.page-hero p {
  font-size: 1.1rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 24px;
}
.breadcrumb {
  font-size: 13px;
  opacity: .8;
  margin-top: 12px;
}
.breadcrumb a { color: #f9c840; }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   SERVICE PAGE LAYOUT
   ============================================================ */
.service-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.service-main h2 { font-size: 1.65rem; font-weight: 800; color: var(--blue); margin-bottom: 16px; }
.service-main h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue); margin: 26px 0 10px; }
.service-main p { color: #444; margin-bottom: 16px; font-size: 15.5px; line-height: 1.75; }
.service-main ul { margin: 12px 0 20px 0; }
.service-main ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #444;
  font-size: 15px;
  line-height: 1.65;
}
.service-main ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--red);
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 13px;
}
.service-img { border-radius: 10px; overflow: hidden; margin: 26px 0; }
.service-img img { width: 100%; object-fit: cover; max-height: 340px; }
.anchor-link {
  color: var(--red);
  font-weight: 600;
  border-bottom: 1px solid var(--red);
  transition: color .2s;
}
.anchor-link:hover { color: var(--blue); border-color: var(--blue); }

/* Sidebar */
.service-sidebar { position: sticky; top: 90px; }
.sidebar-box {
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-box h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,.2); padding-bottom: 10px; }
.sidebar-box ul li { margin-bottom: 8px; }
.sidebar-box ul li a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.sidebar-box ul li a:hover { color: #f9c840; }
.sidebar-box ul li a i { font-size: 12px; color: #f9c840; }
.sidebar-cta { background: var(--red); }
.sidebar-cta .btn-white { width: 100%; justify-content: center; margin-top: 6px; }
.sidebar-cta p { font-size: 14px; margin-bottom: 12px; opacity: .9; }
.sidebar-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.sidebar-info i { color: #f9c840; flex-shrink: 0; }

@media (max-width: 900px) {
  .service-page-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
.about-grid img { border-radius: 10px; width: 100%; object-fit: cover; max-height: 440px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.about-text h2 { font-size: 1.6rem; font-weight: 800; color: var(--blue); margin-bottom: 16px; }
.about-text p { color: #444; margin-bottom: 16px; font-size: 15.5px; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.value-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,.07);
  border-top: 4px solid var(--red);
  transition: transform .25s;
}
.value-card:hover { transform: translateY(-5px); }
.value-card i { font-size: 2.2rem; color: var(--blue); margin-bottom: 14px; }
.value-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.value-card p { color: #555; font-size: 14.5px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 768px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #0f1f3d;
  color: rgba(255,255,255,.8);
  padding: 60px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 65px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
  transition: background .2s;
}
.social-links a:hover { background: var(--red); }
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: #f9c840; }
.footer-col ul li a i { font-size: 11px; color: var(--red); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact-item i { color: var(--red); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a:hover { color: #f9c840; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY CHOOSE US (Home)
   ============================================================ */
.why-us { background: var(--white); }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.why-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.1); transform: translateY(-4px); }
.why-card i { font-size: 2.4rem; color: var(--red); margin-bottom: 14px; display: block; }
.why-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.why-card p { color: #555; font-size: 14px; }

/* ============================================================
   MISC
   ============================================================ */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.tag-red {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.info-box {
  background: var(--gray);
  border-left: 5px solid var(--red);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.info-box p { color: #444; font-size: 15px; margin: 0; }
