/*
Theme Name: Budgetreizen
Theme URI: https://budgetreizen.com/
Author: budgetreizen.com
Description: A bold, modern and lightweight travel-blog theme for budgetreizen.com.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: budgetreizen
Tags: blog, travel, accessibility-ready, custom-logo, featured-images, translation-ready
*/

:root {
  --br-gold: #dcbc06;
  --br-blue: #005377;
  --br-ink: #10242c;
  --br-muted: #5d6c72;
  --br-bg: #ffffff;
  --br-soft: #f4f7f6;
  --br-line: #dce5e2;
  --br-radius: 1.25rem;
  --br-radius-lg: 2rem;
  --br-shadow: 0 18px 45px rgba(16, 36, 44, .12);
  --br-max: 1180px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--br-bg);
  color: var(--br-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--br-gold); outline-offset: 4px; }

.br-container { width: min(calc(100% - 2rem), var(--br-max)); margin-inline: auto; }
.br-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.br-section--soft { background: var(--br-soft); }
.br-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--br-blue); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem;
}
.br-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03; letter-spacing: -.035em; margin: .5rem 0 1rem;
}
.br-lead { color: var(--br-muted); font-size: 1.08rem; max-width: 42rem; }

.br-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,229,226,.8);
}
.br-header__inner { min-height: 76px; display: flex; align-items: center; gap: 1.5rem; }
.br-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.br-logo__mark { width: 38px; height: 38px; border-radius: 50% 45% 55% 42%; background: var(--br-gold); transform: rotate(-12deg); display: grid; place-items: center; color: var(--br-blue); }
.br-nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.br-nav a { text-decoration: none; padding: .65rem .85rem; border-radius: 999px; font-weight: 750; }
.br-nav a:hover { background: var(--br-soft); color: var(--br-blue); }
.br-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; align-items: center; }
.br-nav li { position: relative; }
.br-nav .sub-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 13rem;
  display: none; padding: .5rem; background: white; box-shadow: var(--br-shadow);
  border: 1px solid var(--br-line); border-radius: 1rem;
}
.br-nav li:hover > .sub-menu, .br-nav li:focus-within > .sub-menu { display: block; }
.br-nav .sub-menu li, .br-nav .sub-menu a { display: block; }
.br-nav .sub-menu a { white-space: nowrap; }
.br-menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; cursor: pointer; }
.br-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--br-ink); margin: 5px 0; }

.br-hero { min-height: min(720px, calc(100svh - 76px)); display: grid; align-items: end; position: relative; overflow: hidden; isolation: isolate; }
.br-hero__media { position: absolute; inset: 0; z-index: -2; }
.br-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.br-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,34,49,.82) 0%, rgba(0,34,49,.46) 45%, rgba(0,34,49,.12) 100%);
}
.br-hero__content { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem); color: white; max-width: 720px; }
.br-hero h1 { font-size: clamp(3.4rem, 8vw, 7rem); line-height: .9; letter-spacing: -.06em; margin: .6rem 0 1.2rem; }
.br-hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 34rem; }
.br-hero__tag { color: white; }

