/* Pratt Private Funding — site styles */
:root {
  --navy: #0F2B5B;
  --navy-deep: #0A1E40;
  --gold: #A57E2C;        /* gold on light backgrounds (graphics, rules) */
  --gold-bright: #D1AE62; /* gold on navy */
  --gold-text: #8A6A23;   /* gold for small text on light (4.5:1+) */
  --ink: #141B27;
  --body: #3D4A60;
  --muted: #5B6577;
  --line: #DDE2EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --ok: #1E7A46;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .75rem; }
.rule { width: 120px; height: 2px; background: var(--gold); border: 0; margin: 1.25rem 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 62px; }
.brand-divider { width: 2px; height: 46px; background: var(--navy); }
.brand-words { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; line-height: 1; letter-spacing: .04em; color: var(--navy); }
.brand-sub { font-weight: 600; font-size: .62rem; letter-spacing: .34em; color: var(--body); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--body); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { box-shadow: none; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff !important; font: 700 .95rem/1 var(--sans); letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy) !important; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-deep) !important; }
.btn-gold:hover { background: #E2C27C; border-color: #E2C27C; }

/* Hero */
.hero { background: linear-gradient(100deg, #FFFFFF 0%, #F4F6F9 55%, #E6EBF2 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 64px; }
.hero h1 span { display: block; color: var(--gold); }
.hero-lede { font-size: 1.2rem; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.75rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(15, 43, 91, .45); }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 10px; border-left: 4px solid var(--gold-bright);
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.hero-badge span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #C9D3E3; }

/* Sections */
.section { padding-block: 80px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.step-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.band { background: var(--navy); color: #E4E9F1; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--gold-bright); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }

/* Programs page */
.program { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program h2 { font-size: 1.7rem; }
.program ul { margin: 0; padding-left: 1.2em; }
.program li { margin-bottom: .35em; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about img { border-radius: 18px; }
.placeholder { background: #FFF7E6; border: 1px dashed var(--gold); padding: 2px 6px; border-radius: 4px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #B8C1CE; border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--navy); outline-offset: 0; }
.field .error-msg { display: none; color: var(--error); font-size: .88rem; font-weight: 600; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--error); background: var(--error-bg); }
.field input:user-invalid ~ .error-msg, .field select:user-invalid ~ .error-msg, .field textarea:user-invalid ~ .error-msg { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.notice { background: var(--bg-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; font-size: .92rem; color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }

/* Chat bubble + dialog */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: 700 .95rem/1 var(--sans);
  box-shadow: 0 12px 30px -10px rgba(10, 30, 64, .6); cursor: pointer;
}
.chat-launch:hover { background: var(--navy-deep); }
.chat-launch svg { width: 22px; height: 22px; }
dialog.chat { width: min(100% - 24px, 460px); max-height: min(90vh, 760px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(10, 30, 64, .55); }
dialog.chat::backdrop { background: rgba(10, 30, 64, .45); }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.chat-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-bright); }
.chat-head strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.chat-head span { font-size: .82rem; color: #C9D3E3; }
.chat-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .12); }
.chat-body { padding: 20px; overflow-y: auto; }
.chat-greeting { background: var(--bg-soft); border-radius: 12px 12px 12px 4px; padding: 12px 14px; margin-bottom: 16px; color: var(--ink); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D3E3; font-size: .92rem; }
.site-footer .wrap { padding-block: 48px 104px; display: grid; gap: 28px; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #C9D3E3; }
.footer-brand .brand-divider { background: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; font-size: .82rem; color: #AAB6C8; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  /* Phones and narrow panels: the menu stays visible as a second row that scrolls sideways */
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .nav {
    order: 3; flex-basis: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 10px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
  .nav a[aria-current="page"] { background: var(--bg-soft); box-shadow: none; }
  .nav .btn { min-height: 38px; padding: 0 16px; margin-left: auto; }
  .brand-name { font-size: 1.5rem; }
  .brand img { width: 50px; }
  .grid-3, .grid-4, .form .row { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .hero-badge { left: 12px; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 0 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chat-launch { transition: background-color .15s ease; }
}

/* Top bar + social icons */
.topbar { background: var(--navy-deep); color: #C9D3E3; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar p { margin: 0; letter-spacing: .04em; }
.social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; color: #fff; text-decoration: none;
}
.social a:hover { color: var(--gold-bright); background: rgba(255, 255, 255, .08); }
.social-top a { width: 40px; height: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.social-footer { margin-left: -10px; }
@media (max-width: 760px) {
  .topbar p { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* Conversational chat */
dialog.chat[open] { display: flex; flex-direction: column; height: min(86vh, 700px); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.msg { margin: 0; max-width: 85%; padding: 10px 14px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border-radius: 14px 14px 14px 4px; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.summary { display: grid; gap: 4px; border: 1px solid var(--line); background: #fff; max-width: 100%; }
.chat-input { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: grid; gap: 10px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: #fff; color: var(--navy); font: 600 .9rem/1.2 var(--sans); cursor: pointer; text-align: left;
}
.chip:hover { background: var(--bg-soft); }
.chip-quiet { border-color: var(--line); color: var(--muted); justify-self: start; }
.chat-form { display: grid; gap: 8px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row input, .chat-row textarea {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #B8C1CE; border-radius: 10px;
  padding: 11px 13px; min-height: 48px; background: #fff;
}
.chat-row textarea { min-height: 90px; resize: vertical; }
.chat-row input[aria-invalid="true"], .chat-row textarea[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.chat-send { padding: 0 20px; }
.chat-err { margin: 0; color: var(--error); font-size: .88rem; font-weight: 600; }
.chat-note { margin: 0; font-size: .8rem; color: var(--muted); }
.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; }

/* Commercial content: property types, photo band, programs, FAQ */
.hero-types { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-types li { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; }
.ptype { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ptype img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ptype-body { padding: 22px 24px 26px; }
.ptype-body h3 { margin-bottom: .35em; }
.ptype-body p:last-child { margin-bottom: 0; }
.ptype .tag { font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .4em; }
.photo-note { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.photo-band { position: relative; isolation: isolate; color: #E4E9F1; background: var(--navy-deep); overflow: hidden; }
.photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 30, 64, .94) 0%, rgba(10, 30, 64, .8) 50%, rgba(10, 30, 64, .35) 100%); }
.photo-band .wrap { padding-block: 88px; }
.photo-band-copy { max-width: 760px; }
.photo-band h2, .photo-band h3 { color: #fff; }
.photo-band .eyebrow { color: var(--gold-bright); }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.why-item { border-top: 2px solid var(--gold-bright); padding-top: 16px; }
.why-item h3 { font-size: 1.15rem; margin-bottom: .4em; }
.why-item p { margin: 0; font-size: .97rem; }
.program { grid-template-columns: 360px 1fr; align-items: start; }
.program > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.program .eyebrow { margin-bottom: .3em; }
.list-head { font-weight: 700; color: var(--ink); margin: 1em 0 .4em; }
.checklist { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.program ul.checklist { padding-left: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jump a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { border-color: var(--navy); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.look { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.look-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.look-item h3 { font-size: 1.08rem; margin-bottom: .35em; }
.look-item p { margin: 0; font-size: .95rem; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--gold); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 22px 18px; }
.faq details p { margin: 0; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }
@media (max-width: 1080px) { .look { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .program { grid-template-columns: 1fr; gap: 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .why { grid-template-columns: 1fr; gap: 20px; }
  .look { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-band .wrap { padding-block: 64px; }
}
@media (max-width: 600px) {
  .grid-3.ptypes { grid-template-columns: 1fr; }
  .look { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1140px) { .nav { gap: 16px; } .nav a { font-size: .88rem; } .brand img { width: 50px; } }
@media (max-width: 900px) { .photo-band::before { background: rgba(10, 30, 64, .9); } }

/* Direct contact: call, text, WhatsApp */
.direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.direct-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; }
.direct-btn:hover { background: var(--bg-soft); }
.direct-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 10px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.direct-sm { margin: 0; gap: 6px; }
.direct-sm .direct-btn { min-height: 34px; padding: 0 12px; font-size: .84rem; gap: 6px; }
.direct-sm svg { width: 15px; height: 15px; }
