/* ==========================================================================
   Haizam Travel & Tours — simple two-page site
   Layout follows the supplied travel template: white header, a rounded photo
   banner with a white box overlapping its foot, cards sitting on light-blue
   bands and split text-and-photo sections. Colours are
   Haizam's own blues (sampled from the logo); type is Roboto throughout.
   ========================================================================== */

:root {
  --royal: #3351a2;
  --royal-dark: #27408a;
  --navy: #1b2d66;
  --night: #101b40;
  --sky: #3c90ce;
  --sky-light: #8fc4eb;
  --band: #e4f1fb;      /* the light-blue panels behind cards */
  --ink: #1d2230;
  --mute: #646c7b;
  --line: #e3e8ef;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --r: 22px;            /* large radius: banner, panels */
  --r-sm: 14px;         /* card radius */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: #fff; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 16px; background: var(--royal); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { color: var(--royal); font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-bottom: 10px; display: block; }
.h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.lead { color: var(--mute); margin-top: 14px; max-width: 560px; }
.head-center { text-align: center; }
.head-center .lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 8px;
  background: var(--royal); color: #fff;
  font: 500 15px/1 var(--font);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--royal-dark); }
.btn:active { transform: translateY(1px); }
.btn.sky { background: var(--sky); }
.btn.sky:hover { background: #2c74ad; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--royal); }
.btn.white { background: #fff; color: var(--royal); }
.btn.white:hover { background: var(--band); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.stuck { box-shadow: 0 10px 30px -22px rgba(16,27,64,.55); }
.header-row { position: relative; display: flex; align-items: center; gap: 24px; height: 88px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 15.5px; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--royal); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--royal); }
.header-cta { margin-left: 18px; }
.menu-btn { display: none; }

/* ---------- Banner (rounded photo card) ---------- */
.hero { position: relative; padding-top: 6px; }
.hero-card { position: relative; overflow: hidden; min-height: 560px; border-radius: var(--r); background: var(--night); display: flex; align-items: center; }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,27,64,.8) 0%, rgba(16,27,64,.45) 48%, rgba(16,27,64,0) 80%); }
.hero-text { position: relative; z-index: 2; padding: 70px 0 150px 8%; max-width: 680px; color: #fff; }
.hero-text h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.hero-text p { margin-top: 18px; max-width: 470px; color: rgba(255,255,255,.88); font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* White box overlapping the foot of the banner, holding the moving photo strip */
.dest-box { position: relative; z-index: 3; width: min(1040px, 100% - 40px); margin: -110px auto 0; background: #fff; border-radius: var(--r-sm); box-shadow: 0 24px 50px -24px rgba(16,27,64,.35); padding: 26px 0; overflow: hidden; }
.dest-box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 0 30px 18px; }
.dest-box-head h2 { font-size: 19px; font-weight: 500; }
.dest-box-head p { font-size: 13.5px; color: var(--mute); }
.dest-box-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--royal); }
.dest-box-head a svg { width: 16px; height: 16px; }

/* The strip: two copies of the tile row side by side, moved left by exactly
   one copy's width, so the loop restarts with no visible jump. */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 75s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: 14px; padding-right: 14px; margin: 0; padding-left: 0; list-style: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { position: relative; flex: none; width: 168px; height: 124px; border-radius: 12px; overflow: hidden; background: var(--band); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.08); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 13.5px; font-weight: 500; background: linear-gradient(transparent, rgba(16,27,64,.78)); }

/* ---------- Sections ---------- */
.section { padding: 110px 0 0; }

/* Cards on a light-blue band (the reference's "Entire city of choice") */
.band-cards { position: relative; margin-top: 46px; padding-bottom: 40px; }
.band-cards::before { content: ''; position: absolute; left: 0; right: 0; top: 90px; bottom: 0; background: var(--band); border-radius: var(--r); }
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0 3%; }
.card { background: #fff; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 14px 34px -22px rgba(16,27,64,.45); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(16,27,64,.5); }
.card img { width: 100%; height: auto; aspect-ratio: 5/3; object-fit: cover; }
.card-body { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 20px; flex: 1; }
.card-body div { flex: 1; }
.card small { display: block; font-size: 12.5px; color: var(--sky); font-weight: 500; letter-spacing: .02em; }
.card h3 { font-size: 17px; margin-top: 2px; }
.card p { font-size: 14px; color: var(--mute); margin-top: 4px; }
.card .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--royal); }
.card .ico svg { width: 20px; height: 20px; }

