/* =========================================================
   Sylvan Consulting — stylesheet
   Theme: dark charcoal-navy, brand steel-blue accent
   Type: Spectral (display serif) + Inter (UI/body)
   ========================================================= */

:root {
  --bg:         #0c1117;   /* near-black cool charcoal */
  --bg-alt:     #0f161e;   /* alternating section */
  --surface:    #131e29;   /* cards / panels */
  --surface-2:  #18242f;   /* inputs / raised */

  --ink:        #eef3f7;   /* headings */
  --text:       #c4cfd8;   /* body */
  --muted:      #8493a0;   /* secondary text */

  --blue:       #4c9fd6;   /* accent (brand blue, brightened for dark) */
  --blue-deep:  #1f6e9c;   /* brand blue, true */
  --blue-200:   #9ccae6;   /* light tint */

  --line:       rgba(238, 243, 247, 0.10);
  --line-soft:  rgba(238, 243, 247, 0.06);

  --max:    1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
::selection { background: rgba(76,159,214,.30); color: #fff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--blue); color: #06121b; }
.btn--primary:hover { background: var(--blue-200); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(12, 17, 23, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-color: var(--line); background: rgba(12,17,23,.88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 92px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 58px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 100px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.nav__cta:hover { border-color: var(--blue); color: var(--blue) !important; background: rgba(76,159,214,.06); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 82% -20%, rgba(31,110,156,.22), transparent 55%),
    radial-gradient(90% 70% at 0% 110%, rgba(31,110,156,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-alt) 100%);
  padding: clamp(80px, 14vh, 168px) 0 clamp(86px, 13vh, 150px);
}
.hero__bg { position: absolute; inset: 0; color: var(--blue); opacity: .14; pointer-events: none; }
.hero__lines { width: 100%; height: 100%; }
.hero__inner { position: relative; max-width: 940px; }

.hero__title {
  font-size: clamp(34px, 6vw, 70px);
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 17ch;
  color: var(--ink);
}
.hero__title em { color: var(--blue); font-style: italic; }
.hero__lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(74px, 11vw, 132px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { max-width: 720px; margin-bottom: 62px; }
.section__head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 20px; }
.section__intro { font-size: 18px; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(76,159,214,.40); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(76,159,214,.12); color: var(--blue);
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 23px; margin-bottom: 12px; color: var(--ink); }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.approach__text h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 22px; }
.approach__text p { color: var(--text); margin-bottom: 16px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

.approach__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.approach__list li { display: flex; gap: 22px; padding: 26px 6px; border-top: 1px solid var(--line); }
.approach__list li:last-child { border-bottom: 1px solid var(--line); }
.approach__list span {
  font-family: "Spectral", serif; font-size: 18px; color: var(--blue);
  flex: 0 0 auto; padding-top: 2px;
}
.approach__list h4 { font-family: "Inter", sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.approach__list p { font-size: 15px; color: var(--muted); }

/* ---------- Bio ---------- */
.bio {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 60px);
  align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(30px, 4vw, 52px);
  box-shadow: var(--shadow);
}
.bio__portrait {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(76,159,214,.10);
}
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.bio__body h3 { font-size: 28px; margin-bottom: 5px; }
.bio__role { color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.bio__body p { color: var(--text); margin-bottom: 16px; }
.bio__links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.bio__links a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.bio__links a:hover { border-color: var(--blue); color: var(--blue); background: rgba(76,159,214,.06); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.section--contact {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(31,110,156,.16), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.contact__intro h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.contact__intro p { color: var(--muted); max-width: 42ch; }
.contact__or { margin-top: 20px; }
.contact__email {
  display: inline-block; margin-top: 8px; font-family: "Spectral", serif; font-size: clamp(19px, 2.4vw, 24px);
  color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(76,159,214,.4);
  padding-bottom: 3px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact__email:hover { color: var(--blue-200); border-color: var(--blue-200); }

/* ---------- Form ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font-family: "Inter", sans-serif; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5d6b77; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #1b2935;
  box-shadow: 0 0 0 3px rgba(76,159,214,.18);
}
.form__submit { width: 100%; margin-top: 6px; }
.form__status { font-size: 14px; margin-top: 14px; min-height: 1em; }
.form__status.is-ok { color: var(--blue-200); font-weight: 600; }
.form__status.is-err { color: #e08a7a; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 60px 0 44px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer__logo { height: 52px; width: auto; opacity: .92; }
.footer__tag { color: var(--muted); font-style: italic; font-family: "Spectral", serif; font-size: 17px; }
.footer__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-top: 4px; }
.footer__meta a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
.footer__meta a:hover { color: var(--blue); }
.footer__meta span { color: var(--muted); }
.footer__copy { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .approach, .contact { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio__portrait { max-width: 220px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 92px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 30px;
  }
  .nav__links.is-open .nav__cta { width: 100%; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}
