@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --navy: #152B39;
  --navy-dark: #0e1e28;
  --navy-light: #223e50;
  --cream: #F5F1E8;
  --cream-dark: #eae3d1;
  --copper: #AF8764;
  --copper-dark: #8a6a4d;
  --white: #ffffff;
  --text: #26313b;
  --muted: #6d6558;
  --border: #e2dccb;
  --danger: #b3402f;
  --ok: #2f7a4f;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(21, 43, 57, 0.07);
  --shadow-md: 0 10px 30px rgba(21, 43, 57, 0.14);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible .card:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible .card:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible .card:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible .card:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible .card:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger .card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease; }
.reveal-stagger.is-visible .card { opacity: 1; transform: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); }

.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: 0.85rem; }

/* ---------- Logo / wordmark ---------- */

.brand-mark {
  display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05;
}
.brand-mark .brand-name {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em;
}
.brand-mark .brand-name .stock { color: var(--navy); }
.brand-mark .brand-name .mann { color: var(--copper-dark); }
.brand-mark .brand-tagline {
  font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.32em;
  color: var(--muted); margin-top: 3px; padding-left: 1px;
}
.brand-mark.on-navy .brand-name .stock { color: var(--cream); }
.brand-mark.on-navy .brand-name .mann { color: var(--copper); }
.brand-mark.on-navy .brand-tagline { color: rgba(245, 241, 232, 0.65); }

/* ---------- Public site header/footer ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(21, 43, 57, 0.08); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  position: relative; padding-bottom: 2px;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--copper-dark); transition: width 0.25s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-nav a:hover { color: var(--copper-dark); }

.site-footer {
  margin-top: 64px;
  background: var(--navy);
  color: rgba(245, 241, 232, 0.85);
  padding: 40px 0;
}
.site-footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.site-footer .muted { color: rgba(245, 241, 232, 0.6); }
.site-footer .muted a { color: rgba(245, 241, 232, 0.6); text-decoration: none; }
.site-footer .muted a:hover { text-decoration: underline; }
.site-footer strong { color: var(--cream); }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-links a { color: rgba(245, 241, 232, 0.85); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }

.social-link { display: inline-flex; align-items: center; gap: 6px; }
.social-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Hero ---------- */

