/* =========================================================
   Solaris Property Management — Design System
   Brand colors: Petrol teal + Lime green (from logo)
   Wordmark font: Cinzel (Google Fonts) — matches the
   classical Roman-capital feel of the SOLARIS logo.
   ========================================================= */

:root {
  /* Brand colors */
  --teal-900: #0F4751;       /* darkest teal */
  --teal-800: #155964;
  --teal-700: #1F6E7C;       /* PRIMARY — matches logo */
  --teal-600: #2A8493;
  --teal-500: #3A9CAA;
  --teal-100: #D6E8EB;
  --teal-50:  #ECF4F5;

  --lime-700: #6E9928;
  --lime-600: #82B62F;
  --lime-500: #95C93D;       /* PRIMARY ACCENT — matches logo */
  --lime-400: #ADD566;
  --lime-100: #EBF4D3;
  --lime-50:  #F4F8E4;

  --cream-50:  #FBF8F1;
  --cream-100: #F4EFE2;
  --white:     #FFFFFF;

  --ink-900:   #15171A;
  --ink-700:   #2E3338;
  --ink-500:   #5B6470;
  --ink-300:   #98A1AC;
  --line:      #E5E1D5;

  --shadow-sm: 0 1px 2px rgba(15, 71, 81, 0.07);
  --shadow-md: 0 6px 18px rgba(15, 71, 81, 0.11);
  --shadow-lg: 0 18px 48px rgba(15, 71, 81, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--lime-600); }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-900);
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
p  { margin: 0 0 1em; color: var(--ink-700); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--lime-700);
  margin: 0 0 .9rem;
  display: inline-block;
}
.lead { font-size: 1.12rem; color: var(--ink-700); max-width: 60ch; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section {
  padding: clamp(56px, 8vw, 110px) 0;
}
.section--cream { background: var(--cream-50); }
.section--white { background: var(--white); }
.section--tealsoft { background: var(--teal-50); }
.section--navy  { background: var(--teal-900); color: var(--cream-50); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.88); }
.section--gradient {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--lime-600) 140%);
  color: var(--white);
}
.section--gradient h1, .section--gradient h2, .section--gradient h3 { color: var(--white); }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .015em;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime-500);
  color: var(--teal-900);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--lime-400);
  color: var(--teal-900);
}
.btn--teal {
  background: var(--teal-700);
  color: var(--white);
}
.btn--teal:hover { background: var(--teal-800); color: var(--white); }
.btn--navy {
  background: var(--teal-900);
  color: var(--white);
}
.btn--navy:hover { background: var(--teal-700); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--teal-700);
}
.btn--ghost:hover { background: var(--teal-700); color: var(--white); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost-light:hover { background: var(--white); color: var(--teal-900); border-color: var(--white); }
.btn--lg { padding: 18px 32px; font-size: 1.04rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* ---------- Brand / Logo ----------
   The header and footer brand uses one image file: `logo.png` (your real
   horizontal logo with SOLARIS + PROPERTY MANAGEMENT typography baked in).
   To swap it: drop your logo as `logo.png` in this folder.
   The dark-on-light version is `logo.png`; the light/reversed version
   for the dark footer is `logo-light.png` (falls back to logo.png).
*/
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--teal-700);
  line-height: 1;
  text-decoration: none;
}
.brand:hover { opacity: .85; }
.brand img {
  display: block;
  height: 46px;     /* header logo height */
  width: auto;
  max-width: 220px;
}
.site-footer .brand img { height: 52px; max-width: 240px; }

/* Legacy classes — preserved so the existing markup still works if a logo
   file is missing. The brand-mark falls back to the SVG mark; the
   brand-name text is hidden by default when a logo image is present
   (set .brand--text to opt back in to text wordmark). */
.brand-mark {
  width: 46px; height: 46px;
  background: url('logo.svg') center / contain no-repeat;
  flex-shrink: 0;
}
.brand-name {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--teal-700);
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;            /* never break onto a 2nd row */
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  color: var(--teal-900);
  font-weight: 500;
  font-size: .92rem;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;          /* don't wrap multi-word items */
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav-links a.is-active { color: var(--teal-700); background: var(--teal-50); }

.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--teal-700);
  color: var(--teal-700);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}

/* Tablet-ish: hide the secondary Login button to free up room for nav links */
@media (max-width: 1280px) {
  .nav-cta .btn--ghost { display: none; }
}

/* Tighter padding + slightly smaller text on narrower-desktop widths */
@media (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: .88rem; }
}

/* Below this, switch to hamburger menu — no more wrapping risk */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav.is-open .nav-links {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 60;
  }
  .nav.is-open .nav-links a { padding: 12px 10px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(149, 201, 61, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(31, 110, 124, 0.18), transparent 55%),
    linear-gradient(180deg, var(--cream-50) 0%, var(--teal-50) 100%);
  padding: clamp(64px, 10vw, 140px) 0 clamp(72px, 10vw, 140px);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(149,201,61,0.42) 0%, rgba(31,110,124,0.32) 70%, transparent 100%);
  right: -120px; top: -150px;
  opacity: .65;
  filter: blur(2px);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { color: var(--teal-900); }
