/* ==========================================================================
   STELLAR PROPERTY WORKS — Design System (brand-matched to invoice)
   Corporate navy + gold on white/cream. Oswald + Barlow Semi Condensed.
   Vanilla CSS. Mobile-first. Grouped by section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens — pulled from the company invoice
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors (sampled from invoice) */
  --navy-900: #0e1c2e;   /* deepest navy */
  --navy:     #16283f;   /* brand navy */
  --navy-700: #21385a;   /* lighter navy (surfaces/hover on navy) */
  --gold:     #f5b400;   /* brand gold */
  --gold-600: #d99e00;   /* gold hover */
  --gold-dark:#a9760a;   /* readable gold text on light */
  --gold-glow: rgba(245, 180, 0, 0.16);

  --cream:    #fbfaf6;   /* light warm background */
  --cream-200:#f4f1ea;   /* alt section background */
  --white:    #ffffff;

  --line:      #e4e7ec;              /* borders on light */
  --line-soft: #eef0f3;
  --line-navy: rgba(255,255,255,0.14); /* borders on navy */

  --text:      #1b2634;  /* body text on light */
  --text-muted:#55606e;  /* secondary text on light */
  --text-dim:  #8a94a1;  /* tertiary */
  --on-navy:      #eef2f7; /* text on navy */
  --on-navy-muted:#aeb9c7; /* muted text on navy */
  --on-gold:   #16283f;  /* navy text on gold buttons (matches invoice) */

  --success: #2f9e5f;

  /* Typography */
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow Semi Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 5px;
  --radius-lg: 10px;
  --shadow: 0 8px 26px rgba(22, 40, 63, 0.10);
  --shadow-lg: 0 20px 50px rgba(22, 40, 63, 0.16);
  --transition: 0.25s ease;
  --header-h: 78px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); }

p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(58px, 8.5vw, 104px) 0; }
.section--tight { padding: clamp(44px, 6vw, 68px) 0; }

/* Section background helpers (HTML uses these class names) */
.bg-900 { background: var(--cream-200); }   /* alt section */
.bg-800 { background: var(--white); }
.bg-700 { background: var(--cream); }

.center { text-align: center; }
.max-720 { max-width: 720px; margin-inline: auto; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--gold);
  display: inline-block;
}

.lead { font-size: 1.16rem; color: var(--text-muted); }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; }

/* Top accent rule (HTML has .hazard-bar element) */
.hazard-bar { height: 4px; width: 100%; background: var(--gold); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--on-gold); }
.btn--primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 8px 20px var(--gold-glow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 38px; font-size: 1.12rem; }

/* Ghost buttons placed on navy backgrounds → light outline */
.hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost {
  color: var(--white); border-color: var(--line-navy);
}
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover {
  background: var(--white); color: var(--navy); border-color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Wordmark logo (matches invoice: STELLAR + gold rule + PROPERTY WORKS) */
.brand { display: flex; align-items: center; }
.brand__mark { display: none; }            /* invoice logo has no pictorial icon */
.brand__name {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  color: var(--navy);
}
.brand__name > span:not(.brand__sub) { display: none; } /* hides the stray dot */
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--text-muted);
  border-top: 2px solid var(--gold);
  padding-top: 4px;
  margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  padding: 9px 13px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-dark); }
.nav__cta { margin-left: 10px; }
/* Keep primary CTA button text readable on gold, even when active */
.nav__links a.nav__cta,
.nav__links a.nav__cta.active,
.nav__links a.nav__cta:hover { color: var(--on-gold); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column;
  justify-content: center; gap: 6px; align-items: center;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); transition: var(--transition); border-radius: 2px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero (navy band — mirrors the invoice header)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 15%, rgba(245,180,0,0.12), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--gold);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: clamp(62px, 10vw, 122px) 0 clamp(56px, 8vw, 92px);
  max-width: 830px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .amber { color: var(--gold); }
