/* ============================================================
   ACCESA ADVISORY — SHARED STYLESHEET (Warm Palette)
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #4D3B2E;
  --cream: #F6F4E9;
  --cream2: #E5DDCF;
  --cream3: #D8D1BC;
  --gold: #401D24;
  --gold-light: #6B3340;
  --rust: #401D24;
  --steel: #3A2520;
  --mid: #938A65;
  --line: rgba(77,59,46,0.12);
  --line2: rgba(77,59,46,0.20);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

/* === ACCESSIBILITY: Focus indicators & reduced motion === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body { font-family: var(--sans); background: var(--cream); color: var(--ink); overflow-x: hidden; font-weight: 400; }
h1, h2, h3 { text-wrap: balance; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }


/* === LOGO MARK === */
.logo-mark {
  display: block;
  width: 160px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) saturate(100%) invert(18%) sepia(20%) saturate(500%) hue-rotate(355deg) brightness(90%) contrast(95%);
}

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); text-decoration: none; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: inline-block; line-height: 1; font-size: 0.82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cream) !important; background: var(--ink); padding: 10px 22px; text-decoration: none; border-radius: 2px; transition: all .3s; }
.nav-cta:hover { background: var(--gold); color: var(--cream) !important; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all .3s; }
nav.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* === HERO (About page) === */
.hero {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 160px 60px 100px;
  background: var(--gold);
}

.hero-glow {
  position: absolute;
  width: 800px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(64,29,36,0.2) 0%, transparent 65%);
  bottom: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 500px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(64,29,36,0.12) 0%, transparent 70%);
  top: 80px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-grid { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-size: 0.82rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  animation: fadeUp .8s ease .1s both;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: '——'; color: var(--mid); opacity: .5; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 6.2vw, 78px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.01em;
  margin: 0 auto 28px; color: var(--cream);
  text-align: center;
  animation: fadeUp .8s ease .25s both;
}
.hero h1 em { font-style: italic; color: var(--mid); }
.hero h1 .h1-nowrap { white-space: nowrap; }
@media (max-width: 560px) { .hero h1 .h1-nowrap { white-space: normal; } }
.hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.85;
  color: rgba(246,244,233,0.75); max-width: 580px; margin: 0 auto;
  animation: fadeUp .8s ease .4s both;
}


/* === SECTIONS BASE === */
section { padding: 100px 60px; }
section + section { border-top: 1px solid rgba(64,29,36,0.12); }
section + .credentials-bar,
.credentials-bar + section { border-top: 1px solid rgba(64,29,36,0.15); }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--mid); opacity: .5; }
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1; color: var(--ink);
}
.section-heading em { font-style: italic; color: var(--gold); }


/* === ABOUT PAGE: FOUNDER === */
#founder { background: var(--cream); }
.founder-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 90px; margin-top: 72px; align-items: start; }
.founder-photo-col { display: flex; flex-direction: column; align-items: flex-start; }
.founder-photo { width: 100%; max-width: 380px; aspect-ratio: 3/4; object-fit: cover; object-position: center top; border: 1px solid var(--line2); display: block; }
.founder-caption { font-size: 0.78rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-top: 16px; }
.founder-label { font-size: 0.72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--mid); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.founder-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--mid); opacity: .5; }
.founder-pullquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; font-style: italic; color: var(--ink); line-height: 1.25; margin-bottom: 40px; }
.founder-body p { font-size: 0.95rem; font-weight: 300; line-height: 1.95; color: var(--mid); margin-bottom: 20px; }
.founder-body p:last-child { margin-bottom: 0; }


/* === ABOUT PAGE: CREDIBILITY === */
#credibility { background: var(--cream2); }
.credibility-inner { max-width: 960px; margin: 0 auto; }
.credibility-inner .section-label { justify-content: center; }
.credibility-inner .section-label::before { display: none; }
.credibility-heading {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800; line-height: 1.15; color: var(--ink);
  margin-bottom: 60px; max-width: 760px; margin-left: auto; margin-right: auto;
  text-align: center;
}
.credibility-heading em { font-style: italic; color: var(--gold); }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.cred-item {
  padding: 36px 32px; border: 1px solid var(--line);
  background: var(--cream); transition: all .3s;
}
.cred-item:hover { border-color: var(--gold); background: #EDE8DA; }
.cred-icon {
  width: 44px; height: 44px;
  background: rgba(64,29,36,0.07); border: 1px solid rgba(64,29,36,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold); font-size: 14px;
}
.cred-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.25; }
.cred-desc { font-size: 0.88rem; line-height: 1.85; color: var(--mid); font-weight: 300; }


/* === ABOUT PAGE: PERSONAL NOTE === */
#note { background: var(--gold); }
#note .section-label {
  color: var(--mid); justify-content: center;
  font-size: 0.9rem; letter-spacing: .32em; margin-bottom: 32px;
}
#note .section-label::before { display: none; }
.note-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.note-quote { text-align: left; }
.note-body { text-align: left; }
.note-heading {
  color: var(--cream) !important;
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  margin-bottom: 20px;
}
.note-heading em { color: var(--mid); }
.note-sub {
  font-size: 1.05rem; color: rgba(246,244,233,0.7);
  line-height: 1.7; font-weight: 300;
  max-width: 520px; margin: 0 auto 48px;
}
.note-quote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400; font-style: italic; color: rgba(246,244,233,0.88);
  line-height: 1.5; border-left: 3px solid var(--gold);
  padding-left: 32px; margin: 40px 0 48px;
}
.note-body p { font-size: 0.95rem; font-weight: 300; line-height: 1.95; color: rgba(246,244,233,0.78); margin-bottom: 22px; }
.note-closing {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
  font-style: italic; color: var(--mid); line-height: 1.6; margin: 36px 0 40px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--cream);
  font-size: 0.82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 34px; text-decoration: none; border-radius: 2px;
  transition: all .3s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }


