/*
Theme Name: Haggagovic King of Travel
Theme URI: https://haggagovic.com
Author: Haggagovic
Description: A cinematic one-page WordPress theme for Haggagovic, The King of Travel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: haggagovic-king
*/

:root {
  --ink: #05070b;
  --paper: #f4f0e8;
  --sky: #2ed6ff;
  --sun: #ffd447;
  --red: #ff3c38;
  --muted: #a9b1bf;
  --line: rgba(255,255,255,.16);
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: #fff; font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.hg-skip { position: fixed; left: 12px; top: -80px; background: #fff; color: #000; padding: 12px 18px; z-index: 999; }
.hg-skip:focus { top: 12px; }

.hg-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: .3s ease; }
.hg-header.is-scrolled { background: rgba(5,7,11,.88); backdrop-filter: blur(18px); border-color: var(--line); }
.hg-nav { width: var(--wrap); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hg-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; }
.hg-crown { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--sun); border-radius: 50%; color: var(--sun); font-size: 20px; }
.hg-menu { display: flex; align-items: center; gap: 26px; }
.hg-menu a { text-decoration: none; color: #d8dce4; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hg-menu a:hover, .hg-menu a:focus { color: var(--sky); }
.hg-menu .hg-nav-cta { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 12px 18px; color: #fff; }
.hg-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; }

.hg-hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; background:
  radial-gradient(circle at 75% 35%, rgba(46,214,255,.17), transparent 30%),
  linear-gradient(135deg, #06080c 0%, #101722 58%, #071116 100%); }
.hg-hero:before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.hg-hero:after { content: ''; position: absolute; z-index: 1; width: min(96vw, 1560px); aspect-ratio: 2 / 1; left: 50%; top: 53%; transform: translate(-50%, -50%); background: url('assets/images/world-map.png') center / contain no-repeat; opacity: .58; filter: saturate(1.2) drop-shadow(0 30px 55px rgba(0,0,0,.38)); pointer-events: none; }
.hg-orbit { position: absolute; width: 680px; aspect-ratio: 1; border: 1px solid rgba(46,214,255,.25); border-radius: 50%; right: -120px; top: 4%; }
.hg-orbit:before, .hg-orbit:after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(255,212,71,.18); border-radius: 50%; }
.hg-orbit:after { inset: 28%; }
.hg-hero-inner { width: var(--wrap); margin: 0 auto; padding: 150px 0 90px; min-height: 100svh; display: grid; grid-template-columns: 1.08fr .92fr; align-items: end; position: relative; z-index: 2; }
.hg-kicker { color: var(--sun); font-size: .8rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.hg-title { margin: 16px 0 0; font-size: clamp(4rem, 9vw, 8.8rem); line-height: .78; letter-spacing: -.08em; text-transform: uppercase; max-width: 900px; }
.hg-title span { display: block; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hg-intro { max-width: 620px; margin: 34px 0; color: #c8ced8; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.7; }
.hg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hg-button { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 900; background: var(--sun); color: #0c0d0f; transition: transform .25s ease, background .25s ease; }
.hg-button:hover, .hg-button:focus { transform: translateY(-3px); background: #fff; }
.hg-button--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.hg-portrait { position: relative; align-self: end; display: flex; justify-content: flex-end; isolation: isolate; }
.hg-portrait-art { position: relative; z-index: 1; width: fit-content; }
.hg-portrait img { display: block; max-height: 760px; width: auto; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 60px rgba(0,0,0,.65)); }
.hg-portrait-socials { position: absolute; inset: 0; z-index: 3; }
.hg-icon-link { position: absolute; bottom: 1.5%; width: 18%; height: 18%; border-radius: 50%; transition: transform .2s ease, box-shadow .2s ease; }
.hg-icon-link:hover, .hg-icon-link:focus-visible { transform: translateY(-7px) scale(1.04); box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 12px 30px rgba(0,0,0,.35); outline: none; }
.hg-icon-link span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hg-icon-facebook { left: 2.5%; }
.hg-icon-instagram { left: 21%; }
.hg-icon-youtube { left: 40.2%; }
.hg-icon-tiktok { left: 59.2%; }
.hg-icon-x { left: 78.2%; }

.hg-marquee { overflow: hidden; background: var(--sun); color: #090b0e; border-block: 1px solid #000; }
.hg-track { display: flex; width: max-content; animation: hg-marquee 22s linear infinite; }
.hg-track span { padding: 16px 24px; font-size: .8rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hg-track span:after { content: '✦'; margin-left: 48px; }
@keyframes hg-marquee { to { transform: translateX(-50%); } }

.hg-section { padding: 120px 0; }
.hg-wrap { width: var(--wrap); margin: auto; }
.hg-eyebrow { margin: 0 0 18px; color: var(--sky); text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .2em; }
.hg-heading { margin: 0; max-width: 900px; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .94; letter-spacing: -.06em; text-transform: uppercase; }
.hg-lead { color: #b9c0cb; font-size: 1.15rem; line-height: 1.8; max-width: 720px; }

.hg-stats { padding: 0 0 110px; }
.hg-stat-grid { width: var(--wrap); margin: auto; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.hg-stat { padding: 42px 28px; border-right: 1px solid var(--line); }
.hg-stat:last-child { border: 0; }
.hg-number { display: block; color: var(--sun); font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.hg-label { display: block; margin-top: 14px; color: #c6ccd6; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }

.hg-story { background: var(--paper); color: #0b0d10; position: relative; overflow: hidden; }
.hg-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px,8vw,120px); align-items: center; }
.hg-flags { position: relative; }
.hg-flags img { display: block; border-radius: 2px; box-shadow: 28px 28px 0 var(--red); }
.hg-flags:before { content: '187'; position: absolute; z-index: 2; left: -28px; top: -54px; font-size: clamp(5rem,10vw,9rem); color: var(--ink); font-weight: 900; letter-spacing: -.09em; }
.hg-story .hg-eyebrow { color: #ce1d1a; }
.hg-story .hg-lead { color: #343941; }
.hg-quote { margin: 36px 0 0; padding-left: 26px; border-left: 4px solid var(--red); font-size: 1.35rem; line-height: 1.55; font-weight: 700; }

.hg-impact { background: #0d121a; }
.hg-cards { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hg-card { min-height: 330px; padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); transition: transform .3s ease, border-color .3s ease; }
.hg-card:hover { transform: translateY(-8px); border-color: var(--sky); }
.hg-card-no { color: var(--sky); font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.hg-card h3 { margin: 0 0 14px; font-size: 1.75rem; text-transform: uppercase; letter-spacing: -.04em; }
.hg-card p { color: #aeb6c2; line-height: 1.7; margin: 0; }

.hg-map { padding: 0; position: relative; overflow: hidden; background: #fff; color: #000; }
.hg-map img { width: 100%; display: block; opacity: .95; }
.hg-map-copy { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; background: rgba(255,255,255,.12); }
.hg-map-copy h2 { margin: 0; max-width: 900px; font-size: clamp(3rem,8vw,8rem); line-height: .82; letter-spacing: -.08em; text-transform: uppercase; text-shadow: 0 2px 0 #fff; }

.hg-contact { background: var(--red); color: #fff; }
.hg-contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hg-contact .hg-eyebrow { color: #fff; }
.hg-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hg-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 116px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; text-decoration: none; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hg-socials a:hover { background: #fff; color: #000; }
.hg-contact .hg-button { background: #fff; }

.hg-footer { background: #030407; padding: 28px 0; color: #8f98a7; font-size: .85rem; }
.hg-footer-inner { width: var(--wrap); margin: auto; display: flex; justify-content: space-between; gap: 20px; }
.hg-footer a { color: inherit; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.hg-footer a:hover { color: var(--white); }

.hg-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.hg-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hg-toggle { display: block; }
  .hg-menu { display: none; position: absolute; top: 75px; left: 20px; right: 20px; padding: 24px; background: #0b0f16; border: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .hg-menu.is-open { display: flex; }
  .hg-hero-inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .hg-hero-copy { padding-bottom: 20px; }
  .hg-portrait { justify-content: center; max-height: 47vh; }
  .hg-portrait img { max-height: 50vh; }
  .hg-stat-grid { grid-template-columns: repeat(2,1fr); }
  .hg-stat:nth-child(2) { border-right: 0; }
  .hg-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hg-story-grid, .hg-contact-grid { grid-template-columns: 1fr; }
  .hg-flags { margin: 50px 20px 40px; }
  .hg-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .hg-nav { min-height: 72px; }
  .hg-title { font-size: clamp(3.3rem,19vw,5rem); }
  .hg-section { padding: 84px 0; }
  .hg-stat-grid { grid-template-columns: 1fr; }
  .hg-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hg-stat:nth-child(3) { border-bottom: 1px solid var(--line); }
  .hg-map { min-height: 480px; }
  .hg-map img { height: 480px; object-fit: cover; }
  .hg-footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hg-reveal { opacity: 1; transform: none; }
}