.hero__lead { font-size: 1.26rem; max-width: 640px; margin-bottom: 34px; color: var(--on-navy-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line-navy);
}
.hero__meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--on-navy-muted); }
.hero__meta-item svg { flex: 0 0 auto; color: var(--gold); }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 12%, rgba(245,180,0,0.10), transparent 48%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  padding: clamp(52px, 8vw, 86px) 0 clamp(44px, 6vw, 62px);
  border-bottom: 4px solid var(--gold);
}
.breadcrumb { font-size: 0.85rem; color: var(--on-navy-muted); margin-bottom: 14px; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb a:hover { color: var(--gold); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 900px; }
.page-hero p { max-width: 680px; font-size: 1.13rem; color: var(--on-navy-muted); }

/* --------------------------------------------------------------------------
   7. Trust / stat bar
   -------------------------------------------------------------------------- */
.trustbar { background: var(--cream-200); border-bottom: 1px solid var(--line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-item { background: var(--cream-200); padding: 30px 22px; text-align: center; }
.trust-item strong {
  display: block; font-family: var(--font-head);
  font-size: 2.5rem; color: var(--navy); line-height: 1;
}
.trust-item span { font-size: 0.88rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   8. Cards / service grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 4px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.card:hover { border-color: #d4dae2; transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
/* Cards sitting on cream sections get a crisper white lift */
.bg-900 .card, .bg-700 .card { box-shadow: 0 1px 0 rgba(22,40,63,0.03); }

.card__icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--navy); border-radius: var(--radius);
  color: var(--gold); margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { color: var(--navy); margin-bottom: 12px; }
.card p { margin-bottom: 18px; font-size: 0.98rem; }
.card__list { margin-bottom: 22px; }
.card__list li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
  font-size: 0.95rem; color: var(--text-muted);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.card__link {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.card__link:hover { gap: 12px; color: var(--gold-dark); }

.card__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-head); font-size: 3rem; line-height: 1;
  font-weight: 700; color: #eaeef2;
}

/* --------------------------------------------------------------------------
   9. Feature / split sections
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split__media {
  background: linear-gradient(160deg, #223a5e 0%, var(--navy) 55%, var(--navy-900) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 380px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* faint vertical light streaks */
.split__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 54px);
  pointer-events: none;
}
/* stylized parking-lot striping fading in along the bottom */
.split__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: repeating-linear-gradient(64deg, rgba(245,180,0,0.5) 0 3px, transparent 3px 42px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
          mask-image: linear-gradient(180deg, transparent, #000 70%);
  pointer-events: none;
}
.split__media svg {
  width: 116px; height: 116px; color: var(--gold);
  position: relative; z-index: 1; opacity: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.split__media .placeholder-note { display: none; }

.check-list li {
  position: relative; padding-left: 34px; margin-bottom: 16px; color: var(--text-muted);
}
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; background: var(--gold); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316283f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* --------------------------------------------------------------------------
   10. Compliance callout (navy panel — echoes invoice totals box)
   -------------------------------------------------------------------------- */
.compliance {
  background:
    radial-gradient(circle at 85% 10%, rgba(245,180,0,0.12), transparent 55%),
    var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 52px);
  color: var(--on-navy);
}
.compliance h2, .compliance h3 { color: var(--white); }
.compliance p { color: var(--on-navy-muted); }
.compliance .eyebrow { color: var(--gold); }
.compliance .lead { color: var(--on-navy-muted); }
.compliance .check-list li { color: var(--on-navy-muted); }
.compliance .check-list li strong { color: var(--white); }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy-700); border: 1px solid var(--line-navy);
  padding: 10px 16px; border-radius: 50px;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.9rem; color: var(--white);
}
.badge svg { color: var(--gold); }

/* --------------------------------------------------------------------------
   11. Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 20px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.bg-900 .step { background: var(--white); }
.step__num {
  flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; border-radius: var(--radius);
}
.step h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.3rem; }

/* --------------------------------------------------------------------------
   12. CTA band (navy)
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(circle at 15% 30%, rgba(245,180,0,0.14), transparent 55%),
    var(--navy);
  border-top: 4px solid var(--gold);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(46px, 6.5vw, 80px) 0; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { color: var(--white); max-width: 640px; }
.cta-band p { margin-top: 12px; max-width: 560px; color: var(--on-navy-muted); }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.88rem; font-weight: 600; color: var(--navy);
}
.field label .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 1rem; transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }
.form-success {
  display: none; background: rgba(47,158,95,0.10); border: 1px solid var(--success);
  color: var(--text); padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px;
}
.form-success.show { display: block; }

/* Contact info blocks */
.info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.info-item__icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); border-radius: var(--radius);
}
.info-item h4 { font-family: var(--font-head); text-transform: uppercase; color: var(--navy); font-size: 1.08rem; margin-bottom: 3px; }
.info-item a:hover { color: var(--gold-dark); }

/* --------------------------------------------------------------------------
   14. Footer (navy — echoes invoice totals box)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); border-top: 4px solid var(--gold); padding-top: 64px; }
.site-footer .brand__name { color: var(--white); }
.site-footer .brand__sub { color: var(--on-navy-muted); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__about p { font-size: 0.95rem; margin-top: 18px; max-width: 320px; color: var(--on-navy-muted); }
.footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; color: var(--white); margin-bottom: 18px; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: var(--on-navy-muted); font-size: 0.95rem; }
.footer__links a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 0.94rem; color: var(--on-navy-muted); }
.footer__contact svg { flex: 0 0 auto; color: var(--gold); margin-top: 3px; }
.footer__bottom { border-top: 1px solid var(--line-navy); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: var(--on-navy-muted); }
.footer__bottom a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   15. Utilities & animation
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-16 { margin-bottom: 16px; }
.text-amber { color: var(--gold-dark); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 14px 22px 24px; gap: 2px;
    transform: translateY(-140%); transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; font-size: 1.12rem; border-bottom: 1px solid var(--line-soft); }
  .nav__cta { margin: 12px 0 0; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 260px; order: -1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .grid--3, .grid--2, .form-grid { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .step { flex-direction: column; gap: 14px; }
}