/* === ABOUT PAGE: CREDENTIALS BAR === */
.credentials-bar {
  background: var(--cream2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 40px; display: flex; align-items: center;
  justify-content: center; flex-wrap: nowrap; gap: 0; overflow: hidden;
}
.cred-bar-item {
  font-size: 0.72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); padding: 0 24px;
  border-right: 1px solid var(--line2); white-space: nowrap;
}
.cred-bar-item:last-child { border-right: none; }


/* === FOOTER === */
footer {
  background: var(--steel); padding: 44px 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,244,233,0.7); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.72rem; color: rgba(246,244,233,0.6); }


/* === CHAT WIDGET === */
.chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 300; font-family: var(--sans); }
.chat-pill { background: var(--gold); color: var(--cream); font-size: 0.75rem; font-weight: 500; letter-spacing: .08em; padding: 12px 22px; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 9px; box-shadow: 0 4px 24px rgba(64,29,36,.35); transition: all .3s; }
.chat-pill:hover { background: var(--gold-light); transform: translateY(-2px); }
.chat-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ab87a; flex-shrink: 0; }
.chat-box { display: none; flex-direction: column; width: 300px; background: var(--cream); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 48px rgba(64,29,36,.18); margin-bottom: 12px; }
.chat-box.open { display: flex; }
.chat-head { background: var(--gold); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(64,29,36,0.2); }
.chat-head-left { display: flex; align-items: center; gap: 9px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ab87a; flex-shrink: 0; }
.chat-head-title { font-size: 0.82rem; font-weight: 500; color: var(--cream); }
.chat-head-sub { font-size: 0.75rem; color: rgba(246,244,233,0.65); }
.chat-close { background: none; border: none; color: rgba(246,244,233,0.65); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; transition: color .2s; }
.chat-close:hover { color: var(--cream); }
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; max-height: 320px; overflow-y: auto; background: var(--cream); }
.msg-bot { background: rgba(77,59,46,0.07); border-radius: 0 8px 8px 8px; padding: 10px 12px; font-size: 0.75rem; color: var(--ink); line-height: 1.6; max-width: 88%; }
.msg-user { background: var(--gold); border-radius: 8px 0 8px 8px; padding: 10px 12px; font-size: 0.75rem; color: var(--cream); line-height: 1.6; align-self: flex-end; max-width: 88%; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; background: var(--cream); }
.chip { font-size: 0.75rem; border: 1px solid var(--line2); border-radius: 20px; padding: 5px 11px; color: var(--mid); cursor: pointer; transition: all .2s; background: none; font-family: var(--sans); }
.chip:hover { background: rgba(64,29,36,0.07); color: var(--ink); border-color: rgba(64,29,36,0.28); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); background: var(--cream); }
.chat-input-row input { flex: 1; background: rgba(77,59,46,0.05); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 0.75rem; color: var(--ink); font-family: var(--sans); outline: none; transition: border-color .2s; }
.chat-input-row input::placeholder { color: var(--mid); opacity: .7; }
.chat-input-row input:focus { border-color: var(--gold); }
.chat-send { background: var(--gold); border: none; border-radius: 4px; width: 30px; height: 30px; cursor: pointer; color: var(--cream); font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.chat-send:hover { background: var(--gold-light); }


/* === CONTACT FORM === */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 40px auto 0; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.form-input {
  background: rgba(246,244,233,0.12); border: 1.5px solid rgba(64,29,36,0.4);
  color: var(--cream); font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  padding: 14px 16px; outline: none; transition: border-color .3s, background .3s; border-radius: 2px; width: 100%;
}
.form-input::placeholder { color: rgba(246,244,233,0.5); }
.form-input:focus { border-color: var(--mid); background: rgba(246,244,233,0.18); }
.form-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23938A65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-select option { background: var(--steel); color: var(--cream); }
.form-submit {
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 38px; border: 2px solid var(--gold); cursor: pointer; border-radius: 2px;
  transition: all .3s; margin: 20px auto 0; width: auto; min-width: 300px; display: block; text-align: center;
}
.form-submit:hover { background: #ffffff; border-color: var(--gold-light); transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success-msg {
  font-family: var(--serif); font-size: 1.2rem; font-style: italic;
  color: var(--mid); line-height: 1.6;
  padding: 32px 36px; background: rgba(64,29,36,0.07);
  border: 1px solid rgba(64,29,36,0.2); border-left: 3px solid var(--gold);
  max-width: 520px; margin: 40px auto 0; text-align: center;
}
.form-success-msg p { font-style: italic; }


/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* === MOBILE === */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  nav.nav-open { flex-wrap: wrap; align-items: flex-start; }
  nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 0; order: 3;
    padding: 8px 0 4px;
  }
  nav.nav-open .nav-links li { width: 100%; }
  nav.nav-open .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; letter-spacing: .1em; }
  nav.nav-open .nav-links li:last-child a { border-bottom: none; }
  nav.nav-open .nav-cta { order: 2; }

  .hero { padding: 120px 24px 80px; min-height: 60vh; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }

  section { padding: 60px 24px; }

  .founder-layout { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .founder-photo { max-width: 220px; aspect-ratio: 3/4; }
  .founder-pullquote { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .cred-grid { grid-template-columns: 1fr; }
  .credibility-heading { font-size: clamp(1.4rem, 5vw, 2rem); }
  .credentials-bar { padding: 20px 24px; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
  .cred-bar-item { border-right: none; padding: 4px 0; white-space: normal; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }
  .form-submit { min-width: unset; width: 100%; }

  footer { flex-direction: column; text-align: center; padding: 32px 24px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-box { width: calc(100vw - 32px); }
}
