/* ============================================================
   Clarion Point Strategies — style.css
   Palette: warm cream / deep ink / clay accent
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --cream: #FAF6EF;
  --cream-deep: #F3ECDF;
  --ink: #1d324e;
  --ink-deep: #16263c;
  --ink-soft: #4e5f72;
  --clay: #63795f;
  --clay-deep: #52644e;
  --gold: #c3a06a;
  --line: rgba(29, 50, 78, 0.14);
  --line-light: rgba(250, 246, 239, 0.18);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }

em { font-style: italic; }

a { color: inherit; }

::selection { background: rgba(195, 160, 106, 0.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-2px); }

.btn-small { padding: 0.55rem 1.25rem; font-size: 0.875rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--clay); color: var(--cream); border-color: var(--clay); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.wordmark .dot { color: var(--gold); }
.wordmark-mark { height: 32px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clay); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem);
}

.hero-inner { max-width: 1040px; position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  margin-bottom: 1.5rem;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "clig" 0;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-arc {
  position: absolute;
  right: -12vw;
  bottom: -32vw;
  width: 58vw;
  height: 58vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  border: 1.5px solid rgba(195, 160, 106, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(195, 160, 106, 0.12), transparent 65%);
  pointer-events: none;
}
.hero-arc::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1.5px solid rgba(195, 160, 106, 0.3);
}
.hero-arc::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  border: 1.5px solid rgba(195, 160, 106, 0.18);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }

.section-dark {
  background: var(--ink-deep);
  color: var(--cream);
}
.section-dark .section-sub { color: rgba(250, 246, 239, 0.7); }
.section-dark .eyebrow, .section-contact .eyebrow { color: var(--gold); }

.section-tint { background: var(--cream-deep); }

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

.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(34, 48, 60, 0.09);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--clay);
  display: block;
  margin-bottom: 1.4rem;
}

.pillar h3 { margin-bottom: 0.7rem; font-size: 1.45rem; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.service {
  padding: 2.25rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--line-light);
}
.service:nth-child(odd) { border-right: 1px solid var(--line-light); }
.service:nth-child(even) { padding-left: 2rem; padding-right: 0; }

.service h3 { color: var(--cream); margin-bottom: 0.6rem; }
.service p { color: rgba(250, 246, 239, 0.72); font-size: 0.98rem; }

/* ---------- Problems ---------- */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--clay);
  margin-bottom: 1.4rem;
}

.problem-col ul { list-style: none; }
.problem-col li {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.5;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.problem-col li:last-child { border-bottom: none; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-text h2 { margin-bottom: 1.4rem; }
.about-text p { margin-bottom: 1.15rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); font-weight: 600; }

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  position: sticky;
  top: 108px;
}

.about-logo {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.about-industries {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.about-industries li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

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

.engagement {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.engagement:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(34, 48, 60, 0.09);
}
.engagement h3 { margin-bottom: 0.7rem; }
.engagement p { color: var(--ink-soft); font-size: 0.98rem; }

.engagement-note {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--ink-deep);
  color: var(--cream);
  text-align: center;
}

.contact-inner { max-width: 760px; }
.contact-inner h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 1.1rem; }
.contact-inner .lede { color: rgba(250, 246, 239, 0.72); margin: 0 auto 2.5rem; }

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 160, 106, 0.25);
}

.form-submit { width: 100%; cursor: pointer; }
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  text-align: center;
}
.form-status-ok {
  background: rgba(99, 121, 95, 0.12);
  color: var(--clay-deep);
}
.form-status-error {
  background: rgba(178, 82, 66, 0.1);
  color: #a04b3c;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(250, 246, 239, 0.55);
  border-top: 1px solid var(--line-light);
  padding: 2rem 0;
  font-size: 0.88rem;
}

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

.wordmark-footer { color: var(--cream); font-size: 1.1rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pillars, .engagements, .problems { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.75rem 0; border-right: none !important; }
  .about { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-card { position: static; max-width: 420px; }

  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: flex; }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    margin: 0;
  }
  .nav-open .nav-links a {
    display: block;
    padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 1rem;
  }
}
