/*
Theme Name: North Blue Ferments
Theme URI: https://www.northbluenutrients.com/
Author: North Blue Nutrients
Description: A polished ocean-blue WordPress theme for North Blue Ferments and North Blue Nutrients.
Version: 1.0.0
Text Domain: north-blue-ferments
*/

:root {
  --navy: #06253a;
  --ocean: #087ea4;
  --cyan: #16c7e7;
  --aqua: #9df5ff;
  --foam: #effcff;
  --white: #ffffff;
  --ink: #123041;
  --muted: #617985;
  --line: rgba(7, 126, 164, 0.16);
  --shadow: 0 20px 55px rgba(4, 42, 62, 0.13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: var(--ocean); }
a:hover { color: var(--navy); }
img { display: block; height: auto; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-shell { overflow: clip; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  left: 10px;
  top: 10px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(8, 126, 164, 0.1);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 58px; }
.site-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description { display: none; }

.primary-navigation { margin-left: auto; }
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-navigation li { position: relative; }
.primary-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}
.primary-navigation > ul > li > a:hover,
.primary-navigation > ul > li.current-menu-item > a,
.primary-navigation > ul > li.current-menu-ancestor > a {
  color: var(--ocean);
  background: rgba(22, 199, 231, 0.1);
}
.primary-navigation .menu-item-has-children > a { padding-right: 32px; }
.primary-navigation .menu-item-has-children > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.primary-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: block;
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  border: 1px solid rgba(8, 126, 164, 0.1);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 16px 35px rgba(4, 42, 62, 0.14);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.primary-navigation .sub-menu a { padding: 10px 12px; font-size: 0.88rem; }
.primary-navigation .sub-menu a:hover { color: var(--ocean); background: var(--foam); }
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu,
.primary-navigation li.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-navigation li:hover > a::after,
.primary-navigation li:focus-within > a::after,
.primary-navigation li.submenu-open > a::after { transform: translateY(-25%) rotate(225deg); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle.is-active span { opacity: 0; }
.menu-toggle.is-active::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--cyan));
  box-shadow: 0 9px 20px rgba(8, 126, 164, 0.23);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  color: var(--white);
  filter: saturate(1.1) brightness(1.03);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 126, 164, 0.3);
}
.button--light {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 9px 22px rgba(2, 22, 38, 0.16);
}
.button--light:hover { color: var(--ocean); }
.button--outline {
  color: var(--ocean);
  border-color: var(--ocean);
  background: transparent;
  box-shadow: none;
}
.button--outline:hover { color: var(--white); background: var(--ocean); }

/* Front page */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 116px 0 96px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 20%, rgba(90, 239, 255, 0.48), transparent 21%),
    radial-gradient(circle at 8% 88%, rgba(0, 231, 193, 0.24), transparent 28%),
    linear-gradient(125deg, #031d31 0%, #075a7e 57%, #079fbb 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}
.hero::before {
  right: -110px;
  bottom: -190px;
  width: min(56vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.06), 0 0 0 88px rgba(255, 255, 255, 0.04);
}
.hero::after {
  top: 50px;
  left: 5%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float-orb 8s ease-in-out infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.85rem, 6.1vw, 5.65rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.95;
}
.hero h1 em { color: #a9f9ff; font-style: normal; }
.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(210, 252, 255, 0.35);
  border-radius: 26px;
  background: rgba(235, 252, 255, 0.1);
  box-shadow: 0 25px 55px rgba(1, 23, 38, 0.2);
  backdrop-filter: blur(14px);
}
.hero-card::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(115, 245, 255, 0.22);
}
.hero-card__icon { color: var(--aqua); font-size: 2.45rem; line-height: 1; }
.hero-card h2 { position: relative; margin: 18px 0 8px; font-size: 1.45rem; line-height: 1.2; }
.hero-card p { position: relative; margin: 0; color: rgba(255, 255, 255, 0.78); }

