/* ============================================
   LIGHTHOUSE OPERATIONS — styles.css
   Aesthetic: Quietly confident
   Theme: Warm off-white light / deep ink dark
   Fonts: Instrument Serif (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================
   TOKENS
   ============================================ */
:root {
  /* Palette — warm ink on parchment */
  --ink:         #0E1117;
  --ink-mid:     #1C2333;
  --ink-soft:    #2D3748;
  --slate:       #4A5568;
  --mist:        #8896A8;
  --fog:         #C4CDD9;
  --paper:       #F7F4EF;
  --paper-warm:  #EDE9E2;
  --white:       #FDFCFB;

  /* Accent — a single restrained teal */
  --teal:        #1A8080;
  --teal-light:  #22A5A5;
  --teal-dim:    rgba(26, 128, 128, 0.12);

  /* Semantic */
  --bg:          var(--white);
  --surface:     var(--paper);
  --surface-2:   var(--paper-warm);
  --text:        var(--ink);
  --text-mid:    var(--slate);
  --text-light:  var(--mist);
  --border:      rgba(10, 16, 30, 0.08);
  --border-mid:  rgba(10, 16, 30, 0.14);

  /* Type */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  /* Motion */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --fast:        180ms;
  --mid:         320ms;

  /* Space */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;

  /* Shadow */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--text);
  font-weight: 400; /* let the serif do the work */
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

p { color: var(--text-mid); }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--fast) var(--ease),
              color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease),
              transform var(--fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: #156868;
  border-color: #156868;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,128,128,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 0.95rem;
}

/* ============================================
   NAV
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(253, 252, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: color var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-links .btn {
  padding: 9px 20px;
  font-size: 0.875rem;
  margin-left: 4px;
}

.nav-links .btn-primary {
  color: var(--white);
}
.nav-links .btn-primary:hover {
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  display: block;
  transition: var(--mid) var(--ease);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 168px 0 108px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.5;
  pointer-events: none;
}

/* Warm teal accent blob — very subtle */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(26,128,128,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-image {
  flex-shrink: 0;
}

.hero-headshot {
  width: 340px;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  border: 3px solid var(--border-mid);
  box-shadow: var(--shadow-lg);
  filter: grayscale(10%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 24px;
}

/* Italic serif for the second line */
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   VALUE STRIP
   ============================================ */
.value-prop {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

.value-prop p {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ============================================
   SERVICES (overview cards)
   ============================================ */
.services {
  padding: 108px 0;
  background: var(--bg);
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: border-color var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.service-card-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ============================================
   VALUE PROPOSITION
   ============================================ */
.value-proposition {
  padding: 108px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-proposition .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 40px;
  line-height: 1.35;
  text-align: left;
}

.value-proposition-content {
  text-align: justify;
  text-align-last: left;
}

.value-proposition-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

/* ============================================
   PRICING / SERVICE DETAILS
   ============================================ */
.pricing {
  padding: 108px 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--mid) var(--ease),
              border-color var(--mid) var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
}

.pricing-card.featured {
  border: 1.5px solid var(--teal);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
}

/* Featured tag — quiet, not flashy */
.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 4px 10px;
  border-radius: 20px;
}

.pricing-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.pricing-card.featured .pricing-header h3 {
  padding-right: 96px;
}

.availability {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 14px;
}

.pricing-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-top: 0;
}

.pricing-scope-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 10px;
  line-height: 1.65;
}
.pricing-scope-note strong { color: var(--text-mid); }

.pricing-section {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.pricing-section:last-of-type {
  border-bottom: none;
}

.pricing-card h4 {
  margin-bottom: 12px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.pricing-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
  top: 1px;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}
.pricing-note strong { color: var(--text); }

.sprint-offer {
  background: var(--teal-dim);
  border: 1px solid rgba(26,128,128,0.2);
  color: var(--teal);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}

.pricing-footer {
  padding: 20px 32px 28px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.best-for {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
}
.best-for strong {
  color: var(--text-mid);
  display: block;
  margin-bottom: 3px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   QUICK REFERENCE TABLE
   ============================================ */
.quick-reference {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
}

.quick-reference h3 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.reference-table-wrapper { overflow-x: auto; }

.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.reference-table th,
.reference-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.reference-table th {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.reference-table td {
  color: var(--text-mid);
}
.reference-table td strong { color: var(--text); font-weight: 500; }

.reference-table tbody tr:last-child td { border-bottom: none; }
.reference-table tbody tr:hover td { background: rgba(0,0,0,0.015); }

.sprint-retainer-banner {
  margin-top: 24px;
  background: var(--teal-dim);
  border: 1px solid rgba(26,128,128,0.2);
  color: var(--teal);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 108px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.about-headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-mid);
  box-shadow: var(--shadow-md);
  filter: grayscale(15%);
}

.about-content p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.about-highlights {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-highlights li {
  font-size: 0.95rem;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.about-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.8rem;
  top: 2px;
}

.about-tools {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 4px;
}
.about-tools strong { color: var(--text); font-weight: 500; }

.about-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

/* ============================================
   RESULTS
   ============================================ */
.recent-work {
  padding: 108px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
}

.work-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.work-stat {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 12px;
  line-height: 1.2;
}

.work-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 108px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  margin-bottom: 14px;
}

.contact-content > p {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.calendly-inline-widget {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 28px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer .logo {
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--fast) var(--ease);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 0.8rem;
  text-align: center;
}

/* ============================================
   SCROLL ANIMATION (lightweight)
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    order: -1;
  }

  .hero-headshot {
    width: 220px;
    height: 270px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 28px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 128px 0 72px; }
  .hero-content { max-width: 100%; }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: center;
    text-align: center;
  }
  .about-photo { position: static; }
  .about-highlights { text-align: left; }
  .about-links { justify-content: center; }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .quick-reference { padding: 28px 20px; }
  .reference-table th, .reference-table td { padding: 10px 10px; }
}

@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }

  .btn-lg { width: 100%; text-align: center; }

  .hero h1 { font-size: 2.2rem; }

  .pricing-header,
  .pricing-section,
  .pricing-footer { padding-left: 22px; padding-right: 22px; }
}
