/* ==========================================================================
   Bluebird Properties — Site styles
   Down-to-earth, warm, trustworthy. Brand: navy / blue / cream + warm terracotta.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand */
  --navy:            #002946;
  --navy-700:        #0a3a5c;
  --blue:            #A1C5DD;
  --blue-soft:       #d3e3ef;
  --blue-tint:       #eef4f8;
  --cream:           #E7E0DA;
  --cream-soft:      #f4efea;

  /* Warm accent */
  --terracotta:      #C56A3E;   /* highlights, small accents */
  --terracotta-700:  #A9502C;   /* buttons / hover — white text passes AA */
  --terracotta-800:  #8f3f20;   /* button hover */

  /* Text */
  --ink:             #22323c;   /* body on light */
  --ink-soft:        #4c5a63;   /* muted body */
  --white:           #ffffff;

  /* Semantic */
  --bg:              var(--cream);
  --surface:         var(--white);
  --text:            var(--ink);
  --heading:         var(--navy);
  --border:          #ddd3c9;

  /* Type */
  --font-heading: 'Forum', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent:  'Delius', 'Comic Sans MS', cursive;

  /* Spacing / radius / shadow */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,41,70,.06), 0 2px 8px rgba(0,41,70,.05);
  --shadow:    0 8px 30px rgba(0,41,70,.09);
  --maxw:      1160px;
  --nav-h:     74px;
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading); font-weight: 400; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .002em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--terracotta-700); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow {
  font-family: var(--font-accent);
  color: var(--terracotta-700);
  font-size: 1.15rem;
  margin: 0 0 .4rem;
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
h2.title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
  text-align: center; line-height: 1.1;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--terracotta-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-800); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,234,.85);
  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.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); background: rgba(244,239,234,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background-image: url('assets/logo-stacked.png');
  background-repeat: no-repeat;
  /* CSS crop to the bird from the 800x800 stacked logo */
  background-size: 165px 165px;
  background-position: -55px -22px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-family: var(--font-heading); color: var(--navy); font-size: 1.4rem; line-height: 1; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--font-accent); font-size: .72rem; color: var(--terracotta-700); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; color: var(--navy); font-size: .98rem; position: relative; padding: .25rem 0; }
.nav-links a:not(.btn):hover { color: var(--terracotta-700); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.nav-phone:hover { color: var(--terracotta-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 85% -10%, var(--blue-soft) 0%, rgba(211,227,239,0) 55%),
  linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(52px, 8vw, 92px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); color: var(--navy); }
.hero h1 .accent { color: var(--terracotta-700); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 1.8rem; padding: 0; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--navy); font-size: .96rem; }
.hero-trust svg { width: 20px; height: 20px; color: var(--terracotta-700); flex: none; }

/* Hero card (mini form teaser) */
.hero-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow); border: 1px solid var(--border); position: relative;
}
.hero-card h2 { font-size: 1.7rem; margin-bottom: .3rem; }
.hero-card .step-badge { font-family: var(--font-accent); color: var(--terracotta-700); font-size: 1rem; }
.hero-card ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.hero-card li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink); }
.hero-card li svg { width: 22px; height: 22px; color: var(--terracotta-700); flex: none; margin-top: 2px; }
.hero-card .btn { width: 100%; justify-content: center; }
.hero-card .fineprint { text-align: center; font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }

/* ---- Trust strip ---- */
.strip { background: var(--navy); color: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; padding-block: 1.1rem; text-align: center; }
.strip span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; color: #eaf1f6; }
.strip svg { width: 20px; height: 20px; color: var(--blue); }

/* ---- Full-width photo bands ---- */
.photo-band { position: relative; overflow: hidden; }
.photo-band img { width: 100%; height: clamp(260px, 40vw, 460px); object-fit: cover; display: block; }
.photo-band .band-caption {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 2rem clamp(20px, 5vw, 40px); color: #fff;
  background: linear-gradient(180deg, rgba(0,41,70,.30) 0%, rgba(0,41,70,.58) 100%);
}
.photo-band .band-caption .inner { max-width: 760px; }
.photo-band .band-caption .eyebrow { color: var(--blue); margin-bottom: .5rem; }
.photo-band .band-caption p.head { font-family: var(--font-heading); color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.18; margin: 0; }

/* ---- Process (How it works) ---- */
.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.7rem; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num {
  counter-increment: step;
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-tint);
  display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--terracotta-700);
}
.step .num svg { width: 26px; height: 26px; }
.step .num::after { content: counter(step); position: absolute; margin-top: -46px; margin-left: 44px;
  background: var(--terracotta-700); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: .78rem;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.45rem; }
