/* ── TOKENS ── */
:root {
  --azure:    #1B6B8A;
  --azure-dk: #124D66;
  --sand:     #F5EDD8;
  --sand-dk:  #EAD9BC;
  --sun:      #D4941A;
  --sun-lt:   #F0B830;
  --coral:    #B85035;
  --atlantic: #2B4C6F;
  --ink:      #1A1814;
  --mid:      #4A4440;
  --muted:    #8A8078;
  --white:    #FFFFFF;
  --rule:     #D8CCBA;

  --ff-display: Georgia, 'Times New Roman', serif;
  --ff-body:    -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOP STRIPE ── */
.top-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--azure) 0%, var(--sun-lt) 50%, var(--coral) 100%);
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 36px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.nav-wordmark span { color: var(--sun); }
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--azure); }
.nav-cta {
  background: var(--azure);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--azure-dk); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  width: 26px;
}
.nav-toggle span:nth-child(2) { width: 19px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg); width: 26px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg); width: 26px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; right: 0;
  background: var(--white);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: -6px 8px 20px rgba(0,0,0,0.08);
  flex-direction: column;
  min-width: 220px;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 0.95rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--sand); color: var(--azure); }

/* ── CAROUSEL ── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.carousel-track {
  display: flex;
  transition: transform 0.9s cubic-bezier(0.77,0,0.175,1);
}
.carousel-slide {
  min-width: 100%;
  height: 75vh;
  min-height: 480px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 7s ease;
}
.carousel-slide.active img { transform: scale(1.05); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(20,12,4,0.82) 0%,
    rgba(20,12,4,0.25) 50%,
    transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 5%;
}
.slide-market {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun-lt);
  margin-bottom: 0.4rem;
}
.slide-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  max-width: 600px;
}
.slide-price {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 1.1rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(212,148,26,0.5); }
.carousel-prev { left: 1.2rem; }
.carousel-next { right: 1.2rem; }
.carousel-dots {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--sun-lt);
  transform: scale(1.4);
}

/* ── HERO STATEMENT ── */
.hero-statement {
  background: var(--azure);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 5%;
}
.hero-statement h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-statement h1 em {
  font-style: italic;
  color: var(--sun-lt);
}
.hero-statement p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.75;
  font-weight: 300;
}
.hero-markets {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.hero-market-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 0.2rem;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center;
  padding: 0.85rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-sun {
  background: var(--sun);
  color: var(--white);
}
.btn-sun:hover { background: var(--sun-lt); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--sun-lt); color: var(--sun-lt); }
.btn-azure {
  background: var(--azure);
  color: var(--white);
}
.btn-azure:hover { background: var(--azure-dk); }

/* ── SECTIONS GENERAL ── */
section { padding: 5rem 5%; }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ink);
}
.rule {
  width: 48px; height: 2px;
  background: var(--sun);
  margin-bottom: 2rem;
}
.rule-center { margin-left: auto; margin-right: auto; }
.section-intro {
  font-size: 1rem;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.section-intro.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ── MARKETS ── */
.markets-section { background: var(--white); }
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.market-panel {
  position: relative;
  height: 480px;
  overflow: hidden;
  cursor: pointer;
}
.market-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.market-panel:hover img { transform: scale(1.04); }
.market-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.8rem;
  transition: background 0.4s;
}
.market-panel.florida .market-overlay {
  background: linear-gradient(to top, rgba(27,107,138,0.88) 0%, transparent 60%);
}
.market-panel.spain .market-overlay {
  background: linear-gradient(to top, rgba(184,80,53,0.88) 0%, transparent 60%);
}
.market-panel.portugal .market-overlay {
  background: linear-gradient(to top, rgba(43,76,111,0.88) 0%, transparent 60%);
}
.market-flag {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.market-name {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.market-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.market-from {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sun-lt);
  letter-spacing: 0.08em;
}

/* ── NEW SMOOTH COUNTRY PILL INTERFACES ── */
.country-pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--mid);
  cursor: pointer;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  transition: opacity 0.3s ease-in-out, border-color 0.3s ease-in-out, background 0.3s ease-in-out;
  opacity: 0.6;
}
.country-pill:hover {
  opacity: 0.85;
  border-color: var(--muted);
}
.country-pill.active {
  opacity: 1;
  border-color: var(--azure);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

/* ── COMPONENT TRANSITION SHIFTS ── */
.toggle-pill {
transition: opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
/* ── MOBILE OVERRIDES ── */
@media (max-width: 900px) {
  .markets-grid { grid-template-columns: 1fr; }
  .market-panel { height: 300px; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-toggle { display: flex; }
}

/* =======================================================
   MOBILE NAV + CAROUSEL (single source of truth)
   ======================================================= */
@media (max-width: 900px) {
  nav {
    position: sticky; top: 0;
    height: 68px;
    padding: 0 5%;
    z-index: 1000;
  }
  .nav-logo { max-width: 75%; }
  .nav-logo img { height: 28px; }
  .nav-wordmark { font-size: 1.15rem; white-space: nowrap; }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    position: relative;
    width: 44px; height: 44px;       /* comfortable tap target */
    margin-right: -8px;
    z-index: 1001;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; right: 0;
    width: 100%; max-width: 280px;
    height: calc(100vh - 68px);
    padding: 1rem 0;
    background: #fff;
    border-left: 1px solid var(--rule);
    box-shadow: -4px 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
    transform: translateX(100%);
    visibility: hidden;               /* closed panel can't catch taps */
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease-in-out, visibility 0s;
  }
  .mobile-menu a {
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--ink);
  }

  .carousel-slide { height: 60vh; min-height: 360px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-prev { left: 0.6rem; }
  .carousel-next { right: 0.6rem; }
  .carousel-dot { width: 10px; height: 10px; }   /* easier to tap */
}

.carousel-wrap { touch-action: pan-y; }
.carousel-dots { z-index: 10; }
