/* Phoenix Housing Group — site styles */
:root {
  --cream: #f6f1e9;
  --cream-2: #efe7db;
  --sand: #e3d6c2;
  --gold: #e9a21c;
  --gold-deep: #c9880f;
  --brown: #3b2a16;
  --brown-2: #5a4632;
  --ink: #2a2118;
  --muted: #6f6357;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(59, 42, 22, 0.12);
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--brown);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; color: var(--brown-2); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.sand { background: var(--cream-2); }
.section.dark { background: var(--brown); color: #efe6d8; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark .eyebrow { color: var(--gold); }
.section.dark p { color: #e3d8c7; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.section.dark .btn-outline { border-color: #efe6d8; color: #efe6d8; }
.section.dark .btn-outline:hover { background: #efe6d8; color: var(--brown); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 233, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 42, 22, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 67px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--brown-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--brown); }
.nav .btn { padding: 12px 22px; }
.nav a.btn-primary { color: var(--white); }
.nav a.btn-primary:hover { color: var(--white); }
.nav .btn::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--brown); margin: 6px 0; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero-copy h1 span { color: var(--gold-deep); font-style: italic; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media .photo {
  border-radius: 200px 200px var(--radius) var(--radius);
  aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 62% 40%; width: 100%; height: auto;
  box-shadow: var(--shadow);
}
.hero-media .badge {
  position: absolute; left: -20px; bottom: 40px;
  background: var(--white); border-radius: 18px; padding: 18px 22px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero-media .badge img { width: 44px; height: 44px; object-fit: contain; }
.hero-media .badge strong { display: block; font-family: var(--font-serif); font-size: 1.25rem; color: var(--brown); line-height: 1.1; }
.hero-media .badge small { color: var(--muted); font-size: 0.85rem; }
.hero-mark { position: absolute; right: -60px; top: -40px; width: 380px; opacity: 0.06; pointer-events: none; }

/* Trust strip */
.trust { border-top: 1px solid rgba(59,42,22,.1); border-bottom: 1px solid rgba(59,42,22,.1); background: var(--cream-2); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust .item { padding: 26px 20px; text-align: center; }
.trust .item + .item { border-left: 1px solid rgba(59,42,22,.1); }
.trust strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown); }
.trust span { font-size: 0.86rem; color: var(--muted); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .photo { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow); }
.split .photo.tall { aspect-ratio: 4 / 5; }
.photo-stack { position: relative; margin-bottom: 12%; }
.photo-stack .photo-2 {
  position: absolute; width: 46%; right: -8%; bottom: -12%;
  border-radius: var(--radius-sm); border: 8px solid var(--cream); box-shadow: var(--shadow);
  aspect-ratio: 1; height: auto; object-fit: cover;
}
.section.sand .photo-stack .photo-2 { border-color: var(--cream-2); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list + .btn, .check-list + .hero-actions, .check-list + p { margin-top: 28px; }
p + .btn, ul + .btn { margin-top: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b2a16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid rgba(59,42,22,.06); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card > p:last-child { margin-top: 0; }
.card.photo-card .body { display: flex; flex-direction: column; flex: 1; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(233,162,28,.16); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 26px; height: 26px; stroke: var(--gold-deep); }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); margin: 0; }
.card.photo-card { padding: 0; overflow: hidden; }
.card.photo-card img { aspect-ratio: 4/3; height: auto; object-fit: cover; width: 100%; }
.card.photo-card .body { padding: 26px 28px 30px; }

/* Stages */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.stage {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px 26px;
  border: 1px solid rgba(59,42,22,.06); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.stage .meter { margin-top: auto; }
.stage .num { font-family: var(--font-serif); font-size: 3.2rem; line-height: 1; color: var(--gold); font-weight: 600; }
.stage h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.stage p { font-size: 0.93rem; color: var(--muted); margin: 0 0 16px; }
.stage .meter { height: 8px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.stage .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 99px; }
.stage small { display: block; margin-top: 8px; font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-2); font-weight: 700; }

/* Steps / timeline */
.timeline { counter-reset: step; display: grid; gap: 0; margin-top: 30px; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid rgba(59,42,22,.12); }
.step:last-child { border-bottom: 1px solid rgba(59,42,22,.12); }
.step .n { font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Quote */
.quote { position: relative; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; color: var(--white); font-weight: 500; }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--font-sans); font-size: 0.9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.bg-photo { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .22; }
.section.dark.quote .wrap { position: relative; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--gold) 0%, #f2b93f 100%); color: var(--brown); }
.cta-band h2 { color: var(--brown); }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); border: 1px solid rgba(59,42,22,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--brown); margin-bottom: 7px; }
label .req { color: var(--gold-deep); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(59,42,22,.16);
  background: var(--cream); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233,162,28,.18); background: var(--white); }
