/* ==========================================================================
   Fifty18 — Brand Guide v1.2 implementation
   Off-white #F8F5F2 · Charcoal #1A252C · Seafoam Green #9ECDB6
   Headline: Sora (bold display) / Body: Inter (humanist sans)
   ========================================================================== */

:root {
  --off-white: #F8F5F2;
  --white: #FFFFFF;
  --charcoal: #1A252C;
  --charcoal-soft: #2C3A43;
  --seafoam: #9ECDB6;
  --seafoam-dark: #7FB89D;
  --warm-gray: #8A8177;
  --border-soft: rgba(26, 37, 44, 0.10);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-weight: 800; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-weight: 600; font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

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

.section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 32px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seafoam-dark);
  margin: 0 0 12px;
}

.eyebrow-light { color: var(--seafoam); }

.lead {
  font-size: 1.1rem;
  color: var(--charcoal-soft);
  max-width: 720px;
}

.lead-light {
  font-size: 1.1rem;
  color: rgba(248, 245, 242, 0.82);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.accent-text { color: var(--seafoam-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--seafoam);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--seafoam-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--off-white); }

.btn-center { display: flex; width: fit-content; margin: 40px auto 0; }
.btn-full { width: 100%; }
.btn-nav { padding: 10px 22px; font-size: 0.85rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-lockup { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; border-radius: 6px; display: block; }
.footer-logo { height: 34px; width: auto; border-radius: 6px; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:not(.btn) { color: var(--charcoal-soft); }
.main-nav a:not(.btn):hover { color: var(--charcoal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); display: block; }

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
  background: var(--off-white);
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-support {
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-style: italic;
  margin: 0;
}

.ring-motif {
  position: absolute;
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(158, 205, 182, 0.14);
  z-index: 1;
}
.ring-motif::before,
.ring-motif::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 40px solid rgba(158, 205, 182, 0.10);
}
.ring-motif::before { inset: 90px; }
.ring-motif::after { inset: 180px; border-color: rgba(26, 37, 44, 0.06); }

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 24px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.pillar-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--seafoam);
  margin-bottom: 16px;
}

.pillar-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar-card p { font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }

.section-note {
  font-size: 1rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin-top: 24px;
}

/* Promise band */
.promise-section {
  background: var(--charcoal);
  padding: 90px 0;
}

.promise-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.promise-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--off-white);
  line-height: 1.4;
  margin-bottom: 32px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.name-meaning { display: flex; flex-direction: column; gap: 20px; }

.name-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--seafoam);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.name-card h3 { color: var(--seafoam-dark); font-size: 1.3rem; }
.name-card p { color: var(--charcoal-soft); margin: 0; font-size: 0.95rem; }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  text-align: center;
  color: var(--charcoal);
  border-top: 1px solid var(--border-soft);
  padding-top: 48px;
  margin-top: 56px;
}

/* Ethos */
.ethos-section { background: var(--white); }

.give-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.give-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  padding: 12px 24px;
  background: var(--off-white);
  border-radius: 100px;
  border: 1px solid var(--border-soft);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 26px;
  border-top: 3px solid var(--seafoam);
}
.service-card p { color: var(--charcoal-soft); margin: 0; font-size: 0.95rem; }

/* Values */
.values-section { background: var(--charcoal); color: var(--off-white); }
.values-heading { color: var(--off-white); margin-bottom: 40px; }

.values-list { display: flex; flex-direction: column; }

.value-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(248, 245, 242, 0.12);
}
.value-row:last-child { border-bottom: 1px solid rgba(248, 245, 242, 0.12); }

.value-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--seafoam);
}

.value-row h3 { color: var(--off-white); margin-bottom: 6px; }
.value-row p { color: rgba(248, 245, 242, 0.72); margin: 0; }

/* Chain reaction */
.chain-reaction {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.chain-step {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.chain-step-accent {
  background: var(--seafoam);
  border-color: var(--seafoam);
  color: var(--charcoal);
}

.chain-arrow {
  color: var(--seafoam-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Careers */
.careers-section { background: var(--white); }

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expect-list li {
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}
.expect-list li strong { color: var(--charcoal); }

/* Contact */
.contact-section { background: var(--charcoal); color: var(--off-white); }
.contact-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-section h2 { color: var(--off-white); }

.contact-form { text-align: left; margin-top: 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(248, 245, 242, 0.85);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(248, 245, 242, 0.25);
  background: rgba(248, 245, 242, 0.06);
  color: var(--off-white);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(248, 245, 242, 0.4); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--seafoam);
}

.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(248, 245, 242, 0.1);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; color: rgba(248, 245, 242, 0.6); font-size: 0.85rem; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(248, 245, 242, 0.75); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--seafoam); }

.footer-copy { margin: 0; color: rgba(248, 245, 242, 0.45); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .about-grid, .careers-grid { grid-template-columns: 1fr; }
  .ring-motif { display: none; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { width: 100%; padding: 14px 24px; border-top: 1px solid var(--border-soft); }
  .main-nav a.btn { margin: 14px 24px; width: calc(100% - 48px); }
  .nav-toggle { display: flex; }
  .pillar-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .chain-reaction { flex-direction: column; }
  .chain-arrow { transform: rotate(90deg); }
  .section { padding: 64px 0; }
}
