/* ============================================================
   CTW Travels — Erbil · ctwtravels-iq.com
   Hand-written design system. No frameworks, no jQuery.
   Palette: navy #0f2454 · teal #2095AE · grey #676977 · tint #f4f5f8
   Type:    Poppins 600/700 (headings) · Barlow 400/500 (body)
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/barlow-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0f2454;
  --teal: #2095ae;
  --teal-dark: #1288a2;
  --body: #676977;
  --tint: #f4f5f8;
  --white: #fff;
  --heading: 'Poppins', sans-serif;
  --text: 'Barlow', sans-serif;
  --pad-section: 120px;
  --container: 1140px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 20px;
}
p { margin: 0 0 20px; }
p b, p strong { font-weight: 500; color: var(--teal); }
a { color: inherit; text-decoration: none; transition: color .3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--pad-section) 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); }
.section--navy p, .section--navy li { color: rgba(255,255,255,.85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.split { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; align-items: start; }
.split--rev { grid-template-columns: 5fr 6fr; }
.center { text-align: center; }

/* Eyebrow + titles — the site's signature */
.eyebrow {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 5px;
}
.section-title {
  font-family: var(--heading);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title span, .section-title em { color: var(--teal); font-style: normal; }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--text);
  font-size: 16px;
  background: var(--teal);
  color: #fff;
  padding: 14px 25px;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s;
}
.btn span { position: relative; z-index: 2; }
.btn::after {
  content: '';
  position: absolute; top: 0; left: 100%;
  width: 0; height: 100%;
  background: var(--teal-dark);
  transition: all .3s ease;
  z-index: 1;
}
.btn:hover::after { width: 100%; left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s;
}
.site-header .bar {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 5px 25px rgba(15,36,84,.25); }
.site-header.scrolled .bar { border-bottom-color: transparent; }
.logo img { width: auto; height: 58px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle svg { display: block; stroke: #fff; width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a {
  display: block;
  color: #fff;
  padding: 8px 12px;
  font-size: 16px;
}
.nav > li > a:hover, .nav > li > a[aria-current="page"] { color: var(--teal); }
.nav .cta a { background: var(--teal); padding: 12px 22px; margin-left: 10px; transition: background .3s; }
.nav .cta a:hover { background: var(--teal-dark); color: #fff; }

/* dropdown */
.has-sub > a .chev { display: inline-block; margin-left: 5px; transition: transform .3s; vertical-align: middle; }
.has-sub > a .chev svg { width: 13px; height: 13px; display: inline-block; }
.sub {
  position: absolute; top: 100%; left: 0;
  min-width: 310px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 16px 50px rgba(0,0,0,.07);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all .3s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub li { border-bottom: 1px solid rgba(15,36,84,.05); }
.sub li:last-child { border-bottom: 0; }
.sub a { color: var(--navy); padding: 9px 10px; font-size: 15.5px; }
.sub a:hover { color: var(--teal); }

/* ---------- Hero (Ken Burns) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--navy);
}
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero .slide.active { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(1.5%, -1.5%); }
}
.hero::after { /* navy overlay ~0.35 */
  content: '';
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: .35;
}
.hero .caption {
  position: relative; z-index: 2;
  text-align: center;
  padding: 140px 20px 60px;
  max-width: 1000px;
}
.hero .caption .eyebrow {
  color: #fff;
  letter-spacing: 6px;
  margin-bottom: 15px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6.5vw, 75px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
}

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
@media (min-width: 992px) { .page-banner { background-attachment: fixed; } }
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--navy);
  opacity: .5;
}
.page-banner .container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 80px; }
.page-banner .eyebrow { color: #fff; }
.page-banner h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- About / split imagery ---------- */
.about-img { position: relative; }
.about-img img { width: 100%; }
.img-badge { position: relative; }
.img-badge .roundel {
  position: absolute;
  right: -70px; bottom: -70px;
  width: 220px; height: 220px;
  pointer-events: none;
  animation: spin 24s linear infinite;
}
.img-badge .roundel text { fill: var(--navy); font-size: 15px; letter-spacing: 4px; font-family: var(--heading); }
@keyframes spin { to { transform: rotate(360deg); } }

.phone-call { display: flex; align-items: center; gap: 15px; margin: 30px 0; }
.phone-call .icon {
  flex: 0 0 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint);
  color: var(--teal);
}
.phone-call .icon svg { width: 24px; height: 24px; }
.phone-call p { margin: 0; font-size: 14px; }
.phone-call a, .phone-call strong { color: var(--navy); font-weight: 500; font-size: 18px; }
.phone-call a:hover { color: var(--teal); }

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  background-size: cover; background-position: center; background-color: var(--navy);
}
@media (min-width: 992px) { .stats { background-attachment: fixed; } }
.stats::after { content: ''; position: absolute; inset: 0; background: var(--navy); opacity: .6; }
.stats .container { position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  text-align: center;
}
.stat .icon {
  width: 100px; height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,.1);
  position: relative;
}
.stat .icon::before {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.stat .icon svg {
  position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px;
  stroke: #fff; z-index: 1;
}
.stat h3 { color: #fff; font-size: 36px; margin-bottom: 8px; font-family: var(--text); font-weight: 500; }
.stat h4 { color: #fff; font-size: 16px; margin: 0; }

/* two-column text band over image */
.band {
  position: relative;
  background-size: cover; background-position: center; background-color: var(--navy);
}
@media (min-width: 992px) { .band { background-attachment: fixed; } }
.band::after { content: ''; position: absolute; inset: 0; background: var(--navy); opacity: .6; }
.band .container { position: relative; z-index: 2; }
.band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.85); text-align: justify; }
.band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* ---------- Feature boxes (Why choose us) ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 60px; }
.feature { margin-bottom: 30px; }
.feature .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal);
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; stroke: #fff; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }

