/* ═══════════════════════════════════════════════════
   SPAIN THIS TO ME — Brand Stylesheet
   spainthistome.com
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ── Tokens ── */
:root {
  --terra:       #C1440E;
  --terra-light: #F5E6DF;
  --terra-pale:  #FDF6F2;
  --cobalt:      #1B4F8A;
  --cobalt-light:#D6E4F5;
  --cobalt-pale: #EDF4FC;
  --olive:       #5C6B2E;
  --olive-light: #E2EAC8;
  --olive-pale:  #F4F7EC;
  --sand:        #F5ECD7;
  --sand-dark:   #E8D9BA;
  --warm-white:  #FDFAF5;
  --dark:        #1C1510;
  --mid:         #5A4A3A;
  --light:       #A09080;
  --border:      #EAD9C4;

  --font-display: 'Cormorant Garamond', serif;
  --font-heading: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow:    0 2px 16px rgba(28,21,16,0.07);
  --shadow-lg: 0 8px 40px rgba(28,21,16,0.12);

  --max-w: 1100px;
  --max-w-narrow: 720px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--warm-white); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(253,250,245,0.93); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 60px; display: flex; align-items: center;
  padding: 0 2rem;
}
.nav-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--terra); letter-spacing: 0.01em; }
.nav-logo span { color: var(--cobalt); }
.nav-links { display: flex; gap: 0.25rem; align-items: center; }
.nav-link { font-size: 0.8rem; font-weight: 500; color: var(--light); padding: 0.4rem 0.85rem; border-radius: 50px; transition: all 0.2s; }
.nav-link:hover { color: var(--terra); background: var(--terra-light); }
.nav-link.active { color: var(--terra); background: var(--terra-light); }
.nav-link.cta { background: var(--terra); color: white; margin-left: 0.5rem; }
.nav-link.cta:hover { background: var(--dark); }
.nav-hamburger { display: none; font-size: 1.2rem; color: var(--mid); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 3rem 2rem 2rem; margin-top: 5rem; }
.site-footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--sand); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; margin-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sand); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); padding: 0.2rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,0.4); font-size: 0.8rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--sand); }

/* ── HERO (full-width) ── */
.hero-full {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(193,68,14,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(27,79,138,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(92,107,46,0.08) 0%, transparent 50%),
    var(--sand);
}
.hero-full .hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--terra); margin-bottom: 1.2rem; }
.hero-h1 { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 600; line-height: 1.05; color: var(--dark); margin-bottom: 1.2rem; }
.hero-h1 em { font-style: italic; color: var(--terra); }
.hero-sub { font-size: 1.05rem; color: var(--mid); max-width: 540px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 50px; transition: all 0.22s; letter-spacing: 0.01em; }
.btn-primary { background: var(--terra); color: white; }
.btn-primary:hover { background: var(--dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: white; color: var(--dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--terra); color: var(--terra); }
.btn-ghost { color: var(--terra); font-weight: 600; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { font-size: 0.78rem; padding: 0.5rem 1.1rem; }
.btn-cobalt { background: var(--cobalt); color: white; }
.btn-cobalt:hover { background: var(--dark); }
.btn-olive { background: var(--olive); color: white; }
.btn-olive:hover { background: var(--dark); }

/* ── SECTION WRAPPERS ── */
.section { padding: 5rem 2rem; }
.section-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--terra); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; color: var(--dark); line-height: 1.15; margin-bottom: 1rem; }
.section-title em { font-style: italic; color: var(--terra); }
.section-sub { font-size: 1rem; color: var(--mid); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 2.5rem; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

/* ── TRIP CARDS ── */
.trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.trip-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); transition: all 0.25s; display: flex; flex-direction: column; }
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card-img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.trip-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.trip-card-eyebrow { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--light); margin-bottom: 0.4rem; }
.trip-card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.2; }
.trip-card-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.trip-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.trip-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.trip-tag { font-size: 0.65rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 50px; }
.tt-terra { background: var(--terra-light); color: var(--terra); }
.tt-cobalt { background: var(--cobalt-light); color: var(--cobalt); }
.tt-olive { background: var(--olive-light); color: var(--olive); }
.tt-sand { background: var(--sand); color: var(--mid); }

