/*
  Isaac Casas — shared foundation for all five directions.
  One token set, one type system, one accessibility/motion baseline.
  Avenir Next is the client's specified display face; no licensed file was
  supplied, so Jost (SIL OFL, self-hosted) stands in as its geometric,
  rounded-terminal equivalent. Manrope is the client's specified body face
  and is used as supplied.
*/

@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-variable.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Warm neutrals: the page's default surface */
  --ivory: #F8F3EA;
  --sand: #F0E6D6;
  --oat: #E8DCC3;
  --oat-deep: #DCCBA5;
  --ink: #3C332A;
  --ink-soft: #59503E;

  /* Logo blue: the dominant brand color */
  --navy: #17324F;
  --navy-soft: #3A5478;
  --blue-dust: #8FA6CC;
  --blue-dust-deep: #7690C0;
  --blue-deep: #3D5A82;
  --blue-deeper: #2E4867;

  /* Reserved accents, used sparingly */
  --coral: #E1735A;
  --coral-deep: #9E4029;
  --gold: #DFB94D;
  --sage: #8A9A79;
  --sage-deep: #667658;

  --font-display: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  --font-body: 'Manrope', 'Avenir Next', sans-serif;

  --edge: min(6vw, 5.5rem);
  --section-pad: clamp(4rem, 7vw, 6.5rem);
  --shell-max: 1260px;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

.measure { max-width: 60ch; }
.measure-wide { max-width: 74ch; }

.shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* Grid/flex items default to min-width:auto, which lets long unbroken
   content blow out a track past its container at narrow widths. Every
   direction nests copy inside grid/flex tracks, so this reset is shared. */
.hero-grid > *, .hero-copy, .hero-media, .mosaic-hero > *,
.detail, .detail-copy, .detail-media, .frame,
.intro-grid > *, .contact-grid > *, .area-grid > *, .area-stack > *,
.treatment-grid > *, .layout, .content, .margin-band,
.hero-actions, .contact-actions, .nav, .footer-row {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-sm);
  z-index: 1000;
  transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(23, 50, 79, 0.55);
}
.btn-primary:hover {
  background: var(--blue-deeper);
  box-shadow: 0 16px 32px -14px rgba(23, 50, 79, 0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(23, 50, 79, 0.3);
}
.btn-ghost:hover {
  background: rgba(23, 50, 79, 0.06);
  border-color: var(--navy);
  transform: translateY(-2px);
}
@media (hover: none) {
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  gap: 0.15rem;
  background: rgba(23, 50, 79, 0.07);
  border-radius: var(--r-pill);
  padding: 0.2rem;
}
.lang-switch button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-soft);
  background: transparent;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.lang-switch button.is-active {
  background: var(--navy);
  color: #fff;
}
.lang-switch button:not(.is-active):hover { color: var(--navy); }

/* ---------- Image placeholders (real photography lands here later) ---------- */
.media-block {
  position: relative;
  background: var(--blue-dust);
  overflow: hidden;
}
.media-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.09) 0px,
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px,
    transparent 13px
  );
  pointer-events: none;
}
.media-block.tone-oat { background: var(--oat-deep); }
.media-block.tone-navy { background: var(--navy-soft); }
.media-block.tone-sage { background: var(--sage); }
.media-note {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: rgba(248, 243, 234, 0.88);
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-pill);
  max-width: calc(100% - 2.2rem);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="2"] { transition-delay: 60ms; }
[data-reveal="3"] { transition-delay: 120ms; }
[data-reveal="4"] { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .btn-primary:hover, .btn-ghost:hover { transition: none; }
}

/* ---------- Chips (treatment areas) ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(23, 50, 79, 0.16);
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(23, 50, 79, 0.12);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-row a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .footer-row { flex-direction: column; }
}
