/* ===== Oisin — Design System ===== */
/* Anchored on the navy & slate of the business card,
   warmed with a cream background and a terracotta accent. */

:root {
  /* Brand palette — from business card */
  --navy: #243b63;            /* primary brand (the swirl) */
  --navy-deep: #182849;
  --slate: #4a5566;           /* secondary text / card-back slate */
  --slate-soft: #6b7689;

  /* Warm & human additions */
  --cream: #faf6ee;           /* page background */
  --cream-deep: #f3ecdd;
  --paper: #ffffff;
  --terracotta: #c26b4d;      /* warm accent */
  --terracotta-soft: #e8c8b9;
  --gold: #c2904a;

  /* Text */
  --ink: #1a2235;
  --ink-soft: #4a5566;
  --muted: #8a93a3;
  --line: #e5dfd1;

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24, 40, 73, 0.06), 0 2px 6px rgba(24, 40, 73, 0.04);
  --shadow-md: 0 4px 14px rgba(24, 40, 73, 0.08), 0 10px 30px rgba(24, 40, 73, 0.06);
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
a:hover { border-bottom-color: var(--terracotta); color: var(--navy-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 96;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--terracotta); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lede { font-size: 1.2rem; color: var(--ink); }

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--navy); border: none;
}
.brand:hover { color: var(--navy-deep); }
.brand svg, .brand img { width: 28px; height: auto; }
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
.brand .wordmark span { color: var(--terracotta); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: .96rem; color: var(--ink-soft); font-weight: 500;
  border: none;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--navy-deep); }
.nav-links a.current { color: var(--navy-deep); }
.nav-links a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--terracotta); border-radius: 2px;
}
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 500;
  border: none !important;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.nav-links a.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.nav-links a.nav-cta::after { display: none; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--cream); }
.btn-accent { background: var(--terracotta); color: white; }
.btn-accent:hover { background: #a55840; transform: translateY(-1px); color: white; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Sections ===== */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-label {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 18px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }

/* ===== Hero ===== */
.hero {
  padding: 110px 0 80px;
  background:
    radial-gradient(1100px 540px at 80% -10%, rgba(194, 107, 77, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(36, 59, 99, 0.08), transparent 60%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  max-width: 920px;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--terracotta); font-style: italic; font-weight: 400; }
.hero .lede { max-width: 640px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--slate-soft);
  font-size: .92rem;
}
.hero-meta b { color: var(--navy-deep); font-weight: 600; }

/* Decorative swirl in hero */
.hero-swirl {
  position: absolute;
  right: -120px; top: 40px;
  width: 480px; opacity: .07;
  color: var(--navy);
  pointer-events: none;
}

/* ===== Feature cards / grids ===== */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cream-deep); }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cream-deep);
  color: var(--terracotta);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===== Case-study card ===== */
.case-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card .case-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
}
.case-card .case-img.alt { background: linear-gradient(135deg, var(--terracotta) 0%, #a55840 100%); }
.case-card .case-img.slate { background: linear-gradient(135deg, var(--slate) 0%, #2f3845 100%); }
.case-card .case-img::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.case-card .case-body { padding: 28px 32px 32px; }
.case-card .case-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 10px;
}
.case-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.case-card p { font-size: .95rem; margin-bottom: 18px; }
.case-card .read-more {
  color: var(--navy); font-weight: 500; font-size: .95rem; border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.case-card .read-more:hover { color: var(--terracotta); }

/* ===== Stat row ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: left; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1;
}
.stat .label { font-size: .9rem; color: var(--slate-soft); margin-top: 6px; }

/* ===== About / Two-col ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.two-col .col-image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.two-col .col-image svg { width: 60%; color: rgba(250, 246, 238, 0.18); }
.two-col .col-image .badge {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--cream); color: var(--navy-deep);
  padding: 12px 18px; border-radius: 12px;
  font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ===== Timeline ===== */
.timeline { position: relative; margin: 32px 0; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--cream-deep);
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--terracotta); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--terracotta-soft);
}
.tl-date { font-size: .82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 4px; }
.tl-role { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-deep); font-weight: 500; margin-bottom: 6px; }
.tl-role span { color: var(--terracotta); }
.tl-item p { font-size: .96rem; margin: 0; }

