/* ============================================================
   iTravelSmart — Global Stylesheet
   Mobile-first | BEM naming | Brand CI tokens
   ============================================================ */

/* --- CSS Custom Properties (Brand CI) --- */
:root {
  /* Brand Colors */
  --color-blue: #1A8FC4;
  --color-blue-dark: #14729D;
  --color-blue-light: #E8F4FA;
  --color-green: #7AB648;
  --color-green-dark: #5E9236;
  --color-green-light: #F0F7EA;
  --color-dark: #333333;
  --color-body: #555555;
  --color-muted: #888888;
  --color-border: #E0E0E0;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FB;
  --color-bg-warm: #FAFAFA;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}


/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-bg);
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }
}

p {
  margin-bottom: var(--space-sm);
}

ul, ol {
  list-style: none;
}


/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-blue { color: var(--color-blue); }
.text-green { color: var(--color-green); }
.text-muted { color: var(--color-muted); }


/* --- Section Spacing --- */
.section {
  padding: var(--space-xl) 0;
}
.section--lg {
  padding: var(--space-2xl) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.section--blue h2,
.section--blue h3,
.section--blue p {
  color: var(--color-white);
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}
.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* Top bar */
.header__topbar {
  display: none;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.8125rem;
  padding: 0.375rem 0;
}
@media (min-width: 768px) {
  .header__topbar {
    display: block;
  }
}
.header__topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__topbar a {
  color: var(--color-white);
  opacity: 0.85;
}
.header__topbar a:hover {
  opacity: 1;
}
.header__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

/* Main nav bar */
.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: var(--space-sm);
}

.header__logo img {
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .header__logo img {
    height: 48px;
  }
}

/* Nav */
.nav {
  display: none;
}
@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0;
  }
}
.nav__item {
  position: relative;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-blue);
}
.nav__link--has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 200;
}
.nav__item:hover .nav__dropdown {
  display: block;
}
.nav__dropdown-link {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-dark);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav__dropdown-link:hover {
  background: var(--color-blue-light);
  color: var(--color-blue);
}

/* Header CTA */
.header__cta {
  display: none;
}
@media (min-width: 768px) {
  .header__cta {
    display: inline-flex;
  }
}

/* Mobile toggle */
.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-dark);
}
@media (min-width: 1024px) {
  .header__toggle {
    display: none;
  }
}
.header__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-md);
}
.mobile-nav--open {
  display: block;
}
.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.mobile-nav__close {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-dark);
}
.mobile-nav__link {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav__sublink {
  display: block;
  padding: 0.5rem 0 0.5rem 1.25rem;
  font-size: 1rem;
  color: var(--color-body);
}
.mobile-nav__cta {
  margin-top: var(--space-lg);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  line-height: 1.3;
}
.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn--primary:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-white);
}
.btn--secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn--secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--white {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: transparent;
  color: var(--color-white);
}
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}
.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}
.btn--full {
  width: 100%;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 143, 196, 0.65) 0%,
    rgba(51, 51, 51, 0.7) 100%
  );
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: var(--space-xl) 0;
}
.hero__title {
  font-size: 2.25rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-weight: 800;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.25rem;
  }
}
.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}


/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-lg);
}
.section-header__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}
.section-header__title {
  margin-bottom: 0.75rem;
}
.section-header__text {
  font-size: 1.0625rem;
  color: var(--color-muted);
}


/* ============================================================
   INTRO BLOCK
   ============================================================ */
.intro {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.intro__highlight {
  font-family: var(--font-accent);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--color-blue);
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}


/* ============================================================
   CARD GRID (Services, Destinations, Styles)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 600px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card__body {
  padding: var(--space-md);
}
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}
.card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.card__text {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}
.card__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-green);
}
.card__link:hover {
  color: var(--color-green-dark);
}
.card__link::after {
  content: ' →';
}


/* ============================================================
   TRUST STRIP / SOCIAL PROOF
   ============================================================ */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  text-align: center;
}
@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust-strip__item {
  padding: var(--space-sm);
}
.trust-strip__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.2;
}
.trust-strip__label {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}
.section--blue .trust-strip__number {
  color: var(--color-white);
}
.section--blue .trust-strip__label {
  color: rgba(255,255,255,0.75);
}


/* ============================================================
   DESTINATION GRID
   ============================================================ */
.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.dest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.dest-card:hover .dest-card__img {
  transform: scale(1.06);
}
.dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}
.dest-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial__quote {
  font-family: var(--font-accent);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.testimonial__quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-blue-light);
  font-family: var(--font-accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.testimonial__author {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark);
}
.testimonial__trip {
  font-size: 0.8125rem;
  color: var(--color-muted);
}


/* ============================================================
   CTA BLOCK (End-of-page)
   ============================================================ */
.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  border-radius: var(--radius-xl);
  color: var(--color-white);
}
.cta-block__title {
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
@media (min-width: 768px) {
  .cta-block__title {
    font-size: 2.25rem;
  }
}
.cta-block__text {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 0;
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer__text {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.footer__link {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}
.footer__link:hover {
  color: var(--color-white);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer__contact-icon {
  flex-shrink: 0;
  width: 18px;
  color: var(--color-green);
  margin-top: 2px;
}
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-sm);
}
.footer__badge {
  height: 40px;
  opacity: 0.8;
}

/* Footer bottom */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: rgba(255,255,255,0.5);
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: background var(--transition-fast);
}
.footer__social a:hover {
  background: var(--color-green);
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-white);
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: var(--color-white);
}
.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}


/* ============================================================
   PAGE-LEVEL HERO (Inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-dark);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.page-hero__title {
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .page-hero__title {
    font-size: 2.75rem;
  }
}
.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
}


/* ============================================================
   PLACEHOLDER IMAGE STYLING
   ============================================================ */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-blue-light) 0%, #dce8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}


/* ============================================================
   INNER PAGE ADDITIONS
   ============================================================ */

/* Page hero — placeholder image fill */
.page-hero__bg .placeholder-img {
  min-height: 280px;
  font-size: 1rem;
}

/* FAQ accordion */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary span:last-child { transform: rotate(45deg); }
.faq-item summary span:last-child {
  transition: transform 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
}

/* Contact form */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(26,143,196,0.15);
}
input, select, textarea {
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Testimonials 2-col grid (testimonials page) */
@media (min-width: 768px) {
  .card-grid--2 .testimonial { break-inside: avoid; }
}

/* Prose links in body content */
.container--narrow a:not(.btn) {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.container--narrow a:not(.btn):hover {
  color: var(--color-green);
}

/* Table styling for resources */
table a {
  color: var(--color-blue);
}
table th {
  text-align: left;
}
@media (max-width: 599px) {
  table { font-size: 0.875rem; }
  table th, table td { padding: 0.5rem; }
}

/* Values grid (about page) */
.container--narrow h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Steps (how-it-works) */
@media (max-width: 599px) {
  .container--narrow [style*="display:flex"] {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
