/* Azotea brand stylesheet — V1
   Palette: 60% navy / 30% sand / 10% burnt orange.
   Type: DM Sans, self-hosted from ./fonts/, with a system fallback stack.
*/

/* dm-sans-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/dm-sans-v17-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/dm-sans-v17-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/dm-sans-v17-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --navy: #1B2A4A;
  --sand: #EDE5D0;
  --orange: #C4652A;
  --charcoal: #2C2C2A;
  --off-white: #F7F3EC;

  --font-display:
    "DM Sans", "Inter", "Outfit", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: var(--font-display);

  --max-content: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.06em;
}

a:hover,
a:focus-visible {
  color: var(--orange);
}

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

/* ===== Hero — navy band with subtle grain for depth ===== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--sand);
  padding: clamp(5rem, 14vw, 9rem) var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Grain overlay — generated SVG turbulence, no external asset */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Soft radial highlight — gives the navy depth without a hard gradient line */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 0%,
      rgba(237, 229, 208, 0.06) 0%,
      transparent 70%
    );
}

.hero .wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 11vw, 6rem);
  letter-spacing: 0.14em;
  color: var(--sand);
  line-height: 1;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .tagline {
  margin: 1.25rem 0 0;
  color: var(--orange);
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
}

.hero .lede {
  max-width: 36rem;
  margin: 2.25rem auto 2.75rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--sand);
  opacity: 0.92;
  text-wrap: balance;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 160ms both;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px -10px rgba(196, 101, 42, 0.55);
  transition:
    transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 240ms both;
}

.cta::after {
  content: "→";
  font-weight: 500;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cta:hover,
.cta:focus-visible {
  background: #a8541f;
  color: var(--off-white);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 14px 28px -10px rgba(196, 101, 42, 0.55);
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: translateX(3px);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Features — refined cards with subtle border + hover lift ===== */

.features {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.feature {
  background: var(--sand);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: 0.875rem;
  padding: 2rem 1.75rem;
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 101, 42, 0.35);
  box-shadow: 0 16px 32px -18px rgba(27, 42, 74, 0.25);
}

.feature h2 {
  margin: 0 0 0.625rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===== Long-form prose (privacy.html) ===== */

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 2.25rem 0 0.5rem;
  line-height: 1.25;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose .muted {
  color: var(--charcoal);
  opacity: 0.65;
  font-size: 0.875rem;
  margin: 0 0 1.75rem;
}

/* ===== Footer ===== */

footer {
  position: relative;
  border-top: 1px solid rgba(27, 42, 74, 0.1);
  padding: 2rem var(--gutter);
  text-align: center;
  font-size: 0.875rem;
  color: var(--charcoal);
  background: var(--off-white);
}

/* Thin orange accent — visual rhythm between the page and the footer */
footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

footer p {
  margin: 0;
  opacity: 0.75;
}

footer a {
  color: var(--navy);
  text-decoration-color: rgba(27, 42, 74, 0.3);
  transition: text-decoration-color 180ms ease, color 180ms ease;
}

footer a:hover {
  text-decoration-color: var(--orange);
}

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
