/* ==========================================================================
   Mathi Cleaning Services — site stylesheet
   ========================================================================== */

:root {
  --navy-dark: #0a1a42;
  --navy: #10265c;
  --blue: #2e5aa8;
  --blue-light: #5b9bd5;
  --blue-pale: #eaf2fb;
  --bg: #f7f9fc;
  --white: #ffffff;
  --text: #263248;
  --muted: #64748b;
  --border: #e1e8f2;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(16, 38, 92, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 38, 92, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

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

.btn-outline-navy {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline-navy:hover { background: var(--blue); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(16,38,92,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 48px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--blue-light); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone span { color: var(--muted); font-weight: 500; display: block; font-size: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--blue));
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(91,155,213,0.35), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.1rem; color: #d7e3f5; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #e7eefc;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card p.small { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.hero-card ul { margin: 0 0 22px; padding-left: 20px; color: var(--text); }
.hero-card ul li { margin-bottom: 8px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--blue); }
.section-head p { color: var(--muted); }

.bg-white { background: var(--white); }
.bg-pale { background: var(--blue-pale); }

/* ---------- Service cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}
.card-icon svg { width: 28px; height: 28px; }

.card p { color: var(--muted); font-size: 0.96rem; }
.card .price-tag {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--blue-pale);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- Steps ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
}
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h4 { margin-bottom: 6px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p.quote { color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial .name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #d7e3f5; margin: 0; }

/* ---------- Pricing tables ---------- */
.pricing-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
  border: 1px solid var(--border);
}
.pricing-table-title {
  background: var(--blue);
  color: var(--white);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1.05rem;
}
table.pricing {
  width: 100%;
  border-collapse: collapse;
}
table.pricing thead th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 24px;
  font-size: 0.92rem;
}
table.pricing tbody td {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.96rem;
}
table.pricing tbody tr:nth-child(even) { background: var(--blue-pale); }
table.pricing td.price { font-weight: 700; color: var(--navy); text-align: right; }
table.pricing th.price-col { text-align: right; }

.note-box {
  display: flex;
  gap: 18px;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  align-items: flex-start;
}
.note-tag {
  flex: none;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--white);
}
.gallery-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.gallery-thumb svg { width: 46px; height: 46px; opacity: 0.9; }
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-section-title {
  margin: 50px 0 22px;
}
.gallery-section-title:first-child { margin-top: 0; }
.gallery-caption { padding: 14px 18px; font-weight: 600; color: var(--navy); font-size: 0.94rem; }
.gallery-caption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

.g1 { background: linear-gradient(135deg, #10265c, #2e5aa8); }
.g2 { background: linear-gradient(135deg, #2e5aa8, #5b9bd5); }
.g3 { background: linear-gradient(135deg, #0a1a42, #2e5aa8); }
.g4 { background: linear-gradient(135deg, #5b9bd5, #10265c); }
.g5 { background: linear-gradient(135deg, #2e5aa8, #0a1a42); }
.g6 { background: linear-gradient(135deg, #10265c, #5b9bd5); }

.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 30px;
}

/* ---------- Contact / Form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: #d7e3f5; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
}
.info-row .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-row .icon svg { width: 20px; height: 20px; }
.info-row a, .info-row div.text { color: var(--white); font-weight: 600; }
.info-row .label { color: #b7c8e8; font-size: 0.8rem; margin-bottom: 2px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--muted);
  padding: 50px 0 26px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: var(--navy); font-size: 1rem; margin-bottom: 14px; }
.footer-grid img { height: 40px; margin-bottom: 12px; }
.footer-grid p { font-size: 0.88rem; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--navy); }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a svg { width: 18px; height: 18px; color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
}
