/* ==== MEFFERDI :: GULF COAST IMMERSIVE ==== */

:root {
  /* Real Gulf/Florida ocean blues - sunlit, clear, classic */
  --surface: #0d4d6e;       /* Sunlit Gulf surface */
  --shallow: #094063;       /* Just below */
  --mid: #062f4d;           /* Mid depth */
  --deep: #03203a;          /* Deep blue */
  --abyssal: #021527;       /* Abyssal */

  --bg: var(--surface);
  --bg-2: #062f4d;
  --bg-3: #0a3d5c;
  --bg-card: rgba(10, 61, 92, 0.5);

  --ink: #f0f7fc;
  --ink-2: #8eb0c8;
  --ink-3: #547189;

  --line: rgba(142, 176, 200, 0.1);
  --line-2: rgba(142, 176, 200, 0.18);

  /* Real ocean blue accents */
  --brand: #2d8bb4;         /* Classic ocean blue */
  --brand-bright: #5cb4d6;  /* Bright shallow water */
  --brand-deep: #1a5d80;    /* Deep water */
  --brand-light: #a8d9eb;   /* Sun-bleached shallows */
  --brand-glow: rgba(92, 180, 214, 0.5);
  --accent: #00d4ff;        /* Sonar accent */
  --sonar: #4dd6c4;         /* Sonar green-cyan */

  --warm: #f7c560;          /* Sun glint */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.011em;
}

.display {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent), var(--sonar));
  width: 0%;
  z-index: 200;
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.1s ease-out;
}

/* PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--abyssal);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.preloader-sonar {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 1px solid var(--sonar);
}

.preloader-sonar::before,
.preloader-sonar::after {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid var(--sonar);
  opacity: 0.5;
}

.preloader-sonar::after { inset: 40%; opacity: 0.8; }

.preloader-sweep {
  position: absolute;
  top: 0; left: 50%;
  width: 50%; height: 50%;
  transform-origin: 0% 100%;
  animation: sonar-sweep 2s linear infinite;
  background: conic-gradient(from 0deg, transparent, transparent 80%, var(--sonar) 100%);
  clip-path: polygon(0 100%, 0 0, 100% 0);
  opacity: 0.6;
}

@keyframes sonar-sweep {
  to { transform: rotate(360deg); }
}

.preloader-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--sonar);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px var(--sonar);
  animation: pulse-center 1s ease-in-out infinite;
}

@keyframes pulse-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.5); }
}

.preloader-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sonar);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.preloader-status {
  font-size: 0.75rem;
  color: var(--ink-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(13, 77, 110, 0.7);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.brand-link { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; transition: opacity 0.3s; }
.brand-link:hover .brand-logo { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: -0.005em;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--brand-bright); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand-bright);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--brand-bright);
}

.nav-cta {
  padding: 0.65rem 1.4rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px -8px rgba(45, 139, 180, 0.5);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(45, 139, 180, 0.8);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
}

.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* PAGE HEADER */
.page-header {
  position: relative;
  z-index: 2;
  padding: 9rem 2.5rem 5rem;
  border-bottom: 1px solid var(--line);
}

.page-header-inner { max-width: 1400px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--brand-bright); }
.breadcrumb-sep { color: var(--ink-3); }

.page-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  max-width: 1100px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 680px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--accent) 50%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(92, 180, 214, 0.1);
  border: 1px solid rgba(92, 180, 214, 0.3);
  color: var(--brand-bright);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  letter-spacing: -0.005em;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: sonar 2s infinite;
}

@keyframes sonar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(92, 180, 214, 0.08);
  border: 1px solid rgba(92, 180, 214, 0.25);
  color: var(--brand-bright);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.005em;
}

/* SECTIONS */
section {
  position: relative;
  z-index: 2;
  padding: 6rem 2.5rem;
}

.container { max-width: 1400px; margin: 0 auto; }

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.85rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
  color: white;
  box-shadow: 0 12px 32px -8px rgba(45, 139, 180, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(45, 139, 180, 0.8);
}

.btn-secondary {
  background: rgba(142, 176, 200, 0.06);
  color: var(--ink);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}

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

.btn-light {
  background: white;
  color: var(--mid);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* CERTIFICATIONS STRIP */
.certs-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 2.5rem;
  background: rgba(6, 47, 77, 0.4);
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}

.certs-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.certs-label {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.certs-badges {
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
}

.cert-badge {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

.cert-badge:hover { color: var(--brand-bright); }

.cert-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(92, 180, 214, 0.1);
  border: 1px solid rgba(92, 180, 214, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* PRESS STRIP */
.press-strip {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(2, 21, 39, 0.4);
  position: relative; z-index: 2;
}

.press-inner {
  max-width: 1400px; margin: 0 auto;
  text-align: center;
}

.press-label {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.press-logos {
  display: flex; justify-content: center; gap: 3rem;
  flex-wrap: wrap; align-items: center;
}

.press-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: all 0.3s;
}

.press-name:hover { opacity: 1; color: var(--ink-2); }

/* FOOTER */
footer {
  position: relative;
  z-index: 2;
  background: var(--abyssal);
  border-top: 1px solid var(--line);
  padding: 4rem 2.5rem 2rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-mark { height: 48px; width: auto; margin-bottom: 1.25rem; display: block; opacity: 0.95; }

.footer-brand p {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-address {
  color: var(--ink-3);
  font-size: 0.88rem;
  line-height: 1.7;
  font-style: normal;
}

.footer-address strong {
  color: var(--ink-2);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.005em;
}

.footer-col ul { list-style: none; }

.footer-col a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--brand-bright); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* NEWSLETTER */
.newsletter-strip {
  padding: 5rem 2.5rem;
  background: linear-gradient(135deg, var(--mid), var(--deep));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.newsletter-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-strip h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.newsletter-strip p {
  color: var(--ink-2);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex; gap: 0.75rem;
  max-width: 500px; margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1; min-width: 250px;
  padding: 0.95rem 1.25rem;
  background: rgba(2, 21, 39, 0.6);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand-bright);
  background: rgba(2, 21, 39, 0.8);
  box-shadow: 0 0 0 3px rgba(92, 180, 214, 0.15);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 77, 110, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 1.25rem 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.03em;
}

/* CURSOR RIPPLE */
.cursor-ripple {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid rgba(92, 180, 214, 0.7);
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: ripple-expand 1.5s ease-out forwards;
}

@keyframes ripple-expand {
  0% { width: 8px; height: 8px; opacity: 1; }
  100% { width: 140px; height: 140px; opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .page-header { padding: 7rem 1.25rem 3rem; }
  section { padding: 4rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .certs-strip, .press-strip, .newsletter-strip { padding: 2rem 1.25rem; }
  .certs-inner { flex-direction: column; align-items: flex-start; }
  .press-logos { gap: 1.5rem; }
}
