/* =========================================================
   Magaly Travels — shared styles
   Palette: pastel, warm, feminine, not flashy
   ========================================================= */

:root {
  --bg: #FFF9F3;           /* warm ivory */
  --bg-section: #FDE8D6;   /* bold warm peach for alt sections */
  --card-bg: #FFFFFF;
  --primary: #E8622D;      /* bold tangerine — torii-gate orange */
  --primary-dark: #C94E1F; /* tangerine hover */
  --secondary: #1F6F78;    /* deep teal, bold contrast */
  --secondary-dark: #15535A;
  --gold: #E8A93A;         /* bold marigold */
  --berry: #C23B6B;        /* berry accent for tags/highlights */
  --text: #2E2422;         /* near-black warm brown, high contrast */
  --text-muted: #7A6259;   /* warm taupe */
  --border: #F0D2B8;       /* warm tan border */
  --shadow: 0 10px 30px rgba(46, 36, 34, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --highlight: #1C9B5E;       /* vivid green — Brands I Recommend accent, stands apart from warm palette */
  --highlight-dark: #157A49;
  --highlight-tint: #E4F5EC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

em, .italic { font-style: italic; font-weight: 500; color: var(--primary-dark); }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--secondary-dark);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 166, 166, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }

.btn-highlight {
  background: var(--highlight);
  color: #fff;
  box-shadow: 0 8px 20px rgba(28, 155, 94, 0.35);
}
.btn-highlight:hover { background: var(--highlight-dark); transform: translateY(-2px); }

/* ---------- Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.logo em { color: var(--primary); font-style: italic; }

nav.links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
}
nav.links a { color: var(--text-muted); transition: color 0.2s ease; }
nav.links a:hover { color: var(--primary-dark); }
nav.links a.cta {
  background: var(--highlight);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(28, 155, 94, 0.3);
}
nav.links a.cta:hover { background: var(--highlight-dark); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  nav.links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; gap: 16px; border-bottom: 1px solid var(--border); transform: translateY(-140%); transition: transform 0.3s ease; }
  nav.links.open { transform: translateY(0); }
  .nav-toggle { display: block; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
}

/* ---------- Flight-path divider (signature element) ---------- */
.flight-divider {
  display: flex;
  justify-content: center;
  padding: 6px 0 0;
}
.flight-divider svg { width: 100%; max-width: 720px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 { font-size: clamp(38px, 5vw, 60px); }

.hero p.lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.stamp-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
}

.stamp-frame img, .stamp-frame .avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}

.stamp-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 96px;
  height: 96px;
}

/* social pill row */
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.social-pill:hover { transform: translateY(-2px); border-color: var(--primary); }
.social-pill .icon-circle {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-section);
}
.social-pill .icon-circle svg { width: 16px; height: 16px; }
.social-pill .handle-meta { color: var(--text-muted); font-weight: 500; }

/* ---------- pill tags (interests) ---------- */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg-section); color: var(--secondary-dark);
}
.tag:nth-child(2n) { background: #FBE3EC; color: var(--berry); }
.tag:nth-child(3n) { background: #FCEBD3; color: #A8721E; }

/* ---------- Section: alt bg ---------- */
.section-alt { background: var(--bg-section); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 20px;
}
.about-grid h2 { font-size: clamp(30px, 4vw, 42px); }
.about-grid p { color: var(--text-muted); margin-top: 18px; font-size: 16.5px; }

.stat-strip {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.stat-strip .stat b { font-family: 'Fraunces', serif; font-size: 30px; display: block; color: var(--primary-dark); }
.stat-strip .stat span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.map-art { width: 100%; }

/* ---------- Brands ---------- */
.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 16.5px; }

/* ---------- Brands I Recommend — compact list ---------- */
.brand-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--highlight);
}
.brand-row .brand-row-text {
  flex: 1 1 auto;
  min-width: 0;
}
.brand-row .brand-row-text h3 {
  font-size: 16.5px;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  color: var(--text);
}
.brand-row .brand-row-text p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 4px 0 0;
}
.brand-row .brand-row-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--highlight-tint);
  color: var(--highlight-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.brand-row .brand-row-arrow svg { width: 16px; height: 16px; }
.brand-row:hover .brand-row-arrow { background: var(--highlight); color: #fff; transform: translateX(3px); }

.brands-cta { text-align: center; margin-top: 40px; }

/* ---------- Content / videos ---------- */
.content-tabs { display: flex; gap: 12px; margin-bottom: 40px; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.video-card .embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #efe3db;
  cursor: pointer;
}
.video-card iframe { width: 100%; height: 100%; border: none; }
.video-card .embed-wrap .video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card .embed-wrap .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-card .embed-wrap .play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card .embed-wrap:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-card .embed-wrap .video-placeholder-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bg-section), #f3d3b4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.video-card .embed-wrap .video-placeholder-bg span {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--primary-dark);
  font-size: 15px;
}
.video-card .video-caption { padding: 16px 18px 20px; }
.video-card .video-caption p { font-size: 14px; color: var(--text-muted); margin: 6px 0 0; }
.video-card .platform-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--secondary-dark);
}
.video-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.video-stats div { text-align: center; }
.video-stats b { display: block; font-family: 'Fraunces', serif; font-size: 16px; color: var(--primary-dark); }
.video-stats span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 2px; }

