/* ============================================================
   SME Home Solutions — Main Stylesheet
   Colors: Navy #1B2D50 | Green #3A7D28 | Light #F5F7FA
   ============================================================ */

:root {
  --navy: #1B2D50;
  --navy-dark: #111e35;
  --green: #3A7D28;
  --green-light: #4a9c33;
  --white: #ffffff;
  --light: #F5F7FA;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1f2937;
  --shadow: 0 4px 24px rgba(27, 45, 80, 0.10);
  --radius: 10px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58, 125, 40, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 45, 80, 0.30);
}

/* ── Header / Nav ───────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27, 45, 80, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo img { height: 56px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  transition: color var(--transition);
}
.phone-link:hover { color: var(--green); }
.phone-link svg { flex-shrink: 0; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a6e 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 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");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(58, 125, 40, 0.25);
  border: 1px solid rgba(58, 125, 40, 0.5);
  color: #7ec96b;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.hero-content h1 { margin-bottom: 1.2rem; }
.hero-content h1 span { color: #7ec96b; }

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #7ec96b;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2rem;
}

.hero-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-pill-grid {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.service-pill:hover {
  background: rgba(58, 125, 40, 0.2);
  border-color: rgba(58, 125, 40, 0.4);
}
.pill-icon {
  width: 32px;
  height: 32px;
  background: rgba(58, 125, 40, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Services ────────────────────────────────────────────── */
#services {
  background: var(--light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-top: 0.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 45, 80, 0.14);
  border-color: var(--green);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.service-card h3 { color: var(--navy); }
.service-card p { color: var(--gray); font-size: 0.92rem; flex: 1; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--light);
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--gray-light);
}

/* ── Why Choose Us ───────────────────────────────────────── */
#why {
  background: var(--white);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-content h2 { color: var(--navy); margin-bottom: 1rem; }
.why-content > p { color: var(--gray); margin-bottom: 2rem; }

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-check {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-check svg { color: white; }

.why-item h4 { color: var(--navy); margin-bottom: 0.2rem; font-size: 1rem; }
.why-item p { color: var(--gray); font-size: 0.9rem; }

.trust-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-box h3 { font-size: 1.4rem; }
.trust-box p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trust-stat {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}
.trust-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #7ec96b;
  line-height: 1;
}
.trust-stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

/* ── Service Area ────────────────────────────────────────── */
#area {
  background: var(--light);
}

.area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.area-content h2 { color: var(--navy); margin-bottom: 1rem; }
.area-content > p { color: var(--gray); margin-bottom: 2rem; font-size: 1.05rem; }

.area-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.area-highlight .icon { font-size: 2rem; }
.area-highlight strong { display: block; color: var(--navy); font-size: 1.1rem; }
.area-highlight span { color: var(--gray); font-size: 0.9rem; }

.map-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a6e 100%);
  border-radius: 16px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.map-placeholder .map-icon { font-size: 3.5rem; }
.map-placeholder h3 { font-size: 1.4rem; }
.map-placeholder p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ── Contact ─────────────────────────────────────────────── */
#contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info > p { color: var(--gray); margin-bottom: 2rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.contact-item strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item a, .contact-item span { color: var(--gray); font-size: 0.95rem; transition: color var(--transition); }
.contact-item a:hover { color: var(--green); }

.contact-form {
  background: var(--light);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form h3 { color: var(--navy); margin-bottom: 1.5rem; font-size: 1.25rem; }

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 125, 40, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; justify-content: center; font-size: 1.05rem; padding: 1rem; }

/* ── CTA Banner ──────────────────────────────────────────── */
#cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ── Footer ──────────────────────────────────────────────── */
#footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #7ec96b; }

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-col address a { transition: color var(--transition); }
.footer-col address a:hover { color: #7ec96b; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 1.2rem;
    z-index: 99;
  }

  #header { position: relative; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-stats { gap: 1.2rem; }

  .services-grid { grid-template-columns: 1fr; }

  .why-inner,
  .area-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .trust-box { order: -1; }
  .map-placeholder { height: 240px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

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

  .header-cta .btn { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
}
