/* =========================================================
   Hmtravel-and-tour production stylesheet
   Theme is controlled by CSS variables so dark mode affects
   every section, including footer, cards, forms, and drawers.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #EFE9E3;
  --surface: #ffffff;
  --surface-2: #F8F4F0;
  --text: #1d1714;
  --muted: #6f625b;
  --cream: #EFE9E3;
  --sand: #D9CFC7;
  --camel: #C9B59C;
  --rose: #F7A5A5;
  --border: rgba(29, 23, 20, .12);
  --shadow: 0 24px 70px rgba(29, 23, 20, .12);
  --footer-bg: #1d1714;
  --footer-text: #f8f4f0;
}

html[data-theme="dark"] {
  --bg: #14100e;
  --bg-soft: #211a17;
  --surface: #1b1512;
  --surface-2: #241d19;
  --text: #fff8f2;
  --muted: #c8bbb2;
  --cream: #2a221e;
  --sand: #3a302b;
  --camel: #d5b993;
  --rose: #F7A5A5;
  --border: rgba(255, 248, 242, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --footer-bg: #0f0b09;
  --footer-text: #fff8f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.surface { background: var(--bg-soft); }
.narrow { max-width: 850px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--rose); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }

.site-header {
  position: fixed; inset: 22px 24px auto 24px; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle, .drawer-close, .slider-btn, .back-top, .lightbox button {
  border: 0; cursor: pointer; color: var(--text); background: var(--surface-2); transition: .25s ease;
}
.theme-toggle { width: 46px; height: 46px; border-radius: 50%; }
.theme-toggle:hover, .menu-toggle:hover, .drawer-close:hover { transform: translateY(-2px); background: var(--sand); }
.menu-toggle { width: 52px; height: 46px; border-radius: 16px; display: grid; place-content: center; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: currentColor; display: block; border-radius: 5px; }

.drawer { position: fixed; inset: 0; z-index: 150; pointer-events: none; background: rgba(0,0,0,.45); opacity: 0; transition: .3s; }
.drawer.open { pointer-events: auto; opacity: 1; }
.drawer-panel {
  margin-left: auto; width: min(420px, 90vw); height: 100%; padding: 28px;
  background: var(--surface); color: var(--text); transform: translateX(100%);
  transition: transform .35s ease; box-shadow: var(--shadow);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer-top img { width: 70px; height: 70px; object-fit: cover; border-radius: 18px; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.drawer-cta { color: var(--rose) !important; }

.hero { min-height: 100vh; display: grid; place-items: center; overflow: hidden; color: #fff; }
.hero-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(29,23,20,.78), rgba(29,23,20,.28)); z-index: 1; }
.hero-content { position: relative; z-index: 3; padding-top: 80px; }
.eyebrow { color: var(--rose); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; margin-bottom: 12px; }
.hero h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .96; max-width: 900px; letter-spacing: -.06em; }
.hero-text { max-width: 710px; margin: 24px 0 34px; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 999px; font-weight: 800; transition: .25s; border: 1px solid var(--border); }
.btn:hover { transform: translateY(-3px); }
.primary { background: var(--rose); color: #1d1714; border-color: transparent; }
.secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); margin-left: 10px; }
.orb { position: absolute; z-index: 2; border-radius: 999px; filter: blur(2px); opacity: .65; }
.orb-one { width: 180px; height: 180px; background: var(--rose); right: 12%; top: 24%; }
.orb-two { width: 120px; height: 120px; background: var(--camel); left: 10%; bottom: 16%; }

.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading h2, .stack h2, .contact-card h2, .form-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 16px; }
.section-heading p, .stack p, .card p, .service p, .about-card p, .contact-card p, .footer-grid p { color: var(--muted); }

.masonry { columns: 3 270px; column-gap: 22px; }
.masonry-card { break-inside: avoid; margin-bottom: 22px; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.masonry-card img { width: 100%; height: 250px; object-fit: cover; }
.masonry-card.tall img { height: 430px; }
.masonry-card.wide img { height: 310px; }
.masonry-card div { padding: 24px; }
.masonry-card span { color: var(--rose); font-weight: 800; font-size: .82rem; }
.masonry-card h3, .card h3, .service h3 { margin: 8px 0; font-size: 1.3rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.about-card, .contact-card, .form-card, .card, .service {
  background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: 28px; box-shadow: var(--shadow);
}
.about-card img { width: 110px; border-radius: 26px; margin-bottom: 22px; }
.feature-grid, .service-grid, .cards.three { display: grid; gap: 22px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.feature-grid div { background: var(--surface); border: 1px solid var(--border); padding: 22px; border-radius: 24px; }
.feature-grid i, .service i { color: var(--rose); font-size: 1.8rem; margin-bottom: 14px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { overflow: hidden; padding: 0; }
.card img { height: 230px; width: 100%; object-fit: cover; }
.card h3, .card p { padding-inline: 24px; }
.card h3 { padding-top: 22px; }
.card p { padding-bottom: 26px; }
.service-grid { grid-template-columns: repeat(5, 1fr); }
.service { padding: 24px; }

.gallery-grid { columns: 3 250px; column-gap: 18px; }
.gallery-item { width: 100%; margin-bottom: 18px; border: 0; border-radius: 24px; overflow: hidden; background: transparent; cursor: zoom-in; }
.gallery-item img { width: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }

.slider { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 18px; }
.slide { display: none; min-height: 240px; padding: 46px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
.slide.active { display: block; animation: fade .35s ease; }
.slide p { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--text); margin-bottom: 18px; }
.slide span { display: block; color: var(--muted); }
.slider-btn { width: 54px; height: 54px; border-radius: 50%; }

.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px 24px; margin-bottom: 14px; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin-top: 12px; color: var(--muted); }

.contact-card iframe { width: 100%; height: 260px; border: 0; border-radius: 24px; margin-top: 24px; filter: grayscale(.2); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); transition: .25s; }
.socials a:hover { transform: translateY(-3px); background: var(--rose); color: #1d1714; }
.form-card label, .contact-form label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 700; }
.form-card input, .form-card select, .form-card textarea,
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; outline: none;
  background: var(--surface-2); color: var(--text);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 20%, transparent); }
.contact-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 14px; font-size: 1.25rem; }
.hp-field { display: none !important; }
.form-message { margin-top: 12px; color: var(--rose); font-weight: 700; }
.form-message.success { color: #2f8a57; }
.form-message.error { color: #c84b4b; }

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 70px 0 26px;
  border-top: 1px solid var(--border);
  transition: background .35s ease, color .35s ease;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer-logo { width: 82px; height: 82px; object-fit: cover; border-radius: 22px; margin-bottom: 18px; }
.site-footer h3 { margin-bottom: 18px; color: var(--footer-text); }
.site-footer a, .site-footer p { display: block; color: color-mix(in srgb, var(--footer-text) 78%, transparent); margin-bottom: 10px; }
.site-footer .socials a { background: color-mix(in srgb, var(--footer-text) 14%, transparent); color: var(--footer-text); }
.copyright { text-align: center; margin-top: 42px; color: color-mix(in srgb, var(--footer-text) 70%, transparent); }

.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); }
.back-top.show { opacity: 1; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.86); display: none; place-items: center; padding: 28px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 84vh; border-radius: 22px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; top: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: #111; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .split, .footer-grid, .cards.three { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .site-header { inset: 12px 12px auto 12px; border-radius: 18px; }
  .brand span { display: none; }
  .hero-actions { display: grid; gap: 12px; max-width: 250px; }
  .secondary { margin-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .slider { grid-template-columns: 1fr; }
  .slider-btn { margin: auto; }
  .slide { padding: 28px; }
}