/* Base styles for SaltShore site */

:root {
  --accent: #004466;
  --bg: #fdfdfd;
  --text: #222;
  --muted: #6b7a89;

  /* Type scale */
  --h1: 2rem;
  --h2: 1.2rem;
  --h3: 1.05rem;
  --h4: 1rem;
  --leading-tight: 1.25;
  --leading-base: 1.7;
  --tracking-hero: 0.5px;

  /* Spacing rhythm */
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 64px;
  --content-max: 720px;
  --content-max-wide: 960px;
}

/* === SaltShore Brand Font: Revans === */
@font-face {
    font-family: 'Revans';
    src: url('../fonts/Revans-Medium-2026.woff2') format('woff2'),
         url('../fonts/Revans-Medium-2026.woff') format('woff'),
         url('../fonts/Revans-Medium-2026.otf') format('opentype'),
         url('../fonts/Revans-Medium-2026.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Apply Revans site-wide */
body {
    font-family: 'Revans', sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    background-image: radial-gradient(ellipse at 70% 0%, rgba(0, 195, 255, 0.04) 0%, transparent 55%);
}

/* === Navigation Styling === */
.main-nav {
  margin-top: 20px;
  display: flex;
  gap: 32px;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  font-family: 'Revans', sans-serif;
  letter-spacing: 0.3px;
}

.main-nav a {
  text-decoration: none;
  color: #002233;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover {
  color: #004466;
}

/* Hover underline animation */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #004466;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Active page indicator */
.main-nav a.active {
  color: #004466;
}

.main-nav a.active::after {
  transform: scaleX(1);
}

/* Typography normalization */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Revans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

h1 { font-size: var(--h1); line-height: var(--leading-tight); }
h2 { font-size: var(--h2); line-height: var(--leading-tight); }
h3 { font-size: var(--h3); line-height: 1.35; }
h4, h5, h6 { font-size: var(--h4); }
p { line-height: var(--leading-base); }

p, li, span, label, input, button {
  font-family: 'Revans', sans-serif;
  font-weight: 500;
}

/* === Focus styles === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* === Mobile navigation toggle === */
.nav-toggle {
  display: none;
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #002233;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    margin-bottom: 8px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 320px;
    padding: 8px 0;
    margin-top: 0;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav.nav-open a {
    padding: 10px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1.1rem;
  }

  .main-nav.nav-open a:last-child {
    border-bottom: none;
  }
}

/* === Products grid polish === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.product-card {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card h3 {
  margin-top: 0;
  color: #004466;
}

.product-card.coming-soon::after {
  content: "Coming Soon";
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* === Docs page spacing stabilization === */
.docs-layout {
  padding-top: var(--space-lg);
}

.docs-content h1 {
  margin-bottom: 0;
}

.docs-content .meta-updated {
  margin-top: 6px;
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  opacity: 0.7;
}

.docs-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.docs-content ul {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.docs-content li {
  margin-bottom: 6px;
}
