/* ============================================================
   IVMERA KITCHEN — Coastal New England CSS
   Theme: Deep ocean blue, seafoam, sandy warmth
   ============================================================ */

:root {
  --primary-dark: #0d2a4a;
  --primary-mid: #1a6878;
  --accent: #4ab0c8;
  --accent-hover: #2a8898;
  --bg: #f0f6fa;
  --bg-warm: #e8f2f8;
  --text: #1a2e3e;
  --text-light: #3a5a70;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #c0dae8;
  --sand: #f5f0e8;
  --shadow: 0 4px 24px rgba(13, 42, 74, 0.1);
  --shadow-lg: 0 12px 48px rgba(13, 42, 74, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-head: 'Crimson Text', Georgia, serif;
  --font-body: 'Nunito', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  line-height: 1.25;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 42, 74, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 176, 200, 0.25);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo .logo-icon { font-size: 1.4rem; }
.nav-logo em { color: var(--accent); font-style: italic; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(74, 176, 200, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2a4a 0%, #1a6878 100%);
}

/* Animated wave layers */
.hero-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-waves::before,
.hero-waves::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 120%;
  height: 60%;
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  opacity: 0.07;
}

.hero-waves::before {
  background: var(--accent);
  animation: waveFloat 8s ease-in-out infinite;
}

.hero-waves::after {
  background: #b0e0f0;
  animation: waveFloat 12s ease-in-out infinite reverse;
  bottom: -30%;
}

@keyframes waveFloat {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-30px) scaleX(1.05); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(74, 176, 200, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(26, 104, 120, 0.25) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,42,74,0.15) 0%, rgba(13,42,74,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 100px 24px 60px;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 176, 200, 0.12);
  border: 1px solid rgba(74, 176, 200, 0.4);
  padding: 8px 22px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.hero-h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-h2 em {
  color: var(--accent);
  font-style: italic;
}

.hero-p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 38px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(74, 176, 200, 0.5);
  transition: var(--transition);
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 176, 200, 0.6);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 1.5rem;
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── PRODUCT SECTION ── */
.product-section {
  padding: 80px 0;
  background: var(--bg-warm);
  position: relative;
}

.product-section--alt {
  background: linear-gradient(135deg, #0d2a4a 0%, #0e3f58 100%);
}

.product-section--alt .product-header h2,
.product-section--alt .product-header p {
  color: var(--white);
}

.product-section--alt .product-subhead {
  color: var(--accent) !important;
}

.product-section--alt .product-desc {
  color: rgba(255,255,255,0.72) !important;
}

.product-promo-badge {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 10px;
  margin-bottom: 60px;
}

.product-header {
  text-align: center;
  margin-bottom: 48px;
}

.product-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.product-subhead {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.product-card--best {
  border-color: var(--primary-mid);
  background: linear-gradient(160deg, #f0f9fc 0%, #e8f5fa 100%);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-starter { background: var(--primary-mid); color: var(--white); }
.badge-standard { background: var(--accent); color: var(--white); }
.badge-bestseller {
  background: linear-gradient(90deg, #1a6878, #4ab0c8);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(74, 176, 200, 0.4);
}

.product-img-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 20px;
}

.product-img-wrap img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.price-per {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.price-per span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

.price-total {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.price-total s { opacity: 0.6; }
.price-total strong {
  color: var(--primary-mid);
  font-size: 1.15rem;
  margin-left: 4px;
}

.shipping-info {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a7a50;
  margin-bottom: 8px;
}

.savings-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  background: #c0392b;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.btn-buy {
  display: block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  margin-top: 16px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(74, 176, 200, 0.3);
}

.btn-buy:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 176, 200, 0.4);
}

.btn-buy--ocean {
  background: linear-gradient(135deg, #1a6878, #4ab0c8);
  box-shadow: 0 4px 16px rgba(74, 176, 200, 0.4);
}

/* Guarantee Box */
.guarantee-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.guarantee-seal {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  object-fit: contain;
}

.guarantee-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.guarantee-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-badges img {
  height: 50px;
  object-fit: contain;
  opacity: 0.85;
}

/* ── RECIPES SECTION ── */
.recipes-section {
  padding: 90px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.recipe-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.recipe-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.recipe-card.visible:hover {
  transform: translateY(-4px);
}

.recipe-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.recipe-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img-wrap img {
  transform: scale(1.06);
}

.recipe-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,42,74,0.55) 0%, transparent 60%);
  pointer-events: none;
}

.recipe-body {
  padding: 24px 24px 20px;
}

.recipe-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.recipe-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.recipe-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}

.recipe-toggle-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.recipe-toggle-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* Recipe Details Accordion */
.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-details.active {
  max-height: 900px;
}

.recipe-details-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 24px;
  border-top: 2px solid var(--border);
  background: #f5fafd;
}

.recipe-ingredients h4,
.recipe-instructions h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
}

.recipe-ingredients ul li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.recipe-ingredients ul li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.recipe-instructions ol {
  padding-left: 20px;
}

.recipe-instructions ol li {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.65;
  padding-left: 6px;
}

.recipe-instructions ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact p {
  font-size: 0.88rem;
  line-height: 1.85;
}

.footer-contact a { color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }

.footer-disclaimer {
  padding: 28px 0;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.48);
  max-width: 800px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.3) !important;
}

/* ── LEGAL PAGES ── */
.legal-hero {
  background: linear-gradient(135deg, #0d2a4a 0%, #1a6878 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.legal-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-contact-box {
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
}

.legal-contact-box h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.legal-contact-box p {
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .recipe-details-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .guarantee-box { flex-direction: column; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 42, 74, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(74,176,200,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 28px; border-radius: 0; }
}