.intro-section { padding: 116px 0; background: var(--white); }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}
.section-kicker {
  margin: 0 0 10px;
  color: var(--ocean);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -0.052em;
  line-height: 1.03;
}
.section-copy { color: var(--muted); font-size: 1.04rem; }
.section-copy p:first-child { margin-top: 0; }
.section-copy p:last-child { margin-bottom: 0; }
.product-points { display: grid; gap: 15px; margin-top: 30px; }
.product-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #f3fdff);
}
.product-point__mark {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ocean);
  font-size: 0.78rem;
  font-weight: 900;
}
.product-point strong { display: block; color: var(--navy); line-height: 1.2; }
.product-point span { color: var(--muted); font-size: 0.91rem; line-height: 1.35; }

.feature-band {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.feature-band::after {
  content: "";
  position: absolute;
  top: -230px;
  right: -110px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  border: 80px solid rgba(22, 199, 231, 0.08);
}
.feature-band .container { position: relative; z-index: 1; }
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.feature-band h2 { color: var(--white); }
.feature-band p { max-width: 600px; color: rgba(255, 255, 255, 0.72); }
.schedule-card {
  padding: 35px;
  border: 1px solid rgba(157, 245, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 199, 231, 0.2), rgba(255, 255, 255, 0.08));
}
.schedule-card p { margin: 8px 0 24px; }

.story-section { padding: 116px 0; background: var(--foam); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 84px;
  align-items: center;
}
.story-seal {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50% 50% 45% 45%;
  color: var(--white);
  background: linear-gradient(145deg, var(--ocean), var(--navy));
  box-shadow: var(--shadow);
}
.story-seal::before,
.story-seal::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 50%;
}
.story-seal::before { width: 330px; height: 330px; }
.story-seal::after { width: 230px; height: 230px; }
.story-seal__text { position: relative; z-index: 1; text-align: center; }
.story-seal__text span { display: block; color: var(--aqua); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.story-seal__text strong { display: block; margin-top: 6px; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.07em; line-height: 0.9; }
.story-copy p { color: var(--muted); font-size: 1.03rem; }
.story-copy .button { margin-top: 13px; }

/* Generic WordPress content */
.site-main { min-height: 56vh; }
.content-area { padding: 84px 0; }
.entry-header { margin-bottom: 30px; }
.entry-title { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.entry-content { max-width: 820px; color: var(--muted); }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { color: var(--navy); font-size: 1.4rem; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content blockquote { margin: 2rem 0; padding: 18px 24px; border-left: 4px solid var(--cyan); background: var(--foam); color: var(--navy); }

/* Footer */
.site-footer { padding: 36px 0; color: rgba(255, 255, 255, 0.72); background: #041b2b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { color: var(--white); font-weight: 800; text-decoration: none; }
.footer-menu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; text-decoration: none; }
.footer-menu a:hover { color: var(--aqua); }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes float-orb { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(20px) rotate(13deg); } }

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .primary-navigation {
    position: fixed;
    z-index: 101;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 26px 20px 42px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    background: rgba(255, 255, 255, 0.98);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
  .primary-navigation ul { display: block; max-width: 560px; margin: 0 auto; }
  .primary-navigation li { border-bottom: 1px solid var(--line); }
  .primary-navigation a { padding: 17px 4px; font-size: 1.05rem; }
  .primary-navigation .menu-item-has-children > a::after { right: 8px; }
  .primary-navigation .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 10px 15px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .primary-navigation li.submenu-open > .sub-menu { display: block; }
  .primary-navigation .sub-menu a { padding: 10px 4px; font-size: 0.95rem; }
  .hero { min-height: auto; padding: 92px 0 78px; }
  .hero-grid, .split-grid, .feature-grid, .story-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 590px; }
  .hero-card { max-width: 560px; }
  .split-grid { gap: 30px; }
  .story-seal { min-height: 330px; max-width: 500px; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 30px, 1140px); }
  .site-title { font-size: 1.12rem; }
  .custom-logo { max-height: 48px; }
  .hero { padding-top: 76px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.6rem); }
  .hero-actions .button { width: 100%; }
  .hero-card, .schedule-card { padding: 26px; }
  .intro-section, .story-section { padding: 76px 0; }
  .feature-band { padding: 72px 0; }
  .story-seal { min-height: 285px; }
  .story-seal::before { width: 270px; height: 270px; }
  .story-seal::after { width: 180px; height: 180px; }
  .footer-inner { display: block; }
  .footer-menu ul { justify-content: flex-start; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}