@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 240 5% 96%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 240 6% 80%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
  --radius: 0.2rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;

  --font-heading: 'Canela', 'Tiempos Headline', 'Georgia', serif;
  --font-body: 'Söhne', 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Söhne Mono', 'SF Mono', 'Monaco', monospace;

  --color-deep-navy: #1A2B3C;
  --color-shield-gold: #C9A227;
  --color-warm-ivory: #FAF8F3;
  --color-slate: #5A6570;
  --color-muted-sage: #8A9B8E;
  --color-soft-terracotta: #B87D6B;
  --color-pale-gold: #F5ECD7;
  --color-mist: #E8E4DB;
  --color-deep-teal: #2D5A5A;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: ease-in-out;
}

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

html {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: var(--color-warm-ivory);
  min-height: 100vh;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-deep-navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.625rem);
  font-weight: 400;
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

h4 {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.5vw + 0.25rem, 1.375rem);
  font-weight: 500;
  line-height: 1.3;
}

p {
  max-width: 70ch;
  text-wrap: pretty;
}

.font-mono {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.container {
  width: 100%;
  padding-inline: 1.25rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

.container-wide {
  max-width: 1320px;
}

.container-narrow {
  max-width: 720px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  touch-action: manipulation;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background-color: var(--color-shield-gold);
  color: var(--color-deep-navy);
}

.btn-primary:hover {
  background-color: #B08D1F;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background-color: #9A7A1A;
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--color-deep-navy);
  color: var(--color-deep-navy);
}

.btn-secondary:hover {
  background-color: var(--color-deep-navy);
  color: var(--color-warm-ivory);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-deep-navy);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  padding: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-shield-gold);
  border-radius: 0;
  min-height: auto;
  min-width: auto;
}

.btn-tertiary:hover {
  border-bottom-width: 2px;
}

.card {
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-mist);
  border-radius: calc(var(--radius) * 2);
  padding: var(--space-lg);
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(26, 43, 60, 0.08);
  transform: translateY(-2px);
}

.card-featured {
  border-left: 4px solid var(--color-shield-gold);
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0 calc(var(--radius) * 2) calc(var(--radius) * 2) 0;
}

.input {
  width: 100%;
  background-color: var(--color-warm-ivory);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-deep-navy);
  line-height: 1.5;
  transition: border-color 150ms ease, outline 150ms ease;
}

.input::placeholder {
  color: var(--color-slate);
  opacity: 0.6;
}

.input:focus {
  border-color: var(--color-shield-gold);
  outline: 2px solid rgba(201, 162, 39, 0.2);
  outline-offset: 0;
}

.input-error {
  border-color: var(--color-soft-terracotta);
}

.input-error:focus {
  border-color: var(--color-soft-terracotta);
  outline-color: rgba(184, 125, 107, 0.2);
}

.nav {
  background-color: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 64px;
  border-bottom: 1px solid var(--color-mist);
}

@media (min-width: 1024px) {
  .nav {
    height: 80px;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate);
  transition: color 150ms ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-deep-navy);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-shield-gold);
}

.section {
  padding-block: var(--space-3xl);
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-4xl);
  }
}

.bg-navy {
  background-color: var(--color-deep-navy);
  color: var(--color-warm-ivory);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--color-warm-ivory);
}

.bg-ivory {
  background-color: var(--color-warm-ivory);
}

.text-slate {
  color: var(--color-slate);
}

.text-gold {
  color: var(--color-shield-gold);
}

.text-terracotta {
  color: var(--color-soft-terracotta);
}

.text-teal {
  color: var(--color-deep-teal);
}

.text-sage {
  color: var(--color-muted-sage);
}

.focus-visible:focus-visible {
  outline: 2px solid var(--color-shield-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.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;
}

.grid-8 {
  display: grid;
  gap: var(--space-xs);
}

.grid-16 {
  display: grid;
  gap: var(--space-sm);
}

.grid-24 {
  display: grid;
  gap: var(--space-md);
}

.grid-32 {
  display: grid;
  gap: var(--space-lg);
}

.grid-48 {
  display: grid;
  gap: var(--space-xl);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 {
  gap: var(--space-xs);
}

.gap-16 {
  gap: var(--space-sm);
}

.gap-24 {
  gap: var(--space-md);
}

.gap-32 {
  gap: var(--space-lg);
}

.gap-48 {
  gap: var(--space-xl);
}

.mt-8 {
  margin-top: var(--space-xs);
}

.mt-16 {
  margin-top: var(--space-sm);
}

.mt-24 {
  margin-top: var(--space-md);
}

.mt-32 {
  margin-top: var(--space-lg);
}

.mt-48 {
  margin-top: var(--space-xl);
}

.mt-64 {
  margin-top: var(--space-2xl);
}

.mt-96 {
  margin-top: var(--space-3xl);
}

.mt-128 {
  margin-top: var(--space-4xl);
}

.mb-8 {
  margin-bottom: var(--space-xs);
}

.mb-16 {
  margin-bottom: var(--space-sm);
}

.mb-24 {
  margin-bottom: var(--space-md);
}

.mb-32 {
  margin-bottom: var(--space-lg);
}

.mb-48 {
  margin-bottom: var(--space-xl);
}

.mb-64 {
  margin-bottom: var(--space-2xl);
}

.mb-96 {
  margin-bottom: var(--space-3xl);
}

.mb-128 {
  margin-bottom: var(--space-4xl);
}

.p-16 {
  padding: var(--space-sm);
}

.p-24 {
  padding: var(--space-md);
}

.p-32 {
  padding: var(--space-lg);
}

.p-48 {
  padding: var(--space-xl);
}

.py-16 {
  padding-block: var(--space-sm);
}

.py-24 {
  padding-block: var(--space-md);
}

.py-32 {
  padding-block: var(--space-lg);
}

.py-48 {
  padding-block: var(--space-xl);
}

.py-64 {
  padding-block: var(--space-2xl);
}

.py-96 {
  padding-block: var(--space-3xl);
}

.py-128 {
  padding-block: var(--space-4xl);
}

.px-16 {
  padding-inline: var(--space-sm);
}

.px-24 {
  padding-inline: var(--space-md);
}

.px-32 {
  padding-inline: var(--space-lg);
}

.px-48 {
  padding-inline: var(--space-xl);
}

.animate-fade {
  animation: fadeIn 400ms var(--ease-out-quart) forwards;
}

.animate-slide-up {
  animation: slideUp 500ms var(--ease-out-expo) forwards;
}

.animate-stagger > * {
  opacity: 0;
  animation: fadeIn 400ms ease-out forwards;
}

.animate-stagger > *:nth-child(1) {
  animation-delay: 0ms;
}

.animate-stagger > *:nth-child(2) {
  animation-delay: 100ms;
}

.animate-stagger > *:nth-child(3) {
  animation-delay: 200ms;
}

.animate-stagger > *:nth-child(4) {
  animation-delay: 300ms;
}

.animate-stagger > *:nth-child(5) {
  animation-delay: 400ms;
}

.animate-stagger > *:nth-child(6) {
  animation-delay: 500ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 639px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .hide-wide {
    display: none !important;
  }
}

@media (min-width: 1920px) {
  .hide-ultrawide {
    display: none !important;
  }
}