/* =====================================================================
   Cozy Hive — design system (one stylesheet for the whole site)
   Colours: navy #082052, gold #F5A623, cream #F8F0E5 (unchanged brand)
   Font: Poppins, self-hosted (fonts/), 400 500 600 700
   ===================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  --navy: #082052;
  --navy-700: #0B2C5C;
  --navy-600: #1B3A6E;
  --navy-50: #EEF1F7;
  --gold: #F5A623;
  --gold-600: #E3A82A;
  --gold-700: #C9962A;
  --gold-text: #7A5A10;        /* gold for text on light backgrounds (AA) */
  --gold-50: #FDF3DF;
  --cream: #F8F0E5;
  --cream-2: #FFFAF1;
  --white: #FFFFFF;
  --ink: #1C2433;
  --muted: #586174;
  --line: #E6DCCB;
  --line-2: #EFE8DC;
  --success: #12733A;
  --success-50: #E7F5EC;
  --danger: #B42318;
  --danger-50: #FDECEA;
  --warning: #9A4A06;
  --warning-50: #FEF3E2;
  --info: #1D4ED8;
  --info-50: #EAF0FD;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(8, 32, 82, .08);
  --shadow-sm: 0 2px 10px rgba(8, 32, 82, .06);
  --focus: 0 0 0 3px rgba(245, 166, 35, .45);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream-2);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--muted); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; } .text-ink { color: var(--ink); } .justify-center { justify-content: center; } .eyebrow-light { color: #F5C46A; }
.text-right { text-align: right; } .w-full { width: 100%; }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .975rem; line-height: 1.2;
  padding: 12px 22px; min-height: 46px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: var(--navy); }           /* navy on gold = 8.8:1 */
