/* ==========================================================================
   The Second Pancake Creative Ltd. — Shared Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand palette (from brand guide, weighted by usage) */
  --cream:      #ece7e3; /* primary background */
  --paper:      #fbfaf8; /* lifted surface / cards */
  --white:      #ffffff;
  --ink:        #512f21; /* primary text / headings */
  --ink-soft:   #7a5c4b; /* secondary text on light bg */
  --orange:     #fd683e; /* primary accent / CTAs */
  --orange-dark:#e0532c;
  --yellow:     #f8f8b8; /* soft accent block */
  --lime:       #eaf261; /* tag / highlight */
  --sky:        #dbf1fe; /* accent block */
  --navy:       #3e596a; /* deep accent / dark sections */

  --font: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(81, 47, 33, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; overflow: hidden; }
section.tight { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .eyebrow { color: var(--lime); }
.section-navy .eyebrow::before { background: var(--lime); }

/* ---------------------------------- Blobs -------------------------------- */
.blob {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}
.content-layer { position: relative; z-index: 1; }

/* Organic accent shapes echoing the logo's three brand marks */
.shape { position: absolute; z-index: 0; pointer-events: none; }
.shape-circle { border-radius: 50%; }
.shape-blob-1 { border-radius: 42% 58% 65% 35% / 48% 40% 60% 52%; }
.shape-blob-2 { border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; }
.shape-rect   { border-radius: 34% 34% 40% 40% / 22% 22% 30% 30%; }

.bg-orange { background: var(--orange); }
.bg-yellow { background: var(--yellow); }
.bg-lime   { background: var(--lime); }
.bg-sky    { background: var(--sky); }
.bg-navy   { background: var(--navy); }
.bg-ink    { background: var(--ink); }

/* ---------------------------------- Header ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(81, 47, 33, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(81, 47, 33, 0.08); }
.nav-links a.active { background: var(--ink); color: var(--white); }
.nav-links a.btn-nav {
  background: var(--orange);
  color: var(--white);
}
.nav-links a.btn-nav:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { text-align: center; padding: 14px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------------------------------- Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section-navy .btn-outline { color: var(--white); }
.section-navy .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------- Hero --------------------------------- */
.hero {
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.page-hero { padding: 64px 0 56px; text-align: center; }
.page-hero .lede { margin: 0 auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-visual img { width: 100%; max-width: 460px; }

/* ---------------------------------- Cards -------------------------------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(81, 47, 33, 0.06);
}
.card .step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card:nth-child(1) .step-num { background: var(--orange); color: var(--white); }
.card:nth-child(2) .step-num { background: var(--navy); color: var(--white); }
.card:nth-child(3) .step-num { background: var(--ink); color: var(--yellow); }

.tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 8px 8px 0;
}
.tag.alt { background: var(--sky); }
.tag.dark { background: var(--ink); color: var(--yellow); }

/* Segment / info cards */
.segment-card {
  border-radius: var(--radius-md);
  padding: 36px;
  background: var(--white);
  border: 2px solid rgba(81, 47, 33, 0.08);
}
.segment-card.filled { background: var(--yellow); border-color: transparent; }
.segment-card ul { margin: 14px 0 0; padding-left: 20px; }
.segment-card li { margin-bottom: 6px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px;
  border-left: 4px solid var(--orange);
}
.stat-box .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.stat-box .value { font-size: 1.05rem; font-weight: 700; }

/* ---------------------------------- Team --------------------------------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .team-card { grid-template-columns: 1fr; text-align: center; }
  .avatar-frame { margin: 0 auto; }
}
.avatar-frame {
  width: 160px;
  height: 160px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--yellow);
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.3;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--orange-dark); font-weight: 700; margin-bottom: 12px; }
.team-card ul { padding-left: 20px; margin: 12px 0 0; }
.team-card li { margin-bottom: 4px; }

/* ---------------------------------- Contact ------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--lime);
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}
.contact-note { color: var(--ink-soft); font-size: 0.92rem; }
.copy-btn {
  align-self: flex-start;
  border: none;
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s ease;
}
.copy-btn:hover { background: var(--yellow); }
.copy-btn.copied { background: var(--lime); }

/* ---------------------------------- CTA band ------------------------------ */
.cta-band {
  background: var(--ink);
  color: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.75); margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--ink); }

/* ---------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(81, 47, 33, 0.08);
  padding: 48px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 30px; }
.footer-tag { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; max-width: 32ch; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--ink-soft); }
.footer-col a { display: block; padding: 4px 0; font-weight: 600; }
.footer-col a:hover { color: var(--orange-dark); }
.footer-bottom {
  border-top: 1px solid rgba(81, 47, 33, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------------------------------- Utilities ----------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w { max-width: 68ch; }
.center-col { margin-left: auto; margin-right: auto; }
