/* =============================================
   SHARED FUTURES ADVISORY — style.css
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2A2E35;
  background: #F4F2ED;
  -webkit-font-smoothing: antialiased;
}

:root {
  --navy:       #0B1C3D;
  --mint:       #CFEFE6;
  --parchment:  #F4F2ED;
  --teal:       #3E6F73;
  --charcoal:   #2A2E35;

  --color-bg:         #F4F2ED;
  --color-surface:    #E8E5DF;
  --color-border:     rgba(11,28,61,0.11);
  --color-border-mid: rgba(11,28,61,0.20);
  --color-body:       #2A2E35;
  --color-muted:      #4d5a6b;
  --color-faint:      #7a8699;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --max-width: 960px;
  --gutter: 1.5rem;
}

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(26px, 3.8vw, 38px); letter-spacing: -0.01em; }
h2 { font-size: clamp(20px, 2.8vw, 26px); line-height: 1.35; }
h3 { font-size: 17px; line-height: 1.35; }

em { font-style: italic; color: var(--teal); }
.body-text { font-size: 15px; line-height: 1.8; color: var(--color-body); margin-bottom: 1rem; }
.small-text { font-size: 13px; color: var(--color-muted); line-height: 1.8; }

.eyebrow, .section-label, .aside-label, .case-label, .writing-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 2.5rem; }
.section-label::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
.eyebrow::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0; }

.pull-quote {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.7;
  color: var(--navy);
  background: var(--mint);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.cta-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal);
  padding-bottom: 2px;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.cta-link:hover { opacity: 0.55; }

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 0.5px solid rgba(207,239,230,0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Horizontal wordmark in nav */
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-wordmark {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 12.5px;
  color: rgba(207,239,230,0.65);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--mint); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--mint); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */

.hero { padding: 5rem 0 4.5rem; border-bottom: 0.5px solid var(--color-border); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hero-left h1 { margin-bottom: 1.25rem; }
.hero-body { font-size: 15.5px; line-height: 1.8; color: var(--color-body); margin-bottom: 2rem; }

.hero-stats { border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 1.1rem 1.4rem; background: var(--color-surface); border-bottom: 0.5px solid var(--color-border); display: flex; align-items: baseline; gap: 1rem; }
.stat:last-child { border-bottom: none; }
.stat-num { font-family: var(--font-serif); font-size: 26px; font-weight: 400; color: var(--teal); line-height: 1; flex-shrink: 0; min-width: 68px; }
.stat-label { font-size: 12px; color: var(--color-muted); line-height: 1.45; }

/* =============================================
   SECTIONS
   ============================================= */

.section { padding: 4.5rem 0; border-bottom: 0.5px solid var(--color-border); }
.section--last { border-bottom: none; }

/* =============================================
   ABOUT
   ============================================= */

.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }
.about-main h2 { margin-bottom: 1.25rem; }
.about-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 11.5px; font-weight: 500; letter-spacing: 0.03em; padding: 5px 11px; border: 0.5px solid rgba(62,111,115,0.35); border-radius: 99px; color: var(--teal); }
.sidebar-recognition .aside-label { margin-bottom: 6px; }

/* =============================================
   SERVICES
   ============================================= */

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.service-card { background: var(--color-surface); padding: 2rem 1.5rem; border-right: 0.5px solid var(--color-border); }
.service-card:last-child { border-right: none; }
.service-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 0.5px solid var(--color-border-mid); border-radius: var(--radius-sm); background: var(--color-bg); margin-bottom: 1rem; color: var(--teal); }
.service-card h3 { margin-bottom: 0.65rem; font-size: 16px; }
.service-card > p { font-size: 13px; line-height: 1.7; color: var(--color-muted); margin-bottom: 1.25rem; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.service-list li { font-size: 12.5px; color: var(--color-body); padding-left: 14px; position: relative; line-height: 1.5; }
.service-list li::before { content: '→'; position: absolute; left: 0; font-size: 10px; top: 2px; color: var(--teal); }

.services-footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.25rem; padding: 1.1rem 1.5rem; background: var(--mint); border-radius: var(--radius-md); }
.services-footer p { font-size: 13px; color: var(--navy); line-height: 1.6; }
.services-footer .cta-link { color: var(--navy); border-bottom-color: var(--teal); }

/* =============================================
   CASE STUDY
   ============================================= */

