/*
Theme Name: Explore Cabo Verde
Theme URI: https://example.com/
Author: Your Studio
Author URI: https://example.com/
Description: A warm, editorial one-page travel theme for showcasing the islands of Cabo Verde — hero, destinations grid, experiences, travel tips and a newsletter call to action. Converted from a Horizons site export.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: explore-cabo-verde
Tags: one-column, custom-menu, custom-colors, featured-images, translation-ready
*/

/* -----------------------------------------------------------
   0. Font imports + design tokens
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{
  --background: 0 0% 100%;
  --foreground: 215 100% 12%;
  --card: 0 0% 100%;
  --card-foreground: 215 100% 12%;
  --primary: 215 100% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 215 60% 94%;
  --secondary-foreground: 215 100% 20%;
  --muted: 215 40% 95%;
  --muted-foreground: 215 25% 42%;
  --accent: 44 100% 59%;
  --accent-foreground: 215 100% 15%;
  --border: 215 30% 88%;
  --radius: 1rem;

  --container-max: 90rem;
}

/* -----------------------------------------------------------
   1. Reset + base
----------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  line-height: 1.5;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p,figure{ margin: 0; }
button, input{ font-family: inherit; }
::selection{ background: hsla(44,100%,59%,0.3); }

.font-display{ font-family: "Fraunces", serif; }

.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px){ .container{ padding-inline: 2rem; } }

.container-narrow{
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px){ .container-narrow{ padding-inline: 2rem; } }

.screen-reader-text{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.icon{ display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* -----------------------------------------------------------
   2. Buttons
----------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem;
  padding: 1rem 1.75rem; transition: filter .15s ease, transform .15s ease, background-color .15s ease;
  border: none; cursor: pointer;
}
.btn:active{ transform: scale(.98); }
.btn-accent{
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  box-shadow: 0 10px 25px -8px hsla(44,100%,50%,0.45);
}
.btn-accent:hover{ filter: brightness(1.05); }
.btn-outline{
  border: 1px solid hsla(0,0%,100%,0.4); color: #fff; background: transparent;
}
.btn-outline:hover{ background: hsla(0,0%,100%,0.1); }
.btn-ghost-white{
  background: hsla(0,0%,100%,0.2); border: 1px solid hsla(0,0%,100%,0.4); color: #fff; backdrop-filter: blur(6px);
}
.btn-ghost-white:hover{ background: hsla(0,0%,100%,0.3); }
.btn-sm{ padding: .55rem 1.1rem; font-size: .875rem; }

/* -----------------------------------------------------------
   3. Site header / nav
----------------------------------------------------------- */
.site-header{
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
}
.site-header .container{ margin-top: 1rem; }
.nav-pill{
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid hsla(0,0%,100%,0.2);
  background: hsla(215,100%,20%,0.28); backdrop-filter: blur(10px);
  padding: .75rem 1.25rem; color: #fff;
}
.brand{
  display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em;
}
.brand .icon{ color: hsl(var(--accent)); }

.primary-nav{ display: none; }
.primary-nav ul{ display: flex; align-items: center; gap: 2rem; font-size: .9rem; font-weight: 500; color: hsla(0,0%,100%,0.9); }
.primary-nav a:hover{ color: hsl(var(--accent)); }

.nav-toggle{
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid hsla(0,0%,100%,0.3); color: #fff;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; margin-right: .5rem; cursor: pointer;
}

