/* Arctic Wedding Guide - shared stylesheet */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f2f7f9;
  --color-header: #0b1f33;
  --color-header-2: #123a52;
  --color-accent: #46b8a0;
  --color-accent-dark: #2f8a76;
  --color-accent-2: #7c6fd6;
  --color-accent-3: #4fb3d9;
  --color-callout-bg: #f0faf7;
  --color-table-stripe: #f7f9fb;
  --color-text: #1c2733;
  --color-text-light: #52697a;
  --color-text-on-dark: #d7e4ec;
  --color-border: #e1e7eb;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 880px;
  --max-width-wide: 1080px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 31, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-header);
  line-height: 1.22;
  font-weight: 700;
}

h1 {
  font-size: 2.6rem;
  margin: 0.3em 0 0.4em;
}

h2 {
  font-size: 1.85rem;
  margin-top: 0;
  margin-bottom: 0.7em;
  position: relative;
  padding-bottom: 0.4em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-3));
  border-radius: 3px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.8em;
}

h4 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin-top: 1.3em;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

p {
  margin: 0.9em 0;
}

a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  padding-left: 1.4em;
}

li {
  margin: 0.4em 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

/* Icons */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-callout-bg);
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* Header */
.site-header {
  background: var(--color-header);
  color: #ffffff;
  padding: 0.9em 1.5em;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.site-header .header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em;
}

.site-header .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.site-header .brand .icon {
  color: var(--color-accent);
  width: 22px;
  height: 22px;
}

.site-header nav a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  margin-left: 1.4em;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.site-header nav a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5em 1.5em 6em;
  background: linear-gradient(135deg, #0b1f33 0%, #123a52 38%, #1c5f68 68%, #2f8f7c 100%);
  color: #ffffff;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.hero::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 111, 214, 0.45), transparent 70%);
  top: -120px;
  right: -60px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(79, 179, 217, 0.4), transparent 70%);
  bottom: -180px;
  left: -100px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero .breadcrumb {
  color: rgba(255, 255, 255, 0.75);
}

.hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.hero .breadcrumb a:hover {
  color: #ffffff;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.7rem;
  max-width: 780px;
}

.hero .page-intro {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 700px;
}

.hero-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: 70px;
  display: block;
}

/* Quick nav */
.quick-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 58px;
  z-index: 40;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.quick-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7em 1.5em;
  display: flex;
  gap: 0.5em;
}

.quick-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: var(--color-bg-alt);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.quick-nav a:hover {
  background: var(--color-accent);
  color: #ffffff;
}

/* Bands */
main {
  display: block;
}

.band {
  padding: 3.2em 1.5em;
}

.band-alt {
  background: var(--color-bg-alt);
}

.band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.band.highlight {
  background: linear-gradient(135deg, #0f2b40, #1c5f68);
  color: #ffffff;
}

.band.highlight h2 {
  color: #ffffff;
}

.band.highlight h2::after {
  background: linear-gradient(90deg, #ffffff, var(--color-accent-3));
}

.band.highlight p {
  color: rgba(255, 255, 255, 0.92);
}

.band.highlight a {
  color: #bdf0e2;
}

.band.highlight a:hover {
  color: #ffffff;
}

.band.closing {
  background: var(--color-header);
  color: var(--color-text-on-dark);
  text-align: center;
}

.band.closing h2 {
  color: #ffffff;
}

.band.closing h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.band.closing .band-inner {
  max-width: 700px;
}

.band.closing p {
  color: rgba(215, 228, 236, 0.92);
  font-size: 1.05rem;
}

/* First heading inside a band shouldn't need extra top margin */
.band-inner > h2:first-child,
.band-inner > h3:first-child {
  margin-top: 0;
}

.section-icon {
  margin-bottom: 0.7em;
}

/* Page intro (non-hero, used on sub-pages) */
.page-intro {
  font-size: 1.08rem;
  color: var(--color-text-light);
}

/* Simple page hero for sub-pages */
.simple-hero {
  background: linear-gradient(120deg, #0b1f33, #1c5f68);
  color: #ffffff;
  padding: 3em 1.5em;
}

.simple-hero .hero-inner {
  max-width: var(--max-width);
}

.simple-hero h1 {
  color: #ffffff;
  font-size: 2.1rem;
}

.simple-hero .breadcrumb,
.simple-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.simple-hero .breadcrumb a:hover {
  color: #ffffff;
}

.page-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.6em 1.5em 4em;
}

/* Callout blocks */
.callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-callout-bg);
  padding: 1em 1.3em;
  margin: 1.4em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  margin: 0.4em 0;
}

.footnote {
  font-size: 0.88rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* Destination card grid */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.4em;
  margin: 1.8em 0 2em;
}

.dest-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5em 1.5em 1.6em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dest-card .card-link {
  margin-top: auto;
  padding-top: 0.6em;
}

.band-alt .dest-card {
  background: #ffffff;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dest-card h3 {
  margin-top: 0.6em;
  margin-bottom: 0.2em;
}

.dest-card h4 {
  margin-top: 1em;
}

.dest-card p {
  margin: 0.6em 0;
}

.dest-card ul {
  margin: 0.6em 0 0.2em;
  padding-left: 1.2em;
}

/* Idea / ceremony style cards */
.idea-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2em;
  margin: 1.8em 0 0.6em;
  padding: 0;
}

.idea-card {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2em 1.3em;
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.band-alt .idea-card {
  background: #ffffff;
}

.idea-card p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.96rem;
}

