/* =============================================================
   Saltwater Aquarium Guide — Main Stylesheet
   Premium reef editorial design system
   ============================================================= */

:root {
	/* Brand palette */
	--ocean-deep: #041c32;
	--ocean-mid:  #064663;
	--marine-green: #0b6e4f;
	--coral-gold: #f4d35e;
	--white: #ffffff;
	--mist: #e8f4ff;

	/* Functional */
	--bg: #04132a;
	--bg-2: #051e3c;
	--surface: rgba(255,255,255,0.06);
	--surface-2: rgba(255,255,255,0.10);
	--border: rgba(255,255,255,0.12);
	--text: #eaf3ff;
	--text-mute: #9bb3cf;
	--text-dim: #6f8aa8;

	--accent: var(--coral-gold);
	--accent-2: #ffb347;
	--success: #4ade80;
	--danger: #ff6b6b;
	--warning: #fcd34d;

	/* Type */
	--font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Playfair Display', Georgia, serif;

	/* Sizes */
	--container: 1240px;
	--radius: 18px;
	--radius-sm: 10px;
	--radius-lg: 28px;
	--shadow-card: 0 18px 40px -18px rgba(0,0,0,0.6), 0 4px 12px -2px rgba(0,0,0,0.25);
	--shadow-glow: 0 0 60px -10px rgba(244,211,94,0.45);
}

/* =============================================================
   Reset / base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: #ffe28a; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.visually-hidden, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.skip-link {
	position: absolute; top: -40px; left: 8px; background: var(--coral-gold); color: var(--ocean-deep);
	padding: 8px 14px; border-radius: 6px; z-index: 1000; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; position: relative; }
.muted { color: var(--text-mute); }
.small { font-size: 13px; }

/* =============================================================
   Ocean background + atmospheric layers
   ============================================================= */
.ocean-bg {
	position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background:
		radial-gradient(circle at 20% 10%, rgba(11,110,79,0.25), transparent 50%),
		radial-gradient(circle at 85% 30%, rgba(244,211,94,0.10), transparent 50%),
		radial-gradient(circle at 50% 90%, rgba(6,70,99,0.45), transparent 60%),
		linear-gradient(180deg, #04132a 0%, #051e3c 50%, #021024 100%);
}
.ocean-grad {
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 40%, rgba(11,110,79,0.18), transparent 65%);
	mix-blend-mode: screen;
	animation: oceanShift 24s ease-in-out infinite alternate;
}
@keyframes oceanShift {
	0%   { transform: translate(0,0) scale(1); opacity: .8; }
	100% { transform: translate(-3%, 4%) scale(1.05); opacity: 1; }
}

