/* SAS Tech — Smart and Sustainable Technology
   Long Beach, CA water conservation + landscape consulting
   Hand-built static replica of the original WordPress + Elementor site
   ============================================================ */

:root {
  --green: #1f8a4c;
  --green-dark: #166b3a;
  --blue: #1b6fb8;
  --ink: #1d2b27;
  --muted: #5b6a64;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --bg-dark: #1d2b27;
  --border: #e5ebe8;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(29, 43, 39, 0.08);
  --container: 1200px;
  --header-h: 84px;
  --font-sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-dark); }

/* ─── layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
}

/* ─── typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 1rem;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head p { max-width: 720px; margin: 0 auto; }

/* ─── header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo img { height: 52px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-alt); color: var(--green); }
.nav a.is-active { color: var(--green); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ─── hero (home) ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute; inset: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero__bg img.is-active { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(11,40,28,.78) 0%, rgba(11,40,28,.55) 60%, rgba(28,111,73,.45) 100%);
}
.hero h1 {
  color: #fff;
  margin-bottom: .35em;
  /* Doubled from the default h1 clamp(2.2, 5vw, 3.4). */
  font-size: clamp(4.4rem, 10vw, 6.8rem);
  line-height: 1.05;
}
.hero p { color: rgba(255, 255, 255, .9); font-size: 1.2rem; max-width: 640px; }
/* Use vertical-only padding so the horizontal 24px from .container
   still applies — otherwise the title flushes to the screen edge on
   narrow viewports. */
.hero .hero__inner { padding-top: 80px; padding-bottom: 80px; }
.hero .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 1;
}
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: 0; padding: 0; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero__dots button.is-active { background: #fff; transform: scale(1.25); }

/* ─── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  padding: 10px 22px;
}
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ─── page header (non-home) ───────────────────────────────
   Matches the original WP design: full-width green-to-blue
   gradient band, heading on the left, decorative SVG character
   on the right. The gradient picks up the SAS Tech brand
   palette (logo green → logo cyan blue). */
.page-header {
  background:
    linear-gradient(120deg,
      #88e2af 0%,
      #5dd0a7 30%,
      #4ec0d4 60%,
      #5db0e8 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
  /* Fixed height so every sub-page's title section is identical
     regardless of the illustration's natural aspect ratio. */
  height: 260px;
}
.page-header .container {
  /* Flex (not grid) so the heading and illustration share one
     baseline-centered row. Grid auto-stretched the columns and made
     the heading appear slightly higher than the illustration's
     optical centre because the SVGs carry uneven whitespace. */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  position: relative;
  z-index: 1;
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.015em;
  /* line-height 1 puts the visual centre of the text exactly at the
     centre of the heading's line-box, so flex's align-items: center
     puts the text on the same y-line as the illustration's centre. */
  line-height: 1;
  flex: 0 0 auto;
}
.page-header__art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: none;
}
.page-header__art img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 880px) {
  .page-header {
    /* Compact band on mobile — image moves BEHIND the title as a
       transparent watermark so the section stays short and the
       headline isn't overwhelmed by the illustration. */
    height: 180px;
    padding: 0;
  }
  .page-header .container {
    grid-template-columns: 1fr;
    height: 100%;
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 0;
  }
  .page-header__art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 0;
  }
  .page-header__art img {
    max-height: 90%;
    max-width: 92%;
    opacity: .28;
  }
  .page-header h1 {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

/* Hero title — the doubled desktop size is too big on mobile. Pull
   it back so the two lines fit within the safe-area without
   overflowing edge to edge. */
@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }
  .hero .hero__inner { padding-top: 32px; padding-bottom: 64px; }
}

/* ─── service cards (home + services) ──────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 56px; height: 56px; margin-bottom: 18px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.service-card .icon img { width: 32px; height: 32px; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ─── services (long-form on /services) ────────────────── */
.service-list { display: grid; gap: 48px; }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 0; }
.service-row .icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.service-row .icon img { width: 44px; height: 44px; }
.service-row h2 { font-size: 1.6rem; margin-bottom: .4em; }
.service-row p { color: var(--muted); max-width: 720px; }

@media (max-width: 600px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row .icon { width: 64px; height: 64px; }
}

/* ─── about ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* second About section — "Sassy at Your Service" mascot illustration
   (SVG character) sits left, body text right. Reversed photo treatment
   from the first section so the page has visual rhythm. */
.about-sassy {
  background: var(--bg-alt);
}
.about-sassy .about-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.about-sassy .about-grid > .mascot {
  display: flex;
  justify-content: center;
}
.about-sassy .about-grid > .mascot img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 880px) {
  .about-sassy .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── clients ─────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.client-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.client-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.client-card:hover img { transform: scale(1.06); }
.client-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,40,28,0) 30%, rgba(11,40,28,.85) 100%);
}
.client-card h3 {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  color: #fff;
  margin: 0;
  z-index: 1;
  font-size: 1.4rem;
}

/* ─── contact ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.contact-card .icon {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon img { width: 64px; height: 64px; }
.contact-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5em; }
.contact-card a, .contact-card .val { color: var(--ink); font-weight: 600; font-size: 1.06rem; }
.contact-card a:hover { color: var(--green); }

/* ─── contact form ─────────────────────────────────────── */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row .req { color: var(--green); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 138, 76, .14);
}
.form-row textarea {
  min-height: 140px;
  resize: vertical;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: .96rem;
  cursor: pointer;
  margin: 0;
}
.checks input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}
.char-count {
  text-align: right;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}
.form-submit {
  margin-top: 8px;
  text-align: center;
}
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: rgba(31, 138, 76, .1);
  color: var(--green-dark);
  border: 1px solid rgba(31, 138, 76, .25);
}
.form-status.is-err {
  display: block;
  background: rgba(200, 50, 50, .08);
  color: #a32424;
  border: 1px solid rgba(200, 50, 50, .25);
}

/* ─── lightbox / modal ─────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(11, 30, 22, .65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.is-open {
  display: flex;
  opacity: 1;
}
.modal__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(11, 30, 22, .3);
  transform: scale(.96);
  transition: transform .2s ease;
}
.modal.is-open .modal__card { transform: scale(1); }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: 0;
  background: var(--bg-alt);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__card h2 { margin-top: 0; margin-bottom: .25em; }
.modal__card .lead { margin-bottom: 28px; }
@media (max-width: 600px) {
  .modal__card { padding: 28px 20px; }
}

/* ─── cta band ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; margin-bottom: .5em; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 28px; }
.cta-band .btn {
  background: #fff;
  color: var(--green);
}
.cta-band .btn:hover { background: #f3f3f3; color: var(--green-dark); }

/* ─── footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .82);
  padding: 56px 0 24px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.site-footer p, .site-footer a { color: rgba(255, 255, 255, .8); margin: 0 0 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer .footer-brand p { max-width: 360px; font-size: .95rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  /* nowrap forces copyright + tagline onto one line at all widths;
     responsive font-size below keeps them from overflowing on phones. */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}
.site-footer .footer-bottom span { white-space: nowrap; }
@media (max-width: 540px) {
  .site-footer .footer-bottom { font-size: .72rem; gap: 8px; }
}
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ─── intro section (home) ─────────────────────────────── */
.intro {
  background: var(--bg-alt);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.intro-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ─── utility ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