.step p { margin: 0; color: var(--ink-soft); }
.process-cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* ---- Situations ---- */
.situations { background: var(--blue-tint); }
.sit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
.sit {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .7rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sit:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.sit .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--navy); }
.sit .ic svg { width: 26px; height: 26px; }
.sit h3 { font-size: 1.2rem; margin: 0; }
.sit p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.sit-note { text-align: center; margin-top: clamp(26px, 4vw, 40px); font-size: 1.05rem; color: var(--ink); }
.sit-note a { color: var(--terracotta-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Why us ---- */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 26px); }
.why-item { text-align: center; padding: 1rem .5rem; }
.why-item .ic {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--surface); border: 2px solid var(--blue); display: grid; place-items: center; color: var(--terracotta-700);
  transition: transform .2s ease, background-color .2s ease;
}
.why-item:hover .ic { transform: translateY(-4px); background: var(--blue-tint); }
.why-item .ic svg { width: 34px; height: 34px; }
.why-item h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.why-item p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- About ---- */
.about { background: var(--navy); color: #eaf1f6; }
.about h2, .about h3 { color: #fff; }
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about .eyebrow { color: var(--blue); }
.about p { color: #cddbe6; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-inline: auto; max-width: 380px; width: 100%; height: auto; }
.about-figure .tagline { text-align: center; font-family: var(--font-accent); color: var(--blue); margin-top: 1rem; font-size: 1.15rem; }
.about-points { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.about-points li { display: flex; gap: .6rem; align-items: flex-start; color: #eaf1f6; }
.about-points svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }

/* ---- Offer form ---- */
.offer { background: var(--cream-soft); }
.offer .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.offer-copy .step-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.offer-copy .step-list li { display: flex; gap: 1rem; align-items: flex-start; }
.offer-copy .step-list .n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta-700); color: #fff; font-weight: 700; display: grid; place-items: center; }
.offer-copy .step-list strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; color: var(--navy); font-weight: 400; }
.offer-copy .step-list p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .96rem; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.form-card .sub { color: var(--ink-soft); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.field label .req { color: var(--terracotta-700); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terracotta-700); box-shadow: 0 0 0 3px rgba(169,80,44,.18); }
.field .help { font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }
.field .error { font-size: .85rem; color: #b3261e; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select { border-color: #b3261e; }
.field.invalid .error { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .9rem 0 0; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-tint); color: var(--terracotta-700); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success .check svg { width: 34px; height: 34px; }
.form-success h3 { color: var(--navy); }

/* ---- Consent / opt-in ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.consent { border: 0; margin: .3rem 0 1.1rem; padding: 0; display: grid; gap: .85rem; }
.consent .check { display: flex; gap: .65rem; align-items: flex-start; }
.consent input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; accent-color: var(--terracotta-700); flex: none; cursor: pointer; }
.consent label { font-size: .84rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.consent label .req { color: var(--terracotta-700); }
.consent a { color: var(--terracotta-700); text-decoration: underline; text-underline-offset: 2px; }
.consent strong { color: var(--navy); }
.consent-error { display: none; color: #b3261e; font-size: .82rem; margin: 0; }
.consent.invalid .consent-error { display: block; }
.consent.invalid #agree:not(:checked) { outline: 2px solid #b3261e; outline-offset: 2px; }

/* ---- Footer legal links ---- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-legal a { color: #b9cad6; }

/* ==========================================================================
   Legal pages (Privacy / Terms)
   ========================================================================== */
.legal-nav { background: rgba(244,239,234,.96); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.legal-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.legal-nav .back { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--navy); }
.legal-nav .back:hover { color: var(--terracotta-700); }
.legal-nav .back svg { width: 18px; height: 18px; }

.legal { padding-block: clamp(40px, 6vw, 76px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.legal .updated { font-family: var(--font-body); color: var(--ink-soft); font-size: .95rem; margin: -.2rem 0 1.8rem; }
.legal h2 { font-size: 1.55rem; color: var(--navy); margin: 2.2rem 0 .6rem; }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 1.3rem 0 .4rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; margin: .4rem 0 1rem; }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--terracotta-700); text-decoration: underline; text-underline-offset: 2px; }
.legal .callout { background: var(--blue-tint); border-left: 4px solid var(--terracotta-700); padding: 1rem 1.2rem; border-radius: 10px; margin: 1.4rem 0; font-size: .96rem; }
.legal .callout p:last-child { margin-bottom: 0; }
.legal .placeholder { background: #fff3e8; border: 1px dashed var(--terracotta); border-radius: 6px; padding: 0 .35em; font-style: normal; color: var(--terracotta-800); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: #012036; color: #b9cad6; padding-block: clamp(44px, 6vw, 64px) 0; }
.site-footer a { color: #d7e4ee; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #97acbb; max-width: 34ch; margin-top: .9rem; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col .contact-line { display: flex; align-items: center; gap: .6rem; }
.footer-col .contact-line svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(32px, 5vw, 48px); padding-block: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; color: #7f95a5; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone.desk { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .about .wrap, .offer .wrap { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile menu */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 1rem clamp(20px, 5vw, 40px) 1.4rem; box-shadow: var(--shadow);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; width: 100%; padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links.open .btn { margin-top: .6rem; width: 100%; justify-content: center; border-bottom: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .why-grid, .sit-grid { grid-template-columns: 1fr 1fr; }
  .about-points, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
  .why-grid, .sit-grid { grid-template-columns: 1fr; }
}
