/* ═══════════════════════════════════════════════════════════
   SmartHotels.bg — Shared Stylesheet
   Colors: #76C442 (green), #0a0a0a (black)
   Font: Inter
═══════════════════════════════════════════════════════════ */

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

:root {
  --green:      #76C442;
  --green-dark: #5a9e2f;
  --green-glow: rgba(118,196,66,.18);
  --black:      #0a0a0a;
  --surface:    #111111;
  --surface2:   #181818;
  --border:     rgba(118,196,66,.15);
  --text:       #d8d8d8;
  --text-muted: #7a7a7a;
  --white:      #ffffff;
  --nav-h:      72px;
  --radius:     12px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }

/* ── Utility ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-alt { background: var(--surface); }

.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title span { color: var(--green); }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(118,196,66,.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ── Scroll animations ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity:0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity:0; transform: translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }
.delay-6 { transition-delay: .6s; }

/* ════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 38px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-glow); }
.nav-cta { margin-left: 12px; }

/* Mega-menu trigger */
.nav-has-mega { position: static; }
.nav-has-mega > a { display: flex; align-items: center; gap: 5px; }
.nav-has-mega > a .chevron { width: 14px; height: 14px; transition: transform var(--transition); flex-shrink: 0; }
.nav-has-mega:hover > a .chevron,
.nav-has-mega.open  > a .chevron { transform: rotate(180deg); }

/* Mega-menu panel */
.mega-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(12,12,12,.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  padding: 36px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.nav-has-mega:hover .mega-menu,
.mega-menu:hover,
.nav-has-mega.open .mega-menu { opacity: 1; visibility: visible; transform: none; }

.mega-inner {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mega-featured {
  background: linear-gradient(135deg, rgba(118,196,66,.12), rgba(118,196,66,.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mega-featured:hover { border-color: var(--green); box-shadow: 0 0 32px rgba(118,196,66,.12); }
.mega-featured-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.mega-featured-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.mega-featured-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.7; flex-grow: 1; }
.mega-featured-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .82rem; font-weight: 700; color: var(--green); }
.mega-featured-cta svg { transition: transform var(--transition); }
.mega-featured:hover .mega-featured-cta svg { transform: translateX(4px); }

.mega-col { display: flex; flex-direction: column; gap: 28px; }
.mega-cat-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
a.mega-cat-header:hover .mega-cat-title { color: var(--green); }
a.mega-cat-header:hover .mega-cat-icon { border-color: var(--green); }
.mega-cat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--green-glow); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.mega-cat-title { font-size: .85rem; font-weight: 700; color: var(--white); }
.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text-muted); font-size: .83rem;
  transition: background var(--transition), color var(--transition);
}
.mega-link::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: .4; flex-shrink: 0;
  transition: opacity var(--transition);
}
.mega-link:hover { background: var(--green-glow); color: var(--white); }
.mega-link:hover::before { opacity: 1; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px 11px; background: rgba(118,196,66,.15); border: 1px solid rgba(118,196,66,.35); border-radius: 8px; transition: background var(--transition); flex-shrink: 0; }
.hamburger:hover { background: rgba(118,196,66,.28); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--green); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px 24px 40px;
  z-index: 999;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu > ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu > ul > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: var(--text); text-decoration: none;
  font-size: 1rem; font-weight: 500; border-radius: 8px; transition: var(--transition);
}
.mobile-menu > ul > li > a:hover { color: var(--green); background: var(--green-glow); }
.mobile-accordion-toggle { cursor: pointer; }
.mobile-accordion-toggle .m-chevron { width: 16px; height: 16px; transition: transform var(--transition); color: var(--text-muted); }
.mobile-accordion-toggle.open .m-chevron { transform: rotate(180deg); }
.mobile-accordion-toggle.open { color: var(--green); background: var(--green-glow); }
.mobile-accordion-body { display: none; padding: 8px 0 8px 16px; }
.mobile-accordion-body.open { display: block; }
.mobile-cat-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding: 10px 12px 6px; }
.mobile-sub-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; color: var(--text-muted); text-decoration: none;
  font-size: .88rem; border-radius: 6px; transition: var(--transition);
}
.mobile-sub-link::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green); opacity: .5; flex-shrink: 0; }
.mobile-sub-link:hover { color: var(--white); background: var(--green-glow); }
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
════════════════════════════════════════════════════════ */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
}
.page-hero .hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(118,196,66,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(118,196,66,.05) 0%, transparent 60%);
}
.page-hero .hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(118,196,66,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,196,66,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 800px; }
.page-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; opacity: 0; animation: fadeUp .8s .2s forwards; }
.page-hero-eyebrow-line { width: 40px; height: 2px; background: var(--green); border-radius: 2px; }
.page-hero-eyebrow-text { font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--green); }
.page-hero-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; color: var(--white); margin-bottom: 20px; opacity: 0; animation: fadeUp .8s .35s forwards; }
.page-hero-title .green { color: var(--green); }
.page-hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; opacity: 0; animation: fadeUp .8s .5s forwards; }
.page-hero-nav { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: fadeUp .8s .65s forwards; }
.page-hero-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: .83rem; font-weight: 500;
  transition: var(--transition);
}
.page-hero-nav a:hover { border-color: var(--green); color: var(--green); background: var(--green-glow); }
.page-hero-nav a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); opacity: .5; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); text-decoration: none; font-size: .85rem; font-weight: 500;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp .8s .1s forwards;
  transition: color var(--transition);
}
.back-link:hover { color: var(--green); }
.back-link svg { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   SUB-SECTION LAYOUT
════════════════════════════════════════════════════════ */
.sub-section { padding: 90px 0; }
.sub-section.sub-alt { background: var(--surface); }

.sub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.sub-layout.reverse { direction: rtl; }
.sub-layout.reverse > * { direction: ltr; }

.sub-content {}
.sub-visual {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.sub-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(118,196,66,.12), transparent 70%);
  border-radius: 50%;
}
.sub-visual-icon { font-size: 3.5rem; display: block; margin-bottom: 20px; }
.sub-visual-title { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.sub-visual-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* Features list */
.features-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-check {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--green-glow); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--green); flex-shrink: 0; margin-top: 1px;
}
.feature-text { font-size: .9rem; color: var(--text); line-height: 1.6; }
.feature-text strong { color: var(--white); }

