/* Full Circle shared system: tokens, buttons, navigation, footer. */

/* Fills gaps only: unlayered page rules always beat it */
@layer reset { *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } }

:root {
  --teal: #0E6B73;
  --teal-deep: #0A5258;
  --coral: #E8614A;
  --coral-ink: #B84130;
  --navy: #1B2A3B;
  --ink: #14202D;
  --cream: #F5F0E8;
  --cream-2: #ECE4D6;
  --soft: #46566A;
  --rule: rgba(27, 42, 59, .16);

  --arc-crimson: #C8173B;
  --arc-orange: #F28A00;
  --arc-green: #3E9B36;
  --arc-sky: #1E96C8;
  --arc-indigo: #2B2F77;
  --arc-purple: #7A2A7D;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;

  /* Legacy names used by older page styles, mapped onto the new palette */
  --teal-dark: #0A5258;
  --teal-light: #3C9AA2;
  --teal-pale: #DDE9E5;
  --coral-dark: #D24E39;
  --coral-pale: #F7E2D8;
  --white: #FBF8F2;
  --text: #1B2A3B;
  --text-mid: #46566A;
  --text-light: #5C6C7E;
  --border: #D9D1C1;
}


.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 2000;
  background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 8px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: 700 1.125rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
.btn-coral:hover { background: #F07258; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .45); }
.btn-ghost { border-color: rgba(245, 240, 232, .6); color: var(--cream); }
.btn-ghost:hover { background: rgba(245, 240, 232, .12); border-color: var(--cream); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: #0F1B29; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--cream); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: var(--cream); border-bottom: 1px solid var(--rule);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy); display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand span { font: 400 1.125rem/1.1 var(--serif); letter-spacing: -.01em; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.menu > li { position: relative; }
.menu a, .menu button.drop {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  font: 600 1rem/1 var(--sans); color: var(--navy); background: none; border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.menu a:hover, .menu button.drop:hover, .menu button.drop[aria-expanded="true"] { background: var(--cream-2); }
.menu button.drop svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.menu button.drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 10px;
  background: var(--cream); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(20, 32, 45, .35), 0 4px 10px -4px rgba(20, 32, 45, .12);
  list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.panel.open { opacity: 1; visibility: visible; transform: none; }
.panel a { display: flex; width: 100%; justify-content: flex-start; padding: 12px 14px; font-weight: 500; }
.menu .nav-cta { background: var(--coral); color: var(--ink); font-weight: 700; padding: 0 22px; border-radius: 999px; margin-left: 6px; }
.menu .nav-cta:hover { background: #F07258; }
.nav-m { display: none; align-items: center; gap: 8px; }
.nav-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--coral); color: var(--ink); font: 700 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
.nav-pill:hover { background: #F07258; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -8px; } .burger span::after { top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 999; background: var(--cream);
  padding: 8px 32px 40px; overflow-y: auto; display: none;
}
.drawer.open { display: block; }
.drawer .grp { font: 700 1rem/1 var(--sans); color: var(--coral-ink); margin: 28px 0 6px; }
.drawer a:not(.btn) { display: flex; align-items: center; min-height: 52px; font: 600 1.25rem/1.2 var(--sans); text-decoration: none; border-bottom: 1px solid var(--rule); }
.drawer .btn { margin: 20px 0 4px; width: 100%; border-bottom: 2px solid transparent; font-size: 1.1875rem; }

/* Footer */
footer { background: var(--navy); color: rgba(245, 240, 232, .86); padding-block: 72px 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(245, 240, 232, .16); margin-bottom: 28px; }
.foot-brand .disc { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin-bottom: 20px; }
.foot-brand .disc img { width: 48px; height: auto; }
.foot-brand p { max-width: 22em; margin-bottom: 22px; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(245, 240, 232, .1); display: grid; place-items: center; color: var(--cream); transition: background-color .2s, transform .25s var(--ease); }
.social a:hover { background: var(--coral); color: var(--ink); transform: translateY(-2px); }
footer h2 { font: 700 1.0625rem/1 var(--sans); color: var(--cream); margin-bottom: 16px; }
footer ul { list-style: none; }
footer li { margin-bottom: 4px; }
footer li a { display: inline-block; padding-block: 6px; text-decoration: none; }
footer li a:hover, .foot-bottom a:hover { color: var(--coral); text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9375rem; opacity: .85; }
.foot-bottom a { text-decoration: none; }


.nav > .wrap, footer > .wrap { width: min(1200px, 100% - 64px); max-width: none; margin-inline: auto; padding: 0; }
.nav .brand img { max-width: none; }
.menu a[aria-current="page"], .menu button.drop.here { background: var(--cream-2); }
.panel a[aria-current="page"], .drawer a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.skip { color: var(--cream); }
footer :focus-visible { outline-color: var(--cream); }

@media (max-width: 1080px) {
  .menu { display: none; }
  .nav-m { display: flex; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .nav > .wrap, footer > .wrap { width: min(1200px, 100% - 40px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --nav-h: 68px; }
  .brand img { height: 46px; }
  .brand span { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Button aliases used by older pages */
.btn-ghost-white, .btn-outline-white { border-color: rgba(245, 240, 232, .6); color: var(--cream); background: transparent; }
.btn-ghost-white:hover, .btn-outline-white:hover { background: rgba(245, 240, 232, .12); border-color: var(--cream); }
.btn-ghost-teal, .btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost-teal:hover, .btn-outline:hover { background: var(--teal); color: var(--cream); }
.btn-teal { background: var(--teal); color: var(--cream); }
.btn-teal:hover { background: var(--teal-deep); }

.nav a, footer a { color: inherit; }
.menu .nav-cta, .nav-pill { color: var(--ink); }
.menu a:hover { color: inherit; }
