/* =========================================================
   Outside Insights Group — Shared Stylesheet
   Brand: cream + forest green, Libre Baskerville / Almarai
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Almarai:wght@300;400;700;800&display=swap');

:root {
  /* Brand colors, pulled from the live site + refined for contrast */
  --color-cream: #e1dfd9;
  --color-off-white: #fafafa;
  --color-white: #ffffff;
  --color-forest: #209d50;
  --color-forest-dark: #17703a;
  --color-forest-light: #e8f3ec;
  --color-charcoal: #1a1a18;
  --color-black: #000000;
  --color-line: rgba(26, 26, 24, 0.14);

  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Almarai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 32px rgba(20, 20, 18, 0.10);
}

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.01em; }

p { margin: 0 0 18px; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-forest-dark);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}
.btn-primary:hover { background: var(--color-forest-dark); border-color: var(--color-forest-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--color-white); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-forest-dark);
  border-color: var(--color-forest);
}
.btn-outline-dark:hover { background: var(--color-forest); color: var(--color-white); }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--color-charcoal);
}

.brand-mark span {
  color: var(--color-forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-forest-dark);
  border-color: var(--color-forest);
}

.nav-cta {
  padding: 11px 26px;
  font-size: 0.88rem;
}

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

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-off-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
    border-bottom: 1px solid var(--color-line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-cta { margin-top: 10px; display: inline-flex; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,15,0.35) 0%, rgba(12,18,12,0.55) 55%, rgba(8,14,8,0.82) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 32px 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 { color: var(--color-white); margin-bottom: 8px; }

.hero .subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-off-white);
  margin-bottom: 6px;
}

.hero .tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--color-white);
  margin-bottom: 34px;
  max-width: 640px;
}

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

/* ---------- Page header (non-home hero) ---------- */
.page-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--color-line);
}
.page-header .eyebrow { margin-bottom: 10px; }
.page-header p.lede {
  font-size: 1.15rem;
  max-width: 700px;
  color: #3a3a37;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--color-off-white); }
.section-dark {
  background: var(--color-charcoal);
  color: var(--color-off-white);
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 36px 32px;
}
.card-alt { background: var(--color-off-white); }

.tag-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-forest-light);
  color: var(--color-forest-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

ul.check-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
ul.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
ul.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-forest);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-forest);
}
.stat-row .stat span {
  font-size: 0.85rem;
  color: #55554f;
}

/* ---------- Sub-brand banner ---------- */
.brand-banner {
  border: 1.5px solid var(--color-line);
  border-radius: 20px;
  padding: 40px;
  background: var(--color-white);
}
.brand-banner .eyebrow { color: var(--color-forest-dark); }

/* ---------- Sub-brand hero variant (used on brand pages) ---------- */
.subbrand-hero {
  background: var(--color-charcoal);
  color: var(--color-off-white);
  padding: 96px 0 80px;
  text-align: center;
}
.subbrand-hero .eyebrow { color: #8fd6a8; }
.subbrand-hero h1 { color: var(--color-white); }
.subbrand-hero p.lede {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #d8d8d2;
}

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #55554f;
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-charcoal);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-forest);
}
.field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field-checkbox input { width: auto; }

.contact-info-card {
  background: var(--color-charcoal);
  color: var(--color-off-white);
  border-radius: 18px;
  padding: 36px 32px;
}
.contact-info-card h3 { color: var(--color-white); }
.contact-info-card a { color: #8fd6a8; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: #cfcfc9;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand .brand-mark { color: var(--color-white); }
.footer-brand .brand-mark span { color: #8fd6a8; }
.footer-brand p { color: #a9a9a2; max-width: 320px; margin-top: 10px; }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #b7b7b0;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #8fd6a8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8a8a84;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
