/* ═══════════════════════════════════════════════════════
   LOCAL BUSINESS TEMPLATE — STYLES
   Colors are set as CSS variables by config.js on load.
   ═══════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES (defaults, overridden by config.js) ─── */
:root {
  --primary: #1a5276;
  --primary-dark: #123a54;
  --accent: #e67e22;
  --accent-dark: #cf6d17;
  --light: #f8f9fa;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { line-height: 1.2; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-title--left { text-align: left; }

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-dark); }

.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn--lg { padding: 16px 36px; font-size: 1.1rem; }
.btn--full { width: 100%; }

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 1;
  min-width: 0;
}

.header__nav {
  display: none;
  gap: 32px;
}

.header__link {
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  font-size: 0.95rem;
}
.header__link:hover { color: var(--primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.header__cta {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown */
.header__nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 20px;
  gap: 0;
  box-shadow: var(--shadow-lg);
}

.header__nav.active .header__link {
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
}

/* ─── HERO ─── */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.hero__inner { max-width: 800px; margin: 0 auto; }

.hero__headline {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero__sub {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--dark);
  color: #fff;
  padding: 24px 0;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-badge__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.trust-badge__value {
  font-size: 1.5rem;
  font-weight: 800;
}

.trust-badge__label {
  font-size: 0.8rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── SERVICES ─── */
.services {
  padding: 80px 0;
  background: var(--light);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 2.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.service-card__desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.services__cta { text-align: center; }

/* ─── ABOUT ─── */
.about { padding: 80px 0; }

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about__image { text-align: center; }

.about__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__placeholder { color: var(--primary); opacity: 0.4; }

.about__owner-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.about__owner-title {
  color: var(--text-light);
  font-size: 0.9rem;
}

.about__text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about__highlights {
  list-style: none;
  margin-bottom: 2rem;
}

.about__highlights li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.about__highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: 80px 0;
  background: var(--light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.testimonial-card__stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  position: relative;
}

.testimonial-card__text::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -4px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__author {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-card__location {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ─── CONTACT ─── */
.contact { padding: 80px 0; }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact__sub {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.contact__detail svg { color: var(--primary); flex-shrink: 0; }

.contact__detail a {
  color: var(--primary);
  font-weight: 500;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact__success {
  text-align: center;
  padding: 40px 20px;
}

.contact__success svg {
  color: #27ae60;
  margin-bottom: 16px;
}

.contact__success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--primary);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer__brand p {
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.footer__social a:hover { background: var(--accent); }

.footer__col h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.footer__col a,
.footer__col p {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color var(--transition);
  line-height: 1.5;
}

.footer__col a:hover { color: #fff; }

.footer__emergency {
  color: var(--accent) !important;
  font-weight: 600;
  opacity: 1 !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ─── MOBILE CALL BAR ─── */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

/* ─── SCROLL ANIMATIONS ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≥ 640px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .hero__headline { font-size: 2.8rem; }
  .hero__ctas { flex-direction: row; justify-content: center; }

  .trust-bar__inner { grid-template-columns: repeat(4, 1fr); }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }

  .contact__form { grid-template-columns: repeat(2, 1fr); }
  .form-group--full { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥ 1024px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .header__logo { font-size: 1.3rem; flex-shrink: 0; }
  .header__cta { padding: 10px 20px; font-size: 0.9rem; }

  .header__nav {
    display: flex;
  }

  .header__phone { display: flex; }
  .header__hamburger { display: none; }

  .hero { padding: 140px 0 100px; }
  .hero__headline { font-size: 3.2rem; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }

  .about__inner { grid-template-columns: 1fr 1.5fr; }

  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }

  .contact__inner { grid-template-columns: 1fr 1.2fr; }

  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ─── MOBILE-ONLY: show call bar, add bottom padding ─── */
@media (max-width: 639px) {
  .mobile-call-bar { display: block; }
  .footer { padding-bottom: 70px; }
}