.hero-band {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(175, 135, 100, 0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 110%, rgba(175, 135, 100, 0.12), transparent 60%),
    var(--navy);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.hero {
  padding: 76px 24px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero.no-photo { grid-template-columns: 1fr; max-width: 720px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  color: var(--copper); font-weight: 600; margin: 0 0 16px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 {
  font-size: 3rem; margin: 0 0 18px; color: var(--cream); line-height: 1.1; font-weight: 600;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.hero .lead {
  font-family: var(--font-sans); font-size: 1.15rem; color: rgba(245, 241, 232, 0.82);
  max-width: 480px; margin: 0 0 14px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.hero-trust {
  font-size: 0.9rem; color: rgba(245, 241, 232, 0.58);
  max-width: 480px; margin: 0 0 30px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero > div > .btn {
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
.hero-meta { margin-top: 32px; color: rgba(245, 241, 232, 0.62); font-size: 0.88rem; }
.hero-meta a { color: var(--cream); }
.hero-photo {
  width: 100%; position: relative; overflow: hidden;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 16%, black 84%, transparent 100%);
}
.hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 0.5s ease;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(175, 135, 100, 0.28), transparent 55%);
  pointer-events: none;
}
.hero-photo:hover img { transform: scale(1.03); }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Icon strip ---------- */

.icon-strip {
  background: var(--cream); border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; flex-wrap: wrap;
}
.icon-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.icon-item {
  display: flex; align-items: center; gap: 12px; padding: 22px 36px;
  border-left: 1px solid var(--border); font-weight: 500; color: var(--navy);
  background: none; border-top: none; border-bottom: none; border-right: none;
  font-family: inherit; font-size: 1rem; cursor: pointer;
}
.icon-item:first-child { border-left: none; }
.icon-item .icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--cream-dark);
  transition: background 0.25s ease, transform 0.25s ease; flex-shrink: 0;
}
.icon-item:hover .icon-circle, .icon-item[aria-expanded="true"] .icon-circle { background: var(--copper); transform: scale(1.08); }
.icon-item svg { width: 20px; height: 20px; color: var(--copper-dark); flex-shrink: 0; transition: color 0.25s ease; }
.icon-item:hover svg, .icon-item[aria-expanded="true"] svg { color: var(--cream); }
.icon-item-plus {
  position: relative; width: 12px; height: 12px; margin-left: 4px; flex-shrink: 0;
}
.icon-item-plus::before, .icon-item-plus::after {
  content: ""; position: absolute; background: var(--copper-dark); transition: transform 0.2s ease, background 0.2s ease;
}
.icon-item-plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.icon-item-plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.icon-item[aria-expanded="true"] .icon-item-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

/* ---------- Quick tools (icon-strip mini calculators) ---------- */

.quick-tools-wrap { background: var(--cream); border-bottom: 1px solid var(--border); padding: 28px 0 36px; }
.quick-tool-panel h3 { margin: 0 0 18px; color: var(--navy); font-size: 1.15rem; text-align: center; }
.quick-tool-panel {
  max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow);
}
.quick-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.quick-calc-grid label { margin-bottom: 14px; font-size: 0.9rem; }
.quick-calc-result {
  margin-top: 6px; padding: 16px; border-radius: var(--radius); background: var(--cream-dark);
  text-align: center; font-size: 0.9rem; color: var(--muted);
}
.quick-calc-result strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); margin: 4px 0; }
.quick-calc-note { margin: 14px 0 0; font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.quick-calc-text { color: var(--text); font-size: 0.93rem; line-height: 1.6; margin: 0 0 20px; text-align: center; }
.quick-tool-panel .btn { display: block; width: fit-content; margin: 0 auto; }
@media (max-width: 640px) {
  .quick-calc-grid { grid-template-columns: 1fr; }
  .quick-tool-panel { padding: 22px 20px; }
}

/* ---------- Wordplay strip ---------- */

/* ---------- Process steps ---------- */

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.process-step { text-align: left; }
.process-number {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: var(--cream);
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 16px;
}
.process-step h3 { font-size: 1.05rem; color: var(--navy); margin: 0 0 8px; }
.process-step p { font-size: 0.9rem; margin: 0; }

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq-item summary {
  padding: 16px 0; cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--copper-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ---------- Reviews ---------- */

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-stars { color: var(--copper); letter-spacing: 2px; margin-bottom: 10px; }
.review-text { color: var(--text); font-size: 0.95rem; line-height: 1.6; margin: 0 0 14px; font-style: italic; }
.review-author { color: var(--navy); font-weight: 600; font-size: 0.9rem; margin: 0; }

.partners-section { padding-top: 8px; }
.partners-grid {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
}
.partner-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 32px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--border); background: var(--white);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 160px;
}
.partner-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--copper); }
.partner-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.partner-desc { font-size: 0.8rem; color: var(--muted); }

.calc-teaser {
  background: var(--navy); color: var(--cream); border-radius: var(--radius);
  padding: 36px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.calc-teaser-title { font-size: 1.4rem; margin: 0 0 6px; color: var(--cream); }
.calc-teaser .muted { color: rgba(245, 241, 232, 0.7); margin: 0; }
.calc-teaser .btn-ghost { color: var(--cream); border-color: rgba(245, 241, 232, 0.5); flex-shrink: 0; }
.calc-teaser .btn-ghost:hover { background: rgba(245, 241, 232, 0.1); }

.wordplay {
  padding: 40px 24px; text-align: center; border-bottom: 1px solid var(--border);
}
.wordplay-line { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: 0 0 4px; }
.wordplay-line .accent { color: var(--copper-dark); }
.wordplay-rule { width: 60px; height: 1px; background: var(--copper); border: none; margin: 14px auto; }
.wordplay-result {
  font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted);
  text-transform: uppercase;
}
.wordplay-result .accent { color: var(--copper-dark); font-weight: 600; }