/* ---------- Partners ---------- */
.partners { overflow: hidden; }
.partners-track {
  display: flex; align-items: center; gap: 70px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.partners:hover .partners-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partners-track img {
  width: auto; height: 64px;
  filter: grayscale(1); opacity: .7;
  transition: filter .3s, opacity .3s;
}
.partners-track img:hover { filter: none; opacity: 1; }

/* ---------- FAQ / rich text ---------- */
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--teal);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 4%, 39% 71%);
}
.stars { color: #e4a853; letter-spacing: 3px; font-size: 18px; margin-bottom: 15px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  font-family: var(--text);
  font-size: 15px;
  color: var(--navy);
  background: var(--tint);
  border: 1px solid transparent;
  padding: 13px 15px;
  outline: none;
  transition: border-color .3s;
}
input:focus, textarea:focus { border-color: var(--teal); }
.form-note { font-size: 13px; margin-top: 12px; }
.form-status { display: none; padding: 12px 15px; margin-bottom: 15px; background: #e5f5ec; color: #1c7c4a; }
.form-status.error { background: #fdecea; color: #b3261e; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--teal); }
.footer-contact {
  display: flex; justify-content: space-between; gap: 30px;
  padding: 50px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.footer-contact .item { display: flex; align-items: center; gap: 15px; }
.footer-contact .icon {
  flex: 0 0 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
}
.footer-contact .icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.footer-contact h4 { color: #fff; font-size: 15px; margin: 0 0 2px; }
.footer-contact p { margin: 0; font-size: 15px; }
.footer-mid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 60px 0;
  align-items: start;
}
.footer-mid .flogo img { height: 74px; width: auto; margin-bottom: 20px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  transition: background .3s;
}
.social a:hover { background: var(--teal); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-mid h3 { color: #fff; font-size: 20px; margin-bottom: 18px; }
.footer-mid ul li { margin-bottom: 8px; }
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
  text-align: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom .dev-credit { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer-bottom .dev-credit a { color: rgba(255,255,255,.7); }

/* ---------- Scroll progress ring ---------- */
.progress-ring {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  width: 46px; height: 46px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(15px);
  transition: all .3s;
  background: none; border: 0;
}
.progress-ring.show { opacity: 1; visibility: visible; transform: none; }
.progress-ring svg.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle {
  fill: rgba(15,36,84,.06);
  stroke: var(--teal);
  stroke-width: 3;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
}
.progress-ring .arrow {
  position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  stroke: var(--navy);
}

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --pad-section: 80px; }
  .nav-toggle { display: block; }
  .site-header .bar { min-height: 70px; }
  .logo img { height: 46px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: 0 20px;                 /* no vertical padding while collapsed */
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    box-shadow: 0 20px 40px rgba(15,36,84,.12);
  }
  .nav.open { max-height: 85vh; overflow-y: auto; padding: 15px 20px; }
  .nav a { color: var(--navy); padding: 11px 5px; }
  .nav .cta { margin-top: 10px; }
  /* Fully self-contained so it can't inherit the desktop margin-left/padding
     (which caused the button to shift right and overflow the panel). */
  .nav .cta a {
    display: block; width: 100%; box-sizing: border-box;
    margin: 0; padding: 14px 20px;
    text-align: center; background: var(--teal); color: #fff;
  }
  .sub {
    position: static;
    min-width: 0;
    box-shadow: none;
    padding: 0 0 0 18px;
    max-height: 0; overflow: hidden;
    opacity: 1; visibility: visible; transform: none;
    transition: max-height .35s ease;
  }
  .has-sub.open .sub { max-height: 600px; }
  .split, .split--rev, .band-cols, .footer-mid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 50px 20px; }
  .img-badge .roundel { right: -20px; bottom: -50px; width: 160px; height: 160px; }
  .page-banner { min-height: 48vh; }
}
@media (max-width: 640px) {
  .features, .form-grid { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; align-items: flex-start; }
  .hero h1 { letter-spacing: 1px; }
  .progress-ring { right: 18px; bottom: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide.active { animation: none; }
  .partners-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .img-badge .roundel { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