textarea { min-height: 150px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 0.92rem; color: var(--brown-2); }
.checkbox input { margin-top: 5px; accent-color: var(--gold-deep); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.form-error { margin: 14px 0 0; color: #a4381f; font-weight: 600; font-size: 0.92rem; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Footer */
.site-footer { background: var(--brown); color: #d9cdb9; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d9cdb9; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo { height: 70px; width: auto; margin-bottom: 18px; }
.site-footer p { font-size: 0.95rem; color: #c8bba6; }
.newsletter { display: flex; gap: 10px; }
.newsletter input { border-radius: 999px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--white); }
.newsletter input::placeholder { color: #b7a891; }
.newsletter .btn { padding: 12px 22px; white-space: nowrap; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #a8987f; }
.footer-bottom a { color: #c8bba6; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: var(--white); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,33,24,.35), rgba(42,33,24,.78)); }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(90px, 14vw, 170px) 0 clamp(60px, 8vw, 100px); max-width: 820px; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero p { font-size: 1.15rem; color: #efe6d8; max-width: 640px; }

/* Values / stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 30px; text-align: center; border: 1px solid rgba(59,42,22,.06); display: flex; flex-direction: column; justify-content: center; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq details { border-top: 1px solid rgba(59,42,22,.12); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(59,42,22,.12); }
.faq summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--brown); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; color: var(--gold-deep); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 760px; }

/* Thank you */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks img { width: 110px; margin: 0 auto 24px; }
.thanks .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; margin: 0 auto 26px; box-shadow: var(--shadow); }
.thanks .tick svg { width: 34px; height: 34px; stroke: var(--brown); }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px auto 36px; max-width: 900px; text-align: left; }
.next-steps .card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.next-steps .card .n { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-deep); line-height: 1; margin-bottom: 10px; }
@media (max-width: 820px) { .next-steps { grid-template-columns: 1fr; } }

/* Prose (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose p, .prose li { color: var(--brown-2); }

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

/* Responsive */
@media (max-width: 1024px) {
  .cards, .stats { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust .item:nth-child(3) { border-left: 0; }
  .trust .item:nth-child(n+3) { border-top: 1px solid rgba(59,42,22,.1); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .brand img { height: 55px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; border-bottom: 1px solid rgba(59,42,22,.1); transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(59,42,22,.08); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-media .badge { left: 12px; bottom: 16px; }
  .hero-media .photo { aspect-ratio: 4 / 4.4; }
  .cards, .stats, .stages { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; }
  .photo-stack .photo-2 { right: 0; bottom: -8%; }
  .newsletter { flex-direction: column; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust .item { border-left: 0 !important; }
  .trust .item + .item { border-top: 1px solid rgba(59,42,22,.1); }
}

/* ---- Phoenix Program additions ---- */
.hero-sunrise { color: var(--white); }
.hero-sunrise .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-sunrise::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(42,33,24,.8) 0%, rgba(42,33,24,.55) 55%, rgba(42,33,24,.22) 100%); }
.hero-sunrise .hero-grid { position: relative; z-index: 2; }
.hero-sunrise h1 { color: var(--white); font-size: clamp(3rem, 6.4vw, 5.4rem); }
.hero-sunrise h1 span { color: var(--gold); }
.hero-sunrise .eyebrow { color: var(--gold); }
.hero-sunrise .lead { color: #f3ebdd; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; }
.hero-sunrise .tagline { color: #e6dbc8; max-width: 560px; }
.btn-outline.light { border-color: #f3ebdd; color: #f3ebdd; }
.btn-outline.light:hover { background: #f3ebdd; color: var(--brown); }
.hero-sunrise .hero-media .badge strong { color: var(--brown); }

.closing { position: relative; overflow: hidden; background: var(--brown); color: #efe6d8; padding: clamp(72px, 10vw, 130px) 0; }
.closing .bg-photo { opacity: .35; }
.closing .wrap { position: relative; }
.closing h2 { color: var(--white); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); }
.closing p { color: #e3d8c7; font-size: 1.1rem; }
.closing .eyebrow { color: var(--gold); }
.closing .btn-outline { border-color: #efe6d8; color: #efe6d8; }
.closing .btn-outline:hover { background: #efe6d8; color: var(--brown); }

.site-footer .powered { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.powered-inline { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }

.cards.manifesto { grid-template-columns: repeat(2, 1fr); }
.cards.manifesto .card h3 { font-size: 1.6rem; }
.stages.flow { grid-template-columns: repeat(4, 1fr); }
.stages.flow .stage .btn { margin-top: auto; align-self: flex-start; padding: 11px 20px; font-size: .9rem; }
.stages.flow .stage p { margin-bottom: 18px; }

.step h3 .tag { font-family: var(--font-sans); font-size: .8rem; color: var(--gold-deep); letter-spacing: .1em; text-transform: uppercase; margin-left: 10px; }

.label-text { display: block; font-weight: 700; font-size: 0.88rem; color: var(--brown); margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.choice-grid .checkbox { align-items: flex-start; }
.choice-grid .checkbox input { margin-top: 4px; }
.choice-grid.days { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 1024px) {
  .stages.flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cards.manifesto, .stages.flow { grid-template-columns: 1fr; }
  .hero-sunrise::before { background: linear-gradient(180deg, rgba(42,33,24,.82) 0%, rgba(42,33,24,.7) 100%); }
  .choice-grid { grid-template-columns: 1fr; }
}
