/*
Theme Name: Fertility Mommies
Theme URI: https://fertilitymommies.com
Author: Max
Author URI: https://fertilitymommies.com
Description: A soft, feminine blog theme for Fertility Mommies — warm, nurturing, and beautifully minimal.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fertility-mommies
Tags: blog, feminine, fertility, parenting, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;1,6..12,300;1,6..12,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* palette — soft rose, warm neutrals, sage accent */
  --color-rose: #d4a0a0;
  --color-rose-light: #f2dede;
  --color-rose-pale: #faf4f4;
  --color-blush: #f8eeee;
  --color-sage: #a8b5a0;
  --color-sage-light: #dce3d8;
  --color-cream: #fdfbf9;
  --color-warm-white: #fffcfa;
  --color-text: #4a3f3f;
  --color-text-light: #8a7a7a;
  --color-text-lighter: #b0a0a0;
  --color-heading: #3d2f2f;
  --color-border: #ecdcdc;
  --color-border-light: #f5ebeb;

  /* typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  /* spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* layout */
  --max-width: 1140px;
  --content-width: 720px;
  --sidebar-width: 320px;
  --border-radius: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-warm-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-rose);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--color-heading);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2.1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
  margin-bottom: 1.4em;
  font-size: 1.05rem;
}

blockquote {
  border-left: 3px solid var(--color-rose);
  padding: 1.2rem 1.5rem;
  margin: var(--space-md) 0;
  background: var(--color-blush);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-light);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-content {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.site-content.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ===== TOP BAR — subtle announcement ===== */
.top-bar {
  background: linear-gradient(135deg, var(--color-rose-light), var(--color-sage-light));
  text-align: center;
  padding: 0.55rem var(--space-sm);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--color-warm-white);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: -0.01em;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--color-rose);
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--color-text-lighter);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  display: none;
}

/* ===== NAVIGATION ===== */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.main-navigation a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  padding: 0.35rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-rose);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.main-navigation a:hover {
  color: var(--color-heading);
}

.main-navigation a:hover::after {
  width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--color-heading);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
  width: 100%;
}

/* mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-heading);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO / FEATURED AREA ===== */
.hero-section {
  background: linear-gradient(160deg, var(--color-blush) 0%, var(--color-rose-pale) 40%, var(--color-cream) 100%);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,160,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,181,160,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  background: var(--color-rose);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: var(--color-heading);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== POST CARDS ===== */
.posts-grid {
  display: grid;
  gap: var(--space-lg);
}

.post-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(74,63,63,0.06);
}

.post-card-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-blush);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

.post-card-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.post-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage);
  background: var(--color-sage-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--color-text-lighter);
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--color-heading);
}

.post-card-title a:hover {
  color: var(--color-rose);
}

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-rose);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more:hover {
  gap: 0.55rem;
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(2px);
}

/* ===== FEATURED POST (first post, full width) ===== */
.post-card.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.post-card.featured .post-card-thumbnail {
  aspect-ratio: auto;
  min-height: 340px;
}

.post-card.featured .post-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg);
}

.post-card.featured .post-card-title {
  font-size: 1.85rem;
}

/* ===== SINGLE POST ===== */
.single-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  max-width: var(--content-width);
  margin: 0 auto;
}

.single-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

.single-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.single-meta {
  font-size: 0.88rem;
  color: var(--color-text-lighter);
}

.single-meta a {
  color: var(--color-text-light);
  font-weight: 500;
}

.single-featured-image {
  max-width: 960px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.entry-content h2 {
  margin: var(--space-xl) 0 var(--space-sm);
}

.entry-content h3 {
  margin: var(--space-lg) 0 var(--space-sm);
}

.entry-content ul, .entry-content ol {
  margin: 0 0 1.4em 1.5em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content a {
  color: var(--color-rose);
  border-bottom: 1px solid var(--color-border);
}

.entry-content a:hover {
  border-bottom-color: var(--color-rose);
}

.entry-content img {
  border-radius: var(--border-radius);
  margin: var(--space-md) 0;
}

/* author box */
.author-box {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  background: var(--color-blush);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin: var(--space-2xl) auto var(--space-xl);
  max-width: var(--content-width);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== SIDEBAR ===== */
.sidebar {
  padding-top: var(--space-sm);
}

.widget {
  margin-bottom: var(--space-xl);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-rose-light);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.92rem;
}

.widget li:last-child {
  border-bottom: none;
}

.widget li a {
  color: var(--color-text);
}

.widget li a:hover {
  color: var(--color-rose);
}

/* newsletter widget */
.newsletter-widget {
  background: linear-gradient(160deg, var(--color-blush), var(--color-rose-pale));
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
}

.newsletter-widget .widget-title {
  border-bottom: none;
  padding-bottom: 0;
}

.newsletter-widget p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  background: #fff;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.25s ease;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-rose);
}

.newsletter-form button {
  width: 100%;
  padding: 0.7rem;
  background: var(--color-rose);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--color-heading);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.25s ease;
}

.pagination a:hover {
  background: var(--color-blush);
  color: var(--color-heading);
}

.pagination .current {
  background: var(--color-rose);
  color: #fff;
}

/* ===== COMMENTS ===== */
.comments-area {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
}

.comment-body {
  padding: var(--space-md);
  background: var(--color-rose-pale);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
}

.comment-author {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--color-text-lighter);
  margin-bottom: 0.5rem;
}

.comment-respond .comment-form input,
.comment-respond .comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: border-color 0.25s ease;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
  border-color: var(--color-rose);
  outline: none;
}

.comment-respond .submit {
  background: var(--color-rose);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comment-respond .submit:hover {
  background: var(--color-heading);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-rose-pale);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-about .site-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 300px;
}

.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  color: var(--color-heading);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.footer-nav a:hover {
  color: var(--color-rose);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-rose-light);
  color: var(--color-heading);
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--color-rose);
  color: #fff;
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-lighter);
}

/* ===== SEARCH PAGE ===== */
.search-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.search-header h1 {
  font-family: var(--font-display);
}

.search-form {
  display: flex;
  max-width: 480px;
  margin: var(--space-md) auto 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 50px 0 0 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-rose);
}

.search-form button {
  padding: 0.75rem 1.5rem;
  background: var(--color-rose);
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}

/* ===== PAGE ===== */
.page-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
}

.page-description {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* ===== 404 PAGE ===== */
.error-404 {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-404 h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  color: var(--color-rose-light);
}

.error-404 h2 {
  margin-bottom: var(--space-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-xl);
  }

  .post-card.featured {
    grid-template-columns: 1fr;
  }

  .post-card.featured .post-card-thumbnail {
    min-height: 240px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  h1, .hero-title { font-size: 2.2rem; }
  .single-title { font-size: 2rem; }
}

@media (max-width: 640px) {
  .site-tagline { display: none; }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  }

  .main-navigation ul.toggled {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-section {
    padding: var(--space-xl) var(--space-sm);
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== UTILITY ===== */

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.78rem;
  color: var(--color-text-lighter);
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb-link {
  color: var(--color-text-light);
}

.breadcrumb-link:hover {
  color: var(--color-rose);
}

.breadcrumb-sep {
  color: var(--color-text-lighter);
  margin: 0 0.15rem;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== SCREEN READER ===== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* subtle fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeInUp 0.5s ease both;
}

.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.16s; }
.post-card:nth-child(4) { animation-delay: 0.24s; }
.post-card:nth-child(5) { animation-delay: 0.32s; }
