/* Home Repair Services — Main Stylesheet (Mobile-first, responsive) */

:root {
  --color-primary: #0b5fa5;
  --color-primary-dark: #08477d;
  --color-primary-light: #e6f0fa;
  --color-accent: #ff7a00;
  --color-accent-hover: #e06c00;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;
  --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);
  --shadow-hover: 0 8px 24px rgba(15, 40, 70, 0.15);
  --max-width: 1180px;
  --header-h: 68px;
  --sticky-h: 58px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  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;
  color: var(--color-text);
  font-weight: 700;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-call {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-call:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-book {
  background: var(--color-primary);
  color: #ffffff;
}
.btn-book:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(11, 95, 165, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary-dark);
}

.logo-icon {
  background: var(--color-primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.main-nav {
  display: none;
  gap: 24px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.2s ease;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-cta {
  display: none;
  gap: 12px;
}

.header-cta .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Nav Drawer */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--shadow);
  gap: 16px;
  border-bottom: 2px solid var(--color-primary);
  z-index: 99;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0b5fa5 0%, #052f53 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.hero-services {
  font-size: 16px;
  font-weight: 600;
  color: #ffc107;
  background: rgba(255,255,255,0.1);
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* Section Styling */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 30px;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.section-heading p {
  font-size: 16px;
  color: var(--color-muted);
}

/* Trust / Why Choose Us Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.trust-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.trust-card .icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: inline-block;
}

.trust-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.trust-card p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-media {
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.card-body p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.problems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  margin-top: auto;
}

.problems li {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.product-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.product-item .prod-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.product-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

/* Lead Form Section */
.lead-form-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #08477d 0%, #0b5fa5 100%);
  color: #ffffff;
}

.lead-form-box {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--color-text);
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.lead-form-box h2 {
  font-size: 26px;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 18px;
}

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

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 165, 0.15);
}

.hp-field {
  display: none !important;
}

.form-status {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
}

.form-status.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.form-status.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* FAQ Details Accordion */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: var(--color-primary-dark);
  position: relative;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  color: var(--color-muted);
  margin: 0;
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: #0d1821;
  color: #a0aec0;
  padding: 50px 0 0;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent) !important;
}

.footer-disclaimer {
  background: #080e14;
  padding: 20px 0;
  border-top: 1px solid #1a2634;
  text-align: center;
  font-size: 13px;
  color: #718096;
}

/* Sticky CTA Mobile Bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--sticky-h);
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.sticky-cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  gap: 2px;
  color: #ffffff;
  text-align: center;
}

.sticky-cta a:nth-child(1) { background: var(--color-accent); }
.sticky-cta a:nth-child(2) { background: var(--color-whatsapp); }
.sticky-cta a:nth-child(3) { background: var(--color-primary); }

.sticky-cta .icon {
  font-size: 16px;
}

/* Popup Overlay & Box */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.popup-overlay.show,
.popup-overlay[style*="display: flex"] {
  display: flex !important;
}

.popup-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  text-align: left;
  animation: popIn 0.25s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #718096;
  z-index: 10;
  padding: 4px;
  display: block;
}

.popup-close:hover {
  color: #000000;
}

.popup-box h2 {
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.popup-sub {
  color: var(--color-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.popup-services {
  text-align: left;
  background: var(--color-bg-alt);
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.popup-services li {
  padding: 4px 0;
  font-size: 14px;
  position: relative;
  padding-left: 20px;
}

.popup-services li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.popup-phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobile Specific Popup Optimization (Locked on Mobile View) */
@media (max-width: 767px) {
  .popup-close {
    display: none !important; /* Hide close X button on mobile */
  }

  .popup-overlay {
    padding: 10px !important;
    z-index: 999999 !important;
  }

  .popup-box {
    width: 100% !important;
    max-height: 88vh !important;
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }

  .popup-box h2 {
    font-size: 20px !important;
  }

  .popup-box .form-row input,
  .popup-box .form-row select,
  .popup-box .form-row textarea {
    font-size: 16px !important;
    padding: 10px 12px !important;
  }

  .popup-box .btn {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }
}

/* Responsive Media Queries */
@media (min-width: 768px) {
  .hero {
    padding: 90px 0;
  }

  .hero h1 {
    font-size: 46px;
  }

  .main-nav {
    display: flex;
  }

  .header-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
