/* =====================================================================
   Fiestra Travel – stylesheet (mobile first)
   Base styles target phones. Wider screens are added with min-width
   breakpoints: 480px, 640px (tablet), 900px (desktop).
   ===================================================================== */

/* ---------- 1. Theme colours (Midnight Voyage) ---------- */
:root {
  --bg: #0B1F33;
  --surface: #13293F;
  --text: #E6F4FA;
  --muted: #9bb5c7;
  --primary: #22D3EE;
  --primary-text: #06202e;
  --secondary: #2DE0B5;
  --accent: #FB923C;
  --border: #1f3c57;
}

/* ---------- 2. Base (mobile) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 48px 0; }

.section-title { text-align: center; margin: 0 0 10px; font-size: 1.6rem; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 620px; }
.lead { color: var(--muted); margin: 0 0 20px; }

/* Buttons: at least 44px tall for easy tapping on phones */
.btn {
  display: inline-block; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; text-align: center; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 20px;
}
.btn:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

/* ---------- 3. Header ---------- */
header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--text); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-name {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500; font-size: 1.2rem; letter-spacing: .02em; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(90deg, var(--primary), var(--secondary) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tag { display: none; font-size: .58rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-top: 2px; }
.brand-sep { display: none; font-size: 1.5rem; font-weight: 300; color: var(--border); line-height: 1; }
.brand-logo { height: 36px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { display: none; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav-link:hover { color: var(--primary); }
header .btn { min-height: 40px; padding: 9px 14px; font-size: .9rem; }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; text-align: center;
  padding: 56px 0;
  background: linear-gradient(135deg, #0B1F33 0%, #0E7FB8 60%, #2DE0B5 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(6, 25, 40, .55); }
.hero .container { position: relative; }
.hero h1 { font-size: 2rem; margin: 0 0 12px; }
.hero p { font-size: 1rem; max-width: 560px; margin: 0 auto 24px; color: #d7edf5; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }

.tagline { text-transform: uppercase; letter-spacing: .25em; font-size: .72rem; color: var(--secondary); margin-bottom: 12px; }

/* ---------- 5. Destinations carousel ---------- */
.carousel {
  position: relative; height: 260px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff;
  display: flex; flex-direction: column;
}
.caption strong { font-size: 1.05rem; }
.caption span { font-size: .85rem; opacity: .9; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 1rem;
}
.arrow:hover { background: rgba(0, 0, 0, .7); }
.arrow.prev { left: 8px; }
.arrow.next { right: 8px; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
/* Larger tap area around each dot */
.dot-nav { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot-nav::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border-radius: 50%; background: var(--border); transition: background .2s;
}
.dot-nav.on::before { background: var(--primary); }

/* ---------- 6. Services ---------- */
.services { background: var(--surface); }
.service-grid { display: grid; gap: 16px; }
.service {
  background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--accent);
  border-radius: 12px; padding: 20px;
}
.service h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 7. About ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about p { color: var(--muted); }
.about-media { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0E7FB8, #2DE0B5); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.stat strong { display: block; font-size: 1.05rem; color: var(--secondary); }
.stat span { color: var(--muted); font-size: .8rem; }

/* ---------- 8. Enquiry & contact forms ---------- */
.enquire { background: var(--surface); }
.form-card { max-width: 720px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.form-card.flush { max-width: none; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-card .btn:disabled { background: #475569; cursor: default; }
#status, #contact-status { margin-top: 14px; text-align: center; min-height: 1.4em; font-weight: 500; }
.ok { color: var(--secondary); }
.err { color: #f87171; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- 9. About & Contact page ---------- */
.page-hero { padding: 40px 0 16px; text-align: center; }
.page-hero h1 { font-size: 1.8rem; margin: 0 0 8px; }
.page-hero p { margin: 0 auto; color: var(--muted); max-width: 560px; }

.toggle-wrap { text-align: center; }
.toggle {
  display: inline-flex; max-width: 100%; gap: 4px; padding: 4px; margin-top: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.toggle button {
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 500; transition: background .2s, color .2s;
}
.toggle button:hover { color: var(--text); }
.toggle button[aria-selected="true"] { background: var(--primary); color: var(--primary-text); }

.panel { padding: 32px 0 56px; }
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-info h3 { margin: 0 0 12px; color: var(--primary); }
.info-item {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.info-item strong { display: block; margin-bottom: 4px; }
.info-item span, .info-item a { color: var(--muted); font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }
.info-item a:hover { color: var(--primary); }
.wa-btn {
  display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 8px;
  background: #25D366; color: #fff !important; font-weight: 600; font-size: .9rem;
}
.wa-btn:hover { filter: brightness(1.08); }

/* ---------- 10. Footer ---------- */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--muted); font-size: .9rem; }
footer img { height: 44px; margin: 0 auto 14px; }
footer a { color: var(--primary); }
.footer-links { margin: 0 0 10px; }
.footer-links a { margin: 0 8px; }

.social { display: flex; justify-content: center; gap: 12px; margin: 14px 0 16px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; transition: color .2s, border-color .2s, background .2s;
}
.social a:hover { color: var(--primary-text); background: var(--primary); border-color: var(--primary); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.social svg.stroke .dot { fill: currentColor; stroke: none; }

/* =====================================================================
   WIDER SCREENS
   ===================================================================== */

/* Large phones and small tablets */
@media (min-width: 480px) {
  .brand-tag { display: block; }
  .brand-sep { display: inline-block; }
  .brand-name { font-size: 1.4rem; }
  .brand-logo { height: 40px; }
}

/* Tablets */
@media (min-width: 640px) {
  section { padding: 64px 0; }
  .section-title { font-size: 2rem; }

  .nav-link { display: inline; }
  header .btn { font-size: .95rem; }

  .hero { padding: 72px 0; }
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }

  .carousel { height: 360px; }
  .caption { padding: 36px 24px 20px; }
  .caption strong { font-size: 1.3rem; }
  .arrow { width: 46px; height: 46px; font-size: 1.1rem; }
  .arrow.prev { left: 14px; }
  .arrow.next { right: 14px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-row { gap: 24px; }
  .stat strong { font-size: 1.4rem; }
  .stat span { font-size: .9rem; }

  .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .form-card { padding: 32px; }

  .page-hero { padding: 56px 0 24px; }
  .page-hero h1 { font-size: 2.4rem; }
  .panel { padding: 44px 0 72px; }
  .toggle button { padding: 10px 26px; }
  .info-item { padding: 18px 20px; }
}

/* Desktop */
@media (min-width: 900px) {
  .nav { height: 72px; }
  .brand-logo { height: 44px; }
  .brand-name { font-size: 1.7rem; }
  .nav-right { gap: 28px; }
  header .btn { padding: 10px 18px; }

  .hero h1 { font-size: 3rem; }

  .carousel { height: 440px; }
  .caption { padding: 40px 28px 24px; }
  .caption strong { font-size: 1.5rem; }

  .service-grid { grid-template-columns: repeat(4, 1fr); }

  .about { grid-template-columns: 1fr 1fr; gap: 48px; }

  .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .form-card { padding: 36px; }
}

/* =====================================================================
   COMPACT HOME LAYOUT: hero + destinations fit on one screen
   Carousel height scales with the screen, so the whole block stays visible.
   ===================================================================== */

/* Shorter hero */
.hero { padding: 22px 0; min-height: 0; }
.hero h1 { font-size: 1.5rem; margin: 0 0 6px; }
.hero p { font-size: .9rem; margin: 0 auto 14px; max-width: 520px; }
.hero .tagline { font-size: .66rem; margin-bottom: 6px; }
.hero .btn { min-height: 40px; padding: 9px 18px; font-size: .92rem; }
.hero-actions { gap: 10px; }

/* Destinations: tighter spacing */
#destinations { padding: 18px 0 20px; }
#destinations .section-title { font-size: 1.35rem; margin-bottom: 4px; }
#destinations .section-sub { font-size: .9rem; margin-bottom: 14px; }

/* Carousel scales with the screen height */
.carousel { height: clamp(200px, 36vh, 300px); }
.dots { margin-top: 8px; }

@media (min-width: 640px) {
  .hero { padding: 28px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: .95rem; margin-bottom: 16px; }
  .hero-actions { gap: 12px; }
  #destinations { padding: 22px 0 24px; }
  #destinations .section-title { font-size: 1.6rem; }
  .carousel { height: clamp(240px, 42vh, 360px); }
}

@media (min-width: 900px) {
  .hero { padding: 30px 0; }
  .hero h1 { font-size: 2.3rem; }
  .hero .btn { padding: 10px 22px; font-size: 1rem; }
  #destinations { padding: 22px 0 26px; }
  #destinations .section-title { font-size: 1.8rem; }
  .carousel { height: clamp(260px, 48vh, 420px); }
}

/* =====================================================================
   ANCHOR LINKS: keep section headings visible below the sticky header
   ===================================================================== */
:root { --header-h: 68px; }
@media (min-width: 900px) { :root { --header-h: 72px; } }

html { scroll-padding-top: calc(var(--header-h) + 12px); }
section[id], [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Keep multi-word names on one line */
.nowrap { white-space: nowrap; }
