/*
Theme Name:  IcyNets Soft Modern
Theme URI:   https://icynets.com
Author:      IcyNets
Author URI:  https://icynets.com
Description: A clean, soft modern WordPress theme for IcyNets — featuring a floating pill navbar, coral gradient accents, bento-style hero cards, and a fully responsive blog & tools layout.
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: icynets
Tags:        blog, custom-menu, featured-images, full-width-template, sticky-post, custom-logo, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #fafaf8;
  --surface:      #ffffff;
  --border:       #e8e6e0;
  --coral:        #ff6b47;
  --coral-light:  #fff0ec;
  --coral-mid:    rgba(255,107,71,0.15);
  --mint:         #00c4a0;
  --mint-light:   #e8faf6;
  --navy:         #1a1f36;
  --navy-mid:     #2d3561;
  --text:         #1a1f36;
  --muted:        #7b8297;
  --light:        #f0ede8;
  --gradient:     linear-gradient(135deg, #ff6b47 0%, #ff9b6b 50%, #ffba8a 100%);
  --font-head:    'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --radius:       20px;
  --radius-sm:    12px;
  --container:    1280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 200;
  margin: 16px 40px 0;
}
.site-nav {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Logo */
.site-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo img {
  max-height: 36px;
  width: auto;
}

/* Primary nav menu */
.primary-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.primary-menu li { position: relative; }
.primary-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: block;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: var(--light);
  color: var(--text);
}

/* Nav CTA pill — add class "menu-btn" to the contact menu item */
.primary-menu .menu-btn > a,
.nav-cta {
  background: var(--coral) !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s !important;
}
.primary-menu .menu-btn > a:hover,
.nav-cta:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
  background: var(--coral) !important;
}

/* Sub-menus */
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 10;
}
.primary-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu a {
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--light);
  border: none;
  border-radius: 100px;
  padding: 0 12px;
  flex-shrink: 0;
  transition: background 0.2s;
  appearance: none;
}
.nav-hamburger:hover { background: var(--border); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 199;
}
.nav-drawer.open { display: block; }
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,31,54,0.3);
  backdrop-filter: blur(4px);
  animation: icyFadeIn 0.2s ease;
}
.nav-drawer-panel {
  position: absolute;
  top: 80px; left: 16px; right: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: icySlideDown 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes icyFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes icySlideDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
}
.drawer-menu a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 14px;
  transition: background 0.15s;
}
.drawer-menu a:hover { background: var(--light); }
.drawer-cta {
  display: block;
  background: var(--coral);
  color: white !important;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 14px;
  transition: opacity 0.2s;
}
.drawer-cta:hover { opacity: 0.9; }

/* ============================================================
   HERO (front page)
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 60px 80px;
  overflow: hidden;
}
.hero-bg-blob {
  position: absolute;
  top: -80px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,107,71,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg-blob-2 {
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,196,160,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-light);
  color: var(--coral);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,107,71,0.2);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--navy);
}
.hero h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 44px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Feature cards grid */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.hcard:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.hcard.accent        { background: var(--navy); color: white; border-color: var(--navy); }
.hcard.accent-coral  { background: var(--coral); color: white; border-color: var(--coral); grid-column: span 2; }
.hcard-emoji { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.hcard h3   { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.hcard p    { font-size: 0.82rem; line-height: 1.65; opacity: 0.75; }
.hcard-num  {
  font-family: var(--font-head);
  font-size: 3rem; font-weight: 700;
  color: rgba(255,255,255,0.2);
  position: absolute; bottom: 16px; right: 20px;
  line-height: 1;
}
.hcard.accent-coral .hcard-num { color: rgba(255,255,255,0.15); font-size: 4rem; }

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn-coral {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(255,107,71,0.3);
}
.btn-coral:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,107,71,0.4); color: white; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--coral); background: var(--coral-light); }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 60px;
}
.stat-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num em { font-style: italic; color: var(--coral); }
.stat-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 80px 60px;
  max-width: calc(var(--container) + 120px);
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.section h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 48px;
}
.section h2 em { font-style: italic; color: var(--coral); }