.btn-primary:hover { background: var(--gold-600); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--navy-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0d5a2d; color: #fff; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 15px 28px; min-height: 54px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field .optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.input, .select, .textarea, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1.5px solid #D9CFBE; border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23082052' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: #8A90A0; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.field-error { font-size: .85rem; color: var(--danger); margin-top: 6px; }
.input-group { position: relative; }
.input-group .addon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }
.input-group input { padding-left: 32px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 600; padding: 8px; cursor: pointer; }
.input-group input[type=password], .input-group input.pw { padding-right: 64px; padding-left: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; border: 1.5px solid #D9CFBE; border-radius: 10px; padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 500; height: 100%; }
.radio-card span small { display: block; font-weight: 400; color: var(--muted); }
.radio-card input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy-50); }
.radio-card input:focus-visible + span { box-shadow: var(--focus); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pw-rules li { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #B9B2A4; display: inline-block; }
.pw-rules li.ok { color: var(--success); }
.pw-rules li.ok::before { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center/9px no-repeat; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset > legend { font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.form-section { border-top: 1px solid var(--line-2); padding-top: 22px; margin-top: 22px; }
.file-drop { border: 1.5px dashed #CBBFA9; border-radius: 10px; padding: 14px; background: var(--cream-2); }
.file-drop input[type=file] { font-size: .9rem; width: 100%; }

/* ---------- cards / notices / badges ---------- */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.card-lg { padding: clamp(22px, 4vw, 40px); }
.card + .card { margin-top: 16px; }
.card h3 { margin-bottom: 6px; }
.notice { border-radius: 10px; padding: 12px 16px; font-size: .95rem; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.notice > :last-child { margin-bottom: 0; }
.notice-info { background: var(--info-50); border-color: #C9D7FA; color: #173B9C; }
.notice-success { background: var(--success-50); border-color: #BFE3CC; color: #0D5A2D; }
.notice-warning { background: var(--warning-50); border-color: #F7D3A6; color: #7A3A05; }
.notice-danger { background: var(--danger-50); border-color: #F5C2BD; color: #8F1C13; }
.notice a { color: inherit; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--navy-50); color: var(--navy); white-space: nowrap; }
.badge-gold { background: var(--gold-50); color: var(--gold-text); }
.badge-green { background: var(--success-50); color: var(--success); }
.badge-red { background: var(--danger-50); color: var(--danger); }
.badge-orange { background: var(--warning-50); color: var(--warning); }
.badge-grey { background: #EEF0F3; color: #4B5563; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars .num { color: var(--ink); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--navy-50); flex: 0 0 auto; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--navy); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--navy); }
.divider { height: 1px; background: var(--line-2); margin: 20px 0; border: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.price { font-weight: 700; color: var(--navy); font-size: 1.35rem; }
.skeleton { background: linear-gradient(90deg, #f1ece3 0%, #f8f4ed 50%, #f1ece3 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; min-height: 120px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 241, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-2); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.nav-link { text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav a.nav-link:hover { background: var(--navy-50); }
.nav a.nav-link[aria-current=page] { color: var(--navy); background: var(--gold-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 1.5px solid transparent; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--navy); font-weight: 600; }
.user-btn:hover, .user-btn[aria-expanded=true] { border-color: var(--line); background: #fff; }
.user-btn img, .user-btn .avatar { width: 36px; height: 36px; }
.user-btn .caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--cream); }
.dropdown .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.dropdown .who { padding: 8px 12px 10px; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line-2); margin-bottom: 6px; overflow-wrap: anywhere; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; transition: transform .2s; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.verify-banner { background: var(--gold-50); border-bottom: 1px solid #F1D9A6; font-size: .9rem; color: #5C4309; }
.verify-banner .container { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; text-align: center; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); gap: 2px; margin: 0; }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 12px; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .user-menu { width: 100%; }
  .user-btn { width: 100%; justify-content: flex-start; border-color: var(--line-2); }
  .dropdown { position: static; box-shadow: none; border: 0; padding: 4px 0 0; }
  .brand img { height: 40px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #D7DDEA; margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 36px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: #C4CCDD; max-width: 300px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.contact-line svg { flex: 0 0 auto; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { background: var(--gold); color: var(--navy); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.legal-line { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: .8rem; color: #AEB8CC; line-height: 1.6; }
.legal-line a { color: #D7DDEA; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding-top: 40px; } }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: none; z-index: 40; }
.to-top.show { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- toasts & modal ---------- */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 14px 16px 14px 18px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; animation: toast-in .2s ease-out; border-left: 5px solid var(--gold); }
.toast.success { border-left-color: #39B86B; }
.toast.error { border-left-color: #F0625B; }
.toast button { margin-left: auto; background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 0 0 6px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 46, .55); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; border-radius: 8px; }
.modal-close:hover { background: var(--cream); }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- hero & home ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.22), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: #D7DDEA; max-width: 560px; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); aspect-ratio: 533 / 482; background: var(--navy-700); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.search-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.25); margin-top: 26px; max-width: 640px; }
.search-card label { position: relative; display: block; }
.search-card select, .search-card input { border: 0; background-color: var(--cream-2); min-height: 54px; }
.search-card .btn { min-height: 54px; }
.trust-ticks { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0 0; color: #E5E9F2; font-size: .95rem; }
.trust-ticks li { display: flex; gap: 8px; align-items: center; }
.trust-ticks svg { color: var(--gold); flex: 0 0 auto; }
.hero-secondary { margin-top: 18px; font-size: .95rem; color: #C9D1E2; }
.hero-secondary a { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
}
@media (max-width: 560px) {
  .search-card { grid-template-columns: 1fr; }
  .search-card .btn { width: 100%; }
}
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.service-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 10px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--ink); }
.service-tile img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; }
.service-tile strong { color: var(--navy); font-size: 1.02rem; }
.service-tile small { color: var(--muted); line-height: 1.35; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line-2); position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.1rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-2); }
.why .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.why h3 { font-size: 1.05rem; }
.why p { color: var(--muted); margin: 0; font-size: .95rem; }
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-2); }
.testimonial blockquote { margin: 10px 0 14px; font-size: .98rem; }
.testimonial footer { font-size: .88rem; color: var(--muted); }
.band { border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.band-gold { background: var(--gold); color: var(--navy); }
.band-gold h2, .band-gold p { color: var(--navy); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2 { color: #fff; }
.band-navy p { color: #D7DDEA; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }
.pm-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.pm-art { background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 36px; min-height: 260px; }
.pm-art svg { width: min(260px, 70%); height: auto; }
.pm-body { padding: clamp(24px, 4vw, 48px); }
.pm-list { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; }
.pm-list li { display: flex; gap: 10px; align-items: flex-start; }
.pm-list svg { color: var(--success); flex: 0 0 auto; margin-top: 4px; }
@media (max-width: 800px) { .pm-band { grid-template-columns: 1fr; } .pm-art { min-height: 180px; } }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line-2); }
.mv-card img { width: 100%; aspect-ratio: 452 / 393; object-fit: cover; border-radius: 12px; margin-bottom: 18px; max-height: 260px; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--line-2); padding: clamp(32px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: flex-start; justify-content: center; padding: clamp(28px, 6vw, 64px) 16px; background: var(--cream); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); border: 1px solid var(--line-2); }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .95rem; color: var(--muted); }
.auth-alt a { font-weight: 600; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.progress-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.progress-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); }
.progress-steps span.on { background: var(--gold); }

/* ---------- legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: .92rem; color: var(--ink); }
.legal-toc a:hover, .legal-toc a.active { background: var(--cream); color: var(--navy); }
.legal-body { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); }
.legal-body section { padding-top: 8px; }
.legal-body section + section { border-top: 1px solid var(--line-2); margin-top: 36px; padding-top: 36px; }
.legal-body h2 { font-size: 1.6rem; }
.legal-body h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal-body p, .legal-body li { color: #2D3646; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.legal-meta { font-size: .88rem; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-body table, .table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.legal-body th, .legal-body td, .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.legal-body th, .table th { background: var(--cream); font-weight: 600; color: var(--navy); font-size: .85rem; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- dashboards ---------- */
.dash-head { background: var(--navy); color: #fff; padding: 28px 0 0; }
.dash-head h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 4px; }
.dash-head p { color: #C9D1E2; margin: 0 0 18px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-weight: 500; font-size: .95rem; background: none; border: 0; color: #C9D1E2; padding: 12px 16px; border-radius: 10px 10px 0 0; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.tab[aria-selected=true] { background: var(--cream-2); color: var(--navy); font-weight: 600; }
.tab .count { background: var(--gold); color: var(--navy); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: 1px 8px; }
.tab-panel { padding-top: 28px; padding-bottom: 56px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.stat .value { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.toolbar .field { margin: 0; min-width: 150px; }
.toolbar input, .toolbar select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.list { display: grid; gap: 16px; }
.item { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.item-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.item-head h3 { margin: 0; font-size: 1.1rem; }
.item-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.item-meta span { display: inline-flex; gap: 6px; align-items: center; }
.item-body { margin-top: 14px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.quote-card { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 18px; background: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.quote-card + .quote-card { margin-top: 12px; }
.quote-card .who h4 { margin: 0; }
.quote-card .price-col { text-align: right; }
@media (max-width: 640px) { .quote-card { grid-template-columns: auto 1fr; } .quote-card .price-col { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 0; }
.timeline li { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 22px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #D8D1C3; transform: translateX(-50%); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #E3DCCF; }
.timeline li:first-child::after { display: none; }
.timeline li.done::before, .timeline li.done::after { background: var(--success); }
.timeline li.now::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(245,166,35,.25); }
.timeline li.now { color: var(--navy); font-weight: 600; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.data-table th, .data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.data-table th { background: var(--cream); color: var(--navy); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; }
.data-table tbody tr:hover { background: #FFFCF6; }
.table-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.table-card .table-wrap { margin: 0; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img, .thumbs a img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.bar-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 160px; padding: 10px 0 0; }
.bar-chart .bar { background: var(--navy); border-radius: 6px 6px 0 0; position: relative; min-height: 2px; }
.bar-chart .bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.bar-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; font-size: .72rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- misc ---------- */
.callout-num { font-size: 2rem; font-weight: 700; color: var(--navy); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--gold); color: var(--ink); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.contact-card.whatsapp .ic { background: #E7F7EE; color: #128C4B; }
.agreement-box { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--cream-2); font-size: .92rem; }
.agreement-box h2 { font-size: 1.15rem; }
.agreement-box h3 { font-size: 1rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
.not-found { text-align: center; padding: 80px 0; }
.not-found .big { font-size: 5rem; font-weight: 700; color: var(--gold); line-height: 1; }
@media print {
  .site-header, .site-footer, .to-top, .toasts, .legal-toc, .no-print { display: none !important; }
  body { background: #fff; }
  .legal-layout { display: block; }
  .legal-body { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