/* ── CONTENT CARDS (guides, tips) ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.guide-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow); transition: all 0.22s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--terra); }
.guide-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.guide-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.guide-card-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.6; }

/* ── ITINERARY CARDS (trip pages) ── */
.day-card { background: white; border-radius: var(--radius); margin-bottom: 0.85rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.day-header { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.2rem; cursor: pointer; user-select: none; }
.day-badge { min-width: 52px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.day-badge .db-month { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.day-badge .db-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.day-badge .db-day { font-size: 0.58rem; }
.badge-terra  { background: var(--terra-light); color: var(--terra); }
.badge-cobalt { background: var(--cobalt-light); color: var(--cobalt); }
.badge-olive  { background: var(--olive-light); color: var(--olive); }
.badge-sand   { background: var(--sand); color: var(--mid); }
.day-info { flex: 1; }
.day-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.1rem; }
.day-sub { font-size: 0.75rem; color: var(--light); }
.chevron { color: var(--light); transition: transform 0.25s; font-size: 0.75rem; flex-shrink: 0; }
.day-card.open .chevron { transform: rotate(180deg); }
.day-body { display: none; padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--border); }
.day-card.open .day-body { display: block; }

/* ── EVENTS ── */
.event { display: flex; gap: 0.85rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.event:last-child { border-bottom: none; }
.ev-time { font-size: 0.7rem; font-weight: 600; color: var(--light); min-width: 50px; padding-top: 3px; flex-shrink: 0; }
.ev-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.dot-terra  { background: var(--terra); }
.dot-cobalt { background: var(--cobalt); }
.dot-olive  { background: var(--olive); }
.dot-gold   { background: #D4A017; }
.dot-teal   { background: #2BC0B4; }
.dot-rose   { background: #C46080; }
.ev-content { flex: 1; }
.ev-title { font-size: 0.88rem; font-weight: 500; color: var(--dark); margin-bottom: 0.18rem; }
.ev-note { font-size: 0.77rem; color: var(--mid); line-height: 1.6; }

/* ── INLINE TAGS ── */
.tag { display: inline-block; font-size: 0.64rem; font-weight: 600; padding: 0.14rem 0.55rem; border-radius: 50px; margin-right: 0.3rem; margin-top: 0.3rem; }
.tag-terra  { background: var(--terra-light); color: var(--terra); }
.tag-cobalt { background: var(--cobalt-light); color: var(--cobalt); }
.tag-olive  { background: var(--olive-light); color: var(--olive); }
.tag-sand   { background: var(--sand); color: var(--mid); }
.tag-gold   { background: #FEF3D0; color: #8A6000; }

/* ── INFO BOXES ── */
.box { border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin-top: 0.45rem; font-size: 0.78rem; line-height: 1.6; }
.box-alert { background: #FFF3E0; border: 1px solid #F5C878; color: #7A4F00; }
.box-info  { background: var(--cobalt-pale); border: 1px solid var(--cobalt-light); color: #1A3F6B; }
.box-terra { background: var(--terra-pale); border: 1px solid var(--terra-light); color: #7A2A0A; }
.box-olive { background: var(--olive-pale); border: 1px solid var(--olive-light); color: #3A4A1A; }
.box-tip   { background: var(--sand); border: 1px solid var(--sand-dark); color: var(--mid); }

/* ── FOOD BLOCKS ── */
.food-block { border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin-top: 0.4rem; }
.food-block.meal { background: #FDF5EE; border: 1px solid #EAD0C0; }
.food-block.dinner { background: var(--olive-pale); border: 1px solid var(--olive-light); }
.food-block.tips { background: var(--cobalt-pale); border: 1px solid var(--cobalt-light); }
.food-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.meal .food-label { color: var(--terra); }
.dinner .food-label { color: var(--olive); }
.tips .food-label { color: var(--cobalt); }
.food-item { font-size: 0.78rem; line-height: 1.55; padding: 0.22rem 0; border-bottom: 1px dotted rgba(0,0,0,0.08); }
.food-item:last-child { border-bottom: none; padding-bottom: 0; }
.food-item strong { font-weight: 600; }
.meal .food-item { color: #5A2A10; } .meal .food-item strong { color: var(--terra); }
.dinner .food-item { color: #2A3A10; } .dinner .food-item strong { color: var(--olive); }
.tips .food-item { color: #1A2A4A; } .tips .food-item strong { color: var(--cobalt); }

/* ── ADDRESS CHIP ── */
.addr-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--sand); border: 1px solid var(--sand-dark); border-radius: var(--radius-xs); padding: 0.35rem 0.75rem; font-size: 0.74rem; color: var(--mid); margin-top: 0.35rem; font-weight: 500; }

/* ── REC CARDS ── */
.rec-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 0.75rem; box-shadow: var(--shadow); }
.rec-card-top { display: flex; gap: 0.85rem; align-items: flex-start; }
.rec-emoji { font-size: 1.6rem; flex-shrink: 0; }
.rec-name { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 0.1rem; }
.rec-meta { font-size: 0.72rem; color: var(--light); margin-bottom: 0.3rem; }
.rec-desc { font-size: 0.78rem; color: var(--mid); line-height: 1.55; }
.our-take { background: var(--terra-pale); border-left: 3px solid var(--terra); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; padding: 0.5rem 0.75rem; margin-top: 0.6rem; font-size: 0.76rem; color: #7A2A0A; line-height: 1.55; }
.our-take::before { content: '💬 Our take: '; font-weight: 700; color: var(--terra); }

/* ── MAPS BTN ── */
.maps-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--cobalt); color: white; border-radius: 50px; padding: 0.35rem 0.85rem; font-size: 0.72rem; font-weight: 600; margin-top: 0.5rem; transition: background 0.2s; }
.maps-btn:hover { background: var(--dark); }

/* ── QUICK REF GRID ── */
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.qr-mini { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; }
.qr-mini .ql { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--light); margin-bottom: 0.18rem; }
.qr-mini .qv { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.qr-mini .qs { font-size: 0.7rem; color: var(--light); margin-top: 2px; }

/* ── HERO (trip page) ── */
.trip-hero { padding: 7rem 2rem 3rem; background: var(--sand); border-bottom: 1px solid var(--sand-dark); }
.trip-hero-inner { max-width: var(--max-w-narrow); margin: 0 auto; }
.trip-hero-eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--terra); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.trip-hero-eyebrow a { color: var(--light); } .trip-hero-eyebrow a:hover { color: var(--terra); }
.trip-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; color: var(--dark); line-height: 1.1; margin-bottom: 0.75rem; }
.trip-hero h1 em { font-style: italic; color: var(--terra); }
.trip-hero-sub { font-size: 1rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.5rem; }
.trip-hero-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.trip-pill { background: white; border: 1px solid var(--border); border-radius: 50px; padding: 0.3rem 0.85rem; font-size: 0.76rem; color: var(--mid); font-weight: 500; }

/* ── IN-PAGE NAV (trip) ── */
.trip-nav { position: sticky; top: 60px; z-index: 100; background: rgba(253,250,245,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 0 2rem; }
.trip-nav-inner { max-width: var(--max-w-narrow); margin: 0 auto; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.trip-nav-inner::-webkit-scrollbar { display: none; }
.trip-nav-tab { font-size: 0.78rem; font-weight: 500; color: var(--light); padding: 0.85rem 1rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.2s; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.trip-nav-tab:hover { color: var(--terra); }
.trip-nav-tab.active { color: var(--terra); border-bottom-color: var(--terra); }

/* ── SECTION DIVIDER ── */
.sec-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.sec-label-sm { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--light); margin: 2rem 0 0.75rem; }

/* ── FILTER PILLS ── */
.filter-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-btn { border: 1.5px solid var(--border); background: white; color: var(--light); border-radius: 50px; padding: 0.32rem 0.85rem; font-size: 0.75rem; font-weight: 600; transition: all 0.2s; }
.filter-btn.active { background: var(--terra); border-color: var(--terra); color: white; }
.filter-btn:hover:not(.active) { border-color: var(--terra); color: var(--terra); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trips-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .hero-full { padding: 7rem 1.25rem 3rem; }
  .trip-hero { padding: 6rem 1.25rem 2.5rem; }
  .trip-nav { padding: 0 1rem; }
}
