/*
  BLUE SEAL ENERGY GROUP — COMPONENTS
  Navigation, Footer, Buttons, Cards, Forms
*/

/* ===========================
   NAVIGATION — EXACT SPEC
   =========================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.site-nav.scrolled {
  background: rgba(5,14,31,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255,255,255,1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
  transform-origin: center;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Mobile Menu Toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.nav-mobile,
.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--navy);
  padding: 100px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: right 0.4s var(--ease-smooth);
  z-index: 999;
}

.nav-mobile.active,
.nav-mobile-menu.active {
  right: 0;
}

.nav-mobile a,
.nav-mobile-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-mobile a:hover,
.nav-mobile-menu a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--grad-gold);
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,150,214,0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  transform: translateX(4px);
}

.btn-ghost svg {
  transition: transform 0.3s ease;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ===========================
   GLASS CARDS (Dark Sections)
   =========================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 2px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-gold);
  transform: translateY(-4px);
}

.glass-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.glass-card p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* ===========================
   LIGHT CARDS (Light Sections)
   =========================== */
.card-light {
  background: var(--white);
  border-top: 3px solid transparent;
  padding: 40px;
  border-radius: 2px;
  box-shadow: 0 2px 24px rgba(11,30,61,0.08);
  transition: all 0.3s ease;
}

.card-light:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11,30,61,0.12);
}

.card-light h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.card-light p {
  color: var(--text-body);
  line-height: 1.8;
}

/* ===========================
   STAT CARD
   =========================== */
.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-num {
  display: block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 500;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* On dark backgrounds */
.bg-navy .stat-label,
.bg-grad-section .stat-label {
  color: rgba(255,255,255,0.6);
}

/* ===========================
   FOOTER — EXACT SPEC
   =========================== */
.site-footer {
  background: #050E1F;
  color: var(--white);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 80px;
  padding: 80px 0 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo img {
  height: 56px;
  width: auto;
}

.footer-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer-brand p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-column a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.address-block h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.address-block p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

/* ===========================
   FORMS
   =========================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid rgba(11,30,61,0.2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0,150,214,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 32px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 16px 24px;
  }

  .nav-links,
  .btn-primary.desktop-only {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-main {
    padding: 60px 0 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }
}
