/* ===========================================================
   Casablanca & Company — Strategic Advisory Website
   Palette: Deep Navy #0B1F33 · Soft White #FAFAF7
            Warm Ivory #F4F1EA · Charcoal #252B31 · Muted Green #478048
   =========================================================== */

:root {
  --navy: #0B1F33;
  --soft-white: #FAFAF7;
  --ivory: #F4F1EA;
  --charcoal: #252B31;
  --accent: #478048;

  --navy-08: rgba(11, 31, 51, 0.08);
  --navy-14: rgba(11, 31, 51, 0.14);
  --navy-40: rgba(11, 31, 51, 0.4);
  --white-10: rgba(250, 250, 247, 0.1);
  --white-18: rgba(250, 250, 247, 0.18);
  --white-70: rgba(250, 250, 247, 0.72);
  --accent-30: rgba(71, 128, 72, 0.3);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: Optima, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}

.eyebrow--on-navy { color: var(--soft-white); }

/* The hero eyebrow keeps its own typeface per brief: Carlito Bold, a
   system-available metric match for Calibri (no font API required). */
.hero .eyebrow {
  font-family: "Carlito", Calibri, Arial, sans-serif;
  font-weight: 700;
}

p.lede {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 54ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--soft-white);
}
.btn--primary:hover { background: #132a45; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-14);
}
.btn--ghost:hover { border-color: var(--navy); }

.btn--on-navy {
  background: transparent;
  color: var(--soft-white);
  border-color: var(--white-18);
}
.btn--on-navy:hover { border-color: var(--accent); color: var(--soft-white); }

.btn--accent {
  background: var(--accent);
  color: var(--soft-white);
}
.btn--accent:hover { background: #3C6D3D; transform: translateY(-1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease, gap 0.2s ease;
}
.text-link:hover { color: var(--accent); gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

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

/* Footer sits on the navy background; the logo artwork is dark, so it is
   flipped to white while preserving its transparency. */
.footer-brand .logo-img {
  height: 110px;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  background: var(--soft-white);
  overflow: hidden;
}

.hero .wrap {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  max-width: 16ch;
}

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

.hero p.lede {
  margin-top: 24px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Section shell ---------- */

section { padding: clamp(64px, 9vw, 108px) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--white-70); }
.section--navy h2 { color: var(--soft-white); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-08);
  border: 1px solid var(--navy-08);
}

.service-card {
  background: var(--soft-white);
  padding: 34px 30px;
  transition: background 0.3s ease;
}
.service-card:hover { background: #ffffff; }

.service-mark {
  width: 34px;
  height: 2px;
  background: var(--navy);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 15px;
  color: var(--charcoal);
  margin: 0;
  opacity: 0.85;
}

/* ---------- Who we help ---------- */

.criteria-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.criteria-intro .section-head { margin-bottom: 0; }

.criteria-intro p.lede { color: var(--white-70); }

.criteria-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--white-10);
}

.criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--white-10);
  font-size: 15.5px;
  color: var(--soft-white);
}

.criteria-list .check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.criteria-list .check circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
}
.criteria-list .check path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Approach / What it's like ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.pillar {
  border-top: 2px solid var(--navy);
  padding-top: 22px;
}

.pillar h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}
.pillar h3 span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ivory);
}

.cta-card {
  background: var(--navy);
  border-radius: 3px;
  padding: clamp(40px, 6vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-card h2 {
  color: var(--soft-white);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  max-width: 20ch;
  line-height: 1.2;
}

.cta-card .cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--white-70);
  border-top: 1px solid var(--accent);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--white-10);
}

.footer-brand .logo { color: var(--soft-white); }
.footer-brand p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--white-70);
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-white);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a {
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-col a:hover { color: var(--soft-white); border-bottom-color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: var(--white-70);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .criteria-intro { grid-template-columns: 1fr; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 760px) {
  .main-nav ul { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--navy-14);
    background: none;
    border-radius: 2px;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .site-header.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--soft-white);
    border-bottom: 1px solid var(--navy-08);
    padding: 8px var(--gutter) 20px;
  }
  .site-header.nav-open .main-nav ul li { padding: 12px 0; border-bottom: 1px solid var(--navy-08); }
  .main-nav { gap: 14px; }

  .services-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }

  .cta-card { flex-direction: column; align-items: flex-start; }

  .footer-top { flex-direction: column; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
}
