/* ============================================================
   global.css — Reset, typography, header, footer, utilities
   Best Antarctica Cruise Companies
   ============================================================ */

/* --- Reset & Box Model --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Custom Properties --- */
:root {
  --color-primary:       #1B4F8A;
  --color-accent:        #0B9E98;
  --color-accent-dark:   #087571;
  --color-bg:            #FFFFFF;
  --color-surface:       #F7F9FC;
  --color-surface-alt:   #EEF3FA;
  --color-border:        #D9E2EF;
  --color-text:          #12192C;
  --color-text-muted:    #5A6A82;
  --color-text-light:    #8898A8;
  --color-rank:          #0B9E98;
  --color-badge-bg:      #E8F5F5;
  --color-badge-text:    #087571;
  --color-cta-primary:   #1B4F8A;
  --color-cta-accent:    #0B9E98;
  --color-cta-hover:     #154078;
  --font-sans:           'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:          Georgia, 'Times New Roman', serif;
  --radius-sm:           4px;
  --radius-md:           8px;
  --radius-lg:           12px;
  --shadow-sm:           0 1px 3px rgba(27,79,138,.08), 0 1px 2px rgba(27,79,138,.06);
  --shadow-md:           0 4px 12px rgba(27,79,138,.10), 0 2px 6px rgba(27,79,138,.06);
  --shadow-card:         0 2px 8px rgba(27,79,138,.08);
  --max-width:           1160px;
  --gap:                 24px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); margin-bottom: .5rem; }
h4 { font-size: 1.05rem; margin-bottom: .4rem; }

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: .35rem; }

strong { font-weight: 600; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

/* --- HEADER --- */
.site-header {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(27,79,138,.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.site-logo:hover {
  text-decoration: none;
}

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

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.site-nav a.active {
  color: var(--color-primary);
  background: var(--color-surface-alt);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.nav-toggle:hover {
  background: var(--color-surface-alt);
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* --- FOOTER --- */
.site-footer {
  background: #12192C;
  color: #A8B8CC;
  padding: 48px 0 32px;
  margin-top: auto;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.footer-brand__desc {
  font-size: .85rem;
  line-height: 1.55;
  color: #8898A8;
}

.footer-nav h4 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

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

.footer-nav li {
  margin-bottom: .4rem;
}

.footer-nav a {
  color: #8898A8;
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1E2D42;
  margin-top: 32px;
  padding-top: 20px;
  font-size: .8rem;
  color: #5A6A82;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--color-cta-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.btn-accent {
  background: var(--color-cta-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

/* --- GENERIC PAGE CONTENT --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0B3A6E 100%);
  color: #fff;
  padding: 48px 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: .5rem;
}

.page-hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  max-width: 600px;
}

.prose {
  max-width: 680px;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.prose p {
  color: #2A3A4E;
  line-height: 1.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --gap: 16px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 2px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }

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

  .site-nav a {
    padding: 10px 16px;
    font-size: .95rem;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 36px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 28px 0;
  }

  .site-header .container {
    height: 56px;
  }

  .site-logo__img {
    height: 32px;
  }

  .site-nav {
    top: 56px;
  }

  .page-hero {
    padding: 32px 0;
  }

  .page-hero h1 {
    font-size: 1.4rem;
  }
}
