/* ========================================
   TRIDENT LEDGER — STYLES
   Palette: Charcoal / Warm Grey / Gold Accent
   Fonts: DM Serif Display (headlines) + DM Sans (body)
   ======================================== */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core Palette */
  --color-charcoal:    #1a1a1a;
  --color-graphite:    #2c2c2c;
  --color-slate:       #3d3d3d;
  --color-mid-grey:    #6b6b6b;
  --color-warm-grey:   #9a9590;
  --color-light-grey:  #c8c3bd;
  --color-cream:       #f5f2ee;
  --color-off-white:   #faf9f7;
  --color-white:       #ffffff;

  /* Accent */
  --color-gold:        #b8943e;
  --color-gold-light:  #d4b45c;
  --color-gold-muted:  rgba(184, 148, 62, 0.12);

  /* Functional */
  --color-text:        var(--color-charcoal);
  --color-text-muted:  var(--color-mid-grey);
  --color-bg:          var(--color-off-white);
  --color-bg-alt:      var(--color-cream);
  --color-border:      rgba(0, 0, 0, 0.08);
  --color-card-bg:     var(--color-white);

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:  clamp(4rem, 8vw, 7rem);
  --container:    1140px;
  --gap:          clamp(1.5rem, 3vw, 2.5rem);

  /* Transitions */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration:     0.6s;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul { list-style: none; }

::selection {
  background: var(--color-gold);
  color: var(--color-white);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1.25rem;
  color: var(--color-charcoal);
}

.section-intro {
  max-width: 600px;
  color: var(--color-mid-grey);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-slate);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-light-grey);
}
.btn-ghost:hover {
  border-color: var(--color-charcoal);
  background: rgba(0,0,0,0.02);
}

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  width: 28px;
  height: 30px;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--color-mid-grey);
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--color-charcoal);
}

.nav-cta {
  padding: 0.55rem 1.25rem !important;
  background: var(--color-charcoal);
  color: var(--color-white) !important;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: all 0.25s ease !important;
}
.nav-cta:hover {
  background: var(--color-slate);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 3rem) 0 var(--section-pad);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.hero-headline {
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
}

.hero-headline-accent {
  color: var(--color-slate);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--color-mid-grey);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-proof-item {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-warm-grey);
}

.hero-proof-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-light-grey);
}

/* ========================================
   PROBLEM
   ======================================== */
.problem {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin: 2.5rem 0;
}

.problem-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
}

.problem-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-cream);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  line-height: 1;
}

.problem-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-slate);
  max-width: 340px;
}

.problem-transition {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
  margin-top: 1rem;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: var(--section-pad) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2.25rem 2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-light-grey);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-charcoal);
  font-size: 1.2rem;
}

.service-lead {
  color: var(--color-mid-grey);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.service-card ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-slate);
  line-height: 1.55;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  opacity: 0.6;
}

.service-outcome {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-gold);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  line-height: 1.5;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--color-charcoal);
  color: var(--color-white);
}

.how-it-works .section-eyebrow {
  color: var(--color-gold-light);
}

.how-it-works .section-heading {
  color: var(--color-white);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 3rem 0;
}

.step-card {
  flex: 1;
  padding: 2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.step-card h3 {
  color: var(--color-gold-light);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.step-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-top: 4.5rem;
  flex-shrink: 0;
}

.steps-cta {
  text-align: center;
}
.steps-cta .btn-primary {
  background: var(--color-gold);
  color: var(--color-charcoal);
}
.steps-cta .btn-primary:hover {
  background: var(--color-gold-light);
}

/* ========================================
   WHO I WORK WITH
   ======================================== */
.ideal-client {
  padding: var(--section-pad) 0;
}

.client-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.client-col h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--color-charcoal);
}

.client-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-slate);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.55;
}

.client-list--yes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.client-list--no li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-warm-grey);
  font-weight: 400;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 4rem;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.about-content p {
  color: var(--color-slate);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 560px;
  line-height: 1.7;
}

.about-credentials {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.credential {
  text-align: center;
}

.credential-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.credential-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-warm-grey);
}

.about-visual {
  position: relative;
}

.about-shape {
  color: var(--color-warm-grey);
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: var(--section-pad) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 2.5rem 0 1.5rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2.25rem 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-gold);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--color-slate);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-warm-grey);
}

.testimonial-card cite strong {
  color: var(--color-charcoal);
}

.testimonials-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-warm-grey);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.faq-list {
  max-width: 720px;
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--color-warm-grey);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-charcoal);
  line-height: 1.4;
}

.faq-item p {
  padding: 0 0 1.5rem;
  color: var(--color-mid-grey);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: var(--section-pad) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
  max-width: 400px;
}

.contact-info > p {
  color: var(--color-mid-grey);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-slate);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--color-gold); }
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-book-btn {
  margin-bottom: 0.5rem;
}

.contact-calendly-note {
  font-size: 0.8rem;
  color: var(--color-warm-grey);
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-slate);
  margin-bottom: 0.4rem;
}

.label-optional {
  font-weight: 400;
  color: var(--color-warm-grey);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-charcoal);
  transition: border-color 0.2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  grid-column: 1 / -1;
  width: auto;
  justify-self: start;
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--color-warm-grey);
  margin-top: -0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}
.footer-brand .logo-icon { color: rgba(255,255,255,0.7); }
.footer-brand .logo-text { color: rgba(255,255,255,0.9); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: rgba(255,255,255,0.9); }

.footer-legal {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ========================================
   ANIMATIONS
   ======================================== */
/* Hero staggered fade-ups */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--duration) var(--ease-out) forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.anim-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.anim-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-off-white);
    flex-direction: column;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none !important;
  }

  .nav-toggle { display: flex; }

  .hero {
    min-height: auto;
    padding-top: calc(72px + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero-proof {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .hero-proof-divider { display: none; }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }
  .step-connector {
    width: 1px;
    height: 40px;
    margin: 0 0 0 2rem;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-visual { display: none; }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn { width: 100%; }

  .about-credentials {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}
