/* CME Cleaning & Commercial Solutions — placeholder site
   Palette: #0E7C66 primary green, #1F2937 slate */

:root {
  --green: #0E7C66;
  --green-600: #0c6b58;
  --green-300: #14A085;
  --green-050: #EAF7F2;
  --slate: #1F2937;
  --slate-600: #374151;
  --slate-400: #6B7280;
  --slate-100: #F1F5F4;
  --bg: #FFFFFF;
  --bg-soft: #F7FAF9;
  --line: #E4ECE9;
  --shadow-sm: 0 1px 2px rgba(16,40,34,.06), 0 2px 8px rgba(16,40,34,.05);
  --shadow-md: 0 10px 30px -12px rgba(14,124,102,.28), 0 6px 16px -10px rgba(31,41,55,.18);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

/* ---------- Language toggle ---------- */
html[data-lang="en"] [data-lang="es"] { display: none !important; }
html[data-lang="es"] [data-lang="en"] { display: none !important; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--slate); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.25rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green-300); color: var(--green-600); transform: translateY(-2px); }
.btn-phone {
  background: var(--green-050); color: var(--green-600);
  padding: .6rem 1rem; font-size: .92rem;
}
.btn-phone:hover { background: #ddefe8; }

/* ---------- Top banner ---------- */
.topbar {
  background: linear-gradient(90deg, var(--slate), var(--slate-600));
  color: #E8FBF4; text-align: center;
  font-size: .85rem; font-weight: 500;
  padding: .5rem 16px; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 0 rgba(20,160,133,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,160,133,.6); } 70% { box-shadow: 0 0 0 8px rgba(20,160,133,0); } 100% { box-shadow: 0 0 0 0 rgba(20,160,133,0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; }
.brand-logo { height: 46px; width: auto; display: block; }
.footer-logo-chip { background: #fff; border-radius: 12px; padding: 7px 12px; display: inline-flex; align-items: center; }
.footer-logo-chip img { height: 36px; width: auto; display: block; }
.brand-text { font-size: 1rem; color: var(--slate); line-height: 1.1; }
.brand-text em { display: block; font-style: normal; font-weight: 600; font-size: .72rem; color: var(--slate-400); letter-spacing: .02em; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--slate-600); }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button { border: 0; background: #fff; color: var(--slate-400); font-weight: 600; font-size: .8rem; padding: .4rem .7rem; cursor: pointer; }
.lang-toggle button.is-active { background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
/* Fallback gradient shows if the image fails to load */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b5e4d 0%, #0E7C66 45%, #14A085 100%); color: #fff; }

/* Background photo: subject sits on the RIGHT, so anchor to the right edge */
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; display: block; }

/* Left-to-right dark gradient: darker over the left copy space, fading right
   so the white headline + CTAs keep WCAG AA contrast over the bright image. */
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(8,30,25,.86) 0%,
      rgba(8,30,25,.78) 28%,
      rgba(8,30,25,.45) 55%,
      rgba(8,30,25,.12) 78%,
      rgba(8,30,25,0) 100%);
}

.hero-inner { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 6.5rem) 22px clamp(3.5rem, 7vw, 6rem); max-width: 620px; text-align: left; }
.hero .eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #C9F3E7; background: rgba(255,255,255,.16); padding: .35rem .8rem; border-radius: 999px; margin: 0 0 1.1rem; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero h1 .llc { font-weight: 600; opacity: .85; }
.hero .tagline { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #EAFFF8; margin: 0 0 .15em; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero .subtagline { font-size: 1.05rem; color: #DDF5EC; margin: 0 0 2rem; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; }
.trust-item { text-align: center; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.trust-item strong { font-family: var(--display); font-size: 1.15rem; color: var(--green); }
.trust-item span { font-size: .85rem; color: var(--slate-400); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin: 0 0 .5rem; }
.lede { color: var(--slate-400); font-size: 1.08rem; margin: 0; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6e7e1; }
.card-featured { border-color: var(--green-300); box-shadow: var(--shadow-md); position: relative; }
.card-featured::before { content: "Popular"; position: absolute; top: 1.2rem; right: 1.2rem; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-600); background: var(--green-050); padding: .25rem .55rem; border-radius: 999px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 1rem; background: linear-gradient(145deg, var(--green-300), var(--green)); }
.card h3 { margin-bottom: .15rem; }
.card-sub { color: var(--slate-400); font-size: .9rem; margin: 0 0 1rem; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { position: relative; padding: .3rem 0 .3rem 1.5rem; font-size: .92rem; color: var(--slate-600); border-top: 1px solid var(--slate-100); }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230E7C66' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-visual { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-photo { display: block; }
.about-photo img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
/* Name plate sits over the top-left of the photo */
.about-caption { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.5rem 2.6rem; color: #fff;
  background: linear-gradient(180deg, rgba(8,30,25,.9), rgba(8,30,25,.62) 55%, rgba(8,30,25,0)); }
.about-letters { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.2rem); letter-spacing: .08em; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.about-names { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: .02em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 2px 12px rgba(0,0,0,.7); }
.about-copy p { color: var(--slate-600); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .8rem; }
.stars { color: #F5A623; letter-spacing: .12em; font-size: .95rem; }
.quote blockquote { margin: 0; font-size: 1rem; color: var(--slate-600); }
.quote figcaption { font-family: var(--display); font-weight: 700; color: var(--slate); font-size: .95rem; }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(160deg, var(--slate), #111827); color: #E5EAF0; }
.section-contact h2 { color: #fff; }
.section-contact .kicker { color: var(--green-300); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.contact-copy .lede { color: #AEB8C4; }
.contact-note { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: rgba(20,160,133,.12); border: 1px solid rgba(20,160,133,.3); display: flex; flex-direction: column; gap: .25rem; }
.contact-note strong { color: #EAFFF8; }
.contact-note span { color: #AEB8C4; font-size: .92rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow-md); }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.1rem; border-radius: var(--radius-sm); color: var(--slate); transition: background .15s ease; }
a.contact-row:hover { background: var(--green-050); }
.contact-row + .contact-row { border-top: 1px solid var(--slate-100); }
.contact-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--green); background: var(--green-050); }
.contact-meta { display: flex; flex-direction: column; }
.contact-meta small { color: var(--slate-400); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-meta strong { font-size: 1.05rem; }
.contact-hours { cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #9AA6B5; padding: 2.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1rem; }
.footer-brand span { font-size: .85rem; }
.footer-contact { display: flex; flex-direction: column; gap: .25rem; text-align: right; }
.footer-contact a { color: var(--green-300); font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-legal { display: flex; gap: .4rem; justify-content: center; font-size: .82rem; padding-top: 1.25rem; color: #6B7688; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { order: -1; max-width: 360px; }
  .nav-links { display: none; }
  /* Framing crops on narrower screens: keep the subject toward the right
     and reinforce the overlay so text stays readable across the full width. */
  .hero-media img { object-position: 78% center; }
  .hero-overlay { background:
      linear-gradient(90deg, rgba(8,30,25,.9) 0%, rgba(8,30,25,.74) 45%, rgba(8,30,25,.42) 80%, rgba(8,30,25,.2) 100%),
      linear-gradient(180deg, rgba(8,30,25,0) 35%, rgba(8,30,25,.45) 100%); }
}
@media (max-width: 620px) {
  .cards, .quotes, .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .brand-text em { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-inner { max-width: 100%; }
  /* On phones the photo is mostly subject; use a near-uniform scrim for AA contrast */
  .hero-overlay { background:
      linear-gradient(180deg, rgba(8,30,25,.74) 0%, rgba(8,30,25,.66) 50%, rgba(8,30,25,.78) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