.hero h1 em { font-style: italic; color: var(--lime-700); }
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-700);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn-row { justify-content: center; }

/* Eyebrow strap ("Santa Cruz County · Santa Clara County · Monterey Bay")
   stays left-aligned so it reads like a tag-line label, not a centered chip. */
.hero .eyebrow {
  display: block;
  text-align: left;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px;
  color: var(--ink-700); font-size: .95rem;
  justify-content: center;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta strong { color: var(--teal-900); font-weight: 700; }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(900px 500px at 90% -20%, rgba(149, 201, 61, 0.30), transparent 60%),
    linear-gradient(180deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: var(--white);
  text-align: center;          /* center the eyebrow, H1, lead, and buttons */
}
.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255,255,255,.88);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .eyebrow {
  color: var(--lime-400);
  display: block;
  text-align: left;       /* lime-green section labels stay left-aligned */
}
.page-hero .btn-row { justify-content: center; }

/* Breadcrumb line stays left-aligned per design */
.crumbs {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
  text-align: left;
}
.crumbs a { color: rgba(255,255,255,.88); }
.crumbs a:hover { color: var(--lime-400); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--lime-400); }
.card h3 { margin-bottom: 6px; color: var(--teal-900); }
.card p { color: var(--ink-700); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-100); color: var(--lime-700);
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.card-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  color: var(--teal-900);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--lime-500); color: var(--teal-900); }
.card-link h3 { color: var(--teal-900); }
.card-link span.more { color: var(--lime-700); font-weight: 600; margin-top: auto; }

/* ---------- Service pillars (home) ---------- */
.pillar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--lime-400), var(--teal-600));
  opacity: .14;
}
.pillar h3 { font-size: 1.4rem; color: var(--teal-900); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--lime-400);
  line-height: 1.1;
  letter-spacing: .02em;
}
.stat-label { color: rgba(255,255,255,.88); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -22px; left: 22px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--lime-500);
  line-height: 1;
}
.quote p { font-size: 1.02rem; color: var(--ink-700); }
.quote cite {
  display: block; margin-top: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--teal-900);
}
.quote cite small {
  display: block;
  font-weight: 500;
  color: var(--ink-500);
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  color: var(--ink-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--lime-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 10px; height: 5px;
  border-left: 2px solid var(--teal-900);
  border-bottom: 2px solid var(--teal-900);
  transform: rotate(-45deg);
}

.num-list { padding-left: 0; counter-reset: step; list-style: none; }
.num-list li {
  position: relative;
  counter-increment: step;
  padding: 14px 0 14px 56px;
  border-top: 1px solid var(--line);
}
.num-list li:first-child { border-top: 0; }
.num-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 14px;
  width: 36px; height: 36px;
  background: var(--teal-700); color: var(--lime-400);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}

/* ---------- Comparison table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.compare > div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.compare .head {
  background: var(--teal-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  border-bottom: 0;
}
.compare .head.gold { background: var(--lime-500); color: var(--teal-900); }
.compare .row-label { background: var(--teal-50); font-weight: 600; color: var(--teal-900); }
.compare .ok { color: var(--lime-700); font-weight: 700; }
.compare .no { color: var(--ink-300); }
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .compare .head, .compare .row-label { border-bottom: 1px solid var(--line); }
}

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.form h3 { color: var(--teal-900); }
.form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .row.one { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; color: var(--teal-900); font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream-50);
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lime-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(149, 201, 61, 0.22);
}
.form-note { font-size: .85rem; color: var(--ink-500); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--lime-500); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--teal-900);
  padding-right: 30px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: -2px;
  font-size: 1.5rem; line-height: 1;
  color: var(--lime-600);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-700); }

/* ---------- Service area tiles ---------- */
.area-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.area-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--lime-500); }
.area-tile h3 { font-size: 1.15rem; color: var(--teal-900); }
.area-tile .county { font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; color: var(--lime-700); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255,255,255,.85);
  padding: 70px 0 30px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); }
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,.85); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--lime-400); }
.footer-bottom {
  margin-top: 50px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: .85rem; color: rgba(255,255,255,.65);
}
.footer-bottom a { display: inline; padding: 0; }

/* Footer brand specifically — white wordmark on dark bg */
.site-footer .brand { color: var(--white); }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name small { color: var(--lime-400); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--lime-100);
  color: var(--lime-700);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pill--navy { background: var(--teal-900); color: var(--lime-400); }
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* ---------- Exceptions / callout box ---------- */
.exceptions {
  background: var(--lime-50);
  border: 1px solid var(--lime-100);
  border-left: 4px solid var(--lime-500);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.exceptions h3 {
  color: var(--teal-900);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.exceptions p:last-child { margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center;
  padding: 22px 0;
  color: var(--ink-500);
  font-size: .9rem;
}
.trust strong { color: var(--teal-900); }
