/* ============================================================
   InfoBrazil Theme — Main Stylesheet v3.0
   THREE COLOR THEMES:
   .ib-theme-green    = Homepage + City guides  (#2d5a3a)
   .ib-theme-gold     = Category hubs           (#FFFBEB)
   .ib-theme-sapphire = Legal pages             (#1a3a80)
   ============================================================ */

/* --- Root Variables --- */
:root {
  --ib-green:      #2d5a3a;
  --ib-green-dark: #1e3d28;
  --ib-green-card: #365e42;
  --ib-green-card2:#3a6447;
  --ib-gold:       #FFFBEB;
  --ib-gold-dark:  #FEF3C7;
  --ib-gold-card:  rgba(255,255,255,0.75);
  --ib-gold-accent:#F59E0B;
  --ib-sapphire:   #1a3a80;
  --ib-sap-dark:   #0d2060;
  --ib-sap-card:   rgba(255,255,255,0.07);
  --ib-yellow:     #FEDD00;
  --ib-nav-green:  #009c3b;
  --ib-white:      #ffffff;
  --ib-radius:     16px;
  --ib-radius-sm:  10px;
  --ib-max:        1100px;
  --ib-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ib-bounce:     0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--ib-yellow);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* Selection styling */
::selection {
  background: rgba(0,156,59,0.35);
  color: #fff;
}

/* ============================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ============================================================ */
.ib-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ib-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered children */
.ib-stagger > .ib-reveal:nth-child(2) { transition-delay: 0.06s; }
.ib-stagger > .ib-reveal:nth-child(3) { transition-delay: 0.12s; }
.ib-stagger > .ib-reveal:nth-child(4) { transition-delay: 0.18s; }
.ib-stagger > .ib-reveal:nth-child(5) { transition-delay: 0.24s; }
.ib-stagger > .ib-reveal:nth-child(6) { transition-delay: 0.30s; }
.ib-stagger > .ib-reveal:nth-child(7) { transition-delay: 0.36s; }
.ib-stagger > .ib-reveal:nth-child(8) { transition-delay: 0.42s; }

/* ============================================================
   THEME SWITCHING — body class drives everything
   ============================================================ */