/* Floating bubbles */
.bubble-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubble {
	position: absolute; bottom: -50px;
	width: 14px; height: 14px; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), rgba(255,255,255,0.05));
	box-shadow: inset 0 0 6px rgba(255,255,255,0.4);
	animation: bubbleRise linear infinite;
	opacity: .55;
}
.bubble.b1 { left: 8%;  width: 18px; height: 18px; animation-duration: 18s; animation-delay: 0s; }
.bubble.b2 { left: 18%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: 3s; }
.bubble.b3 { left: 28%; width: 22px; height: 22px; animation-duration: 22s; animation-delay: 1s; }
.bubble.b4 { left: 38%; width: 8px;  height: 8px;  animation-duration: 11s; animation-delay: 5s; }
.bubble.b5 { left: 48%; width: 14px; height: 14px; animation-duration: 16s; animation-delay: 2s; }
.bubble.b6 { left: 58%; width: 20px; height: 20px; animation-duration: 19s; animation-delay: 6s; }
.bubble.b7 { left: 68%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 4s; }
.bubble.b8 { left: 78%; width: 16px; height: 16px; animation-duration: 17s; animation-delay: 0s; }
.bubble.b9 { left: 88%; width: 9px;  height: 9px;  animation-duration: 12s; animation-delay: 7s; }
.bubble.b10 { left: 95%; width: 24px; height: 24px; animation-duration: 21s; animation-delay: 2.5s; }
@keyframes bubbleRise {
	0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
	8%   { opacity: .7; }
	50%  { transform: translateY(-50vh) translateX(20px) scale(1.05); }
	100% { transform: translateY(-110vh) translateX(-15px) scale(.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bubble, .ocean-grad, .coral-glow { animation: none !important; }
}

/* =============================================================
   Header / nav
   ============================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(4, 19, 42, 0.78);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 14px 24px; max-width: var(--container); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: -.01em; }
.brand-tag { font-size: 11px; letter-spacing: .12em; color: var(--text-mute); text-transform: uppercase; }

.primary-nav .menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; }
.primary-nav .menu a {
	color: var(--text); font-size: 14px; font-weight: 500;
	padding: 8px 0; position: relative; transition: color .2s;
}
.primary-nav .menu a::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: 4px;
	height: 1.5px; background: var(--coral-gold); transition: right .25s ease;
}
.primary-nav .menu a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
	width: 38px; height: 38px; border-radius: 10px;
	display: grid; place-items: center; color: var(--text);
	border: 1px solid var(--border); background: var(--surface);
	transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface-2); }

.header-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
	background: linear-gradient(135deg, var(--marine-green), #0e8a63);
	color: var(--white); border: 1px solid rgba(244,211,94,0.35);
	box-shadow: 0 6px 18px -6px rgba(11,110,79,0.7);
	transition: transform .2s, box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(11,110,79,0.8); color: var(--white); }
.cta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-gold); box-shadow: 0 0 8px var(--coral-gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }

.hdr-search {
	border-top: 1px solid var(--border);
	background: rgba(4,19,42,0.95);
	padding: 16px 0;
}
.hdr-search form { display: flex; gap: 8px; }
.hdr-search input {
	flex: 1; padding: 14px 18px; border-radius: 12px;
	background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text);
}

@media (max-width: 920px) {
	.primary-nav { display: none; }
	.hamburger { display: flex; }
	.header-cta { display: none; }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn-primary, .btn-ghost, .btn-amazon {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
	letter-spacing: -.005em; line-height: 1; cursor: pointer; transition: all .2s ease;
	text-decoration: none; border: 1px solid transparent;
}
.btn-primary {
	background: linear-gradient(135deg, var(--coral-gold), #ffb347);
	color: #1c1402; box-shadow: 0 10px 24px -10px rgba(244,211,94,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(244,211,94,0.75); color: #1c1402; }
.btn-ghost {
	background: var(--surface); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(244,211,94,0.4); color: var(--white); }
.btn-amazon {
	background: linear-gradient(135deg, #ffb347, #f4d35e);
	color: #1c1402;
	box-shadow: 0 10px 28px -10px rgba(244,211,94,0.6);
}
.btn-amazon:hover { transform: translateY(-2px); color: #1c1402; box-shadow: 0 16px 32px -12px rgba(244,211,94,0.8); }
.btn-amazon .btn-icon { display: inline-block; transition: transform .2s; }
.btn-amazon:hover .btn-icon { transform: translate(2px, -2px); }
.btn-lg { padding: 16px 30px; font-size: 15px; border-radius: 999px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-small { padding: 8px 14px; font-size: 12px; }

/* =============================================================
   Glass card
   ============================================================= */
.glass-card {
	background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
	border: 1px solid var(--border);
	border-radius: var(--radius);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: var(--shadow-card);
	position: relative; overflow: hidden;
}
.glass-card::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(244,211,94,0.04), transparent 30%);
	border-radius: inherit;
}

/* =============================================================
   Section heading
   ============================================================= */
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	background: rgba(244,211,94,0.12); color: var(--coral-gold);
	border: 1px solid rgba(244,211,94,0.28);
	margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; color: var(--white); }
.section-subtitle { color: var(--text-mute); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* =============================================================
   Hero
   ============================================================= */
.hero-reef {
	position: relative; padding: 120px 0 100px;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-overlay {
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(11,110,79,0.45), transparent 55%),
		radial-gradient(circle at 80% 60%, rgba(244,211,94,0.18), transparent 55%);
}
.coral-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: coralPulse 8s ease-in-out infinite alternate; }
.coral-glow-1 { width: 320px; height: 320px; background: rgba(11,110,79,0.6); top: 10%; left: 5%; }
.coral-glow-2 { width: 380px; height: 380px; background: rgba(244,211,94,0.4); top: 30%; right: 5%; animation-delay: 2s; }
.coral-glow-3 { width: 260px; height: 260px; background: rgba(6,70,99,0.7); bottom: 5%; left: 40%; animation-delay: 4s; }
@keyframes coralPulse { 0%{opacity:.4;transform:scale(1);} 100%{opacity:.7;transform:scale(1.15);} }