/* ============================================================
   BLOG GRID (homepage)
   ============================================================ */
.blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 64px rgba(26,31,54,0.1); }
.blog-card.tall { grid-row: span 2; }

.blog-thumb {
  background: var(--light);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card.tall .blog-thumb { aspect-ratio: 4/3; font-size: 3.5rem; }
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.blog-thumb-tint {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,71,0.1), transparent);
  pointer-events: none;
}
.blog-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: white;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,107,71,0.2);
  z-index: 1;
}
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--navy);
}
.blog-card.tall h3 { font-size: 1.35rem; }
.entry-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.blog-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blog-author { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.blog-date   { font-size: 0.75rem; color: var(--muted); margin-left: auto; }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); border-color: var(--coral); }
.tool-icon-wrap {
  width: 52px; height: 52px;
  background: var(--coral-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.tool-card:nth-child(2) .tool-icon-wrap { background: var(--mint-light); }
.tool-card:nth-child(3) .tool-icon-wrap { background: #f0eeff; }
.tool-card:nth-child(4) .tool-icon-wrap { background: #fff8e8; }
.tool-card h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: var(--navy); }
.tool-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   THEMES SECTION
   ============================================================ */
.themes-bg { background: var(--navy); padding: 100px 0; }
.themes-bg .section-label { color: var(--mint); }
.themes-bg .section-label::before { background: var(--mint); }
.themes-bg .section h2 { color: white; margin-bottom: 48px; }
.themes-bg .section h2 em { color: var(--coral); }

.themes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.theme-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: block;
  transition: transform 0.25s, background 0.25s;
}
.theme-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.theme-preview {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(255,107,71,0.3), rgba(255,107,71,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.theme-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.theme-card:nth-child(2) .theme-preview { background: linear-gradient(135deg, rgba(0,196,160,0.3), rgba(0,196,160,0.05)); }
.theme-card:nth-child(3) .theme-preview { background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(99,102,241,0.05)); }
.theme-body { padding: 24px; }
.theme-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 8px;
}
.theme-desc { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-bottom: 18px; }
.theme-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-wrap {
  margin: 0 60px 80px;
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 70px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::before {
  content: '✉';
  position: absolute;
  right: 60px; bottom: -20px;
  font-size: 10rem;
  opacity: 0.08;
  pointer-events: none;
}
.newsletter-wrap h2 { color: white; font-size: 2.2rem; margin-bottom: 14px; }
.newsletter-wrap p  { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.7; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  background: white;
  color: var(--navy);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button,
.newsletter-form input[type="submit"] {
  width: 100%;
  padding: 16px 28px;
  background: var(--navy);
  color: white;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 70px 60px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 36px;
}
.footer-logo-mark {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  color: white;
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
}
.footer-logo-mark em { color: var(--coral); font-style: normal; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.75; }
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-footer a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   SINGLE POST / PAGES
   ============================================================ */
.page-header {
  padding: 60px 60px 0;
  max-width: calc(var(--container) + 120px);
  margin: 0 auto;
}
.page-header .post-category {
  display: inline-block;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-decoration: none;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 800px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.post-meta .author-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--light);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
}
.post-meta .author-chip img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.post-meta .author-chip span { font-weight: 600; color: var(--text); font-size: 0.8rem; }
.post-meta .sep { opacity: 0.3; }

/* Featured image */
.post-featured-image {
  margin: 0 60px 60px;
  max-width: calc(var(--container) + 120px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 60px;
}
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 520px;
  object-fit: cover;
}

/* Entry content */
.entry-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 60px 80px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  /* Clip anything that tries to escape the column */
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* ── Responsive images ──────────────────────────────────────
   WordPress injects inline width/height attributes on <img> tags.
   max-width:100% alone won't beat an inline style, so we need
   !important on both max-width and width to fully contain images.
   Covers standard tags, figure wrappers, WP caption/block classes,
   align helpers, and the generated wp-image-* class.
   ──────────────────────────────────────────────────────────── */
.entry-content img,
.entry-content figure,
.entry-content figure img,
.entry-content .wp-block-image,
.entry-content .wp-block-image img,
.entry-content .wp-caption,
.entry-content .wp-caption img,
.entry-content .alignleft,
.entry-content .alignright,
.entry-content .aligncenter,
.entry-content .alignwide,
.entry-content .alignfull,
.entry-content .size-full,
.entry-content .size-large,
.entry-content .size-medium,
.entry-content [class*="wp-image-"] {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
}

/* page.php shares the entry-content class — same rules apply */
.page .entry-content img,
.page .entry-content figure,
.page .entry-content .wp-block-image img,
.page .entry-content .wp-caption img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content p  { margin-bottom: 1.5em; }
.entry-content a  { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { opacity: 0.8; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.5em 1.5em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
  border-left: 4px solid var(--coral);
  padding: 20px 28px;
  background: var(--coral-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2em 0;
  font-style: italic;
  color: var(--navy);
}
/* Style-only overrides for inline images (not figures/blocks) */
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 2em 0;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}
.entry-content pre {
  background: var(--navy);
  color: #e2eaf4;
  border-radius: var(--radius-sm);
  padding: 24px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 2em 0;
}
.entry-content code {
  background: var(--light);
  color: var(--coral);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9rem;
}
.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th { background: var(--light); font-weight: 700; }
.entry-content tr:hover td { background: var(--coral-light); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 0 60px;
}
.nav-previous,
.nav-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.nav-previous:hover,
.nav-next:hover { border-color: var(--coral); transform: translateY(-2px); }
.nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.nav-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); line-height: 1.4; }
.nav-next { text-align: right; }

/* ============================================================
   ARCHIVE / SEARCH
   ============================================================ */
.archive-header {
  padding: 60px 60px 0;
  max-width: calc(var(--container) + 120px);
  margin: 0 auto;
}
.archive-header .archive-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.archive-header .archive-tag::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--coral);
  display: block; border-radius: 2px;
}
.archive-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 12px;
}
.archive-header .archive-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 560px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 60px 80px;
  max-width: calc(var(--container) + 120px);
  margin: 0 auto;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 60px 80px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 100px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--coral); color: var(--coral); }
