/* ========================================================================
   Kayvea — site styles
   Brand: navy + teal + light blue-grey, Georgia headlines, Inter body
   ======================================================================== */

:root {
  --teal: #3BA3AB;
  --teal-dark: #2d8189;
  --navy: #1A1F36;
  --light-blue: #E6F0FA;
  --grey: #F4F4F5;
  --white: #FFFFFF;
  --body-text: #2D3748;
  --muted-text: #718096;
  --rule: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
img { max-width: 100%; display: block; }
.serif { font-family: Georgia, 'Times New Roman', serif; }

.container { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ================== NAV ================== */
nav.top {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}
nav.top .inner {
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand .word {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--navy);
}
.brand img.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
}
nav.top .links { display: flex; gap: 32px; }
nav.top .links a {
  font-size: 13px;
  color: var(--body-text);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
nav.top .links a:hover { color: var(--teal); }
nav.top .links a.active { color: var(--teal); }
nav.top .links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--teal);
}

/* ================== TYPE / SECTION HELPERS ================== */
.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section-tall { padding: 96px 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-label .bar {
  width: 32px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section-label .text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3, h4 { font-family: Georgia, serif; color: var(--navy); }
h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h2.section-title { font-size: 28px; font-weight: 700; margin: 0 0 24px; line-height: 1.3; }
h2.section-title.light { color: var(--white); }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }

.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 16px;
}
.body-text.light { color: var(--light-blue); }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-text);
}
.lead.light { color: var(--light-blue); }

.pullquote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  border-left: 3px solid var(--teal);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.4;
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-on-navy {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--white);
}
.btn-on-navy:hover { background: var(--teal); }
.btn-on-teal {
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
  padding: 16px 40px;
  font-size: 15px;
}
.btn-on-teal:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin-top: 12px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 10px; }
.read-more::after { content: "→"; }

/* ================== HERO ================== */
.hero { background: var(--navy); padding: 96px 0; position: relative; overflow: hidden; }
.hero .accent-bar {
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 32px;
  border-radius: 2px;
}
.hero h1 {
  color: var(--white);
  margin: 0 0 20px;
}
.hero .sub {
  font-size: 18px;
  color: var(--light-blue);
  margin: 0 0 36px;
  font-weight: 400;
  max-width: 640px;
}
.hero .quote {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin-bottom: 40px;
  max-width: 640px;
}
.hero .quote p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--teal);
  margin: 0 0 8px;
  line-height: 1.5;
}
.hero .quote .attr {
  font-size: 13px;
  color: var(--muted-text);
  margin: 0;
  font-style: normal;
}

/* Decorative SVG motif behind hero */
.hero-bg {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.07;
  pointer-events: none;
}

/* ================== PAGE HEADER (subpages) ================== */
.page-header {
  background: var(--navy);
  padding: 80px 0;
  color: var(--white);
}
.page-header .accent-bar {
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 24px;
  border-radius: 2px;
}
.page-header h1 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 42px);
}
.page-header .sub {
  color: var(--light-blue);
  font-size: 18px;
  max-width: 640px;
  line-height: 1.6;
}

/* ================== SECTIONS / BACKGROUNDS ================== */
.bg-white { background: var(--white); }
.bg-grey { background: var(--grey); }
.bg-light-blue { background: var(--light-blue); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-teal { background: var(--teal); color: var(--white); }

/* ================== SERVICE CARDS ================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 6px;
  padding: 32px;
  border-left: 4px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 31, 54, 0.06);
}
.service-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 16px;
}
.service-card p:last-of-type { margin-bottom: 0; }

.ideal-for {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  margin-top: 16px;
}
.ideal-for .label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  padding-top: 2px;
}
.ideal-for .text {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1.6;
  font-style: normal;
}

/* Framework applied inside a service card */
.framework-applied {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-top: 20px;
}
.framework-applied .label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.framework-applied h4 {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
}
.framework-applied p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-text);
  margin: 0;
}

/* Compact service preview (homepage) */
.services-preview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.service-preview {
  background: var(--white);
  border-radius: 6px;
  padding: 28px;
  border-top: 3px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.service-preview h3 {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.service-preview p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-text);
  margin: 0 0 auto 0;
  padding-bottom: 16px;
}

/* ================== FRAMEWORKS ================== */
.frameworks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.framework-card {
  background: var(--light-blue);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.framework-card .accent {
  width: 32px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 16px;
  border-radius: 2px;
}
.framework-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.3;
}
.framework-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0;
}

