/* ============================================
   BARRIE GARAGE DOOR DOCTOR — style.css
   Navy #1a2744 | Orange #ff6b35 | White #fff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === VARIABLES === */
:root {
  --navy: #1a2744;
  --navy-dark: #111c33;
  --orange: #ff6b35;
  --orange-dark: #e55a25;
  --white: #ffffff;
  --light: #f5f7fa;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e4ed;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 4vw, 34px); font-weight: 600; }
h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }

p { margin-bottom: 1rem; color: #333; }

/* === TOP BAR === */
.top-bar {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-bar a {
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
}

/* === HEADER === */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo span { color: var(--orange); }

/* === NAV === */
nav { display: flex; align-items: center; gap: 4px; }

nav > ul { display: flex; align-items: center; gap: 4px; }

nav > ul > li { position: relative; }

nav > ul > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

nav > ul > li > a:hover,
nav > ul > li.active > a {
  background: rgba(255,107,53,0.15);
  color: var(--orange);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border-top: 3px solid var(--orange);
  z-index: 999;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--orange);
  border-left-color: var(--orange);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
}

/* === PHONE CTA BUTTON (header) === */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.header-phone .icon { font-size: 16px; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243560 60%, #1a2744 100%);
  color: var(--white);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 18px 36px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  margin-bottom: 16px;
}

.hero-phone:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255,107,53,0.5);
}

.hero-sub {
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 0 !important;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--orange);
  padding: 14px 20px;
}

.trust-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 36px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trust-item .check {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* === CONTAINER === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === SECTION === */
section { padding: 60px 20px; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 { margin-bottom: 12px; }

.section-title p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: rgba(255,107,53,0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
}

/* === SERVICES GRID === */
.services-section { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  transition: border-top-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  border-top-color: var(--orange);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,39,68,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--navy);
}

.service-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card a.btn-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.service-card a.btn-link:hover { gap: 10px; }

/* === ALTERNATING SERVICE BLOCKS (Kyle style) === */
.service-block {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-image {
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-block-image picture,
.service-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-block-image picture { aspect-ratio: 4/3; }

/* Footer NAP <address> reset (browsers italicize <address> by default) */
.business-nap { font-style: normal; line-height: 1.7; margin-top: 12px; }
.business-nap strong { font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }

.service-block-image .img-placeholder {
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

.service-block-image .img-placeholder .img-icon {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.4;
}

.service-block-image .img-placeholder p {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.service-block-content h2 {
  margin-bottom: 16px;
}

.service-block-content p {
  color: #444;
  margin-bottom: 16px;
  font-size: 15px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(255,107,53,0.3);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255,107,53,0.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* === FORM === */
.form-section {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px;
}

.form-section h2 { color: var(--white); margin-bottom: 8px; }
.form-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; }

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* GHL FORM PLACEHOLDER */
.ghl-form-placeholder {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 20px;
}

.ghl-form-placeholder strong {
  display: block;
  font-size: 15px;
  color: var(--orange);
  margin-bottom: 8px;
  font-family: 'Oswald', sans-serif;
}

/* Fallback static form (shown until GHL replaced) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  font-family: 'Oswald', sans-serif;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.12);
}

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

.form-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
}

.form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* === FAQ === */
.faq-section { background: var(--light); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--light); }

.faq-question .toggle {
  width: 28px;
  height: 28px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question .toggle { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.faq-item.open .faq-answer { display: block; }

/* === AREAS SECTION === */
.areas-section { padding: 60px 20px; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.area-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.area-card:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.area-card .area-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

/* === MAP === */
.map-wrap {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === EMERGENCY BANNER === */
.emergency-banner {
  background: #d32f2f;
  color: var(--white);
  text-align: center;
  padding: 20px;
}

.emergency-banner h3 {
  color: var(--white);
  font-size: clamp(18px, 3vw, 26px);
  margin-bottom: 8px;
}

.emergency-banner a {
  color: #ffeb3b;
  font-size: clamp(20px, 4vw, 32px);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243560 100%);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 24px; }

/* === CONTENT SECTION (inner pages) === */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.content-section h2 { margin-bottom: 16px; margin-top: 36px; }
.content-section h2:first-child { margin-top: 0; }
.content-section ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}
.content-section ul li { margin-bottom: 6px; color: #333; }

.cta-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.cta-box h3 { color: var(--white); margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.cta-phone:hover { background: var(--orange-dark); }

/* === FOOTER === */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 20px;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-phone {
  color: var(--orange);
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }

  nav > ul { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-dark); padding: 20px; gap: 4px; z-index: 999; max-height: calc(100vh - 68px); overflow-y: auto; }
  nav > ul.open { display: flex; }
  nav > ul > li > a { padding: 12px 16px; font-size: 16px; border-radius: 6px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.05); border-radius: 6px; padding: 4px 0; margin-top: 4px; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255,255,255,0.8); padding: 10px 24px; font-size: 14px; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--orange); }

  .menu-toggle { display: block; }
  .header-phone { padding: 8px 14px; font-size: 15px; }
  .header-phone .phone-label { display: none; }

  .hero { padding: 40px 16px 36px; }
  .hero-phone { font-size: 24px; padding: 14px 24px; }

  .trust-bar-inner { gap: 12px 24px; }
  .trust-item { font-size: 11px; }

  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .service-block.reverse { direction: ltr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  section { padding: 40px 16px; }
}

@media (max-width: 480px) {
  .logo { font-size: 17px; }
  .header-phone { font-size: 13px; padding: 7px 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === FAQ JS-free fallback: details/summary === */
details.faq-item { cursor: pointer; }
details.faq-item summary { list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
