/* ===================================
   etisone Main Stylesheet
   Apple-Inspired Light Theme
   =================================== */

/* ===== CSS Reset & Base ===== */

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== Typography ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== Layout ===== */

.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* ===== Header & Navigation — Apple Dark Nav Bar ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-modal) + 2);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-base);
}

.navbar {
  height: var(--header-height);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1d1d1f;
}

.brand-link:hover {
  color: #000000;
}

.brand-symbol {
  width: 20px;
  height: 20px;
  transition: opacity var(--transition-fast);
}

.brand-wordmark {
  font-family: var(--font-family-brand);
  font-weight: var(--font-weight-wordmark);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wordmark);
  color: #1d1d1f;
}

/* Applied by brand-font.js to every visible "etisone" text node */
.etisone-brand {
  font-family: var(--font-family-brand);
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Center nav — Always visible dark text on white nav */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-center .nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: #424245;
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) 0;
}

.nav-link:hover {
  color: #000000;
}

.nav-link:focus-visible {
  color: #000000;
  outline: 1px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Login button in nav */
.nav-actions {
  display: flex;
  align-items: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: calc(var(--z-modal) + 10);
}

.hamburger {
  display: block;
  width: 18px;
  height: 1px;
  background-color: #1d1d1f;
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1px;
  background-color: #1d1d1f;
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu */
.nav-menu-mobile {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-menu-mobile.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-sm);
}

.nav-list-mobile {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.nav-list-mobile a {
  font-size: var(--font-size-2xl);
  color: #1d1d1f;
  letter-spacing: var(--letter-spacing-wide);
  font-weight: var(--font-weight-light);
  transition: color var(--transition-fast);
}

.nav-list-mobile a:hover {
  color: #0066cc;
}

/* ===== Hero Section ===== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.1);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--spacing-lg);
}

.hero-symbol {
  margin-bottom: var(--spacing-lg);
}

.hero-symbol-img {
  width: 56px;
  height: 56px;
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
  filter: brightness(0) invert(1);
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-heading-hero);
  color: #ffffff;
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 1s ease 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Live Gradient Hero ===== */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 100%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-section--gradient {
  background: linear-gradient(
    -45deg,
    #021b33,
    #003d5c,
    #0077b6,
    #023e8a,
    #00b4d8,
    #0a2a4a,
    #0096c7,
    #012a4a
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.hero-section--gradient::after {
  background: rgba(0, 0, 0, 0.25);
}

.hero-section--gradient .hero-label {
  color: rgba(255, 255, 255, 0.6);
}

.hero-section--gradient .hero-stat strong {
  color: #ffffff;
}

.hero-section--gradient .hero-stat span {
  color: rgba(255, 255, 255, 0.6);
}

/* Network Hero Gradient */
.hero-section--gradient-network {
  background: linear-gradient(
    -45deg,
    #1a0533,
    #0d0d2b,
    #2d1b4e,
    #0f3460,
    #5c2d91,
    #16213e,
    #7b3fa0,
    #1a1a2e
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.hero-section--gradient-network::after {
  background: rgba(0, 0, 0, 0.25);
}

/* Industries Hero Gradient */
.hero-section--gradient-industries {
  background: linear-gradient(
    -45deg,
    #1a1a1a,
    #2c1a0e,
    #3a3a3c,
    #1d1d1f,
    #4a2c17,
    #2d2d30,
    #5c3a1e,
    #111111
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.hero-section--gradient-industries::after {
  background: rgba(0, 0, 0, 0.25);
}

.hero-section--gradient-industries .hero-label {
  color: rgba(255, 255, 255, 0.6);
}

.hero-section--gradient-industries .hero-stat strong {
  color: #ffffff;
}

.hero-section--gradient-industries .hero-stat span {
  color: rgba(255, 255, 255, 0.6);
}

/* Contact Hero Gradient */
.hero-section--gradient-contact {
  background: linear-gradient(
    -45deg,
    #111111,
    #1a1b26,
    #0f172a,
    #0f2b46,
    #163a5f,
    #0b1e36,
    #1e293b,
    #020617
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.hero-section--gradient-contact::after {
  background: rgba(0, 0, 0, 0.25);
}

.hero-section--gradient-contact .hero-label {
  color: rgba(255, 255, 255, 0.6);
}

.hero-section--gradient-contact .hero-stat strong {
  color: #ffffff;
}

.hero-section--gradient-contact .hero-stat span {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Cinematic Hero Slideshow ===== */

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide--active,
.hero-slide--first {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 6s ease-in-out;
}

/* Ken Burns cinematic zoom/pan via transitions */
.hero-slide--active img {
  transform: scale(1.08) translate(-1%, -1%);
}

.hero-slide:nth-child(2).hero-slide--active img {
  transform: scale(1.1) translate(-0.5%, -1.5%);
}

.hero-slide:nth-child(3).hero-slide--active img {
  transform: scale(1.06) translate(1%, -0.5%);
}

.hero-slide:nth-child(4).hero-slide--active img {
  transform: scale(1.08) translate(-1%, -1%);
}

.hero-slide:nth-child(5).hero-slide--active img {
  transform: scale(1.1) translate(-0.5%, -1.5%);
}

.hero-slide:nth-child(6).hero-slide--active img {
  transform: scale(1.06) translate(1%, -0.5%);
}

/* Cinematic hero — white text overrides for dark background */
.hero-section--cinematic .hero-label {
  color: rgba(255, 255, 255, 0.6);
}

.hero-section--cinematic .hero-stat strong {
  color: #ffffff;
}

.hero-section--cinematic .hero-stat span {
  color: rgba(255, 255, 255, 0.6);
}

/* Stronger overlay for better text legibility over images */
.hero-section--cinematic::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* ===== Division Showcase Section ===== */

.divisions-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--color-bg);
}

.divisions-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: var(--container-lg);
  margin: 0 auto;
}

/* ===== Section Styles ===== */

.section-alt {
  background-color: var(--color-bg-alt);
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Footer ===== */

.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  text-align: center;
}

.footer-quote p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--spacing-2xl);
  letter-spacing: var(--letter-spacing-wide);
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-links-row a {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.footer-links-row a:hover {
  color: var(--color-text);
}

.footer-legal-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.footer-legal-row a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal-row a:hover {
  color: var(--color-text);
}

.footer-legal-row a + a::before {
  content: "|";
  margin-right: var(--spacing-xs);
  color: var(--color-border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.footer-region {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Legal Page Content ===== */

.legal-content {
  max-width: 800px;
  margin: calc(var(--header-height) + var(--spacing-2xl)) auto var(--spacing-2xl);
  padding: 0 var(--spacing-lg);
  color: var(--color-text);
  line-height: var(--line-height-loose);
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-lg);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-sm);
}

.legal-content h3 {
  font-size: var(--font-size-lg);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link);
}

/* ===== Utility Classes ===== */

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