/* Professional Advisory Group — shared styles */
:root {
  --navy: #1f3a5f;
  --navy-dark: #162a45;
  --gold: #c19a4b;
  --gold-dark: #a9853a;
  --cream: #faf7f1;
  --cream-2: #f2ece0;
  --ink: #2b2b2b;
  --muted: #66605a;
  --line: #e2d9c8;
  --white: #ffffff;
  --ok: #2f7d4f;
  --err: #b23a3a;
  --shadow: 0 6px 24px rgba(22, 42, 69, 0.10);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
  flex-wrap: wrap; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif);
  font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.brand .brand-text { display: flex; flex-direction: column; }
.brand .brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.brand .brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--cream); text-decoration: none; padding: 8px 14px; border-radius: 6px;
  font-size: .95rem; transition: background .15s, color .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--navy); background: var(--gold); }
.nav-links a.cta { background: var(--gold); color: var(--navy); font-weight: 600; }
.nav-links a.cta:hover { background: var(--gold-dark); }
.nav-links a.nav-login { border: 1px solid rgba(255,255,255,.4); margin-left: 4px; }
.nav-links a.nav-login:hover { background: rgba(255,255,255,.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none; border-radius: 8px;
  padding: 13px 26px; font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: transform .05s, background .15s, box-shadow .15s; font-family: var(--sans);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 24px; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--err); border: 1px solid var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream); padding: 64px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: .2em; }
.hero .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.hero p.lead { font-size: 1.18rem; color: #dfe6ef; max-width: 46ch; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.35);
  border: 4px solid rgba(255,255,255,.9);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge {
  background: rgba(255,255,255,.10); border: 1px solid rgba(201,162,75,.4);
  color: var(--cream); border-radius: 999px; padding: 6px 14px; font-size: .82rem;
}

/* ---------- Sections ---------- */
section.block { padding: 62px 0; }
section.alt { background: var(--cream-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.section-head .eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.section-head h2 { font-size: 2rem; margin-top: 6px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Service grid ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.service-card .ico { color: var(--gold-dark); font-size: 1.5rem; margin-bottom: 10px; }

/* ---------- Feature / About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.about-photo { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--white); }
.credentials { list-style: none; padding: 0; margin: 18px 0 0; }
.credentials li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.credentials li::before { content: "✦"; color: var(--gold-dark); position: absolute; left: 0; top: 8px; }

/* ---------- Callout ---------- */
.callout {
  background: var(--navy); color: var(--cream); border-radius: 14px;
  padding: 40px; text-align: center; box-shadow: var(--shadow);
}
.callout h2 { color: var(--white); }
.callout p { color: #dbe3ee; max-width: 52ch; margin: 0 auto 22px; }

/* ---------- Forms / cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--navy); }
.form-row .req { color: var(--err); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,75,.18); }
textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; font-size: .95rem; display: none; }
.alert.show { display: block; }
.alert-ok { background: #e7f3ec; color: var(--ok); border: 1px solid #b9dcc6; }
.alert-err { background: #f7e7e7; color: var(--err); border: 1px solid #e2b9b9; }
.alert-info { background: #eaf0f7; color: var(--navy); border: 1px solid #c4d4e8; }

/* ---------- Page header ---------- */
.page-head { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 48px 0; text-align: center; }
.page-head h1 { font-size: 2.2rem; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 8px auto 0; }

/* ---------- Calendar / slots ---------- */
.day-group { margin-bottom: 26px; }
.day-title { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-bottom: 14px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.slot {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.slot .time { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.slot .price { color: var(--gold-dark); font-weight: 600; }
.slot .price.free { color: var(--muted); font-weight: 500; }

/* ---------- Monthly calendar ---------- */
.cal-wrap { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) { .cal-wrap.with-day { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.cal-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h3 { margin: 0; font-size: 1.3rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 1.1rem; color: var(--navy); line-height: 1;
}
.cal-nav button:hover:not([disabled]) { background: var(--cream-2); border-color: var(--gold); }
.cal-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 9px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: default; position: relative; font-size: 1rem; color: var(--ink); transition: .12s;
}
.cal-day.empty { border: none; background: transparent; }
.cal-day.unavailable { color: #b9b2a6; background: #f4f1ea; }
.cal-day.available { cursor: pointer; border-color: var(--gold); background: #fbf6ea; font-weight: 600; }
.cal-day.available:hover { background: var(--gold); color: var(--navy); }
.cal-day.available .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); }
.cal-day.available:hover .dot { background: var(--navy); }
.cal-day.selected { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.cal-day.selected .dot { background: var(--gold); }
.cal-day.today { box-shadow: 0 0 0 2px var(--navy) inset; }
.cal-day .today-lbl { font-size: .55rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.cal-day.selected .today-lbl { color: var(--gold); }
.cal-day .count { font-size: .62rem; color: var(--gold-dark); }
.cal-day.selected .count { color: #dfe6ef; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.cal-legend .sw.avail { background: #fbf6ea; border-color: var(--gold); }
.cal-legend .sw.unavail { background: #f4f1ea; }

/* Day hour picker */
.hour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hour-cell {
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 10px; text-align: center;
  background: var(--white); transition: .12s;
}
.hour-cell.open { cursor: pointer; border-color: var(--gold); }
.hour-cell.open:hover { background: var(--gold); color: var(--navy); }
.hour-cell.open .h-price { color: var(--gold-dark); font-size: .82rem; font-weight: 600; }
.hour-cell.open:hover .h-price { color: var(--navy); }
.hour-cell.unavailable { background: #f4f1ea; color: #b9b2a6; }
.hour-cell.booked { background: #f7ecec; color: #b98a8a; }
.hour-cell.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.hour-cell.selected .h-price { color: var(--gold); }
.hour-cell .h-time { font-weight: 700; }
.hour-cell .h-tag { font-size: .74rem; }

/* Stripe Elements card fields */
.stripe-el {
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); transition: border-color .12s, box-shadow .12s;
}
.stripe-el.StripeElement--focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,75,.18); }
.stripe-el.StripeElement--invalid { border-color: var(--err); }
.field-error { color: var(--err); font-size: .82rem; margin-top: 4px; min-height: 1em; }
.pay-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.card-brands { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.section-label { font-family: var(--serif); color: var(--navy); font-size: 1.05rem; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,42,69,.55); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--white); border-radius: 14px; max-width: 460px; width: 100%;
  padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.modal h3 { margin-top: 0; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--cream-2); color: var(--navy); font-family: var(--sans); font-weight: 700; }
table.data tr:hover td { background: #fbf9f4; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill.paid { background: #e7f3ec; color: var(--ok); }
.pill.pending { background: #fdf1dd; color: #9a6b1e; }
.pill.request { background: #eaf0f7; color: var(--navy); }
.pill.open { background: #e7f3ec; color: var(--ok); }
.pill.booked { background: #f7e7e7; color: var(--err); }

/* ---------- Admin tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 12px 18px; cursor: pointer; font-size: .98rem;
  font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c7d1de; padding: 40px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--gold); font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #c7d1de; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px; font-size: .82rem; color: #96a3b4; text-align: center; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
}
