/* Cicada Website — styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F9F8F5;
  --white: #FFFFFF;
  --black: #0D0D0D;
  --dark: #1C1C1C;
  --gray: #5C5C5C;
  --light-gray: #F0EFE9;
  --border: #E2E0D8;
  --accent: #238CD1;
  --accent-dark: #1A74B0;
  --accent-light: #D9EEFA;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.nav-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }
.nav-cta.active { background: var(--accent-dark) !important; color: var(--white) !important; }

/* ===== HERO ===== */
.hero {
  padding: 7rem 5% 6rem;
  background: var(--bg);
}

.hero .container {
  max-width: 1160px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
  max-width: 800px;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.btn-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  border-radius: 5px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--dark); background: var(--dark); color: var(--white); }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== SECTION ===== */
section {
  padding: 5.5rem 5%;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ===== SECTION BACKGROUNDS ===== */
.section-white { background: var(--white); }
.section-light { background: var(--white); }
.section-cream { background: var(--light-gray); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.card-accent { border-top: 3px solid var(--accent); }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--black);
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== STAT ROW ===== */
.stat-row {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  justify-content: center;
}

.stat h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.stat p {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* ===== CASE STUDY CARD ===== */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.case-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.case-card .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.case-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-card .description {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.case-card .outcome {
  background: var(--accent-light);
  border-radius: 5px;
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== PRINCIPLE ROWS ===== */
.principle {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.principle:first-of-type { border-top: 1px solid var(--border); }

.principle h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
}

.principle p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ===== CASE STUDY FULL LAYOUT ===== */
.case-study-full {
  margin-bottom: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border);
}

.case-study-full:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.case-meta {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.case-meta .section-eyebrow { display: block; }

.case-meta h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.case-meta-detail {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.8;
}

.case-meta-detail strong { color: var(--dark); font-weight: 600; }

.case-block {
  margin-bottom: 1.75rem;
}

.case-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.case-block p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
}

.case-outcome {
  background: var(--accent-light);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.case-outcome .case-block-label { margin-bottom: 0.5rem; }

.case-outcome p {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== SCHEDULE PAGE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.step strong {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.step p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

.contact-box {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 1.75rem;
}

.contact-box h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.contact-item {
  margin-bottom: 1rem;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-item .label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item span {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

.embed-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.embed-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.embed-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.embed-box p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 320px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 7rem 5%;
}

.cta-section .section-eyebrow { color: var(--accent); }

.cta-section .section-title {
  color: var(--white);
  max-width: 620px;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.cta-section > .container > p {
  color: #999;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: #141414;
  color: #999;
  padding: 4rem 5% 2.5rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {}

.footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 0.875rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #666;
  max-width: 240px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  text-decoration: none;
  color: #666;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #444;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .case-study-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-meta { position: static; }
  .schedule-grid { grid-template-columns: 1fr; gap: 3rem; }
  .principle { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 680px) {
  nav { padding: 0 1.25rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  section { padding: 4rem 1.25rem; }
  footer { padding: 3rem 1.25rem 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-row { gap: 2rem; }
  .cta-section { padding: 5rem 1.25rem; }
}

/* Social icons */
.footer-social { margin-top: 1rem; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover {
  background: var(--accent);
  color: #fff;
}