/* ===== Services detail ===== */
.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .s-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 400;
}
.service-row h3 { font-size: 1.6rem; font-family: var(--serif); }
.service-row ul { padding-left: 1.1em; color: var(--ink-soft); margin: 16px 0 0; }
.service-row li { margin-bottom: 8px; }
.service-row .s-meta {
  margin-top: 20px; font-size: .9rem; color: var(--slate-soft);
}
.service-row .s-meta b { color: var(--navy-deep); }

/* ===== Insights / Blog ===== */
.post-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .post-meta { font-size: .82rem; color: var(--slate-soft); margin-bottom: 12px; }
.post-card .post-meta .topic {
  background: var(--cream-deep); color: var(--navy-deep);
  padding: 3px 10px; border-radius: 999px; font-weight: 500; margin-right: 10px;
}
.post-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.post-card p { font-size: .96rem; flex-grow: 1; }
.post-card .read-more { color: var(--navy); font-weight: 500; font-size: .95rem; border: none; }
.post-card .read-more:hover { color: var(--terracotta); }

/* ===== Quote / Testimonial ===== */
.quote {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
  position: relative;
}
.quote::before {
  content: '“';
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--terracotta-soft);
  position: absolute; left: 30px; top: -10px;
  line-height: 1;
}
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--navy-deep);
  font-weight: 400;
  position: relative;
}
.quote .attribution { margin-top: 20px; font-size: .95rem; color: var(--slate-soft); }
.quote .attribution b { color: var(--navy-deep); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
}
.contact-info .info-item { margin-bottom: 28px; }
.contact-info .info-label {
  font-size: .8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 6px;
}
.contact-info .info-value { font-size: 1.1rem; color: var(--navy-deep); font-weight: 500; }
.contact-info .info-value a { border: none; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36, 59, 99, 0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(194,107,77,0.4) 0%, transparent 70%);
}
.cta-band h2 { color: var(--cream); margin-bottom: 12px; }
.cta-band p { color: rgba(250, 246, 238, 0.8); margin: 0; font-size: 1.1rem; }
.cta-band .btn-primary { background: var(--terracotta); }
.cta-band .btn-primary:hover { background: #a55840; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 238, 0.7);
  padding: 64px 0 32px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}
.site-footer .brand { color: var(--cream); }
.site-footer .brand .wordmark { color: var(--cream); }
.site-footer .brand .wordmark span { color: var(--terracotta); }
.site-footer p { color: rgba(250, 246, 238, 0.65); margin-top: 16px; max-width: 320px; }
.site-footer h4 { color: var(--cream); font-size: .82rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(250, 246, 238, 0.7); border: none; }
.site-footer a:hover { color: var(--terracotta); }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(250, 246, 238, 0.5);
  font-size: .85rem;
}

/* ===== Page header (interior pages) ===== */
.page-header {
  padding: 110px 0 56px;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(194,107,77,0.06), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { max-width: 820px; margin-bottom: 20px; }
.page-header .lede { max-width: 620px; }

/* ===== Article (insights detail style) ===== */
.article-body {
  max-width: 720px; margin: 0 auto;
}
.article-body p { font-size: 1.1rem; line-height: 1.75; }
.article-body h2 { margin-top: 2em; }

/* ===== Utility ===== */
.center { text-align: center; }
.mt-md { margin-top: 32px; }
.mb-md { margin-bottom: 32px; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .col-image { aspect-ratio: 16/10; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  .page-header { padding: 64px 0 40px; }
  .hero-swirl { display: none; }
  .quote { padding: 32px 24px; }
  .quote::before { font-size: 5rem; left: 16px; top: -4px; }
  .card { padding: 28px; }
}