.br-grid { display: grid; gap: 1.4rem; }
.br-grid--3 { grid-template-columns: repeat(3, 1fr); }
.br-grid--2 { grid-template-columns: repeat(2, 1fr); }
.br-card {
  overflow: hidden; background: white; border: 1px solid var(--br-line);
  border-radius: var(--br-radius-lg); box-shadow: 0 8px 25px rgba(16,36,44,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.br-card:hover { transform: translateY(-7px) rotate(-.25deg); box-shadow: var(--br-shadow); }
.br-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.br-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.br-card:hover .br-card__media img { transform: scale(1.045); }
.br-card__body { padding: 1.25rem 1.3rem 1.5rem; }
.br-card h2, .br-card h3 { margin: .35rem 0 .6rem; line-height: 1.1; letter-spacing: -.025em; }
.br-card__meta { color: var(--br-muted); font-size: .86rem; font-weight: 700; }
.br-card a { text-decoration: none; }

.br-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .65rem 1.05rem; border-radius: 999px;
  background: var(--br-blue); color: white; text-decoration: none; font-weight: 850;
  border: 2px solid var(--br-blue); transition: transform .2s ease, background .2s ease;
}
.br-button:hover { transform: translateY(-2px); background: #003e5a; }
.br-button--gold { background: var(--br-gold); color: var(--br-ink); border-color: var(--br-gold); }

.br-section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.br-section-head__link { flex: 0 0 auto; }
.br-route {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; align-items: center;
}
.br-route__visual { border-radius: 35% 65% 48% 52% / 44% 38% 62% 56%; overflow: hidden; box-shadow: var(--br-shadow); }
.br-route__visual img { width: 100%; display: block; aspect-ratio: 1.15; object-fit: cover; }
.br-route__content { padding: 1rem; }

.br-map { background: var(--br-blue); color: white; border-radius: 2.2rem; padding: clamp(1rem, 3vw, 2rem); overflow: hidden; }
.br-map__canvas { position: relative; aspect-ratio: 2 / 1; min-height: 330px; }
.br-map svg { width: 100%; height: 100%; display: block; opacity: .75; }
.br-map__point {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px;
  border-radius: 50%; border: 4px solid white; background: var(--br-gold);
  box-shadow: 0 0 0 8px rgba(220,188,6,.18); text-decoration: none;
}
.br-map__point:hover { transform: translate(-50%, -50%) scale(1.25); }
.br-map__label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: .45rem; background: white; color: var(--br-ink); padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }

.br-article-header { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.br-article-header h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; max-width: 900px; }
.br-featured { margin: 1rem auto 3rem; max-width: var(--br-max); border-radius: 2rem; overflow: hidden; }
.br-featured img { width: 100%; max-height: 650px; object-fit: cover; }
.br-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.br-content > * { margin-block: 1.2em; }
.br-content h2, .br-content h3 { line-height: 1.1; letter-spacing: -.025em; }
.br-content img { border-radius: 1.25rem; }
.br-content blockquote { margin-inline: 0; padding: 1rem 1.5rem; border-left: 6px solid var(--br-gold); background: var(--br-soft); border-radius: 0 1rem 1rem 0; }

.br-pagination { margin-top: 2rem; display: flex; justify-content: center; gap: .5rem; }
.br-pagination a, .br-pagination span { padding: .55rem .8rem; border: 1px solid var(--br-line); border-radius: 999px; text-decoration: none; }

.br-footer { background: var(--br-ink); color: white; padding: 4rem 0 2rem; margin-top: 4rem; }
.br-footer a { color: white; }
.br-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.br-footer ul { list-style: none; padding: 0; margin: 0; }
.br-footer li { margin: .4rem 0; }
.br-footer__bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.5rem; padding-top: 1.2rem; color: rgba(255,255,255,.7); font-size: .9rem; }

.br-form { display: grid; gap: 1rem; }
.br-form label { display: grid; gap: .4rem; font-weight: 750; }
.br-form input, .br-form textarea {
  width: 100%; box-sizing: border-box; padding: .8rem 1rem;
  border: 1px solid var(--br-line); border-radius: 1rem; background: white;
}
.br-form textarea { min-height: 180px; resize: vertical; }
.br-notice { padding: 1rem 1.1rem; border-radius: 1rem; background: var(--br-soft); }

.br-skip { position: absolute; left: -9999px; top: 1rem; }
.br-skip:focus { left: 1rem; z-index: 999; background: white; padding: .7rem 1rem; border-radius: .7rem; }

@media (max-width: 900px) {
  .br-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: white; padding: .75rem; border: 1px solid var(--br-line); border-radius: 1rem; box-shadow: var(--br-shadow); }
  .br-nav.is-open { display: block; }
  .br-nav ul { flex-direction: column; align-items: stretch; }
  .br-nav a { display: block; }
  .br-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 1rem; }
  .br-menu-toggle { display: block; order: -1; }
  .br-header__inner { gap: .75rem; }
  .br-logo { margin-right: auto; }
  .br-grid--3 { grid-template-columns: 1fr; }
  .br-route, .br-grid--2 { grid-template-columns: 1fr; }
  .br-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .br-container { width: min(calc(100% - 1.25rem), var(--br-max)); }
  .br-hero { min-height: 580px; }
  .br-hero::after { background: linear-gradient(180deg, rgba(0,34,49,.25), rgba(0,34,49,.88)); }
  .br-section-head { display: block; }
  .br-section-head__link { margin-top: 1rem; }
  .br-map__canvas { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.br-map__point--continent {
  display: block;
  border-width: 5px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.br-map__point--continent .br-map__label {
  font-size: .82rem;
  padding: .38rem .7rem;
}
.br-map__point--continent:hover,
.br-map__point--continent:focus-visible {
  transform: translate(-50%, -50%) scale(1.22) rotate(3deg);
  box-shadow: 0 0 0 12px rgba(220,188,6,.22);
}