.case-study { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; background: var(--color-surface); border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 1.25rem; }
.case-label { margin-bottom: 0.85rem; }
.case-main h3 { font-size: 20px; margin-bottom: 1rem; line-height: 1.35; }
.case-main p { font-size: 14px; line-height: 1.8; color: var(--color-muted); margin-bottom: 0.75rem; }
.case-main .cta-link { margin-top: 0.75rem; }
.case-outcomes { display: flex; flex-direction: column; gap: 0.85rem; }
.outcome { padding: 0.9rem 1.1rem; background: var(--color-bg); border: 0.5px solid var(--color-border); border-radius: var(--radius-md); }
.outcome-num { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--teal); line-height: 1; margin-bottom: 4px; }
.outcome-label { font-size: 11px; color: var(--color-muted); line-height: 1.45; }
.case-footer { padding: 0.9rem 1.4rem; border: 0.5px solid var(--color-border); border-radius: var(--radius-md); }
.case-footer p { font-size: 13px; color: var(--color-muted); }

/* =============================================
   WRITING
   ============================================= */

.writing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.writing-item { background: var(--color-surface); padding: 2rem 1.75rem; border-right: 0.5px solid var(--color-border); border-bottom: 0.5px solid var(--color-border); display: flex; flex-direction: column; gap: 0.6rem; }
.writing-item:nth-child(even) { border-right: none; }
.writing-item:nth-child(3), .writing-item:nth-child(4) { border-bottom: none; }
.writing-date { margin-bottom: 2px; }
.writing-item h3 { font-size: 16px; line-height: 1.4; }
.writing-item p { font-size: 13px; line-height: 1.7; color: var(--color-muted); flex: 1; }
.writing-link { font-size: 12px; font-weight: 500; color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(62,111,115,0.35); padding-bottom: 1px; display: inline-block; margin-top: 0.5rem; align-self: flex-start; transition: opacity 0.15s; }
.writing-link:hover { opacity: 0.55; }

/* =============================================
   CONTACT
   ============================================= */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form-col h2 { margin-bottom: 0.85rem; }
.contact-form-col > p { font-size: 15px; line-height: 1.75; color: var(--color-muted); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hidden { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 14px; color: var(--navy); background: var(--color-surface); border: 0.5px solid var(--color-border-mid); border-radius: var(--radius-md); padding: 10px 13px; outline: none; width: 100%; resize: vertical; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: var(--color-bg); box-shadow: 0 0 0 3px rgba(62,111,115,0.1); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233E6F73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-color: var(--color-surface); padding-right: 36px; }
.submit-btn { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--mint); background: var(--navy); border: none; border-radius: var(--radius-md); padding: 12px 28px; cursor: pointer; align-self: flex-start; transition: opacity 0.15s; }
.submit-btn:hover { opacity: 0.85; }
.form-success { margin-top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--teal); }
.contact-details { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 0.25rem; }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-block .aside-label { margin-bottom: 2px; }
.contact-block p { font-size: 13.5px; color: var(--color-muted); line-height: 1.8; }
.contact-block a { color: var(--teal); text-decoration: none; border-bottom: 0.5px solid rgba(62,111,115,0.35); transition: opacity 0.15s; }
.contact-block a:hover { opacity: 0.6; }

/* =============================================
   FOOTER
   ============================================= */

.site-footer { background: var(--navy); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-mark {
  height: 40px;
  width: auto;
  display: block;
  opacity: 1;
}
.footer-right { font-size: 12px; color: rgba(207,239,230,0.45); }

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */

@media (max-width: 860px) {
  .hero-grid { gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-study { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; }

  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 0.5px solid rgba(207,239,230,0.12); flex-direction: column; gap: 0; padding: 0.5rem 0; z-index: 99; }
  .nav-links.is-open { display: flex; }
  .nav-links li a { display: block; padding: 0.85rem var(--gutter); font-size: 15px; color: rgba(207,239,230,0.8); border-bottom: 0.5px solid rgba(207,239,230,0.08); }
  .nav-links li:last-child a { border-bottom: none; }
  .site-header { position: relative; }

  /* Scale wordmark down slightly on mobile */
  .logo-wordmark { height: 30px; }

  .section { padding: 2.75rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .section--last { padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; gap: 4px; align-items: flex-start; border-right: 0.5px solid var(--color-border); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat-num { min-width: unset; font-size: 22px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 0.5px solid var(--color-border); }
  .service-card:last-child { border-bottom: none; }
  .services-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .writing-grid { grid-template-columns: 1fr; }
  .writing-item { border-right: none; }
  .writing-item:nth-child(3) { border-bottom: 0.5px solid var(--color-border); }
  .writing-item:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-mark { height: 32px; }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .case-study { padding: 1.5rem; }
}
