/* ==========================================================
   KAIN AMA — Mediterranean Cruises, Málaga
   Design tokens & base styles
   ========================================================== */

:root {
  /* Color palette — Mediterranean luxury */
  --bone: #F5EFE6;
  --bone-soft: #FAF6EE;
  --cream: #EFE6D6;
  --sand: #E8D9C0;
  --sand-dark: #D4C09F;
  --terracotta: #C8624A;
  --terracotta-dark: #A84D38;
  --terracotta-soft: #E8A595;
  --sea: #1F3A4D;
  --sea-deep: #142836;
  --sea-mid: #2E5670;
  --sea-soft: #4A7891;
  --gold: #B8924C;
  --gold-soft: #D4B377;
  --ink: #1A1814;
  --ink-soft: #4A453D;
  --ink-mute: #8A8275;

  /* Lines & shadows */
  --line: rgba(26, 24, 20, 0.10);
  --line-strong: rgba(26, 24, 20, 0.20);
  --line-on-dark: rgba(245, 239, 230, 0.15);

  --shadow-1: 0 1px 2px rgba(20, 40, 54, 0.06), 0 4px 12px rgba(20, 40, 54, 0.04);
  --shadow-2: 0 4px 12px rgba(20, 40, 54, 0.08), 0 12px 32px rgba(20, 40, 54, 0.08);
  --shadow-3: 0 12px 24px rgba(20, 40, 54, 0.12), 0 32px 64px rgba(20, 40, 54, 0.16);

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* Radii */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 6px;
  --r-3: 12px;
  --r-pill: 999px;

  /* Type */
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 500ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-w: 1320px;
  --max-w-text: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
}

/* Subtle paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 24, 20, 0.025) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Type utilities */
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.mute { color: var(--ink-mute); }

.lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-1);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--bone-soft);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(168, 77, 56, 0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-ghost.on-dark {
  color: var(--bone);
  border-color: var(--line-on-dark);
}
.btn-ghost.on-dark:hover {
  background: var(--bone);
  color: var(--ink);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 11px;
}
.btn-lg {
  padding: 18px 32px;
  font-size: 14px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Section spacing */
.section { padding: var(--s9) 0; position: relative; }
.section-lg { padding: var(--s10) 0; }
@media (max-width: 768px) {
  .section { padding: var(--s8) 0; }
  .section-lg { padding: var(--s8) 0; }
}

/* Dividers — wave/serif */
.rule-gold {
  width: 48px;
  height: 1px;
  background: var(--gold);
  display: block;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: var(--sand-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Selection */
::selection { background: var(--terracotta); color: var(--bone-soft); }

/* Form base */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  background: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 100px; }

/* Hide focus ring when not keyboard */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
