/* ============================================================
   HedgeStone Business Advisors — Jason Taken
   Brand system pulled from hedgestone.com
   Dark charcoal/navy + signature gold gradient
   ============================================================ */

:root {
  /* Core palette */
  --bg:            #161c23;   /* page background (from hedgestone body) */
  --bg-2:          #1a202c;   /* raised panels */
  --bg-3:          #212a35;   /* cards */
  --line:          #2b3746;   /* borders */
  --ink:           #e7e7e7;   /* primary text */
  --ink-soft:      #aeb7c2;   /* secondary text */
  --ink-mute:      #7f8b99;   /* muted text */

  /* Gold — the HedgeStone signature */
  --gold-1:        #8f5e25;
  --gold-2:        #d9b451;
  --gold-3:        #fbf4a1;
  --gold:          #f5bf22;   /* solid gold accent */
  --gold-grad:     linear-gradient(120deg, #8f5e25 0%, #fbf4a1 50%, #8f5e25 100%);
  --gold-grad-2:   linear-gradient(120deg, #c9922f 0%, #fbf4a1 50%, #c9922f 100%);

  --blue-soft:     #aacbef;

  /* Type */
  --f-head: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  --f-sub:  'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(0,0,0,.65);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* soft gold ambient glow behind page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 45% at 82% -8%, rgba(245,191,34,.10), transparent 60%),
    radial-gradient(50% 40% at 0% 0%, rgba(170,203,239,.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; color: #fff; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-3); }

.text-gold {
  background: var(--gold-grad-2);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  font-family: var(--f-sub);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-sub); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 50px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  text-align: center; line-height: 1;
}
.btn-gold {
  background: var(--gold-grad-2);
  color: #211a06;
  box-shadow: 0 10px 30px -10px rgba(245,191,34,.55);
}
.btn-gold:hover { transform: translateY(-2px); color: #211a06; box-shadow: 0 16px 38px -10px rgba(245,191,34,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,23,29,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav .logo { display: flex; align-items: center; gap: 12px; }
.nav .logo img { height: 34px; width: auto; display: block; }
.nav .logo .logo-sub {
  font-family: var(--f-sub); font-size: .62rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-mute); border-left: 1px solid var(--line);
  padding-left: 12px; line-height: 1.35;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-family: var(--f-sub); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 9vw, 120px) 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 span { display: block; }
.hero .lead { margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--f-head); font-size: 2rem; color: #fff; display: block; }
.hero-stats .stat span { font-size: .82rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 1.5px; }

/* Advisor card */
.advisor-card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow); position: relative;
}
.advisor-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none;
}
.advisor-photo {
  height: 300px; border-radius: 15px;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(245,191,34,.16), transparent 55%),
    linear-gradient(160deg, #232e3a, #171d25);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; position: relative;
}
.advisor-photo .initials {
  font-family: var(--f-head); font-weight: 700; font-size: 5.5rem;
  background: var(--gold-grad-2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-58%);
}
.advisor-photo img { width: 100%; height: 100%; object-fit: cover; }
.advisor-meta { padding: 20px 18px 14px; }
.advisor-meta .name { font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; color: #fff; }
.advisor-meta .role { font-family: var(--f-sub); color: var(--gold); font-size: .92rem; margin-top: 2px; }
.advisor-meta .blurb { font-size: .92rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Sections ---------- */
section { padding: 76px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245,191,34,.4); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(245,191,34,.12); color: var(--gold); font-size: 1.35rem; margin-bottom: 16px;
}
.card h3 { color: #fff; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- About / feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold-grad-2); color: #211a06; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(120deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: 20px; padding: 48px; text-align: center;
  position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px;
  background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .4; pointer-events: none;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-sub); font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: .78rem; color: var(--ink-mute); font-weight: 400; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font-family: var(--f-body); font-size: 1rem; padding: 13px 15px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,191,34,.15);
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23f5bf22' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .95rem; font-family: var(--f-sub); display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.show { display: block; }
.form-status.ok { background: rgba(76,175,80,.12); color: #a5e0a8; border: 1px solid rgba(76,175,80,.3); }
.form-status.err { background: rgba(244,67,54,.1); color: #f2a49d; border: 1px solid rgba(244,67,54,.3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 20px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logo img { height: 30px; }
.site-footer p { font-size: .92rem; }
.footer-col h4 { font-family: var(--f-sub); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-mute); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--ink-mute); }
.footer-bottom .disclaimer { max-width: 640px; }

/* ---------- Calendar embed ---------- */
.calendar-embed {
  min-height: 820px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: visible;
}
.calendar-embed iframe {
  width: 100%;
  height: 820px;
  min-height: 820px;
  border: 0;
  display: block;
}
@media (max-width: 900px) {
  .calendar-embed,
  .calendar-embed iframe {
    min-height: 1120px;
    height: 1120px;
  }
}
.calendar-help { margin: 14px 0 0; text-align: center; font-size: .88rem; color: var(--ink-mute); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-sub); font-size: .8rem;
  color: var(--gold); background: rgba(245,191,34,.1); border: 1px solid rgba(245,191,34,.25);
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .band { padding: 32px 22px; }
  .card { padding: 22px; }
  section { padding: 56px 0; }
}
