/* febarservicecenter.in — base stylesheet. Mobile-first. */

:root {
  --color-primary: #0b5fa5;
  --color-primary-dark: #08477d;
  --color-accent: #ff7a00;
  --color-whatsapp: #25d366;
  --color-text: #1c2733;
  --color-muted: #5b6b7a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-border: #e1e8ee;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 40, 70, 0.08);
  --max-width: 1180px;
  --header-h: 64px;
  --sticky-h: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-call { background: var(--color-accent); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-book { background: var(--color-primary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.98); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo { font-weight: 800; font-size: 18px; color: var(--color-primary-dark); }
.main-nav { display: none; gap: 20px; }
.main-nav a { font-weight: 600; font-size: 14px; color: var(--color-text); }
.main-nav a:hover { color: var(--color-primary); }
.header-cta { display: none; gap: 10px; }
.header-cta .btn { padding: 9px 16px; font-size: 13px; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; }
.main-nav.open {
  display: flex; flex-direction: column; position: absolute; top: var(--header-h);
  left: 0; right: 0; background: #fff; padding: 16px; box-shadow: var(--shadow);
  gap: 14px; border-bottom: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 40px 0 48px;
  text-align: center;
}
.hero h1 { font-size: 28px; }
.hero .hero-sub { font-size: 16px; opacity: 0.95; max-width: 640px; margin: 0 auto 8px; }
.hero .hero-services { font-size: 13px; opacity: 0.85; margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-image { margin: 24px auto 0; max-width: 420px; border-radius: var(--radius); overflow: hidden; }

@media (min-width: 700px) {
  .hero h1 { font-size: 40px; }
  .hero .hero-sub { font-size: 19px; }
}

/* Section spacing */
.section { padding: 40px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.section-heading h2 { font-size: 24px; }
.section-heading p { color: var(--color-muted); }

/* Trust cards */
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.trust-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.trust-card .icon { font-size: 30px; margin-bottom: 10px; }
.trust-card h3 { font-size: 16px; }
.trust-card p { color: var(--color-muted); font-size: 14px; margin: 0; }

@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

/* Service cards */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.service-card .card-media {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #dceafb, #eef3fa);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
  font-size: 40px; overflow: hidden;
}
.card-media.has-image { background: var(--color-bg-alt); }
.card-media.has-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card .card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 18px; }
.service-card ul.problems { margin: 8px 0 14px; }
.service-card ul.problems li {
  font-size: 13px; color: var(--color-muted); padding-left: 16px; position: relative; margin-bottom: 4px;
}
.service-card ul.problems li::before { content: "•"; position: absolute; left: 0; color: var(--color-accent); }
.card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.product-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.product-card .card-media {
  aspect-ratio: 4/3; background: var(--color-bg-alt); display: flex; align-items: center;
  justify-content: center; color: var(--color-muted); font-size: 28px;
}
.product-card .card-body { padding: 14px; }
.product-card h3 { font-size: 15px; margin-bottom: 4px; }
.product-card .category { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; }
.product-card .desc { font-size: 13px; color: var(--color-muted); }
.product-card .card-actions { padding: 0 14px 14px; }
.product-card .card-actions .btn { font-size: 12px; padding: 8px; }

@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lead form */
.lead-form-section { background: var(--color-bg-alt); padding: 44px 0; scroll-margin-top: 80px; }
.lead-form-box {
  max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--color-border);
}
.lead-form-box h2 { text-align: center; font-size: 22px; }
.form-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--color-text); }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 15px;
  width: 100%; font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #c0392b; font-size: 13px; margin-top: 10px; text-align: center; }
.form-success { text-align: center; padding: 20px; }

/* Popup */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 35, 0.6); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.popup-overlay[hidden] { display: none; }
.popup-box {
  background: #fff; border-radius: 14px; max-width: 380px; width: 100%;
  padding: 28px 22px 22px; position: relative; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: popupIn 0.25s ease;
}
@keyframes popupIn { from { opacity: 0; transform: translateY(12px) scale(0.97);} to { opacity: 1; transform: none; } }
.popup-close {
  position: absolute; top: 10px; right: 12px; font-size: 26px; background: none; border: none;
  cursor: pointer; color: var(--color-muted); line-height: 1;
}
.popup-box h2 { font-size: 20px; color: var(--color-primary-dark); }
.popup-sub { color: var(--color-muted); font-size: 14px; }
.popup-services { text-align: left; margin: 14px 0; }
.popup-services li {
  font-size: 13px; padding: 6px 0 6px 20px; border-bottom: 1px solid var(--color-border); position: relative;
}
.popup-services li::before { content: "✓"; position: absolute; left: 0; color: var(--color-whatsapp); font-weight: 700; }
.popup-phone { font-weight: 700; color: var(--color-primary-dark); margin: 14px 0; }
.popup-actions { display: flex; flex-direction: column; gap: 10px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: var(--sticky-h);
}
.sticky-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; gap: 2px; color: var(--color-text);
  border-right: 1px solid var(--color-border);
}
.sticky-cta a:last-child { border-right: none; }
.sticky-cta a:nth-child(1) { color: var(--color-accent); }
.sticky-cta a:nth-child(2) { color: var(--color-whatsapp); }
.sticky-cta a:nth-child(3) { color: var(--color-primary); }
.sticky-cta .icon { font-size: 18px; }

@media (min-width: 900px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 14px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq-item p { color: var(--color-muted); margin-top: 8px; font-size: 14px; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: var(--color-muted); padding: 12px 0; }
.breadcrumb a { color: var(--color-primary); }

/* Footer */
.site-footer { background: #101d2c; color: #cfd9e3; padding: 40px 0 0; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
.footer-col h3, .footer-col h4 { color: #fff; font-size: 16px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: #b7c3d0; }
.footer-phone a { color: var(--color-accent); font-weight: 700; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 12px; color: #8ea0b3; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: repeat(4, 1fr); } }

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .location-grid { grid-template-columns: repeat(4, 1fr); } }
.location-chip {
  display: block; text-align: center; padding: 12px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 8px; font-size: 13px; font-weight: 600;
}
