/* CFL Environmental Services — Final Fixed Styles (v1)
   Goal: predictable, Hostinger-safe, no brittle overrides. */

:root{
  --bg: #eef3f7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.10);
  --shadow: 0 12px 30px rgba(15,23,42,.08);
  --radius: 16px;
  --green: #16a34a;
  --green2: #22c55e;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
}

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

.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand-badge{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color:#052e16;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 10px 24px rgba(34,197,94,.25);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-title{ font-weight: 800; font-size: 14px; }
.brand-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.topbar-actions{ display:flex; gap: 10px; align-items:center; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  cursor:pointer;
  white-space: nowrap;
}
.btn-outline{
  background: #fff;
  border-color: var(--border);
}
.btn-primary{
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #052e16;
  border-color: rgba(5,46,22,.2);
}

/* Hero */
.hero{
  padding: 40px 0 10px;
}
.hero-inner{
  display:flex;
  justify-content:center;
}
.hero-card{
  width: min(820px, 100%);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align:center;
}
.hero h1{
  margin:0;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height:1.1;
}
.hero-sub{
  margin: 12px 0 0;
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section{ padding: 34px 0; }
.section h2{
  margin: 0 0 16px;
  text-align:center;
  font-size: 26px;
}
.section-sub{
  margin: -6px auto 18px;
  text-align:center;
  color: var(--muted);
  font-weight: 600;
  max-width: 860px;
}
.section-muted{
  background: rgba(255,255,255,.35);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

/* Services */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.service-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.service-card img{
  width:100%;
  height: 140px;
  object-fit: cover;
  object-position: 50% 50%;
}
.service-card h3{
  margin: 14px 16px 8px;
  font-size: 15px;
  line-height: 1.2;

  text-align:center;
  min-height:44px;
}
.service-card ul{
  margin: 0 16px 16px;
  padding-left: 18px; /* aligns bullets consistently */
}
.service-card li{
  margin: 6px 0;
  color: #0b1220;
  font-weight: 600;
}
.service-card li::marker{ color: #0b1220; }

/* Why */
.why-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 8px;
  align-items:start;
}
.why-item{
  text-align:center;
}



.why-icon-wrap{
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 12px;
}
.why-icon{
  width: 68px;
  height: 68px;
  object-fit: contain;
  display:block;
  margin: 0;
}

.why-label{
  font-weight: 800;
  line-height: 1.15;
  font-size: 14px;
}
.fineprint{
  margin: 18px auto 0;
  text-align:center;
  color: var(--muted);
  font-weight: 700;
  max-width: 900px;
}

/* Media (truck + map) */
.media-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.media-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 300px;
}
.media-img{
  width:100%;
  height:100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 50% 50%;
}
.media-card iframe{
  width:100%;
  height:100%;
  min-height: 300px;
  border:0;
}

/* Form */
.estimate-form{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
label span{
  display:block;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}
label small{ font-weight:700; color: var(--muted); }
input, textarea{
  width:100%;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea{ resize: vertical; }
.form-block{ display:block; margin-top: 12px; }
.hint{ display:block; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 12px; }

.form-actions{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  background: #071122;
  color: rgba(255,255,255,.9);
  padding: 18px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer a{ color: rgba(255,255,255,.92); text-decoration: underline; }
.footer-right{ text-align:right; }

/* Responsive */
@media (max-width: 1024px){
  .services-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .media-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .topbar-inner{ align-items:flex-start; }
}
@media (max-width: 560px){
  .brand-sub{ display:none; }
  .btn{ padding: 10px 12px; }
}
