/* PuraVida.living — Warm Tropical Editorial Design System */
:root {
  --bg-sand: #FAF7F2;
  --bg-limestone: #F1ECE2;
  --navy: #12313F;
  --emerald: #1E5A46;
  --terracotta: #D96B43;
  --ochre: #E5A93C;
  --slate: #1F2933;
  --muted: #52606D;
  --border: rgba(18, 49, 63, 0.12);
  --shadow-sm: 0 4px 16px rgba(18, 49, 63, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 49, 63, 0.10);
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background-color: var(--bg-sand);
  color: var(--slate);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; transition: color 0.18s ease; }
a:hover { color: var(--terracotta); }

.container { width: min(1220px, 92%); margin-inline: auto; }
.container-narrow { width: min(860px, 92%); margin-inline: auto; }

/* Header — Strictly Clean (NO Top Announcement/Disclosure Bar Above Main Nav) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  flex-wrap: wrap;
}
.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-name span { color: var(--emerald); }
.brand-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--bg-limestone);
  color: var(--emerald);
}
.header-cta {
  text-decoration: none !important;
  background: var(--terracotta);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(217, 107, 67, 0.25);
}
.header-cta:hover { background: #c25932; color: #fff !important; }

/* Hero */
.hero-section {
  position: relative;
  background: linear-gradient(125deg, rgba(18, 49, 63, 0.86) 0%, rgba(30, 90, 70, 0.78) 100%),
              url('/assets/images/dest-coco-papagayo.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  border-bottom: 4px solid var(--ochre);
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  color: #FFF9EB;
}
.hero-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.3vw, 3.55rem);
  line-height: 1.14;
  margin: 0 0 1rem;
  max-width: 820px;
  color: #ffffff;
}
.hero-lead {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  max-width: 720px;
  color: rgba(255, 255, 255, 0.93);
  margin: 0 0 1.85rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(217, 107, 67, 0.35);
}
.btn-primary:hover { background: #c15831; }
.btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: var(--navy) !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.98rem;
}
.btn-secondary:hover { background: var(--bg-limestone); }
.btn-outline-light {
  display: inline-block;
  background: rgba(18, 49, 63, 0.45);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero-stats-bar {
  margin-top: 2.6rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: #FFE4B5;
}
.hero-stat span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.88); }

/* Sections & Cards */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-limestone); padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: var(--navy); color: #ffffff; padding: 4rem 0; }
.section-navy h2, .section-navy h3 { color: #ffffff; }
.section-header { margin-bottom: 2.25rem; max-width: 780px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--terracotta);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  color: var(--navy);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.section-header p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.65rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 215px; object-fit: cover; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--terracotta); }
.card-text { font-size: 0.95rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.card-meta { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: auto; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(241, 236, 226, 0.42); }

/* Article Layout */
.article-hero {
  background: var(--bg-limestone);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumb a { color: var(--emerald); text-decoration: none; }
.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.85rem;
}
.article-subtitle { font-size: 1.12rem; color: var(--muted); margin: 0 0 1.2rem; }
.byline-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--slate);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.direct-answer-box {
  background: #ffffff;
  border-left: 4px solid var(--emerald);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}
.direct-answer-box .da-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}
.ownership-banner {
  background: #FFF9EB;
  border: 1px solid rgba(229, 169, 60, 0.55);
  border-left: 4px solid var(--ochre);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--slate);
}
.article-content { padding: 2.5rem 0 3.5rem; }
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  margin: 2.2rem 0 0.75rem;
  line-height: 1.25;
}
.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--navy);
  margin: 1.6rem 0 0.5rem;
}
.article-content p, .article-content li { font-size: 1.04rem; color: var(--slate); }
.article-content ul, .article-content ol { padding-left: 1.35rem; margin: 0.85rem 0 1.35rem; }
.article-content li { margin-bottom: 0.5rem; }

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 0.9rem;
}
.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.45rem;
}
.faq-item p { margin: 0; font-size: 0.96rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.75rem 0 2.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--terracotta);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3, .site-footer h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--ochre); text-decoration: underline; }
.footer-disclosure {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-disclosure a { color: #FFE4B5; text-decoration: underline; }

@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; gap: 0.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 3rem 0 2.75rem; }
}