.next-slot {
  font-size: 0.85rem; color: var(--ok); background: #e9f5ee;
  border-radius: var(--radius); padding: 6px 10px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 7px;
}
.next-slot strong { font-weight: 700; }
.next-slot .live-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(47, 122, 79, 0.5); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(47, 122, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0); }
}

.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  color: var(--copper-dark); font-weight: 600; margin: 0 0 8px;
}

.section { padding: 56px 24px; }
.section.narrow { max-width: 640px; }
.section.tight { padding-top: 24px; padding-bottom: 24px; }
.section.center { text-align: center; }
.section-title { font-size: 1.8rem; color: var(--navy); margin-bottom: 32px; text-align: center; }
.section-title-sm { font-size: 1.15rem; color: var(--navy); margin: 32px 0 12px; font-family: var(--font-serif); }

.lead-sm { color: var(--muted); }

.about-text { max-width: 640px; margin: 0 auto; text-align: center; }

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plain-list li {
  position: relative; padding-left: 24px; color: var(--text); font-size: 0.98rem;
}
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 999px; background: var(--copper);
}
.about-text p { font-size: 1.05rem; color: var(--text); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card .next-slot { margin-top: auto; margin-bottom: 14px; }
.card .btn-block { margin-top: auto; }
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--copper);
}
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.card .meta { color: var(--copper-dark); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px; }
.card-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