.mobile-nav{
  display: none;
  margin-top: .5rem;
  border-radius: 1.5rem;
  border: 1px solid hsla(0,0%,100%,0.2);
  background: hsl(215,90%,16%);
  padding: 1rem 1.5rem;
}
.mobile-nav.is-open{ display: block; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a{ display: block; padding: .6rem 0; color: hsla(0,0%,100%,0.9); font-weight: 500; }
.mobile-nav a:hover{ color: hsl(var(--accent)); }

@media (min-width: 768px){
  .primary-nav{ display: block; }
  .nav-toggle{ display: none; }
  .mobile-nav{ display: none !important; }
}

/* -----------------------------------------------------------
   4. Hero
----------------------------------------------------------- */
.hero{
  position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(215,100%,20%,0.92), hsla(215,100%,20%,0.42) 55%, hsla(215,100%,20%,0.32));
}
.hero-inner{
  position: relative; z-index: 1; width: 100%; padding-block: 5rem 5.5rem; color: #fff;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  background: hsla(0,0%,100%,0.15); backdrop-filter: blur(6px);
  padding: .4rem 1rem; font-size: .875rem; font-weight: 500; color: hsla(0,0%,100%,0.9);
}
.hero-eyebrow .icon{ color: hsl(var(--accent)); }
.hero h1{
  margin-top: 1.5rem; font-weight: 900; line-height: .97; letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 8vw, 6rem);
  max-width: 48rem;
}
.hero h1 .accent{ color: hsl(var(--accent)); }
.hero p.lede{
  margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: hsla(0,0%,100%,0.85); line-height: 1.6;
}
.hero-actions{ margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-actions .btn-accent .icon{ transition: transform .15s ease; }
.hero-actions .btn-accent:hover .icon{ transform: translateX(3px); }

/* -----------------------------------------------------------
   5. Marquee strip
----------------------------------------------------------- */
.marquee{
  background: hsl(var(--primary)); color: #fff; padding-block: 1rem; overflow: hidden;
}
.marquee-track{ display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-group{ display: flex; align-items: center; gap: 2rem; padding-inline-end: 2rem; font-family: "Fraunces", serif; font-size: 1.125rem; font-weight: 500; white-space: nowrap; }
.marquee-group span{ display: flex; align-items: center; gap: 2rem; }
.marquee-group .icon{ color: hsl(var(--accent)); }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* -----------------------------------------------------------
   6. Section headings
----------------------------------------------------------- */
section{ padding-block: 6rem; }
@media (min-width: 640px){ section{ padding-block: 8rem; } }
.eyebrow{ font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--accent)); }
.section-heading{ margin-top: .75rem; font-family: "Fraunces", serif; font-weight: 700; line-height: 1.1; font-size: clamp(2rem, 4vw, 3rem); }
.section-lede{ margin-top: 1rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.section-lede.on-dark{ color: hsla(0,0%,100%,0.7); }
.max-w-copy{ max-width: 42rem; }

/* -----------------------------------------------------------
   7. Who we are
----------------------------------------------------------- */
.who-we-are .grid{
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px){ .who-we-are .grid{ grid-template-columns: 0.9fr 1.1fr; } }
.who-we-are .copy{ display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }

/* -----------------------------------------------------------
   8. Island cards
----------------------------------------------------------- */
.islands-grid{ margin-top: 3.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px){ .islands-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .islands-grid{ grid-template-columns: repeat(3,1fr); } }

.island-card{
  position: relative; overflow: hidden; border-radius: 1.5rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 2px hsla(215,60%,20%,0.06);
  transition: box-shadow .2s ease;
}
.island-card:hover{ box-shadow: 0 20px 40px -20px hsla(215,60%,20%,0.35); }
.island-media{ position: relative; height: 16rem; overflow: hidden; }
.island-media img{ height: 100%; width: 100%; object-fit: cover; transition: transform .7s ease; }
.island-card:hover .island-media img{ transform: scale(1.06); }
.island-media::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(215,100%,20%,0.7), transparent 60%);
}
.island-tag{
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  background: hsla(44,100%,59%,0.95); color: hsl(var(--accent-foreground));
  border-radius: 999px; padding: .3rem .8rem; font-size: .75rem; font-weight: 600;
}
.island-name{
  position: absolute; bottom: 1rem; left: 1.25rem; z-index: 1;
  font-family: "Fraunces", serif; font-size: 1.75rem; font-weight: 700; color: #fff;
}
.island-blurb{ padding: 1.5rem; font-size: .95rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* -----------------------------------------------------------
   9. Experiences (dark section)
----------------------------------------------------------- */
.experiences{ background: hsl(var(--primary)); color: #fff; }
.experiences .grid{ display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px){ .experiences .grid{ grid-template-columns: repeat(2,1fr); } }
.experience-list{ margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px){ .experience-list{ grid-template-columns: repeat(2,1fr); } }
.experience-card{
  border-radius: 1rem; border: 1px solid hsla(0,0%,100%,0.15); background: hsla(0,0%,100%,0.05);
  padding: 1.5rem; transition: background-color .2s ease;
}
.experience-card:hover{ background: hsla(0,0%,100%,0.1); }
.experience-card .icon-badge{
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; width: 3rem; border-radius: .85rem;
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
}
.experience-card h3{ margin-top: 1rem; font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 600; }
.experience-card p{ margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: hsla(0,0%,100%,0.7); }

.experience-media{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.experience-media img{ border-radius: 1.5rem; height: 100%; width: 100%; object-fit: cover; }
.experience-media img:first-child{ animation: floaty 6s ease-in-out infinite; }
.experience-media img:last-child{ margin-top: 2.5rem; animation: floaty 6s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes floaty{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@media (prefers-reduced-motion: reduce){ .experience-media img{ animation: none; } }

/* -----------------------------------------------------------
   10. Travel tips
----------------------------------------------------------- */
.tips-grid{
  margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1px;
  overflow: hidden; border-radius: 1.75rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--border));
}
@media (min-width: 640px){ .tips-grid{ grid-template-columns: repeat(2,1fr); } }
.tip-card{ background: hsl(var(--card)); padding: 2rem; }
.tip-head{ display: flex; align-items: center; gap: 1rem; }
.tip-head .icon-badge{
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; width: 3rem; border-radius: .85rem;
  background: hsl(var(--secondary)); color: hsl(var(--primary));
}
.tip-head h3{ font-family: "Fraunces", serif; font-size: 1.4rem; font-weight: 600; }
.tip-card p{ margin-top: 1rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* -----------------------------------------------------------
   11. CTA / newsletter
----------------------------------------------------------- */
.cta{ position: relative; overflow: hidden; padding-block: 0; }
.cta-bg{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(215,100%,20%,0.95), hsla(215,100%,20%,0.85) 55%, hsla(44,100%,59%,0.7));
}
.cta-inner{
  position: relative; z-index: 1; max-width: 48rem; margin-inline: auto;
  padding-block: 6rem; text-align: center; color: #fff;
}
@media (min-width: 640px){ .cta-inner{ padding-block: 8rem; } }
.cta-inner h2{ font-family: "Fraunces", serif; font-weight: 900; line-height: 1.05; font-size: clamp(2.25rem, 6vw, 3.75rem); }
.cta-inner p{ margin-top: 1.25rem; font-size: 1.125rem; color: hsla(0,0%,100%,0.85); }
.cta-actions{ margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px){ .cta-actions{ flex-direction: row; } }

.newsletter-form{
  margin-top: 2rem; margin-inline: auto; max-width: 28rem;
  display: flex; flex-direction: column; gap: .75rem;
}
@media (min-width: 640px){ .newsletter-form{ flex-direction: row; } }
.newsletter-field{ position: relative; flex: 1; }
.newsletter-field .icon{ position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: hsla(215,100%,20%,0.5); }
.newsletter-field input{
  width: 100%; border-radius: 999px; border: none; background: #fff;
  padding: 1rem 1.25rem 1rem 3rem; color: hsl(var(--primary)); outline: none;
}
.newsletter-field input::placeholder{ color: hsla(215,100%,20%,0.4); }
.newsletter-field input:focus{ box-shadow: 0 0 0 3px hsl(var(--accent)); }
.newsletter-success{
  margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; background: hsla(0,0%,100%,0.15); padding: .75rem 1.5rem; color: #fff; backdrop-filter: blur(6px);
}
.newsletter-success .icon{ color: hsl(var(--accent)); }
.newsletter-error{ margin-top: 1rem; color: #ffd9d9; font-size: .9rem; }
.is-hidden{ display: none !important; }

/* -----------------------------------------------------------
   12. Footer
----------------------------------------------------------- */
.site-footer{ background: hsl(var(--primary)); color: hsla(0,0%,100%,0.8); }
.footer-inner{
  padding-block: 3rem; display: flex; flex-direction: column; gap: 1.5rem;
  align-items: center; justify-content: space-between; text-align: center;
}
@media (min-width: 768px){ .footer-inner{ flex-direction: row; text-align: left; } }
.footer-brand{ display: flex; align-items: center; gap: .5rem; font-family: "Fraunces", serif; font-size: 1.125rem; font-weight: 600; color: #fff; }
.footer-brand .icon{ color: hsl(var(--accent)); }
.footer-nav ul{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; font-size: .9rem; }
.footer-nav a:hover{ color: hsl(var(--accent)); }
.footer-copy{ font-size: .9rem; }