.pagination .page-numbers.current {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}
.pagination .page-numbers.dots { background: none; border: none; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 60px 80px;
}
.comments-area h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 32px;
}
.comment-list { list-style: none; padding: 0; }
.comment { margin-bottom: 24px; }
.comment-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.comment-author { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.comment-meta   { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; }
.comment-content p { font-size: 0.92rem; line-height: 1.7; color: var(--text); }
.comment-form label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--coral); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--coral);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(255,107,71,0.3);
}
.comment-form input[type="submit"]:hover { opacity: 0.9; transform: translateY(-2px); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 120px 60px;
}
.error-404 .error-code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 700;
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.error-404 h1 { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); margin-bottom: 16px; }
.error-404 p  { color: var(--muted); font-size: 1.05rem; max-width: 440px; margin: 0 auto 36px; line-height: 1.7; }
.search-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--coral); }
.search-form button {
  background: var(--coral);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}
.search-form button:hover { opacity: 0.9; }

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.widget { margin-bottom: 40px; }
.widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.widget ul  { list-style: none; padding: 0; }
.widget li  { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget li:last-child { border-bottom: none; }
.widget a   { color: var(--text); text-decoration: none; transition: color 0.2s; }
.widget a:hover { color: var(--coral); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width: 1024px) {
  .nav-wrap    { margin: 12px 24px 0; }
  .hero        { padding: 60px 40px; }
  .stats-row   { margin: 0 40px; }
  .section     { padding: 72px 40px; }
  .newsletter-wrap  { margin: 0 40px 80px; }
  .site-footer { padding: 60px 40px 36px; }
  .archive-grid,
  .post-featured-image,
  .entry-content,
  .post-navigation,
  .comments-area,
  .pagination  { padding-left: 40px; padding-right: 40px; }
  .page-header,
  .archive-header { padding: 60px 40px 0; }
}

@media(max-width: 900px) {
  /* Nav */
  .nav-wrap    { margin: 12px 16px 0; }
  .site-nav    { border-radius: 20px; padding: 10px 10px 10px 22px; }
  .primary-menu { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero        { padding: 48px 20px 52px; }
  .hero-inner  { grid-template-columns: 1fr; gap: 36px; }
  .hero-cards  { grid-template-columns: 1fr 1fr; }
  .hcard.accent-coral { grid-column: span 2; }

  /* Stats */
  .stats-row   { margin: 0 20px; grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-cell   { padding: 28px 20px; }
  .stat-num    { font-size: 2.2rem; }

  /* Sections */
  .section     { padding: 52px 20px; }
  .blog-masonry { grid-template-columns: 1fr; }
  .blog-card.tall { grid-row: auto; }
  .themes-bg   { padding: 60px 0; }
  .themes-row  { grid-template-columns: 1fr; gap: 16px; }
  .tools-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Newsletter */
  .newsletter-wrap {
    margin: 0 20px 60px;
    padding: 44px 28px;
    grid-template-columns: 1fr;
    gap: 28px;
    border-radius: 24px;
  }
  .newsletter-wrap h2 { font-size: 1.9rem; }

  /* Footer */
  .site-footer { padding: 52px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Single / archive */
  .archive-grid { grid-template-columns: 1fr 1fr; padding: 40px 20px 60px; }
  .page-header, .archive-header { padding: 40px 20px 0; }
  .post-featured-image,
  .entry-content,
  .post-navigation,
  .comments-area,
  .pagination  { padding-left: 20px; padding-right: 20px; }
  .post-navigation { grid-template-columns: 1fr; }
}

@media(max-width: 560px) {
  .hero-cards  { grid-template-columns: 1fr; }
  .hcard.accent-coral { grid-column: span 1; }
  .tools-grid  { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1     { font-size: 2.6rem; }
  .error-404   { padding: 80px 20px; }
}

/* ============================================================
   PRE-FOOTER WIDGET STRIP
   ============================================================ */
.prefooter-strip {
  background: #f0ede8;            /* warm light tone, one step below --bg */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  *text-align: center!important;
}

/* Slightly different tint for the HomePage variant */
.prefooter-strip--prefooter-home {
  background: #f5f2ed;
}

.prefooter-inner {
  max-width: var(--container);
  margin: 0 auto;
  *display: flex;
  *flex-wrap: wrap;
  *justify-content: center;
  *align-items: flex-start;
  *gap: 40px;
  text-align: center;
  font-size: 12px;
}


/* Each widget inside the strip */
.prefooter-strip .widget {
  flex: 1 1 260px;
  *max-width: 360px;
  text-align: center;
  margin: 0;                       /* override global .widget margin */
}

/* Widget title */
.prefooter-strip .widget-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
  text-transform: none;
}

/* Widget body text */
.prefooter-strip .widget p,
.prefooter-strip .widget li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Links inside strip */
.prefooter-strip .widget a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.prefooter-strip .widget a:hover { opacity: 0.75; }

/* Lists inside strip */
.prefooter-strip .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prefooter-strip .widget li {
  padding: 5px 0;
  border-bottom: none;
}

/* Single-widget centre */
.prefooter-strip .widget:only-child {
  *max-width: 640px;
  flex-basis: 100%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .prefooter-strip { padding: 48px 20px; }
  .prefooter-inner { gap: 28px; }
  .prefooter-strip .widget { flex-basis: 100%; max-width: 100%; }
}

/* ============================================================
   BREADCRUMB NAV
   ============================================================ */
.breadcrumb {
  padding: 16px 60px 0;
  max-width: calc(var(--container) + 120px);
  margin: 0 auto;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  padding: 0;
  border: none;
}
.breadcrumb li:last-child { color: var(--text); }
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb-sep {
  color: var(--border);
  font-size: 0.9rem;
  line-height: 1;
  margin: 0 2px;
}

@media (max-width: 900px) {
  .breadcrumb { padding: 14px 20px 0; }
}