/* ================== DELIVERABLES ================== */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-top: 24px;
}
.deliverable {
  border-left: 3px solid var(--teal);
  padding-left: 16px;
}
.deliverable h4 {
  font-size: 15px;
  color: var(--white);
  margin: 0 0 6px;
  font-weight: 700;
}
.deliverable p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--light-blue);
  margin: 0;
}

/* ================== CTA BAND ================== */
.cta-section {
  background: var(--teal);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  color: var(--white);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
}
.cta-section p {
  font-size: 16px;
  color: var(--white);
  opacity: 0.95;
  margin: 0 auto 32px;
  line-height: 1.7;
  max-width: 680px;
}

/* ================== ABOUT ================== */
.story-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body-text);
  margin: 0 0 20px;
  max-width: 720px;
}

.founder-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.founder-info h3 { font-size: 22px; color: var(--teal); margin: 0 0 4px; }
.founder-info .role {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-text);
  font-weight: 600;
  margin: 0 0 16px;
  font-family: 'Inter', sans-serif;
}
.founder-info p {
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* Principles cards */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.principle-card {
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
  padding: 24px 28px;
}
.principle-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.principle-card p {
  font-size: 14px;
  color: var(--muted-text);
  margin: 0;
  line-height: 1.6;
}

/* Credentials list */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.credential h3 {
  font-size: 17px;
  color: var(--teal);
  margin: 0 0 8px;
}
.credential p {
  font-size: 14px;
  color: var(--light-blue);
  line-height: 1.6;
  margin: 0;
}

/* ================== CONTACT ================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 16px;
  align-items: start;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--body-text);
  line-height: 1.6;
}
.contact-info a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s, color 0.2s;
}
.contact-info a:hover {
  border-bottom-color: var(--teal);
  color: var(--teal);
}

.intake-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.intake-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--body-text);
  font-size: 15px;
}
.intake-list li::before {
  content: "→";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-form { margin-top: 24px; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--white);
  color: var(--body-text);
  transition: border-color 0.2s;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* ================== FOOTER ================== */
footer.site-footer {
  background: var(--navy);
  padding: 56px 32px 28px;
  color: var(--muted-text);
}
.footer-top {
  max-width: 1080px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: flex-start;
}
.footer-mark {
  height: 84px;
  width: auto;
  display: block;
}
footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
footer .left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer p {
  font-size: 13px;
  margin: 0;
  color: var(--muted-text);
}
.wosb-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}
footer .links {
  display: flex;
  gap: 20px;
}
footer .links a {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
footer .links a:hover { color: var(--teal); }

/* ================== CLIENT STORIES ================== */
.story-card {
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--teal);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(26, 31, 54, 0.04);
}
.story-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.3;
}
.story-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 14px;
}
.story-card p:last-of-type { margin-bottom: 0; }
.story-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--muted-text);
}
.story-meta .label {
  color: var(--teal);
  margin-right: 6px;
}
/* ================== WORK WITH US ================== */
.role-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 44px;
  margin-bottom: 32px;
  border-top: 4px solid var(--teal);
  box-shadow: 0 1px 4px rgba(26, 31, 54, 0.04);
}
.role-card h2 {
  font-size: 28px;
  margin: 0 0 8px;
}
.role-card .role-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 24px;
}
.role-section { margin-top: 28px; }
.role-section h3 {
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--navy);
}
.role-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 22px 0 10px;
  font-weight: 700;
}
.role-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 14px;
}
.role-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.role-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.6;
}
.role-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.role-list li strong { color: var(--navy); }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
}
.comp-table tr { border-bottom: 1px solid var(--rule); }
.comp-table tr:last-child { border-bottom: none; }
.comp-table td {
  padding: 14px 0;
  font-size: 15px;
  color: var(--body-text);
  line-height: 1.6;
  vertical-align: top;
}
.comp-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 180px;
  padding-right: 24px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 860px) {
  nav.top .links { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  nav.top .links a { font-size: 12px; }
  nav.top .inner { padding: 14px 20px; }
  .container, .container-wide { padding: 0 24px; }
  .hero { padding: 64px 0; }
  .page-header { padding: 56px 0; }
  .section { padding: 48px 0; }
  .section-tall { padding: 64px 0; }
  .services-preview,
  .frameworks-grid,
  .deliverables-grid,
  .principles-grid,
  .contact-grid,
  .credentials-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .founder-block { grid-template-columns: 1fr; gap: 24px; }
  .founder-photo { max-width: 240px; }
  footer .inner { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 56px 0; }
  .footer-mark { height: 64px; }
  .role-card { padding: 28px 24px; }
  .role-card h2 { font-size: 22px; }
  .story-card { padding: 28px 24px; }
  .story-card h2 { font-size: 20px; }
  .comp-table td:first-child { width: 130px; }
}
