/* Intac Advisory — shared styles */

:root {
  /* Brand — from Intac logo (burgundy + deep navy) */
  --teal-900: #202030;   /* deep navy */
  --teal-800: #2c2c40;
  --teal-700: #3a3a52;
  --teal-100: #dcdce4;
  --teal-50:  #ececf2;

  --coral-600: #51162a;  /* deeper burgundy */
  --coral-500: #691D30;  /* Intac burgundy */
  --coral-100: #f1dfe4;

  --cream: #f8f5f1;
  --cream-deep: #efe8de;
  --sand: #e6dccc;

  --ink-900: #14141c;
  --ink-700: #2e2e3a;
  --ink-500: #5e5e6a;
  --ink-400: #8e8e98;
  --ink-200: #d6d6dc;
  --ink-100: #eaeaee;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(32, 32, 48, 0.06), 0 1px 3px rgba(32, 32, 48, 0.04);
  --shadow: 0 4px 14px rgba(32, 32, 48, 0.08), 0 2px 4px rgba(32, 32, 48, 0.04);
  --shadow-lg: 0 20px 40px rgba(32, 32, 48, 0.12), 0 8px 16px rgba(32, 32, 48, 0.06);

  --max-w: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: var(--teal-800); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--coral-600); }

button { font-family: inherit; cursor: pointer; }

/* Typography */
.display-xl, .display-lg, .display, h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
.display-xl { font-size: clamp(48px, 6.5vw, 88px); line-height: 1.02; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(40px, 5vw, 64px); }
.display    { font-size: clamp(32px, 3.6vw, 48px); }
h1 { font-size: clamp(36px, 4vw, 56px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
h3 { font-size: clamp(22px, 2vw, 28px); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-600);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-500);
  line-height: 1.6;
  max-width: 64ch;
}

p { margin: 0 0 1em; color: var(--ink-700); }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(32, 32, 48, 0.08);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  color: var(--teal-900);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--teal-900); }
.brand__logo {
  height: 64px;
  width: auto;
  display: block;
}
.brand__logo-stacked {
  height: 120px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav--mobile { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav a:hover { background: rgba(32, 32, 48, 0.08); color: var(--teal-900); }
.nav a.is-active { background: var(--teal-800); color: var(--cream); }
.nav a.is-active:hover { background: var(--teal-900); color: var(--cream); }

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(32, 32, 48, 0.2);
  background: transparent;
  color: var(--teal-900);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(32, 32, 48, 0.06); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--coral-500); color: var(--white); box-shadow: 0 6px 18px rgba(232, 92, 61, 0.28); }
.btn--primary:hover { background: var(--coral-600); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(232, 92, 61, 0.36); }
.btn--dark { background: var(--teal-900); color: var(--cream); }
.btn--dark:hover { background: var(--ink-900); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: rgba(32, 32, 48, 0.2); }
.btn--ghost:hover { background: var(--teal-900); color: var(--cream); border-color: var(--teal-900); }
.btn--light { background: var(--white); color: var(--teal-900); }
.btn--light:hover { background: var(--cream); color: var(--teal-900); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--ink-100);
  transition: all 0.25s var(--ease);
}
.card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-2px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 13px;
  font-weight: 500;
}
.pill--coral { background: var(--coral-100); color: var(--coral-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #bfd5d5;
  padding: 72px 0 32px;
}
.site-footer a { color: #bfd5d5; }
.site-footer a:hover { color: var(--coral-500); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--cream);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 15px; }
.footer-brand .brand { color: var(--cream); margin-bottom: 16px; }
.footer-brand p { color: #b8b8c4; max-width: 360px; font-size: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7a8f8f;
  flex-wrap: wrap;
  gap: 16px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.socials a:hover { background: var(--coral-500); color: var(--white); }

/* ---------- Hero patterns ---------- */
.hero {
  background: var(--cream);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero--deep {
  background: var(--teal-900);
  color: var(--cream);
}
.hero--deep h1, .hero--deep h2 { color: var(--cream); }
.hero--deep .lead { color: #b8cccc; }
.hero--deep .eyebrow { color: var(--coral-500); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--white);
  transition: all 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-800);
  box-shadow: 0 0 0 4px rgba(32, 32, 48, 0.12);
}
.field--half { }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Page header (subpage hero) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-head .crumbs {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-head .crumbs a { color: var(--ink-500); }
.page-head .crumbs a:hover { color: var(--teal-900); }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.tag {
  display: inline-block;
  background: var(--sand);
  color: var(--teal-900);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Image placeholder (for stock photo slots) */
.ph {
  background: linear-gradient(135deg, var(--teal-100) 0%, var(--sand) 50%, var(--coral-100) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-900);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(32, 32, 48,0.15), transparent 50%);
  pointer-events: none;
}
/* When a real photo is dropped in, hide the placeholder gradient overlay */
.ph[style*="background-image"]::before { display: none; }
.ph[style*="background-image"] { background: none; }
.ph__label {
  position: relative;
  background: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-900);
  backdrop-filter: blur(4px);
}
.ph--tall { min-height: 520px; }
.ph--wide { aspect-ratio: 16/9; }

/* responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* --- Header --- */
  .site-header__bar { padding: 12px 0; gap: 10px; }
  .brand__logo { height: 44px; }

  /* Shrink phone button to icon-only on tight widths */
  .header-cta__phone-text { display: none; }
  .header-cta__phone { padding: 10px 12px; }

  /* Quote CTA stays visible but compact */
  .header-cta__quote { padding: 10px 14px; font-size: 13px; }
  .header-cta__quote .arr { display: none; }

  /* Show hamburger */
  .nav-toggle { display: inline-flex; }

  /* Desktop inline nav hidden on mobile */
  .nav--desktop { display: none; }

  /* Mobile drawer */
  .nav--mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid rgba(32, 32, 48, 0.08);
    border-bottom: 1px solid rgba(32, 32, 48, 0.08);
    box-shadow: 0 16px 30px rgba(32, 32, 48, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 49;
  }
  .nav--mobile .container { padding: 8px 24px 20px; }
  .nav--mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav--mobile a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(32, 32, 48, 0.06);
    color: var(--ink-700);
    font-weight: 500;
  }
  .nav--mobile a:last-child { border-bottom: 0; }
  .nav--mobile a.is-active { background: transparent; color: var(--coral-500); }
  .nav--mobile a.is-active:hover { background: transparent; color: var(--coral-600); }
  body.nav-open { overflow: hidden; }

  /* --- Containers / spacing --- */
  .container { padding: 0 20px; }
  section { padding: clamp(48px, 10vw, 72px) 0; }

  /* --- Page header --- */
  .page-head { padding: 88px 0 40px; }

  /* --- Typography --- */
  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(26px, 7vw, 34px); }
  .display-xl { font-size: clamp(40px, 11vw, 56px); }
  .display-lg { font-size: clamp(34px, 9vw, 44px); }
  .lead { font-size: 16px; }

  /* --- Buttons --- */
  .btn--lg { padding: 14px 22px; font-size: 15px; }

  /* --- Footer --- */
  .site-footer { padding: 48px 0 28px; }
  .brand__logo-stacked { height: 96px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-cta { gap: 8px; }
  .header-cta__quote { padding: 9px 12px; font-size: 12.5px; }
}
