/* =========================================================================
   CREVSpro — Site layout: header, footer, hero, sections, forms.
   ========================================================================= */

/* ----------------------------- header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 4px 18px rgba(11,31,51,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand--footer .brand-logo { height: 42px; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav ul a { color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.primary-nav ul a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { padding: .65em 1.2em; font-size: .95rem; }
.nav-cta, .nav-cta:hover { color: #fff; } /* ensure white CTA text regardless of nav link rules */

.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 22px;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--line); }
  .primary-nav ul a { display: block; padding: 14px 4px; font-size: 1.05rem; }
  .nav-cta { margin-top: 14px; text-align: center; }
}

/* ------------------------------ hero -------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #E6EDF5;
  background: linear-gradient(155deg, #0B1F33 0%, #112A45 55%, #0E2C3A 100%);
}
.hero::before {
  /* map/grid motif */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(54,182,196,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54,182,196,.10) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding-block: clamp(54px, 8vw, 96px); }
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .lead { color: #C4D2E2; max-width: 42ch; }
.hero-accent { color: var(--teal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust .num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.hero-trust .lbl { font-size: .85rem; color: #9FB2C6; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
}

/* hero deliverable card visual */
.hero-visual { position: relative; }
.aerial-card {
  background: #0d2438; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.aerial-frame { border-radius: 12px; overflow: hidden; position: relative; background: #0a1c2e; }
.aerial-frame img { display: block; width: 100%; height: auto; }
.aerial-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 4px; }
.aerial-meta .ttl { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: .98rem; }
.aerial-meta .sub { color: #8aa0b6; font-size: .8rem; }
.aerial-badge { background: var(--warm); color: #fff; font-size: .72rem; font-weight: 700; padding: .35em .7em; border-radius: 999px; }

/* --------------------- section headers / steps ---------------------- */
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.15rem;
  background: linear-gradient(150deg, var(--accent), var(--accent-2)); margin-bottom: 1rem;
}
.step h3 { font-size: 1.18rem; }

/* ---------------------------- pricing ------------------------------- */
.price-card { display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 12px 36px rgba(31,111,235,.16); position: relative; }
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .4em 1em; border-radius: 999px;
}
.price-cat { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.price-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin: .35rem 0 .2rem; }
.price-amt { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--ink); line-height: 1; margin: .5rem 0 .2rem; }
.price-amt .per { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.price-best { font-size: .9rem; color: var(--ink-2); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px; padding: .7em .9em; margin: .2rem 0 1.1rem; }
.price-best strong { color: var(--accent-2); }
.price-card .checklist { margin-bottom: 1.4rem; }
.price-card .btn { margin-top: auto; }

/* ---------------------- feature split sections ---------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.feature--reverse .feature-media { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--reverse .feature-media { order: 0; } }
.feature-media {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--bg-soft);
}
/* Framed "sheet" presentation for a portrait deliverable (e.g. the lease flyer) */
.feature-media--sheet {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 2vw, 24px); overflow: hidden; background: #ffffff;
}
.feature-media--sheet .sheet {
  width: auto; max-width: 100%; max-height: 500px; display: block;
}

/* ------------------------- testimonials ----------------------------- */
.quote-card { display: flex; flex-direction: column; height: 100%; }
.quote-card .quote-mark { font-family: var(--font-display); font-size: 2.6rem; line-height: .6; color: var(--teal); margin-bottom: .4rem; }
.quote-card blockquote { margin: 0 0 1.2rem; font-size: 1.05rem; color: var(--ink-2); }
.quote-card .cite { margin-top: auto; display: flex; align-items: center; gap: .8rem; }
.quote-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.quote-card .cite .who { font-weight: 700; color: var(--ink); }
.quote-card .cite .role { font-size: .88rem; color: var(--muted); }

/* ---------------------------- CTA band ------------------------------ */
.cta-band {
  background: linear-gradient(150deg, #0B1F33, #143150); color: #fff; border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(54,182,196,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(54,182,196,.10) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(80% 120% at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 120% at 50% 0%, #000 30%, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #C4D2E2; }
.cta-band .hero-cta { justify-content: center; }

/* ------------------------------ forms ------------------------------- */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field .req { color: var(--err); }
.field .hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: .8em .9em; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.textarea { min-height: 150px; resize: vertical; }
.field-error { color: var(--err); font-size: .85rem; margin: .35rem 0 0; min-height: 1em; }
.form-status { margin-top: 1rem; padding: 1em 1.1em; border-radius: 12px; font-weight: 500; display: none; }
.form-status.is-success { display: block; background: #e8f6ee; border: 1px solid #bfe3cd; color: #14663f; }
.form-status.is-error { display: block; background: #fdecec; border: 1px solid #f3c6c6; color: #9a2b2b; }

.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); }
.aside-card h3 { font-size: 1.15rem; }
.aside-card + .aside-card { margin-top: 18px; }

/* ----------------------- mailing list (footer) ---------------------- */
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; }
.signup-status { font-size: .85rem; margin: .5rem 0 0; min-height: 1em; color: #9FB2C6; }
.signup-status.is-success { color: #7fe0b0; }
.signup-status.is-error { color: #ffb4a8; }

/* ------------------------------ footer ------------------------------ */
.site-footer { background: var(--ink); color: #B8C6D6; padding-top: clamp(48px, 6vw, 76px); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(24px, 3vw, 44px); padding-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { color: #93A6BA; max-width: 34ch; margin: 1rem 0 1.3rem; }
.footer-h { font-family: var(--font-display); font-size: 1rem; color: #fff; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #B8C6D6; }
.footer-col a:hover { color: #fff; }
.footer-signup-sub { color: #93A6BA; font-size: .92rem; margin-bottom: 1rem; }
.footer-contact { font-size: .9rem; margin-top: 1rem; color: #93A6BA; }
.footer-contact a { color: var(--teal); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
  align-items: center; border-top: 1px solid rgba(255,255,255,.10); padding-block: 20px 26px;
  font-size: .9rem; color: #8295A9;
}
.footer-bottom a { color: #8295A9; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links span { margin: 0 .5rem; color: #44586c; }

/* --------------------------- mobile CTA ----------------------------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,31,51,.94); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.10);
}
.mobile-cta .btn { flex: 1; padding: .85em 1em; font-size: .98rem; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }
}

/* --------------------------- breadcrumb / hero-sm ------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 84px); }
.page-hero .lead { max-width: 60ch; }

/* small utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: .6rem; }
.muted-text { color: var(--muted); }
.text-sm { font-size: .92rem; }
.note-box { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 12px; padding: 1em 1.2em; font-size: .95rem; color: var(--ink-2); }
.note-box strong { color: var(--ink); }

/* honeypot anti-spam field — hidden from people, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* file-upload input on the contact form */
.file-input {
  width: 100%; font: inherit; color: var(--ink-2); background: #fff;
  border: 1px dashed var(--line); border-radius: 10px; padding: .6em .7em; cursor: pointer;
}
.file-input::file-selector-button {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 8px; padding: .5em .9em; margin-right: .8em; cursor: pointer;
}
.file-input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* ---- example deliverables gallery ----------------------------------- */
/* Uniform media frame so cards of differing image aspect ratios align
   (equal heights, captions on the same baseline, no wasted whitespace). */
.sample-card { display: flex; flex-direction: column; padding: 14px; }
.sample-media {
  aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.sample-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* documents/flyers: show the whole layout rather than cropping it */
.sample-media--fit { padding: 14px; }
.sample-media--fit img { object-fit: contain; }
.sample-card figcaption {
  margin-top: auto; padding: .85rem .3rem 0; text-align: center;
  font-weight: 600; color: var(--ink-2);
}