.caustics {
	position: absolute; inset: 0;
	background-image:
		radial-gradient(2px 2px at 20% 30%, rgba(244,211,94,0.6), transparent 50%),
		radial-gradient(1.5px 1.5px at 70% 50%, rgba(255,255,255,0.4), transparent 50%),
		radial-gradient(2px 2px at 40% 80%, rgba(244,211,94,0.5), transparent 50%);
	background-size: 200px 200px, 250px 250px, 300px 300px;
	animation: causticsDrift 30s linear infinite;
	opacity: .5;
}
@keyframes causticsDrift { from{background-position:0 0,0 0,0 0;} to{background-position:200px 200px,-250px 250px,300px -300px;} }

.hero-inner {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
}
.hero-headline {
	font-size: clamp(34px, 5.5vw, 60px); line-height: 1.05;
	color: var(--white); margin-bottom: 22px;
	letter-spacing: -0.025em;
}
.hero-sub { font-size: 18px; color: var(--text-mute); max-width: 580px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 32px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--white); }
.trust-item span { color: var(--text-mute); font-size: 13px; }

.quick-start-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.qs-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px; font-size: 13px;
	background: var(--surface); border: 1px solid var(--border); color: var(--text);
	transition: all .2s;
}
.qs-pill:hover { background: var(--surface-2); border-color: rgba(244,211,94,0.4); color: var(--white); }
.qs-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--marine-green); box-shadow: 0 0 6px var(--marine-green); }

/* Hero pick card */
.hero-pick { padding: 28px; max-width: 380px; margin-left: auto; }
.hp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.badge-pill {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	background: rgba(244,211,94,0.16); color: var(--coral-gold);
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	border: 1px solid rgba(244,211,94,0.3);
}
.hp-rating { color: var(--coral-gold); font-weight: 700; font-size: 14px; }
.hp-title { font-size: 22px; margin-bottom: 6px; color: var(--white); }
.hp-meta { color: var(--text-mute); font-size: 13px; margin-bottom: 14px; }
.hp-bullets { list-style: none; padding: 0; margin: 0 0 18px; }
.hp-bullets li { padding: 6px 0; font-size: 13.5px; color: var(--text); border-bottom: 1px dashed var(--border); }
.hp-bullets li:last-child { border-bottom: 0; }
.hp-secondary { display: block; margin-top: 10px; font-size: 13px; color: var(--text-mute); }

@media (max-width: 920px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-pick { margin-left: 0; max-width: 100%; }
	.hero-trust { flex-wrap: wrap; gap: 18px; }
}

/* =============================================================
   Affiliate disclosure
   ============================================================= */
.aff-disclosure {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
	background: rgba(11,110,79,0.10); border: 1px solid rgba(11,110,79,0.3); border-radius: 10px;
	color: var(--text-mute); font-size: 12.5px; line-height: 1.4; max-width: 720px;
}
.aff-disclosure--compact { padding: 8px 12px; font-size: 11.5px; }
.aff-disclosure svg { color: var(--marine-green); flex-shrink: 0; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
	position: relative;
	background: linear-gradient(180deg, #021024 0%, #010817 100%);
	border-top: 1px solid var(--border);
	padding: 80px 0 24px;
}
.footer-glow {
	position: absolute; top: -30px; left: 0; right: 0; height: 60px;
	background: radial-gradient(ellipse at 50% 50%, rgba(244,211,94,0.12), transparent 60%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { color: var(--white); font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; }
.footer-col li a { color: var(--text-mute); font-size: 14px; }
.footer-col li a:hover { color: var(--coral-gold); }
.footer-tag { color: var(--text-mute); font-size: 14px; margin-bottom: 12px; }
.footer-aff { font-size: 12px; color: var(--text-dim); }
.footer-newsletter { display: flex; gap: 6px; margin-top: 8px; }
.footer-newsletter input {
	flex: 1; padding: 10px 14px; border-radius: 10px;
	background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text);
}
.footer-bottom {
	margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px;
	font-size: 12.5px; color: var(--text-dim);
}
.legal-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.legal-menu a { color: var(--text-mute); font-size: 12.5px; }
@media (max-width: 768px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Mobile sticky CTA
   ============================================================= */
.mobile-cta {
	display: none;
	position: fixed; bottom: 16px; left: 16px; right: 16px;
	z-index: 80;
	padding: 14px 20px; border-radius: 999px;
	background: linear-gradient(135deg, var(--coral-gold), #ffb347);
	color: #1c1402; font-weight: 700; font-size: 14px;
	align-items: center; justify-content: center; gap: 8px;
	box-shadow: 0 18px 36px -10px rgba(244,211,94,0.65);
}
@media (max-width: 768px) {
	.mobile-cta { display: flex; }
	body { padding-bottom: 68px; }
	.section { padding: 64px 0; }
}
