/* ============================================
   MaIn Janitorial & Maintenance Services LLC
   Stylesheet
   ============================================ */

:root {
  --color-primary: #14479c;      /* logo blue */
  --color-primary-dark: #0b2c66; /* darker blue for hover */
  --color-primary-light: #e7eefb;/* pale blue tint for backgrounds */
  --color-accent: #3fae2a;       /* logo green for CTAs */
  --color-accent-dark: #2c7f1d;
  --color-ink: #17201f;          /* near-black text */
  --color-muted: #57635f;        /* secondary text */
  --color-line: #dfe4e2;         /* borders */
  --color-white: #ffffff;
  --color-surface: #f7f9f8;      /* off-white section bg */

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 79, 74, 0.08);
  --shadow-md: 0 8px 30px rgba(11, 79, 74, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
  color: var(--color-primary-dark);
}

p { margin: 0 0 1em; color: var(--color-muted); }

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

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(63, 174, 42, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(63, 174, 42, 0.35);
}
.btn--primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand__mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand span { display: block; font-size: 0.72rem; font-weight: 500; color: var(--color-muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--color-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--color-primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #12695f 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(63,174,42,0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 88px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
}
.hero__trust li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero__trust svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }
.hero__trust ul { display: flex; flex-wrap: wrap; gap: 24px; padding: 0; margin: 0; }

.hero__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero__card h3 { color: var(--color-white); font-size: 1.15rem; margin-bottom: 18px; }

.hero__stat {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.hero__stat:last-child { border-bottom: none; }
.hero__stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-white); }
.hero__stat span { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(63,174,42,0.14);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item__icon svg { width: 22px; height: 22px; }

.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Industries ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: var(--color-white); margin-bottom: 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Testimonial / quote strip ---------- */
.quote-strip {
  border-left: 4px solid var(--color-accent);
  padding: 4px 0 4px 24px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.quote-strip p { font-size: 1.15rem; color: var(--color-primary-dark); font-style: italic; margin-bottom: 12px; }
.quote-strip span { font-size: 0.88rem; color: var(--color-muted); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #081b3f;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand { color: var(--color-white); margin-bottom: 14px; }
.footer-brand .brand span { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 320px; font-size: 0.92rem; }

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-accent); }

.footer-col .contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-col .contact-line svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Contact page ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.info-list { list-style: none; margin: 0 0 28px; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.info-list li .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-list li .icon svg { width: 20px; height: 20px; }
.info-list li strong { display: block; font-size: 0.95rem; color: var(--color-primary-dark); }
.info-list li a, .info-list li span.value { color: var(--color-muted); font-size: 0.93rem; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  margin-top: 8px;
}
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 40px;
}

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

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 79, 74, 0.12);
}

.field textarea { resize: vertical; min-height: 130px; }

.field-honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-status--success { background: #e5f6ee; color: #147a4c; }
.form-status--error { background: #fdecec; color: #b3261e; }

.scheduling-card {
  margin-top: 32px;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.scheduling-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.scheduling-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-phone span { display: none; }
  .nav.nav--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
  }
  .nav--open .nav__links { flex-direction: column; gap: 16px; width: 100%; }
  .nav--open .header-cta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; width: 100%; }
  .nav--open .header-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; text-align: center; justify-content: center; }
  .section { padding: 64px 0; }
}
