/* ============================================
   Alison & Sean's Blog
   Warm Modern Minimal Design
   Cleaned & modernised 2026
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f3eee6;
  --color-text: #2c2a26;
  --color-text-light: #5c574f;
  --color-accent: #c47a4a;
  --color-accent-hover: #a8643a;
  --color-border: #e8e0d4;
  --color-white: #ffffff;
  --color-card: #ffffff;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --shadow-soft: 0 4px 20px rgba(44, 42, 38, 0.06);
  --shadow-hover: 0 8px 30px rgba(44, 42, 38, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1140px;
  --transition: 0.25s ease;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.view-all {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.view-all:hover {
  color: var(--color-accent-hover);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Locations dropdown */
.nav-item {
  position: relative;
}

.nav-item > button,
.nav-item > a {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
}

.nav-item > button:hover,
.nav-item > a:hover {
  color: var(--color-text);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 50;
}

/* Show on hover (desktop) or when .open class is present (mobile/click) */
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.open > .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Nested Spain dropdown */
.dropdown .has-sub {
  position: relative;
}

.dropdown .has-sub > button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown .has-sub > button:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.dropdown .sub-dropdown {
  display: none;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.25rem 0;
}

.dropdown .has-sub.open > .sub-dropdown,
.dropdown .has-sub:hover > .sub-dropdown {
  display: block;
}

.dropdown .sub-dropdown a {
  padding-left: 2rem;
  font-size: 0.88rem;
}

/* Mobile menu button */down .has-sub > button {
  width: 100%;
  text-align: left;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown .has-sub > button:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.dropdown .sub-dropdown {
  display: none;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.25rem 0;
}

.dropdown .has-sub.open > .sub-dropdown,
.dropdown .has-sub:hover > .sub-dropdown {
  display: block;
}

.dropdown .sub-dropdown a {
  padding-left: 2rem;
  font-size: 0.88rem;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid #2c2a26;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  z-index: 120;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2c2a26;
  margin: 5px 0;
  border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 0.4rem;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--color-text-light);
  border-color: var(--color-border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  bottom: -1.2rem;
  right: -0.5rem;
  background: var(--color-white);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--color-accent);
  max-width: 160px;
  line-height: 1.3;
  transform: rotate(2deg);
}

/* ---------- Destinations Grid ---------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.dest-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.dest-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.dest-card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dest-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dest-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.dest-card p {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.dest-card .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dest-card .read-more:hover {
  color: var(--color-accent-hover);
}

/* ---------- Highlights Strip ---------- */
.highlights {
  background: var(--color-bg-alt);
  padding: 3.5rem 0;
  overflow: hidden;
}

.highlights .section-header {
  margin-bottom: 1.75rem;
}

.highlights-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.highlights-track::-webkit-scrollbar {
  height: 6px;
}

.highlights-track::-webkit-scrollbar-track {
  background: transparent;
}

.highlights-track::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.highlight-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.highlight-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.highlight-item .caption {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- About Teaser ---------- */
.about-teaser {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.about-teaser h2 {
  margin-bottom: 1rem;
}

.about-teaser h2::after {
  margin-left: auto;
  margin-right: auto;
}

.about-teaser p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: #d4cfc6;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-name {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #a8a29a;
  font-size: 0.95rem;
  max-width: 260px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #a8a29a;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8a847a;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-note {
    right: 1rem;
    bottom: -1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .section {
    padding: 3rem 0;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero-script {
    font-size: 1.8rem;
  }
}

/* Mobile nav open state (controlled by JS) */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem 1.75rem;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.main-nav.is-open .nav-item > button {
  width: 100%;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.main-nav.is-open .dropdown {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  box-shadow: none;
  border: none;
  border-left: 2px solid var(--color-border);
  margin: 0.25rem 0 0.5rem 0.5rem;
  padding: 0.25rem 0;
  min-width: 0;
  display: none; /* hidden until parent .open */
}

.main-nav.is-open .nav-item.open > .dropdown {
  display: block;
}

.main-nav.is-open .dropdown .has-sub > button {
  padding: 0.5rem 1rem;
}

.main-nav.is-open .dropdown .sub-dropdown {
  display: none;
}

.main-nav.is-open .dropdown .has-sub.open > .sub-dropdown {
  display: block;
}

.main-nav.is-open .dropdown a,
.main-nav.is-open .dropdown .sub-dropdown a {
  padding: 0.5rem 1rem;
}


/* Compact destination menu: countries in columns, cities to the side */
.dropdown {
  max-height: min(70vh, 480px);
  overflow: auto;
  min-width: 280px;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.open > .dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 360px;
  max-height: min(70vh, 480px);
  overflow: auto;
}
.dropdown .has-sub { position: relative; }
.dropdown .sub-dropdown {
  position: absolute;
  left: calc(100% - 4px);
  top: 0;
  min-width: 190px;
  max-height: min(60vh, 420px);
  overflow: auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 60;
}
.dropdown .has-sub:hover > .sub-dropdown,
.dropdown .has-sub.open > .sub-dropdown {
  display: block;
}
@media (max-width: 980px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.is-open .dropdown,
  .main-nav.is-open .nav-item.open > .dropdown {
    display: block;
    position: static;
    transform: none;
    min-width: 0;
    max-height: none;
    grid-template-columns: 1fr;
    box-shadow: none;
  }
  .main-nav.is-open .dropdown .sub-dropdown {
    position: static;
    left: auto;
    top: auto;
    max-height: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }
}