/* GREEN THEME (default) */
body.ib-theme-green {
  background: var(--ib-green);
  color: #e8f5ec;
}
body.ib-theme-green nav { background: rgba(30,61,40,0.97); border-bottom: 1px solid rgba(255,255,255,0.08); }
body.ib-theme-green .ib-nav a { color: #a8c8b0; }
body.ib-theme-green .ib-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.ib-theme-green .logo-text { color: #fff; }
body.ib-theme-green .ib-logo-mark { background: var(--ib-yellow); color: var(--ib-green-dark); }
body.ib-theme-green .ib-breadcrumb { background: var(--ib-green-dark); color: #a8c8b0; }
body.ib-theme-green .ib-card { background: var(--ib-green-card); border-color: rgba(255,255,255,0.08); color: #e8f5ec; }
body.ib-theme-green .ib-card:hover { background: var(--ib-green-card2); }
body.ib-theme-green .ib-section-title { color: #fff; }
body.ib-theme-green .ib-section-sub { color: #a8c8b0; }
body.ib-theme-green .ib-btn-primary { background: var(--ib-yellow); color: var(--ib-green-dark); }
body.ib-theme-green .ib-btn-outline { background: rgba(255,255,255,0.13); color: #fff; border-color: rgba(255,255,255,0.5); }
body.ib-theme-green .ib-article-text { color: rgba(255,255,255,0.75); }
body.ib-theme-green .ib-article-h { color: #fff; }

/* GOLD THEME — Brazil Carnival gradient (dark amber, warm) */
body.ib-theme-gold {
  background:
    radial-gradient(ellipse at 72% 8%,  rgba(253,210,60,0.45)  0%, transparent 48%),
    radial-gradient(ellipse at 12% 72%, rgba(200,110,15,0.38)  0%, transparent 52%),
    linear-gradient(158deg, #c4820a 0%, #7a4508 28%, #3c1e04 58%, #110800 100%);
  color: #fef6e4;
}
body.ib-theme-gold nav { background: rgba(28,12,0,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom: 1px solid rgba(255,200,60,0.12); }
body.ib-theme-gold .ib-nav a { color: rgba(255,235,180,0.75); }
body.ib-theme-gold .ib-nav a:hover { background: rgba(255,200,60,0.1); color: #fff; }
body.ib-theme-gold .logo-text { color: #fff; }
body.ib-theme-gold .ib-logo-mark { background: var(--ib-nav-green); color: var(--ib-yellow); }
body.ib-theme-gold .ib-breadcrumb { background: rgba(0,0,0,0.28); color: rgba(255,220,140,0.7); }
body.ib-theme-gold .ib-card { background: rgba(255,255,255,0.07); border-color: rgba(255,200,60,0.15); color: #fef6e4; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }
body.ib-theme-gold .ib-card:hover { background: rgba(255,255,255,0.12); box-shadow: 0 10px 32px rgba(0,0,0,0.35); border-color: rgba(255,200,60,0.3); }
body.ib-theme-gold .ib-section-title { color: #fff; }
body.ib-theme-gold .ib-section-sub { color: rgba(255,220,150,0.72); }
body.ib-theme-gold .ib-btn-primary { background: var(--ib-nav-green); color: #fff; }
body.ib-theme-gold .ib-btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
body.ib-theme-gold .ib-article-text { color: rgba(255,240,210,0.78); }
body.ib-theme-gold .ib-article-h { color: #fff; }
body.ib-theme-gold .ib-cat-accent { color: var(--ib-yellow); }
body.ib-theme-gold .ib-meta-tag { background: rgba(255,200,60,0.14); color: #ffe08a; }
body.ib-theme-gold .ib-card-icon-wrap { background: rgba(255,200,60,0.13); color: #FEDD00; }
body.ib-theme-gold .ib-menu-toggle span { background: #fff; }

/* SAPPHIRE THEME */
body.ib-theme-sapphire {
  background: var(--ib-sapphire);
  color: rgba(255,255,255,0.75);
}
body.ib-theme-sapphire nav { background: rgba(13,32,96,0.97); border-bottom: 1px solid rgba(255,255,255,0.08); }
body.ib-theme-sapphire .ib-nav a { color: rgba(255,255,255,0.55); }
body.ib-theme-sapphire .ib-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.ib-theme-sapphire .logo-text { color: #fff; }
body.ib-theme-sapphire .ib-logo-mark { background: var(--ib-nav-green); color: var(--ib-yellow); }
body.ib-theme-sapphire .ib-breadcrumb { background: #152d6e; color: rgba(255,255,255,0.5); }
body.ib-theme-sapphire .ib-card { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }
body.ib-theme-sapphire .ib-card:hover { background: rgba(255,255,255,0.1); }
body.ib-theme-sapphire .ib-section-title { color: #fff; }
body.ib-theme-sapphire .ib-section-sub { color: rgba(255,255,255,0.5); }
body.ib-theme-sapphire .ib-btn-primary { background: var(--ib-yellow); color: var(--ib-sap-dark); }
body.ib-theme-sapphire .ib-article-text { color: rgba(255,255,255,0.75); }
body.ib-theme-sapphire .ib-article-h { color: #fff; }
body.ib-theme-sapphire a { color: var(--ib-yellow); }
body.ib-theme-sapphire .ib-notice-yellow { background: rgba(255,223,0,0.1); border-left: 3px solid var(--ib-yellow); color: rgba(255,255,255,0.82); }

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.ib-container { max-width: var(--ib-max); margin: 0 auto; padding: 0 24px; }
.ib-section   { padding: 48px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.ib-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 16px; }
.ib-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--ib-transition);
}
.ib-logo:hover { opacity: 0.85; }
.ib-logo-mark { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; overflow: hidden; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.logo-text .ib-accent { color: var(--ib-yellow); }
.ib-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ib-nav li a {
  display: inline-block;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--ib-transition);
  position: relative;
}
/* Animated underline on hover */
.ib-nav li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--ib-yellow);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ib-nav li a:hover::after { transform: scaleX(1); }
.ib-nav li a.ib-cta::after { display: none; }
.ib-nav li a.ib-cta {
  color: var(--ib-yellow) !important;
  font-weight: 600;
  background: rgba(254,221,0,0.1);
  border: 1px solid rgba(254,221,0,0.25);
}
.ib-nav li a.ib-cta:hover {
  background: rgba(254,221,0,0.18);
  border-color: rgba(254,221,0,0.4);
}
.ib-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.ib-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}
body.ib-theme-green .ib-menu-toggle span,
body.ib-theme-sapphire .ib-menu-toggle span { background: #fff; }
body.ib-theme-gold .ib-menu-toggle span { background: #1a1a2e; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ib-breadcrumb { padding: 10px 24px; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ib-bc-sep { opacity: 0.4; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, .ib-display { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.ib-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: var(--ib-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all var(--ib-transition);
  border: 1.5px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.ib-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--ib-transition);
}
.ib-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.ib-btn:hover::before { opacity: 1; }
.ib-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.ib-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.ib-hero { position: relative; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; }
.ib-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 8s ease-out;
}
/* Subtle Ken Burns on page load */
.ib-hero-bg.loaded { transform: scale(1.04); }
.ib-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 38%, rgba(8,18,30,0.4) 70%, rgba(8,18,30,0.6) 100%); z-index: 1; }
.ib-hero-tint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009c3b, #FEDD00, #009c3b);
  z-index: 3;
  background-size: 200% 100%;
  animation: shimmerTint 4s ease-in-out infinite;
}
@keyframes shimmerTint {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.ib-hero-content { position: relative; z-index: 2; max-width: var(--ib-max); margin: 0 auto; padding: 0 24px 48px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: flex-end; }
.ib-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.06;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.ib-hero-subtitle { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.75; margin-bottom: 28px; }
.ib-stats-box {
  background: rgba(10,20,35,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 28px;
  color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ib-stats-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.ib-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ib-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ib-yellow);
  line-height: 1;
  transition: transform var(--ib-bounce);
}
.ib-stats-grid > div:hover .ib-stat-num { transform: scale(1.08); }
.ib-stat-lbl { font-size: 11px; opacity: 0.7; margin-top: 4px; line-height: 1.4; }
.ib-stats-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11px; opacity: 0.5; }

/* ============================================================
   CARDS — GENERIC
   ============================================================ */
.ib-card {
  border-radius: var(--ib-radius);
  padding: 20px;
  border: 1px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ib-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.ib-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.ib-card:hover::before { opacity: 1; }
.ib-card-icon { margin-bottom: 14px; }
.ib-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.13);
  color: #e8f5ec;
  transition: transform var(--ib-bounce), background var(--ib-transition);
}
.ib-card:hover .ib-card-icon-wrap { transform: scale(1.1) rotate(-3deg); }
.ib-card-icon-wrap svg { width: 24px; height: 24px; flex-shrink: 0; }
.ib-card-name { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.ib-card-desc { font-size: 12px; line-height: 1.55; opacity: 0.7; }

/* ============================================================
   CITY CARDS
   ============================================================ */
.ib-city-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ib-city-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.ib-city-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.35); }
.ib-city-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.ib-city-card:hover .ib-city-photo { transform: scale(1.08); }
.ib-city-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%); }
.ib-city-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; z-index: 2; transition: transform 0.35s ease; }
.ib-city-card:hover .ib-city-content { transform: translateY(-4px); }
.ib-city-name { font-weight: 700; font-size: 16px; color: #fff; font-family: 'Playfair Display', serif; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.ib-city-subtitle { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 3px; font-style: italic; }
.ib-city-pill {
  display: inline-block;
  background: rgba(0,156,59,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 7px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   ARTICLE LIST (category hubs)
   ============================================================ */
.ib-article-item { border-radius: 12px; padding: 16px 18px; border: 1px solid; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; transition: all var(--ib-transition); }
.ib-article-item:hover { transform: translateX(4px); }

/* ============================================================
   LEAD CAPTURE
   ============================================================ */
.ib-lead-box {
  background: linear-gradient(135deg, #0d1b2a 0%, #0f2233 50%, #0d1b2a 100%);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
/* Decorative glow */
.ib-lead-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,156,59,0.12), transparent 70%);
  pointer-events: none;
}
.ib-lead-eye { color: var(--ib-yellow); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.ib-lead-title { font-family: 'Playfair Display', serif; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.ib-lead-desc { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.ib-form-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.ib-form-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--ib-radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 10px;
  transition: border-color var(--ib-transition), background var(--ib-transition), box-shadow var(--ib-transition);
}
.ib-form-input:focus {
  outline: none;
  border-color: var(--ib-nav-green);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(0,156,59,0.2);
}
.ib-form-input::placeholder { color: rgba(255,255,255,0.4); }
.ib-form-submit {
  display: block;
  width: 100%;
  padding: 13px;
  background: #009c3b;
  color: #fff;
  border: none;
  border-radius: var(--ib-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--ib-transition);
  position: relative;
  overflow: hidden;
}
.ib-form-submit:hover {
  background: #00b344;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,156,59,0.3);
}
.ib-form-submit:active { transform: translateY(0); }

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.ib-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; padding: 44px 0 60px; }
.ib-article-content { font-size: 16px; line-height: 1.82; }
.ib-article-content h2 { margin: 2em 0 0.6em; font-size: 1.5rem; }
.ib-article-content p { margin-bottom: 1.3em; }
.ib-article-sidebar { position: sticky; top: 80px; }

/* ============================================================
   LEGAL PAGE LAYOUT
   ============================================================ */
.ib-legal-layout { display: grid; grid-template-columns: 1fr 240px; gap: 32px; max-width: 940px; margin: 0 auto; padding: 32px 24px 56px; align-items: start; }
.ib-legal-body h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #fff; margin: 32px 0 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.ib-legal-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.ib-legal-body p { font-size: 14px; line-height: 1.82; margin-bottom: 13px; }
.ib-legal-body ul, .ib-legal-body ol { padding-left: 1.5rem; margin-bottom: 13px; }
.ib-legal-body li { font-size: 14px; line-height: 1.75; margin-bottom: 5px; }
.ib-legal-sidebar { position: sticky; top: 80px; }
.ib-legal-toc { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.ib-legal-toc h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.ib-legal-toc ol { padding-left: 1.2rem; margin: 0; }
.ib-legal-toc li { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 7px; }
.ib-legal-toc a { color: rgba(255,255,255,0.55); transition: color var(--ib-transition); }
.ib-legal-toc a:hover { color: var(--ib-yellow); }

/* ============================================================
   NOTICES / INFO BOXES
   ============================================================ */
.ib-notice { border-radius: 12px; padding: 14px 18px; margin: 16px 0; font-size: 13px; line-height: 1.7; border-left: 3px solid; }
.ib-notice-yellow { background: rgba(255,223,0,0.1); border-color: var(--ib-yellow); }
.ib-notice-green  { background: rgba(0,156,59,0.12); border-color: #009c3b; }
.ib-notice-blue   { background: rgba(100,150,255,0.1); border-color: #6496ff; }
.ib-notice-orange { background: rgba(255,140,0,0.1); border-color: #ffa000; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #07142a; color: rgba(255,255,255,0.45); padding: 44px 0 28px; margin-top: 0; }
.ib-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.ib-footer-brand p { font-size: 13px; color: rgba(255,255,255,0.32); margin-top: 12px; line-height: 1.7; }
.ib-footer-col h4 { color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ib-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ib-footer-col ul li { margin-bottom: 6px; }
.ib-footer-col ul li a {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  transition: color var(--ib-transition), padding-left var(--ib-transition);
}
.ib-footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.ib-footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.28); line-height: 1.65; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.ib-footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 18px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.22); flex-wrap: wrap; gap: 8px; }
.ib-footer-bottom a { color: rgba(255,255,255,0.32); transition: color var(--ib-transition); }
.ib-footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.ib-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.ib-pagination a, .ib-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all var(--ib-transition); }
.ib-pagination a { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); }
.ib-pagination a:hover { background: #009c3b; border-color: #009c3b; transform: translateY(-1px); }
.ib-pagination span.current { background: #009c3b; color: #fff; border: 1px solid #009c3b; }

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
.ib-cookie-notice {
  animation: slideUpNotice 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideUpNotice {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.ib-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,156,59,0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}
.ib-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ib-back-to-top:hover {
  background: #00b344;
  transform: translateY(-2px);
}
.ib-back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ib-hero-content { grid-template-columns: 1fr; }
  .ib-article-layout { grid-template-columns: 1fr; }
  .ib-article-sidebar { position: static; }
  .ib-lead-box { grid-template-columns: 1fr; padding: 28px; }
  .ib-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ib-city-grid { grid-template-columns: repeat(2,1fr); }
  .ib-legal-layout { grid-template-columns: 1fr; }
  .ib-legal-sidebar { position: static; }
}
@media (max-width: 600px) {
  .ib-container { padding: 0 16px; }
  .ib-section { padding: 36px 0; }
  .ib-hero-content { padding: 0 16px 40px; }
  .ib-hero { min-height: 480px; }
  .ib-hero-title { font-size: 2rem; }
  .ib-city-grid { grid-template-columns: 1fr; }
  .ib-city-card { height: 180px; }
  .ib-footer-grid { grid-template-columns: 1fr; }
  .ib-menu-toggle { display: flex; }
  .ib-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
  }
  .ib-nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes navSlideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .ib-nav li a { padding: 10px 13px; }
  .ib-nav li a::after { display: none; }
  .ib-theme-green .ib-nav { background: var(--ib-green-dark); }
  .ib-theme-gold .ib-nav { background: rgba(28,12,0,0.94); border-top: 1px solid rgba(255,200,60,0.12); }
  .ib-theme-sapphire .ib-nav { background: #0d2060; }
  .ib-header-inner { flex-wrap: wrap; position: relative; }
  .ib-lead-box { padding: 24px 20px; }
  .ib-lead-title { font-size: 22px; }
  .ib-stats-box { padding: 20px; }
  .ib-stat-num { font-size: 24px; }
  .ib-back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
@media print {
  .site-header, .site-footer, .ib-article-sidebar, .ib-lead-box, .ib-back-to-top { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ib-reveal { opacity: 1; transform: none; }
  .ib-hero-bg.loaded { transform: none; }
}

/* ══════════════════════════════════════════════════
   CITY PAGE — EXTENDED CONTENT SECTIONS
══════════════════════════════════════════════════ */

/* Info boxes */
.ib-info-box { border-radius: 12px; padding: 15px 18px; margin: 18px 0; font-size: 13px; line-height: 1.7; }
.ib-info-box.tip     { background: rgba(0,156,59,0.14);  border-left: 3px solid #009c3b; color: rgba(255,255,255,.78); }
.ib-info-box.warning { background: rgba(255,160,0,0.12); border-left: 3px solid #ffaa00; color: rgba(255,255,255,.78); }
.ib-info-box.info    { background: rgba(50,130,220,0.12);border-left: 3px solid #3a82dc; color: rgba(255,255,255,.78); }
.ib-info-box strong  { color: #fff; }

/* Neighborhood grid */
.ib-hood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ib-hood-card { background: var(--ib-green-card); border-radius: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.07); position: relative; overflow: hidden; transition: transform var(--ib-transition), box-shadow var(--ib-transition); }
.ib-hood-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.ib-hood-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.ib-hood-card.beach::before   { background: linear-gradient(90deg,#29b8d4,#5dd4e8); }
.ib-hood-card.culture::before { background: linear-gradient(90deg,#e8b83a,#f0c848); }
.ib-hood-card.party::before   { background: linear-gradient(90deg,#e8503a,#f07048); }
.ib-hood-card.upscale::before { background: linear-gradient(90deg,#7a5ad4,#9a7ae8); }
.ib-hood-card.nature::before  { background: linear-gradient(90deg,#3a9a3a,#5ac85a); }
.ib-hood-name  { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.ib-hood-type  { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; opacity: .75; }
.ib-hood-desc  { font-size: 12px; color: #a8c8b0; line-height: 1.55; }

/* Cost table */
.ib-cost-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.ib-cost-table th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #a8c8b0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ib-cost-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.ib-cost-table tr:last-child td { border-bottom: none; }
.ib-cost-table tr { transition: background var(--ib-transition); }
.ib-cost-table tr:hover td { background: rgba(255,255,255,0.03); }
.ib-cost-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.ib-cost-low  { background: rgba(0,156,59,0.25);   color: #7fffaa; }
.ib-cost-mid  { background: rgba(255,180,0,0.2);   color: #ffca7a; }
.ib-cost-high { background: rgba(220,60,60,0.2);   color: #ffaaaa; }

/* Season grid */
.ib-season-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 14px 0; }
.ib-season-card { background: var(--ib-green-card); border-radius: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.07); text-align: center; transition: transform var(--ib-transition), box-shadow var(--ib-transition); }
.ib-season-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.ib-season-icon   { font-size: 22px; margin-bottom: 6px; }
.ib-season-name   { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.ib-season-months { font-size: 10px; color: #a8c8b0; margin-bottom: 6px; }
.ib-season-desc   { font-size: 11px; color: #a8c8b0; line-height: 1.5; }

/* Transport grid */
.ib-transport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.ib-transport-card { background: var(--ib-green-card); border-radius: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.07); transition: transform var(--ib-transition); }
.ib-transport-card:hover { transform: translateY(-2px); }
.ib-transport-icon { font-size: 20px; margin-bottom: 6px; }
.ib-transport-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.ib-transport-desc { font-size: 12px; color: #a8c8b0; line-height: 1.5; }

/* City content layout */
.ib-city-layout { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.ib-city-content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 44px 0 60px; align-items: start; }
.ib-city-article h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #fff; margin: 36px 0 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.ib-city-article h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.ib-city-article h3 { font-size: 16px; font-weight: 600; color: #fff; margin: 20px 0 9px; }
.ib-city-article p  { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.82; margin-bottom: 14px; }
.ib-city-article ul { padding-left: 1.4rem; margin-bottom: 14px; }
.ib-city-article ul li { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 5px; }

@media (max-width: 860px) {
  .ib-city-content-grid { grid-template-columns: 1fr; }
  .ib-hood-grid { grid-template-columns: 1fr; }
  .ib-season-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Language Switcher ────────────────────────────────────── */
.ib-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
}
.ib-lang-active {
  color: var(--ib-yellow);
}
.ib-lang-sep {
  color: rgba(255,255,255,.3);
}
.ib-lang-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.ib-lang-link:hover {
  color: #fff;
}
