/* ============================================================
   SOLA Corporate Website — style.css
   Design: Dark Navy × White Line Art (Pattern B)
   Colors: #0A1628 (navy), #4DC8F0 (cyan), #ffffff (white)
   Fonts: Cormorant Garamond (headings) + DM Sans (body) + Montserrat (labels)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&family=Montserrat:wght@200;300;400&display=swap');

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

:root {
  --navy: #0A1628;
  --navy-mid: #0d1e38;
  --cyan: #4DC8F0;
  --white: #ffffff;
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white-60);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--white);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
}

.mobile-menu.open {
  pointer-events: all;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 75vw;
  max-width: 300px;
  height: 100%;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--white-15);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: auto;
}

.mobile-menu-links a {
  color: var(--white-60);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.mobile-menu-links a:hover {
  color: var(--white);
}

.mobile-menu-sola {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-15);
}

.mobile-menu-sola-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-menu-sola-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--cyan);
  letter-spacing: 0.05em;
  width: 20px;
}

.mobile-menu-sola-word {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--white-60);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── HERO SECTION ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--navy);
}

/* Wind canvas */
#wind-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Goddess background — desktop */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url('images/goddess_d.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}

/* Gradient overlay to fade goddess into navy on right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 20%, var(--navy) 52%);
}

/* Desktop: SOLA logo + keywords — right side */
.hero-content-desktop {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
}

.hero-content-desktop.visible {
  opacity: 1;
}

.hero-sola-logo {
  width: clamp(250px, 35vw, 475px);
  height: auto;
}

.hero-keywords {
  display: flex;
  gap: clamp(0.8rem, 1.5vw, 1.8rem);
}

.hero-keywords span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(0.55rem, 0.8vw, 0.72rem);
  letter-spacing: 0.2em;
  color: var(--white-60);
  text-transform: uppercase;
}

/* Mobile: SOLA logo centered bottom */
.hero-content-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14vh;
  z-index: 3;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1.2s ease 0.5s;
}

.hero-content-mobile.visible {
  opacity: 1;
}

.hero-sola-logo-mobile {
  width: min(72vw, 280px);
  height: auto;
}

/* Mobile background */
.hero-bg-mobile {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url('images/goddess_d.png');
  background-repeat: no-repeat;
  background-size: 110%;
  background-position: 40% top;
}

.hero-bg-mobile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 15%, rgba(10,22,40,0.45) 70%),
              linear-gradient(to bottom, transparent 55%, var(--navy) 92%);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 1s ease 2s;
}

.scroll-indicator.visible {
  opacity: 0.6;
}

.scroll-indicator span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── ABOUT SECTION ─────────────────────────────────────── */
.about {
  padding: 8rem 0 6rem;
  position: relative;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 3rem;
  font-style: normal;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--cyan);
  margin-bottom: 2rem;
  opacity: 0.7;
}

.about-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 2;
  color: var(--white-60);
  max-width: 1280px;
}

/* ── CONCEPT SECTION ─────────────────────────────────────── */
.concept {
  padding: 6rem 0;
  border-top: 1px solid var(--white-08);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--white-08);
}

.concept-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--white-08);
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.concept-card:last-child {
  border-right: none;
}

.concept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: left;
}

.concept-card:hover {
  background: var(--white-08);
}

.concept-card:hover::before {
  transform: scaleX(1);
}

.concept-letter-img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.concept-word {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 1.2rem;
}

.concept-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--white-60);
}

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact {
  padding: 6rem 0;
  border-top: 1px solid var(--white-08);
}

.contact-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.contact-text {
  flex: 1;
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 1rem;
  font-style: normal;
}

.contact-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--white-60);
  line-height: 1.8;
}

.contact-link-wrap {
  display: flex;
  align-items: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--white-15);
  padding: 1rem 2rem;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.contact-email:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(77, 200, 240, 0.05);
}

.contact-email-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--white-08);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer-copy {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--white-40);
  text-transform: uppercase;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero: switch to mobile layout */
  .hero-bg {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }

  .hero-content-desktop {
    display: none;
  }

  .hero-content-mobile {
    display: flex;
  }

  /* About */
  .about {
    padding: 5rem 0 4rem;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  /* Concept grid: 2 columns on mobile */
  .concept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concept-card {
    border-right: none;
    border-bottom: 1px solid var(--white-08);
  }

  .concept-card:nth-child(odd) {
    border-right: 1px solid var(--white-08);
  }

  .concept-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Contact */
  .contact-inner {
    flex-direction: column;
    gap: 2rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept-card {
    border-right: none !important;
    border-bottom: 1px solid var(--white-08);
  }

  .concept-card:last-child {
    border-bottom: none;
  }
}
