/* ============================
   Blue Comfort Travel — styles
   ============================ */

:root {
  --blue-900: #1c3f5f;
  --blue-700: #235d8f;
  --blue-600: #2c74ab;
  --blue-500: #3a86bf;
  --blue-100: #e7f1f8;
  --blue-50:  #f3f8fb;

  --gray-900: #3a3b3d;
  --gray-700: #58595c;
  --gray-500: #7c7d80;
  --gray-200: #e4e6e8;
  --gray-100: #f4f5f6;

  --white: #ffffff;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(28, 63, 95, 0.08);
  --shadow-md: 0 10px 30px rgba(28, 63, 95, 0.14);
  --header-height: 92px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--blue-600); text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }

.btn-light {
  background: var(--white);
  color: var(--blue-700);
}
.btn-light:hover { background: var(--blue-50); }

.btn-nav {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 68px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-900);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--blue-600);
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--blue-700); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero / Carousel ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 480px;
  max-height: 820px;
  overflow: hidden;
  background: var(--blue-900);
}

.carousel {
  position: absolute;
  inset: 0;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.carousel-slide.is-active { opacity: 1; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,42,64,0.35) 0%, rgba(20,42,64,0.25) 40%, rgba(15,32,48,0.78) 100%);
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.35); }
.carousel-arrow--prev { left: 20px; }
.carousel-arrow--next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

.hero-overlay {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 9%;
}

.hero-content {
  max-width: 720px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-100);
  margin-bottom: 14px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-100); }

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.eyebrow-center { text-align: center; }

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.section-sub {
  color: var(--gray-500);
  max-width: 640px;
  font-size: 1.05rem;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 10px 10px 0;
  color: var(--gray-700);
}
.callout p { margin: 0; }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about-media--logo {
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100));
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
}

.about-media--logo img {
  aspect-ratio: auto;
  box-shadow: none;
  border-radius: 0;
  object-fit: contain;
  width: 100%;
  height: auto;
}

/* ---------- Destinations ---------- */
.destination-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.destination-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.destination-card:hover img { transform: scale(1.07); }

.destination-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(15,32,48,0.85), rgba(15,32,48,0));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.destination-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ---------- Services ---------- */
.services-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--blue-500);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue-100);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--gray-900);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-900));
  padding: 64px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.05rem;
}

.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  min-width: 110px;
}

.contact-list a { color: var(--gray-900); font-weight: 500; }
.contact-list a:hover { color: var(--blue-600); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ---------- Contact form ---------- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px;
}

.contact-form-card h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.contact-form-sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.form-row .optional {
  font-weight: 400;
  color: var(--gray-500);
  text-transform: none;
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-900);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.form-submit { align-self: flex-start; border: none; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.is-success { color: #1c7c4c; }
.form-status.is-error { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand p { margin: 4px 0 0; font-weight: 600; color: var(--white); }
.footer-tagline { font-weight: 400 !important; color: rgba(255,255,255,0.7); font-size: 0.92rem; }

.footer-logo {
  height: 56px;
  width: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 4px;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,0.8);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-contact .social-links { margin-top: 18px; }
.footer-contact .social-icon {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.footer-contact .social-icon:hover { background: var(--blue-500); }

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom .footer-legal-links { margin-top: 8px; }
.footer-legal-links a { color: rgba(255,255,255,0.75); }
.footer-legal-links a:hover { color: var(--white); }
.footer-legal-links span { margin: 0 8px; color: rgba(255,255,255,0.4); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
}

.legal-content p,
.legal-content li {
  color: var(--gray-700);
}

.legal-content ul {
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal-content li { margin-bottom: 6px; }

.legal-contact-list { list-style: none; padding: 0; }
.legal-contact-list a { color: var(--blue-600); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 9; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .destination-grid { grid-template-columns: repeat(3, 1fr); }
  .destination-card:nth-child(1) { grid-column: span 3; grid-row: span 1; aspect-ratio: 16/7; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav ul li { border-bottom: 1px solid var(--gray-200); }
  .nav-link { display: block; padding: 14px 4px; }
  .btn-nav { margin-top: 14px; width: 100%; justify-content: center; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { height: 78vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .section { padding: 64px 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .destination-card:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }

  .cta-banner-inner { text-align: center; justify-content: center; flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { grid-column: span 1; }
  .footer-brand, .footer-links, .footer-contact { display: flex; flex-direction: column; align-items: center; }
  .social-links { justify-content: center; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-form-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-slide { transition: none; }
  .btn:hover, .destination-card:hover img { transform: none; }
}