/* Brands row */
.brands-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.brand-chip:hover { border-color: var(--green); color: var(--green); }
.brand-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); opacity: .6; }

/* Feature cards grid */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.feature-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--green); transform: translateY(-4px); }
.feature-card-icon {
  width: 48px; height: 48px;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--green);
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card-title { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* ════════════════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(118,196,66,.06) 0%, transparent 60%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-section .section-title { margin-bottom: 16px; }
.cta-section .section-sub { margin: 0 auto 40px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand-text { font-size: .88rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; }
.footer-col-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: .82rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: .82rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--green); }

/* ── Toast ────────────────────────────────────────────── */
#toast { position: fixed; bottom: 32px; right: 32px; background: var(--green); color: #000; font-weight: 700; padding: 14px 24px; border-radius: 12px; font-size: .9rem; transform: translateY(80px); opacity: 0; transition: all .4s ease; z-index: 9999; }
#toast.show { transform: none; opacity: 1; }

/* ── Keyframes ────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes fadeRight { from { opacity:0; transform:translateX(40px) translateY(-50%); } to { opacity:1; transform:translateX(0) translateY(-50%); } }
@keyframes floatCard { 0%,100% { transform:translateY(-50%) translateY(0); } 50% { transform:translateY(-50%) translateY(-16px); } }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-card { display: none; }
  .sub-layout { grid-template-columns: 1fr; gap: 40px; }
  .sub-layout.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #navbar { background: rgba(10,10,10,.96); backdrop-filter: blur(20px); }
  .nav-logo img { height: 26px; }
}

@media (max-width: 768px) {
  .section, .sub-section { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .feature-cards { grid-template-columns: 1fr; }
  .page-hero { min-height: 50vh; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
