/* =========================================================
   NESTXGEN — CORE DESIGN SYSTEM (PRODUCTION)
   File: style.css
   Scope: Global, Layout, Components, Hero, Header, Footer
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  --color-primary: #154360;
  --color-secondary: #00A693;
  --color-accent: #FFC300;

  --color-text-dark: #222222;
  --color-text-light: #F9F9F9;

  --color-body-bg: #ffffff;
  --color-section-bg: #f0f4f7;
  --color-background-dark: #0a192f;

  --color-border: #d0d0d0;
  --color-error: #e74c3c;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .15);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .25);

  --transition-fast: .2s ease;
  --transition-base: .3s ease;

  --color-footer-bg: #0a192f;
  --color-text-muted: #cfd8dc;
  --color-footer-bg: #154360;
  --color-text-muted: #b0b0b0;


}

html[data-theme='dark'] {
  --color-primary: #00A693;
  --color-secondary: #FFC300;
  --color-accent: #FFDF4D;

  --color-text-dark: #e0e0e0;
  --color-text-light: #1a1a1a;

  --color-body-bg: #1a1a1a;
  --color-section-bg: #2c2c2c;
  --color-background-dark: #000000;
  --color-border: #444444;
}

/* =========================================================
   2. BASE & RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  background: var(--color-body-bg);
  color: var(--color-text-dark);
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

img,
video {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* =========================================================
   3. TYPOGRAPHY SCALE
   ========================================================= */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1.2em;
}

/* =========================================================
   4. LAYOUT UTILITIES
   ========================================================= */

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

.section-padding {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.text-center {
  text-align: center;
}

/* =========================================================
   5. BUTTONS & CTA
   ========================================================= */

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-light);
  background: var(--color-secondary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.primary-cta {
  background: var(--color-primary);
}

.secondary-cta {
  background: var(--color-secondary);
}

/* =========================================================
   6. HEADER & NAVIGATION
   ========================================================= */

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 5%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

#hamburger-menu {
  display: none;
  /* Hidden on desktop */
  z-index: 1200;
  cursor: pointer;
  background: none;
  border: none;
}

.logo-img {
  height: 40px;
}

/* ===== MAIN NAV LAYOUT (DESKTOP) ===== */
.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list>li {
  position: relative;
  /* required for dropdown positioning */
}

/* Base dropdown styling */
.nav-list .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  /* right below the parent link */
  left: 0;
  background: var(--color-primary);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  flex-direction: column;
}

.nav-list .dropdown-menu li a {
  padding: 0.75rem 1rem;
  color: #fff;
  display: block;
  font-weight: 500;
}

/* Show dropdown on hover (desktop) */
.nav-list .has-dropdown:hover>.dropdown-menu {
  display: flex;
}

/* Arrow rotation on hover */
.nav-list .has-dropdown>a i {
  transition: transform 0.3s ease;
}

.nav-list .has-dropdown:hover>a i {
  transform: rotate(180deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--color-text-light);
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

/* =========================================================
   7. HERO SECTION (VIDEO + FALLBACK)
   ========================================================= */

.hero-video {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-text-light);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, .85);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 12rem 5% 8rem;
  text-align: center;
}

.hero-content p {
  font-size: 1.35rem;
  color: #b0c4de;
}

#hero h1 {
  color: #ffffffab;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 166, 147, 0.25);
}

/* =========================================================
   8. FOOTER
   ========================================================= */

footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 4rem 5%;
  text-align: center;
}

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1);
}

.social-links a {
  color: var(--color-text-light);
  font-size: 1.6rem;
  margin: 0 12px;
}

/* =========================================================
   9. REDUCED MOTION SUPPORT
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   10. MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 900px) {
  .hero-bg-video {
    display: none;
  }

  .hero-video {
    background: linear-gradient(rgba(10, 25, 47, .9), rgba(10, 25, 47, .9)),
      url('/assets/images/hero.png') center / cover no-repeat;
  }

  nav {
    display: none;
  }
}

/* =========================================================
   11. ADDITIONAL RESPONSIVE HELPERS
   ========================================================= */

@media (max-width: 768px) {
  .header-controls {
    gap: 8px;
  }

  .logo-img {
    height: 35px;
  }
}




/* =========================================================
   8.1 MODERN SITE FOOTER (CONTACT / ABOUT / LEGAL PAGES)
   ========================================================= */





.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-text-muted);
  margin-top: 80px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 60px 0;
}

.site-footer .footer-column h4 {
  margin-bottom: 15px;
  color: var(--color-text-light);
  font-weight: 600;
}

.site-footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-column ul li {
  margin-bottom: 10px;
}

.site-footer .footer-column ul li a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer .footer-column ul li a:hover {
  color: var(--color-accent);
}

.site-footer .footer-description {
  max-width: 320px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-footer .social-links a {
  font-size: 1.4rem;
  margin-right: 14px;
  color: var(--color-text-light);
}

.site-footer .social-links a:hover {
  color: var(--color-accent);
}

/* Footer map */
.site-footer .footer-map iframe {
  display: block;
}

/* Bottom bar */
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;

}



footer a,
footer a:visited {
  color: #ffffff;
}

footer a:hover {
  color: var(--color-accent);
}



