/* ============================================================
   REEF HEALTH BENEFITS -- STAY IN THE KNOW
   WordPress Blog Hub Page
============================================================ */

:root {
  --reef-pink:       #ee2966;
  --reef-pink-dark:  #a51d46;
  --reef-pink-light: #fde8ef;
  --reef-black:      #111111;
  --reef-gray-dark:  #333333;
  --reef-gray:       #666666;
  --reef-gray-light: #f4f4f4;
  --reef-white:      #ffffff;
  --reef-border:     #e8e8e8;
  --max-w:           1200px;
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --transition:      0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* -- UTILITY -- */
.reef-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}

.reef-section { padding-block: 80px; }

.reef-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--reef-pink);
  margin-bottom: 12px;
}

/* -- BUTTONS -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--reef-pink);
  color: var(--reef-white);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--reef-pink-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--reef-pink);
  font-size: 14px;
  font-weight: 700;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition), gap var(--transition);
}
.btn-outline:hover { color: var(--reef-pink-dark); gap: 12px; }

/* =====================================================
   1. HERO
===================================================== */
.reef-hero {
  background: var(--reef-gray-light);
  padding-block: 80px 72px;
  position: relative;
  overflow: hidden;
}
.reef-hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -40px;
  width: 380px;
  height: 380px;
  background: var(--reef-pink-light);
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  opacity: 0.55;
  pointer-events: none;
}
.reef-hero::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  background: var(--reef-pink);
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}
.reef-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.reef-hero h1 {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--reef-black);
  margin-bottom: 20px;
}
.reef-hero h1 em {
  font-style: normal;
  color: var(--reef-pink);
}
.reef-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--reef-gray-dark);
  max-width: 520px;
  margin-bottom: 28px;
  font-weight: 400;
}
.reef-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.reef-hero-stat {
  font-size: 13px;
  color: var(--reef-gray);
  font-weight: 500;
}
.reef-hero-stat strong { color: var(--reef-black); font-weight: 700; }
.reef-dot {
  width: 4px;
  height: 4px;
  background: #cccccc;
  border-radius: 50%;
}

/* =====================================================
   2. FEATURED ARTICLE
===================================================== */
.reef-featured {
  padding-block: 72px 56px;
  background: var(--reef-white);
}
.reef-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}
.reef-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--reef-black);
  letter-spacing: -0.01em;
}
.reef-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--reef-gray-light);
  border: 1px solid var(--reef-border);
  min-height: 420px;
  transition: box-shadow var(--transition);
}
.reef-featured-card:hover {
  box-shadow: 0 12px 48px rgba(238,41,102,0.10);
}
.reef-featured-img {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--reef-pink-light);
}
.reef-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.reef-featured-card:hover .reef-featured-img img { transform: scale(1.03); }

.reef-featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reef-featured-body h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--reef-black);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.reef-featured-body h3 a:hover { color: var(--reef-pink); }
.reef-featured-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--reef-gray);
  margin-bottom: 28px;
  font-weight: 400;
}
.reef-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.reef-featured-byline {
  font-size: 12px;
  color: var(--reef-gray);
  font-weight: 500;
}
.reef-featured-byline strong {
  color: var(--reef-gray-dark);
  font-weight: 700;
}

/* =====================================================
   3. RECENT ARTICLES GRID
===================================================== */
.reef-posts {
  padding-block: 16px 80px;
  background: var(--reef-white);
}
.reef-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.reef-post-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--reef-border);
  background: var(--reef-white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.reef-post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.reef-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--reef-pink-light);
}
.reef-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.reef-post-card:hover .reef-card-img img { transform: scale(1.04); }

.reef-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.reef-card-date {
  font-size: 11px;
  color: var(--reef-gray);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.reef-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--reef-black);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.reef-card-body h4 a:hover { color: var(--reef-pink); }
.reef-card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--reef-gray);
  flex: 1;
  margin-bottom: 18px;
  font-weight: 400;
}
.reef-card-footer {
  border-top: 1px solid var(--reef-border);
  padding-top: 14px;
}

/* PAGINATION (rendered by WP paginate_links()) */
.reef-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 56px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.reef-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  border: 1px solid var(--reef-border);
  background: var(--reef-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--reef-gray-dark);
  cursor: pointer;
  transition: all var(--transition);
}
.reef-pagination .page-numbers:hover,
.reef-pagination .page-numbers.current {
  background: var(--reef-pink);
  border-color: var(--reef-pink);
  color: var(--reef-white);
}
.reef-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
.reef-pagination .page-numbers.dots:hover {
  background: transparent;
  color: var(--reef-gray-dark);
}

/* =====================================================
   4. EMAIL SUBSCRIBE
===================================================== */
.reef-subscribe {
  background: var(--reef-pink);
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}
.reef-subscribe::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 60px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.reef-subscribe::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border: 50px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.reef-subscribe-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
}
.reef-subscribe-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: var(--reef-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.reef-subscribe h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--reef-white);
  margin-bottom: 14px;
}
.reef-subscribe p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 400;
}
.reef-subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-inline: auto;
}
.reef-subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: var(--reef-white);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.reef-subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.reef-subscribe-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.18);
}
.reef-subscribe-form button {
  background: var(--reef-white);
  color: var(--reef-pink);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.reef-subscribe-form button:hover {
  background: var(--reef-gray-light);
  transform: translateY(-1px);
}
.reef-subscribe-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  font-weight: 500;
}

.reef-subscribe-msg {
  max-width: 460px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}
.reef-subscribe-msg--ok {
  background: rgba(255,255,255,0.95);
  color: var(--reef-pink-dark);
}
.reef-subscribe-msg--err {
  background: rgba(165,29,70,0.95);
  color: var(--reef-white);
}

/* Screen reader only — hide visually, keep for assistive tech */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =====================================================
   5. BOTTOM CTA
===================================================== */
.reef-bottom-cta {
  background: var(--reef-gray-light);
  padding-block: 64px;
}
.reef-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.reef-bottom-cta-text h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--reef-black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.reef-bottom-cta-text p {
  font-size: 15px;
  color: var(--reef-gray);
  line-height: 1.6;
  max-width: 480px;
  font-weight: 400;
}
.reef-bottom-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.reef-bottom-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--reef-gray-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.reef-bottom-link:hover { color: var(--reef-pink); }

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
  .reef-container { padding-inline: 24px; }
  .reef-featured-card { grid-template-columns: 1fr; }
  .reef-featured-img { min-height: 260px; }
  .reef-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .reef-bottom-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .reef-section { padding-block: 56px; }
  .reef-posts-grid { grid-template-columns: 1fr; }
  .reef-subscribe-form { flex-direction: column; }
  .reef-subscribe-form input[type="email"],
  .reef-subscribe-form button { border-radius: var(--radius-md); }
  .reef-section-head { flex-direction: column; align-items: flex-start; }
  .reef-featured-body { padding: 28px 24px; }
}
