/* ==========================================================================
   Blue Event Next — site styles
   Palette: deep navy, white, soft grey, one champagne accent.
   ========================================================================== */

:root {
  --navy: #0b1d33;
  --navy-700: #13294a;
  --ink: #0f1c2e;
  --body: #3b4656;
  --muted: #566173;
  --grey-50: #f5f6f8;
  --line: #e2e5ea;
  --white: #ffffff;
  --accent: #b8975f;        /* decorative lines, focus ring */
  --accent-ink: #876735;    /* accent text on light backgrounds (AA) */
  --accent-light: #dcc7a1;  /* accent text on navy / dark imagery */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--accent-light); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  min-height: 54px;
  padding: 0 1.875rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .35s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover { background: #f3ecdf; }

.btn--dark {
  background: var(--navy);
  color: var(--white);
}
.btn--dark:hover { background: var(--navy-700); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(255, 255, 255, .97);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-solid {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .wordmark { font-size: 1.375rem; }

  /* Without JavaScript the links simply stay inline. */
  .nav-list { gap: 18px; }
  .nav-list a { font-size: .6875rem; letter-spacing: .12em; }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-toggle__icon {
    position: relative;
    width: 22px;
    height: 10px;
  }
  .nav-toggle__icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .35s var(--ease), top .35s var(--ease);
  }
  .nav-toggle__icon span:first-child { top: 0; }
  .nav-toggle__icon span:last-child { top: calc(100% - 1.5px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { top: 4px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { top: 4px; transform: rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 24px 40px -28px rgba(11, 29, 51, .45);
  }
  .js .site-nav:not(.is-open) { display: none; }

  .js .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    border-top: 1px solid var(--line);
  }
  .js .nav-list a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: .8125rem;
    letter-spacing: .16em;
  }
  .js .nav-list a::after { display: none; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 17, 33, .86) 0%, rgba(6, 17, 33, .62) 50%, rgba(6, 17, 33, .38) 100%),
    linear-gradient(180deg, rgba(6, 17, 33, .55) 0%, rgba(6, 17, 33, 0) 28%, rgba(6, 17, 33, .55) 100%);
}

.hero__content {
  max-width: 920px;
  padding-block: calc(var(--header-h) + 72px) clamp(80px, 14vh, 150px);
}

.hero h1 {
  margin-bottom: 1.75rem;
  color: var(--white);
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: 2.75rem;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 2.6s var(--ease) both; }
  .hero__content > * { animation: rise 1s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .12s; }
  .hero__content > :nth-child(3) { animation-delay: .24s; }
  .hero__content > :nth-child(4) { animation-delay: .36s; }
}

@keyframes hero-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(88px, 12vw, 168px); }
.section--grey { background: var(--grey-50); }

.section h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

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

/* About */

.about {
  display: grid;
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

.about h2 { margin-bottom: 2rem; }

.lead {
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  line-height: 1.6;
}

.about__text p:not(.lead):not(.eyebrow) {
  max-width: 52ch;
  color: var(--muted);
}

.framed {
  position: relative;
  isolation: isolate;
  margin: 0 12px 12px 0;
}
.framed::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border: 1px solid var(--accent);
}
.framed img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--grey-50);
}

.framed--alt { margin: 0 0 12px 12px; }
.framed--alt::before { inset: 12px 12px -12px -12px; }
.framed--alt img {
  aspect-ratio: 1 / 1;
  object-position: 24% 50%;
}

@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr .9fr; }
  .framed { margin: 0 24px 24px 0; }
  .framed::before { inset: 24px -24px -24px 24px; }
  .framed--alt { margin: 0 0 24px 24px; }
  .framed--alt::before { inset: 24px 24px -24px -24px; }
}

/* Services */

.cards {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -28px rgba(11, 29, 51, .38);
  }
  .card:hover::before { transform: scaleX(1); }
}

.card__num {
  display: block;
  margin-bottom: clamp(40px, 5vw, 64px);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--accent-ink);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
}

.card p { color: var(--muted); }

@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Image band */

.band {
  position: relative;
  height: clamp(260px, 40vw, 560px);
  overflow: hidden;
  background: var(--navy);
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 51, .1), rgba(11, 29, 51, .35));
}

/* Contact */

.contact {
  display: grid;
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

.contact h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
}

.contact__intro {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-list {
  margin: 2.75rem 0 0;
  border-top: 1px solid var(--line);
}
.contact-list > div {
  display: grid;
  gap: .375rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 0; }

.contact-link {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1.25;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .45s var(--ease), color .35s var(--ease);
}
.contact-link:hover,
.contact-link:focus-visible {
  background-size: 100% 1px;
  color: var(--navy-700);
}

@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1fr; }
}

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

.site-footer {
  padding-block: clamp(64px, 8vw, 96px) 40px;
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
  font-size: .9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.site-footer .wordmark {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.footer-legal {
  max-width: 44ch;
  margin: 0;
}

.footer-nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .4s var(--ease);
}
.footer-nav a:hover,
.footer-nav a:focus-visible { background-size: 100% 1px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  color: rgba(255, 255, 255, .62);
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Legal pages ---------- */

.page-hero {
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 112px)) clamp(40px, 5vw, 64px);
  background: var(--grey-50);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); }
.page-hero .updated {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
}

.prose {
  max-width: 760px;
  padding-block: clamp(56px, 8vw, 104px);
}
.prose h2 {
  margin: 2.75rem 0 .875rem;
  font-size: clamp(1.625rem, 1.35rem + 1vw, 2rem);
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--body); }
.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose a {
  color: var(--navy);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 3rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
