/* =============================================================
   GLOBAL CSS — South Georgia Small Ship Cruise
   Theme: Editorial polar expedition — National Geographic meets luxury outfitter
   ============================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* =============================================================
   CSS CUSTOM PROPERTIES
   ============================================================= */
:root {
  /* Colors */
  --color-navy:        #0A1628;
  --color-navy-mid:    #122040;
  --color-ice-white:   #F5F7F9;
  --color-ice-mid:     #E8F0F2;
  --color-teal:        #1B8A9A;
  --color-teal-light:  #22AABF;
  --color-amber:       #D4963A;
  --color-amber-light: #E8B060;
  --color-text:        #1A2840;
  --color-text-muted:  #4A5568;
  --color-border:      #D8E0E8;
  --color-green:       #2D7A3A;
  --color-purple:      #5B4A8A;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max-width: 1160px;

  /* Spacing tokens */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  5rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(10, 22, 40, 0.06);
  --shadow-md:   0 2px 8px rgba(10, 22, 40, 0.08), 0 8px 32px rgba(10, 22, 40, 0.06);
  --shadow-lg:   0 4px 16px rgba(10, 22, 40, 0.12), 0 16px 48px rgba(10, 22, 40, 0.10);
  --shadow-teal: 0 4px 20px rgba(27, 138, 154, 0.25);
}

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

html, body, h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

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

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

/* =============================================================
   BASE TYPOGRAPHY
   ============================================================= */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-ice-white);
  position: relative;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text-muted);
}

a {
  font-family: var(--font-body);
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-teal-light);
}

/* =============================================================
   LAYOUT
   ============================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================================
   SITE HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav toggle (mobile hamburger) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 101;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--color-ice-white);
  border-radius: 2px;
  transition: all 0.25s ease;
  display: block;
}

/* Mobile nav */
.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 99;
  padding: 1rem 0;
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.site-nav__list li {
  display: block;
}

.site-nav__list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 247, 249, 0.75);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  display: block;
}

.site-nav__list a:hover,
.site-nav__list a.active {
  color: var(--color-ice-white);
}

/* Mobile: left border for active */
.site-nav__list a.active {
  border-left: 2px solid var(--color-teal);
  padding-left: calc(1.5rem - 2px);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    margin-left: auto;
    width: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__list a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  /* Desktop: bottom border for active, remove left border */
  .site-nav__list a.active {
    color: var(--color-ice-white);
    border-left: none;
    padding-left: 0.75rem;
    border-bottom: 2px solid var(--color-teal);
    padding-bottom: calc(0.5rem - 2px);
  }
}

/* =============================================================
   SITE FOOTER
   ============================================================= */
.site-footer {
  background: var(--color-navy);
  color: rgba(245, 247, 249, 0.7);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer__brand .site-logo__img {
  height: 40px;
  opacity: 0.9;
}

.site-footer__brand p {
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 300px;
  margin-top: 0.75rem;
  color: rgba(245, 247, 249, 0.55);
}

.site-footer__nav h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1rem;
}

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav ul a {
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  color: rgba(245, 247, 249, 0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-footer__nav ul a:hover {
  color: var(--color-ice-white);
}

.site-footer__legal {
  font-size: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 249, 0.4);
  line-height: 1.6;
}

.site-footer__legal a {
  color: rgba(245, 247, 249, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: rgba(245, 247, 249, 0.75);
}

/* =============================================================
   UTILITY COMPONENTS
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-ice-white);
}

.btn--primary:hover {
  background: var(--color-teal-light);
  color: var(--color-ice-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(245, 247, 249, 0.3);
  color: var(--color-ice-white);
}

.btn--ghost:hover {
  border-color: rgba(245, 247, 249, 0.6);
  color: var(--color-ice-white);
  background: rgba(245, 247, 249, 0.05);
}

.btn--ghost:active {
  background: rgba(245, 247, 249, 0.1);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.badge--teal {
  background: rgba(27, 138, 154, 0.15);
  color: var(--color-teal);
  border: 1px solid rgba(27, 138, 154, 0.3);
}

.badge--amber {
  background: rgba(212, 150, 58, 0.15);
  color: var(--color-amber);
  border: 1px solid rgba(212, 150, 58, 0.3);
}

/* Star rating */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-amber);
}

.star-rating__value {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-left: 4px;
}

/* =============================================================
   SECTION UTILITIES
   ============================================================= */
.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-ice-white);
}

.section--mid {
  background: var(--color-ice-mid);
}

.section--light {
  background: var(--color-ice-white);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section--dark .section-title {
  color: var(--color-ice-white);
}

.section-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section--dark .section-intro {
  color: rgba(245, 247, 249, 0.75);
}

/* =============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================= */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}
