/* ============================================================
   global.css — Reset, typography, header, footer, utilities
   Small Ship Antarctica Cruises
   ============================================================ */

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

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

/* --- Custom Properties --- */
:root {
  --color-navy:        #0B1F3A;
  --color-mid-blue:    #1E4D8C;
  --color-blue-dark:   #163A6E;
  --color-ice-bg:      #EBF4F8;
  --color-cta:         #E8500A;
  --color-cta-hover:   #C4400A;
  --color-gold:        #C4963A;
  --color-gold-bg:     #FFF8E8;
  --color-bg:          #FFFFFF;
  --color-surface:     #F7FAFC;
  --color-border:      #D4E4EE;
  --color-text:        #1A2838;
  --color-text-muted:  #5A6A80;
  --color-text-light:  #8898AA;
  --font-head:         'Josefin Sans', 'Century Gothic', 'Futura', sans-serif;
  --font-body:         'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-serif:        'Cormorant Garamond', Georgia, serif;
  --radius-sm:         4px;
  --radius-md:         8px;
  --radius-lg:         14px;
  --shadow-sm:         0 1px 3px rgba(11,31,58,.08), 0 1px 2px rgba(11,31,58,.05);
  --shadow-md:         0 4px 14px rgba(11,31,58,.10), 0 2px 6px rgba(11,31,58,.06);
  --shadow-card:       0 2px 10px rgba(11,31,58,.08), 0 1px 3px rgba(11,31,58,.05);
  --max-width:         1160px;
  --gap:               24px;
}

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

body {
  font-family: var(--font-body);
  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-mid-blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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.05rem, 2.5vw, 1.3rem); margin-bottom: .5rem; }
h4 { font-size: 1rem; 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: 56px 0; }
.section + .section { border-top: 1px solid var(--color-border); }
.section--ice { background: var(--color-ice-bg); }
.section--navy { background: var(--color-navy); color: #fff; }

/* --- HEADER (dark navy) --- */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.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: 52px;
  width: auto;
  display: block;
}

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

.site-nav a {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}

.site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.site-nav .nav-cta {
  background: var(--color-cta);
  color: #fff;
  margin-left: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
}

.site-nav .nav-cta:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

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

.nav-toggle:hover { background: rgba(255,255,255,.1); }

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

/* --- FOOTER (dark navy, 3-col) --- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
}

.footer-brand__logo-wrap {
  margin-bottom: 14px;
}

.footer-brand__desc {
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}

.footer-brand__badge {
  display: inline-block;
  margin-top: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}

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

.footer-col li { margin-bottom: .5rem; }

.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 20px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  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: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}

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

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

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

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

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

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

.btn-outline:hover {
  background: var(--color-ice-bg);
  color: var(--color-mid-blue);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* --- PAGE HERO (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-mid-blue) 100%);
  color: #fff;
  padding: 56px 0;
}

.page-hero h1 {
  font-family: var(--font-head);
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: .03em;
}

.page-hero p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.6;
}

/* --- PROSE (content pages) --- */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-ice-bg);
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  color: var(--color-mid-blue);
}

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

.prose ul, .prose ol {
  color: #2A3A4E;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose a { color: var(--color-mid-blue); }

/* --- CALLOUT BOXES --- */
.callout-box {
  background: var(--color-ice-bg);
  border-left: 4px solid var(--color-mid-blue);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.callout-box--orange { border-left-color: var(--color-cta); }
.callout-box--gold   { border-left-color: var(--color-gold); background: var(--color-gold-bg); }

.callout-box p {
  font-size: .9375rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: .5rem;
}

.callout-box p:last-child { margin-bottom: 0; }

/* Pull quote (Cormorant Garamond) */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-mid-blue);
  line-height: 1.5;
  border-left: 3px solid var(--color-mid-blue);
  padding: 14px 22px;
  margin: 24px 0;
  background: var(--color-ice-bg);
}

/* --- ICON GRID --- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.icon-grid--3 { grid-template-columns: repeat(3, 1fr); }
.icon-grid--4 { grid-template-columns: repeat(4, 1fr); }

.icon-grid__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.section--ice .icon-grid__item {
  background: #fff;
}

.icon-grid__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.icon-grid__title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.icon-grid__text {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- STAT BADGES --- */
.stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 22px;
  background: var(--color-navy);
  border-radius: var(--radius-md);
  min-width: 120px;
}

.stat-badge__value {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-cta);
  line-height: 1;
}

.stat-badge__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
  text-align: center;
}

/* --- 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-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    gap: 2px;
    z-index: 99;
  }

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

  .site-nav a {
    padding: 12px 16px;
    font-size: .85rem;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .section { padding: 40px 0; }

  .icon-grid--3 { grid-template-columns: 1fr; }
  .icon-grid--4 { grid-template-columns: 1fr 1fr; }
}

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

  .site-header .container { height: 56px; }
  .site-logo__img { height: 40px; }
  .site-nav { top: 56px; }

  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 1.4rem; }

  .icon-grid--4 { grid-template-columns: 1fr; }
}