.idea-card strong {
  color: var(--color-header);
}

/* Check list */
.check-list {
  list-style: none;
  padding-left: 0;
  margin: 1.4em 0;
}

.check-list li {
  position: relative;
  padding-left: 2em;
  margin: 0.6em 0;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -0.05em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--color-callout-bg);
  color: var(--color-accent-dark);
  font-size: 0.85em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Numbered steps (elopement checklist) */
.steps {
  list-style: none;
  padding-left: 0;
  margin: 1.8em 0;
  counter-reset: step-counter;
  position: relative;
}

.steps li {
  position: relative;
  padding-left: 3em;
  margin: 0 0 1.3em;
  counter-increment: step-counter;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--color-header);
  color: #ffffff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 1.05em;
  top: 2.1em;
  bottom: -1.3em;
  width: 2px;
  background: var(--color-border);
}

.steps li:last-child::after {
  display: none;
}

/* Editorial flag comments render as HTML comments and are invisible; no styling needed */

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.4em 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  min-width: 560px;
  background: #ffffff;
}

caption {
  text-align: left;
  font-weight: 700;
  color: var(--color-header);
  margin-bottom: 0.6em;
  font-size: 1.05rem;
  font-family: var(--font-display);
  caption-side: top;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 0.7em 0.9em;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--color-header);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
}

tbody tr:hover {
  background: var(--color-callout-bg);
}

/* Timeline infographic */
.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2em 0 1em;
  padding: 0;
  list-style: none;
  counter-reset: step;
  position: relative;
}

.timeline li {
  flex: 1 1 150px;
  background: transparent;
  border: none;
  padding: 0 0.8em;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  position: relative;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.6em;
  position: relative;
  z-index: 1;
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1em;
  left: calc(2.2em + 0.8em);
  right: -0.8em;
  height: 2px;
  background: var(--color-border);
}

.timeline .stage {
  display: block;
  font-weight: 700;
  color: var(--color-header);
  margin-bottom: 0.3em;
}

/* FAQ */
.faq-list {
  margin-top: 1.6em;
}

.faq-item {
  margin: 0 0 1em;
  padding: 1.2em 1.4em;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.08rem;
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
}

.faq-item h3 .icon {
  color: var(--color-accent-dark);
  flex-shrink: 0;
  margin-top: 0.2em;
  width: 0.85em;
  height: 0.85em;
}

.faq-item p {
  margin: 0;
  color: var(--color-text-light);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0.5em;
}

.breadcrumb a {
  color: var(--color-text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Footer */
.site-footer {
  background: var(--color-header);
  color: #b9c8d3;
  padding: 2.6em 1.5em 2em;
  margin-top: 0;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-accent), var(--color-accent-3), var(--color-accent-2)) 1;
}

.site-footer .footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4em;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #ffffff;
}

.site-footer .footer-brand .icon {
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

.site-footer .footer-tagline {
  color: var(--color-text-on-dark);
  max-width: 320px;
  margin-top: 0.6em;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-text-on-dark);
}

.site-footer nav a {
  display: block;
  margin: 0 0 0.6em;
}

.site-footer nav a:last-child {
  margin-bottom: 0;
}

.site-footer .footer-bottom {
  max-width: var(--max-width-wide);
  margin: 2em auto 0;
  padding-top: 1.4em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(185, 200, 211, 0.7);
}

/* Table of contents */
.toc-list {
  list-style: decimal;
  columns: 2;
  column-gap: 2.4em;
  padding-left: 1.4em;
  margin: 1em 0 0;
}

.toc-list li {
  margin: 0.55em 0;
  break-inside: avoid;
  padding-right: 0.5em;
}

.toc-list a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-header);
}

.toc-list a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* Lead figure / in-article images */
.lead-figure,
.article-figure {
  margin: 0 0 1.8em;
}

.lead-figure img,
.article-figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.lead-figure figcaption,
.article-figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.6em;
  font-family: var(--font-ui);
}

.dest-card-img {
  display: block;
  width: calc(100% + 3em);
  height: 170px;
  margin: -1.5em -1.5em 0.9em;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.img-credit {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin: -0.5em 0 0.8em;
  font-family: var(--font-ui);
}

.band.highlight .img-credit {
  color: rgba(255, 255, 255, 0.65);
}

.band.highlight .article-figure figcaption {
  color: rgba(255, 255, 255, 0.7);
}

/* Header destinations dropdown (no JS, uses <details>) */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1.4em;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--color-text-on-dark);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "\25be";
  font-size: 0.7em;
}

.nav-dropdown[open] summary::after {
  content: "\25b4";
}

.nav-dropdown summary:hover {
  color: var(--color-accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6em;
  background: var(--color-header-2);
  min-width: 220px;
  padding: 0.5em 0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5em 1.1em;
  margin: 0;
  color: var(--color-text-on-dark);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Footer columns */
.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 0.7em;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 3em 1.2em 4.5em;
  }

  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav a {
    margin-left: 0;
    margin-right: 1em;
  }

  .nav-dropdown {
    margin-left: 0;
    margin-right: 1em;
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0.4em;
    margin-left: 1em;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    min-width: 0;
  }

  .toc-list {
    columns: 1;
  }

  .dest-grid,
  .idea-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    gap: 1.2em;
  }

  .timeline li:not(:last-child)::after {
    display: none;
  }

  .band {
    padding: 2.4em 1.2em;
  }

  .site-footer .footer-inner {
    flex-direction: column;
  }
}