.follow-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
  border: 1px solid var(--border);
}
.follow-panel .follow-stats { display: flex; gap: 28px 40px; flex-wrap: wrap; }
.follow-panel .follow-stats b { font-family: 'Fraunces', serif; font-size: 28px; display: block; color: var(--primary-dark); }
.follow-panel .follow-stats span { font-size: 12.5px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.06em; }

/* ---------- Newsletter ---------- */
.newsletter-section { background: var(--bg-section); }
.newsletter-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.newsletter-photo-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
.newsletter-photo-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.newsletter-photo-frame .newsletter-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.newsletter-badge b { font-family: 'Fraunces', serif; font-size: 13px; color: var(--primary-dark); line-height: 1.1; }
.newsletter-badge span { font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }

.newsletter-copy .eyebrow { margin-bottom: 14px; }
.newsletter-copy h2 { font-size: clamp(28px, 3.6vw, 38px); }
.newsletter-copy > p { margin-top: 14px; color: var(--text-muted); font-size: 16px; max-width: 460px; }

.newsletter-copy .formkit-form { max-width: 460px !important; margin-top: 26px !important; }
.newsletter-copy .formkit-fields { gap: 10px; }
.newsletter-copy .formkit-field { flex: 1 1 180px !important; }
.newsletter-copy .formkit-submit { flex: 1 1 100% !important; margin-top: 2px !important; }
.newsletter-copy .formkit-input {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
}
.newsletter-copy .formkit-submit > span {
  padding: 22px 36px !important;
  font-size: 17px !important;
}
.newsletter-fine-print {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
footer {
  background: #FBDCC0;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-muted); margin-top: 14px; font-size: 14.5px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { transform: translateY(-2px); border-color: var(--primary); }

footer h4 { font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer ul a { font-size: 14.5px; font-weight: 600; color: var(--text); }
footer ul a:hover { color: var(--primary-dark); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Simple page (about/contact/etc) ---------- */
.page-hero {
  padding: 70px 0 20px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 18px auto 0; font-size: 17px; }

.simple-card {
  max-width: 640px;
  margin: 30px auto 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow);
}
.simple-card .email-pill {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 26px;
  background: var(--bg-section);
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 16px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
  margin-top: 30px;
}
.about-page-grid p { color: var(--text-muted); margin-top: 16px; }
.about-page-grid h3 { margin-top: 32px; font-size: 20px; font-family: 'Fraunces', serif; }

.legal-body { max-width: 760px; margin: 30px auto 0; color: var(--text-muted); }
.legal-body h2 { color: var(--text); font-size: 22px; margin-top: 36px; margin-bottom: 10px; font-family: 'Fraunces', serif; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.75; }
.legal-body ul { padding-left: 20px; }

.full-brand-grid {
  margin-top: 40px;
  max-width: 720px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .tag-row, .social-row { justify-content: center; }
  .about-grid, .about-page-grid { grid-template-columns: 1fr; }
  .about-grid .map-art { order: -1; max-width: 320px; margin: 0 auto; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-grid { grid-template-columns: 1fr; text-align: center; }
  .newsletter-copy > p { margin-left: auto; margin-right: auto; }
  .newsletter-copy .eyebrow { justify-content: center; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .follow-panel { flex-direction: column; align-items: flex-start; }
  .follow-panel .follow-stats { gap: 18px 24px; width: 100%; }
}