/* Split rows: text on one side, picture panel on the other */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.split.flip { grid-template-columns: 1.15fr 1fr; }
.split p.body { color: var(--mute); margin-top: 16px; }
.split .btn { margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; }
.ticks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Photo panel with round thumbnails underneath ("Choose your place") */
.gallery { background: var(--band); border-radius: var(--r); padding: 22px 22px 18px; margin: 0; }
.gallery-main { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16/10; background: var(--night); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.gallery-main figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 30px; background: rgba(255,255,255,.94); font-size: 14px; font-weight: 500; }
.thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.thumbs button { width: 42px; height: 42px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid #fff; cursor: pointer; box-shadow: 0 4px 10px -4px rgba(16,27,64,.4); transition: transform .2s, border-color .2s; background: none; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { border-color: var(--royal); transform: scale(1.12); }
.thumbs-label { text-align: center; font-size: 13px; color: var(--mute); margin-top: 8px; }

/* Collage: a tall picture beside two stacked ones ("Relaxing Pleasure") */
.collage { display: grid; grid-template-columns: .8fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 440px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.collage img:first-child { grid-row: span 2; }

/* Offices */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.office { border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: 0 14px 34px -22px rgba(16,27,64,.45); }
.office img { width: 100%; height: 210px; object-fit: cover; }
.office-body { padding: 24px 26px 26px; }
.office h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.office h3 span { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 30px; background: var(--band); color: var(--royal); letter-spacing: .06em; }
.info { display: flex; gap: 12px; margin-top: 14px; font-size: 15px; color: var(--mute); }
.info svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--sky); }
.info a { color: var(--ink); }
.info a:hover { color: var(--royal); }

/* Closing call-to-action strip */
.cta { position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy); color: #fff; padding: 56px 8%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); }
.cta p { color: rgba(255,255,255,.85); margin-top: 6px; }

/* ---------- Contact page ---------- */
.page-card { position: relative; overflow: hidden; border-radius: var(--r); background: var(--night); color: #fff; padding: 80px 8%; }
.page-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,27,64,.82), rgba(16,27,64,.25)); }
.page-card > div { position: relative; z-index: 2; max-width: 560px; }
.page-card h1 { font-size: clamp(34px, 4.4vw, 50px); font-weight: 700; line-height: 1.1; }
.page-card p { margin-top: 12px; color: rgba(255,255,255,.88); }
.crumbs { font-size: 14px; color: var(--sky-light); margin-bottom: 12px; }
.crumbs a:hover { color: #fff; }

.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.form-card { position: relative; background: #fff; border-radius: var(--r-sm); box-shadow: 0 20px 44px -26px rgba(16,27,64,.45); padding: 34px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 16px/1.4 var(--font); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; }
.form-note.err { color: #c0392b; }
.form-note.ok { color: #1e7d4f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side-card { background: var(--band); border-radius: var(--r); padding: 30px; }
.side-card h3 { font-size: 18px; }
.side-card + .side-card { margin-top: 20px; }
.map { margin-top: 20px; border: 0; width: 100%; height: 240px; border-radius: var(--r-sm); display: block; background: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #fff; margin-top: 110px; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1fr; gap: 40px; }
.footer .logo img { height: 50px; }
.footer p, .footer li, .footer address { color: rgba(255,255,255,.72); font-size: 14.5px; font-style: normal; }
.footer p { margin-top: 18px; max-width: 300px; }
.footer h4 { font-size: 16px; font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--sky-light); }
.footer address span { display: block; }
.footer address a { display: block; color: #fff; margin-top: 6px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.social a:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.social svg { width: 16px; height: 16px; }
.footer .copy { max-width: none; }
.copy { margin-top: 50px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: rgba(255,255,255,.65); }

/* Floating call button */
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: #fff; box-shadow: 0 10px 24px -8px rgba(16,27,64,.6); transition: transform .25s; }
.float-call:hover { transform: scale(1.06); }
.float-call svg { width: 24px; height: 24px; }

/* Fade-up on scroll (only once main.js has run) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .header-row { height: 74px; }
  .logo img { height: 44px; }
  .header-cta { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--royal); cursor: pointer; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-radius: var(--r-sm); box-shadow: 0 20px 40px -20px rgba(16,27,64,.5); overflow: hidden; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .split, .split.flip, .contact { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding-top: 76px; }
  .hero-card { min-height: 560px; align-items: flex-start; border-radius: 18px; }
  .hero-card::before { background: linear-gradient(180deg, rgba(16,27,64,.85) 0%, rgba(16,27,64,.55) 60%, rgba(16,27,64,.25) 100%); }
  .hero-text { padding: 44px 24px 150px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .dest-box { margin-top: -100px; padding: 20px 0; }
  .dest-box-head { padding: 0 20px 14px; }
  .tile { width: 132px; height: 100px; }
  .cards, .offices, form .row { grid-template-columns: 1fr; }
  .band-cards::before { top: 70px; }
  .collage { height: 340px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .page-card { padding: 60px 24px; }
  .cta { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* No auto-scrolling strip: it becomes a row the visitor can swipe. */
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
