/* ============================================================
   NEPTUNE ADVOCATES — Coming Soon Landing Page
   Enterprise-Grade Stylesheet
   Version: 1.0.0
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens from Logo) --- */
:root {
  /* Primary Palette */
  --navy-deep: #0A1E3D;
  --navy-dark: #132B50;
  --blue-mid: #1E3A5F;
  --blue-light: #6FA8DC;
  --blue-ice: #A4C8E1;
  --blue-pale: #D4E6F1;

  /* Accents */
  --gold: #C5A55A;
  --gold-hover: #D4B76A;
  --gold-muted: rgba(197, 165, 90, 0.15);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --warm-gray: #E8E6E3;
  --mid-gray: #8E9AAB;
  --charcoal: #2C2C2C;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --section-pad-y: clamp(3rem, 6vw, 5rem);
  --content-max: 960px;
  --content-narrow: 720px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.4s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background-color: var(--navy-deep);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Subtle Background Texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(111, 168, 220, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(164, 200, 225, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(197, 165, 90, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  z-index: 1;
}

/* Decorative top rule */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0;
  animation: fadeSlideDown 1s var(--ease-out) 0.3s forwards;
}

/* Logo */
.hero__logo {
  width: clamp(180px, 22vw, 280px);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
  filter: drop-shadow(0 2px 16px rgba(111, 168, 220, 0.15));
}

/* Headline */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: var(--content-narrow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

/* Subheadline */
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: var(--blue-ice);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

/* Thin gold divider */
.hero__rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.1s forwards;
}

/* Upgrade notice */
.hero__notice {
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  color: var(--mid-gray);
  font-style: italic;
  max-width: 560px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}

/* ============================================================
   PRACTICE AREAS SECTION
   ============================================================ */
.practice-areas {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 95, 0.15) 50%, transparent 100%);
}

.practice-areas__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-rule {
  width: 50px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 0 auto 3rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.practice-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(19, 43, 80, 0.45);
  border: 1px solid rgba(111, 168, 220, 0.1);
  border-radius: 4px;
  transition: border-color var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.practice-card:hover {
  border-color: rgba(197, 165, 90, 0.35);
  background: rgba(19, 43, 80, 0.65);
  transform: translateY(-2px);
}

.practice-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(197, 165, 90, 0.1);
  border: 1px solid rgba(197, 165, 90, 0.2);
}

.practice-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.practice-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.practice-card__desc {
  font-size: 0.875rem;
  color: var(--blue-ice);
  line-height: 1.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) 1.5rem;
}

.contact__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.contact-block {
  padding: 2rem;
  background: rgba(19, 43, 80, 0.35);
  border: 1px solid rgba(111, 168, 220, 0.08);
  border-radius: 4px;
}

.contact-block__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-block__label svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.contact-block a {
  display: block;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.8;
  transition: color var(--duration) var(--ease-out);
}

.contact-block a:hover {
  color: var(--gold);
}

.contact-block p {
  font-size: 0.95rem;
  color: var(--blue-ice);
  line-height: 1.7;
}

/* CTA Button */
.cta-wrap {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              transform 0.2s var(--ease-out);
}

.cta-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(111, 168, 220, 0.1);
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(111, 168, 220, 0.15);
  color: var(--mid-gray);
  cursor: default;
  transition: border-color var(--duration) var(--ease-out);
}

.footer__social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 30, 61, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(111, 168, 220, 0.15);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.85rem;
  color: var(--blue-ice);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  border: none;
}

.cookie-btn--accept {
  background: var(--gold);
  color: var(--navy-deep);
}

.cookie-btn--accept:hover {
  background: var(--gold-hover);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--blue-ice);
  border: 1px solid rgba(111, 168, 220, 0.2);
}

.cookie-btn--reject:hover {
  border-color: var(--blue-ice);
  color: var(--white);
}

.cookie-btn--manage {
  background: transparent;
  color: var(--mid-gray);
  border: 1px solid rgba(142, 154, 171, 0.2);
}

.cookie-btn--manage:hover {
  color: var(--blue-ice);
  border-color: var(--mid-gray);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 30, 61, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.cookie-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--navy-dark);
  border: 1px solid rgba(111, 168, 220, 0.12);
  border-radius: 6px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.cookie-modal-overlay.is-open .cookie-modal {
  transform: translateY(0);
}

.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cookie-modal__desc {
  font-size: 0.85rem;
  color: var(--blue-ice);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cookie-category {
  padding: 1rem 0;
  border-top: 1px solid rgba(111, 168, 220, 0.08);
}

.cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-category__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.cookie-category__badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(142, 154, 171, 0.2);
  border-radius: 2px;
}

.cookie-category__desc {
  font-size: 0.8rem;
  color: var(--mid-gray);
  line-height: 1.55;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(142, 154, 171, 0.25);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle__slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle__slider {
  background: var(--gold);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(18px);
}

.toggle input:disabled + .toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    height: 0;
  }
  to {
    opacity: 0.6;
    height: 60px;
  }
}

/* Scroll-triggered fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-block {
    padding: 1.5rem;
  }

  .practice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    justify-content: center;
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }
}

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

  .hero {
    padding: 2rem 1.25rem;
  }

  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .cookie-modal {
    padding: 1.5rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body::before,
  .cookie-banner,
  .cookie-modal-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }
}