.confirm-card { max-width: 420px; margin: 24px auto; text-align: left; }
.prep-note {
  max-width: 420px; margin: 0 auto 24px; text-align: left; font-size: 0.9rem; line-height: 1.6;
  color: var(--text); background: #faf7f2; border-left: 3px solid var(--copper); padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prep-note a { color: var(--copper-dark); font-weight: 600; }

.help-note {
  text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 28px;
}
.help-note a { color: var(--navy); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: 0.95rem;
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  font-family: var(--font-sans);
}
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(21, 43, 57, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--copper); color: var(--navy-dark); }
.btn-primary:hover { background: var(--copper-dark); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost.on-navy { color: var(--cream); border-color: rgba(245,241,232,0.5); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Forms ---------- */

label {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 14px;
}
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: 2px solid var(--copper-dark); outline-offset: 2px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); max-width: 560px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checkbox-row input { width: auto; margin: 3px 0 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; max-width: none; }
.inline-form label { min-width: 140px; margin-bottom: 0; }
.inline-form button { margin-bottom: 0; height: 44px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- Booking flow ---------- */

.booking-step { margin: 30px 0; }
.step-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; font-family: var(--font-serif); }

.cal { max-width: 340px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month-label { font-family: var(--font-serif); font-weight: 600; color: var(--navy); text-transform: capitalize; }
.cal-nav {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border); background: var(--cream);
  color: var(--navy); font-size: 1rem; cursor: pointer; line-height: 1;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.cal-nav:hover:not(:disabled) { background: var(--copper); color: var(--cream); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; border: none; background: none; border-radius: 999px; font-family: var(--font-sans);
  font-size: 0.88rem; color: var(--border); cursor: default;
}
.cal-day.has-slots {
  color: var(--navy); font-weight: 600; cursor: pointer; background: var(--cream-dark);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cal-day.has-slots:hover { background: var(--copper); color: var(--cream); transform: scale(1.08); }
.cal-day.selected { background: var(--navy) !important; color: var(--cream) !important; }
.cal-legend { margin: 14px 0 0; font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--cream-dark); border: 1.5px solid var(--copper); display: inline-block; }

.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn {
  padding: 11px 16px; border-radius: var(--radius); border: 1px solid var(--navy); background: #fff;
  color: var(--navy); font-weight: 600; cursor: pointer; font-family: var(--font-sans); font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.slot-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(21, 43, 57, 0.12); }
.slot-btn:hover { background: var(--cream-dark); }
.slot-btn.selected { background: var(--navy); color: var(--cream); }

/* ---------- Flash messages ---------- */

.flash {
  padding: 13px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 0.92rem;
}
.flash-error { background: #fbeae7; color: var(--danger); border: 1px solid #f0c8c1; }
.flash-success { background: #e9f5ee; color: var(--ok); border: 1px solid #c6e6d3; }
.flash ul { margin: 0; padding-left: 18px; }

/* ---------- Admin login ---------- */

.admin-login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: var(--navy-dark); font-family: var(--font-sans);
}
.login-box {
  background: #fff; padding: 40px; border-radius: var(--radius); width: 100%; max-width: 360px;
  box-shadow: var(--shadow-md);
}
.login-box h1 { margin-top: 0; font-size: 1.3rem; color: var(--navy); }

/* ---------- Admin shell ---------- */

.admin-shell { display: flex; min-height: 100vh; font-family: var(--font-sans); }
.admin-sidebar {
  width: 230px; background: var(--navy-dark); color: rgba(245, 241, 232, 0.85);
  display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0;
}
.admin-brand { font-weight: 700; color: var(--cream); padding: 0 24px 24px; font-size: 1.1rem; font-family: var(--font-serif); }
.admin-sidebar nav { display: flex; flex-direction: column; flex: 1; }
.admin-sidebar nav a {
  padding: 12px 24px; color: rgba(245, 241, 232, 0.75); text-decoration: none; font-size: 0.92rem;
  border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(245, 241, 232, 0.08); color: var(--cream); }
.admin-sidebar nav a.active { color: var(--cream); border-left-color: var(--copper); background: rgba(245, 241, 232, 0.08); font-weight: 600; }
.admin-sidebar-footer { padding: 12px 24px; border-top: 1px solid rgba(245, 241, 232, 0.12); display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar-footer a { color: rgba(245, 241, 232, 0.6); text-decoration: none; font-size: 0.85rem; }
.admin-sidebar-footer a:hover { color: var(--cream); }

.admin-main { flex: 1; padding: 36px 44px; max-width: 1100px; }
.admin-main h1 { color: var(--navy); margin-top: 0; }

.admin-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.table-wrap .table { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table th { background: var(--cream-dark); color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 12px; }

.link-btn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--navy); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-ok { background: #e9f5ee; color: var(--ok); }
.badge-off { background: var(--cream-dark); color: var(--muted); }

/* ---------- Dashboard stats ---------- */

.dash-alert {
  display: block; background: var(--copper); color: var(--white); font-weight: 700;
  padding: 14px 20px; border-radius: var(--radius); margin: 16px 0 0; text-decoration: none;
  transition: background 0.2s ease;
}
.dash-alert:hover { background: var(--copper-dark); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0 12px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Availability week grid ---------- */

.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.week-day { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.week-day h3 { margin: 0 0 8px; font-size: 0.88rem; color: var(--navy); font-family: var(--font-sans); font-weight: 600; }
.time-range-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 4px 0; }
.time-range-row form { margin: 0; }
.time-range-row button { color: var(--danger); }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--copper); }

/* ---------- Profile photo upload (admin) ---------- */

.photo-preview { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.photo-preview img {
  width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border);
}
.photo-preview-empty {
  width: 96px; height: 96px; border-radius: var(--radius); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; text-align: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px; text-align: left; }
  .hero-photo { max-width: 320px; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
  .site-nav .btn { margin-left: auto; }
}

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px 0; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .icon-item { padding: 16px 20px; border-left: none; border-top: 1px solid var(--border); width: 100%; justify-content: center; }
  .icon-item:first-child { border-top: none; }
  .icon-strip-inner { flex-direction: column; width: 100%; }
}
