/*
Theme Name: GeneratePress Child
Template: generatepress
Description: Child theme for Grandma's Tasty Recipes
Version: 1.0
Author: Willie Regan
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --brand:    #FA39E8;
  --brand-lt: #FF94F2;
  --brand-dk: #C020B5;
  --dark:     #111111;
  --dark2:    #1e1e1e;
  --bg:       #FDFAFA;
  --bg2:      #FFF0FD;
  --border:   #FFD6FA;
  --text:     #222222;
  --muted:    #6B4060;
  --white:    #ffffff;
  --radius:   10px;
  --shadow:   0 4px 18px rgba(250,57,232,0.12);
  --trans:    all 0.25s ease;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--brand-dk); }
ul { list-style: none; }

/* Kill all GP defaults */
.site-header,
.site-footer,
#site-navigation,
.navigation-search,
.inside-header,
.sidebar-widget-area,
.entry-image,
.post-image { display: none !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.gm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.gm-btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white) !important;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: var(--trans);
  text-align: center;
}
.gm-btn:hover {
  background: var(--brand-dk);
  border-color: var(--brand-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250,57,232,0.35);
}

.gm-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand) !important;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: var(--trans);
}
.gm-btn-outline:hover {
  background: var(--brand);
  color: var(--white) !important;
}

.gm-btn-sm {
  display: inline-block;
  background: var(--brand);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--trans);
}
.gm-btn-sm:hover { background: var(--brand-dk); }

.gm-btn-dark {
  display: inline-block;
  background: var(--dark);
  color: var(--white) !important;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: var(--trans);
}
.gm-btn-dark:hover {
  background: var(--dark2);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.gm-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.gm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* LOGO */
.gm-logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gm-logo-img {
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.gm-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.gm-logo-text span { color: var(--brand-lt); }

/* NAV */
.gm-nav { display: flex; align-items: center; gap: 4px; }
.gm-nav a {
  color: #e0e0e0;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: var(--trans);
  white-space: nowrap;
}
.gm-nav a:hover { color: var(--white); background: rgba(250,57,232,0.2); }

/* HEADER ACTIONS */
.gm-header-actions { display: flex; align-items: center; gap: 10px; }

.gm-search-btn {
  background: none;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
  transition: var(--trans);
}
.gm-search-btn:hover { color: var(--brand-lt); background: rgba(255,255,255,0.1); }

/* HAMBURGER */
.gm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.gm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.gm-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gm-hamburger.open span:nth-child(2) { opacity: 0; }
.gm-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SEARCH BAR */
.gm-search-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(250,57,232,0.3);
  padding: 16px 0;
  display: none;
}
.gm-search-bar.open { display: block; }
.gm-search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.gm-search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid rgba(250,57,232,0.4);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
}
.gm-search-form input::placeholder { color: #aaa; }
.gm-search-form input:focus { border-color: var(--brand); }
.gm-search-form button { white-space: nowrap; }

/* MOBILE NAV */
.gm-mobile-nav {
  display: none;
  background: var(--dark2);
  border-top: 1px solid rgba(250,57,232,0.3);
  padding: 16px 0;
}
.gm-mobile-nav.open { display: block; }
.gm-mobile-nav a {
  display: block;
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--trans);
}
.gm-mobile-nav a:hover { color: var(--brand-lt); background: rgba(250,57,232,0.08); }

/* ============================================================
   HERO
   ============================================================ */
.gm-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FA39E8 0%, #C020B5 100%);
  overflow: hidden;
}
.gm-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-img) center/cover no-repeat;
  z-index: 0;
}
.gm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,32,181,0.88) 0%, rgba(17,17,17,0.72) 100%);
  z-index: 1;
}
.gm-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 80px 0;
}
.gm-hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.gm-hero h1 { color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.gm-hero-tagline { font-size: 1.15rem; opacity: 0.9; max-width: 540px; margin-bottom: 28px; }
.gm-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Category hero */
.gm-archive-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 60px 0;
  color: var(--white);
}
.gm-archive-hero h1 { color: var(--white); margin-bottom: 10px; }
.gm-archive-hero .gm-cat-desc { color: #ccc; max-width: 600px; margin-bottom: 16px; }
.gm-count-badge {
  display: inline-block;
  background: rgba(250,57,232,0.2);
  border: 1px solid var(--brand);
  color: var(--brand-lt);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.gm-stats-bar {
  background: var(--brand);
  padding: 18px 0;
}
.gm-stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gm-stat {
  text-align: center;
  color: var(--white);
}
.gm-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.gm-stat-lbl {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.gm-section { padding: 64px 0; }

.gm-section-alt  { background: var(--bg2); }
.gm-section-title {
  text-align: center;
  margin-bottom: 40px;
}
.gm-section-title h2 { margin-bottom: 8px; }
.gm-section-title p { color: var(--muted); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.gm-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.gm-cat-grid > * { min-width: 0; }
.gm-cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.gm-cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(250,57,232,0.25); }
.gm-cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gm-cat-card:hover .gm-cat-card-img { transform: scale(1.07); }
.gm-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.82) 0%, rgba(17,17,17,0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gm-cat-card-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* ============================================================
   RECIPE CARDS
   ============================================================ */
.gm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gm-grid > * { min-width: 0; }
.gm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gm-grid-3 > * { min-width: 0; }

.gm-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: var(--trans);
  border: 1px solid var(--border);
}
.gm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(250,57,232,0.15);
}
.gm-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg2);
}
.gm-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gm-card:hover .gm-card-img { transform: scale(1.05); }
.gm-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.gm-card-body { padding: 16px; }
.gm-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gm-card-title a { color: inherit; }
.gm-card-title a:hover { color: var(--brand); }
.gm-card-date { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.gm-breadcrumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gm-breadcrumbs a { color: var(--brand); }
.gm-breadcrumbs a:hover { color: var(--brand-dk); }
.gm-breadcrumbs span { color: var(--muted); }

.gm-breadcrumbs-dark {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.gm-breadcrumbs-dark a { color: var(--white); }
.gm-breadcrumbs-dark a:hover { color: var(--brand-lt); }
.gm-breadcrumbs-dark span { color: rgba(255,255,255,0.5); }

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.gm-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}
.gm-single-content {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.gm-single-content p { margin-bottom: 1.2rem; }
.gm-single-content h2,
.gm-single-content h3 { margin: 2rem 0 0.75rem; }
.gm-single-content ul,
.gm-single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.gm-single-content ul { list-style: disc; }
.gm-single-content ol { list-style: decimal; }
.gm-single-content li { margin-bottom: 0.4rem; }
.gm-single-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.gm-single-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 12px 20px;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}
.gm-single-content table { max-width: 100%; overflow-x: auto; display: block; }
.gm-single-content pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.gm-single-content iframe { max-width: 100%; }

/* Post meta */
.gm-post-header { margin-bottom: 28px; }
.gm-post-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}
.gm-meta-author-link { color: var(--brand); font-weight: 600; }
.gm-meta-author-link:hover { color: var(--brand-dk); }
.gm-post-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.gm-sidebar { display: flex; flex-direction: column; gap: 28px; }
.gm-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.gm-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand);
}
.gm-widget-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}
.gm-widget-cats a:hover { color: var(--brand); }
.gm-widget-cats a span {
  background: var(--bg2);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.gm-recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.gm-recent-post:last-child { border-bottom: none; }
.gm-recent-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.gm-recent-info { flex: 1; }
.gm-recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gm-recent-title:hover { color: var(--brand); }
.gm-recent-date { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

/* Sidebar newsletter widget */
.gm-widget-nl input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}
.gm-widget-nl input:focus { border-color: var(--brand); }
.gm-widget-nl button { width: 100%; }

/* Author strip widget */
.gm-author-widget-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  object-fit: cover;
  margin-bottom: 12px;
}
.gm-author-widget-name { font-weight: 700; margin-bottom: 6px; }
.gm-author-widget-bio { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.gm-related { padding: 48px 0; border-top: 1px solid var(--border); }
.gm-related h3 { margin-bottom: 24px; }

/* ============================================================
   AUTHOR STRIP (homepage)
   ============================================================ */
.gm-author-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}
.gm-author-img-wrap { text-align: center; }
.gm-author-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--brand);
  margin: 0 auto 16px;
}
.gm-author-strip-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.gm-author-strip-bio { color: var(--muted); font-size: 0.95rem; max-width: 620px; }
.gm-author-strip-bio p { margin-bottom: 0.75rem; }

/* ============================================================
   SPOTLIGHT / FEATURED RECIPE
   ============================================================ */
.gm-spotlight {
  background: var(--dark);
  padding: 64px 0;
}
.gm-spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.gm-spotlight-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.gm-spotlight-text { color: var(--white); }
.gm-spotlight-text h2 { color: var(--white); margin-bottom: 12px; }
.gm-spotlight-label {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.gm-spotlight-text p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }

/* ============================================================
   NEWSLETTER BOX
   ============================================================ */
.gm-nl-box {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}
.gm-nl-box h2 { color: var(--white); margin-bottom: 12px; }
.gm-nl-box p { opacity: 0.9; max-width: 480px; margin: 0 auto 28px; }
.gm-nl-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.gm-nl-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
}
.gm-nl-form button {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans);
}
.gm-nl-form button:hover { background: var(--dark2); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.gm-about-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, rgba(192,32,181,0.5) 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}
.gm-about-hero h1 { color: var(--white); margin-bottom: 12px; }
.gm-about-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

.gm-about-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.gm-about-avatar {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--brand);
  margin: 0 auto;
}
.gm-about-text h2 { margin-bottom: 16px; }
.gm-about-text p { color: var(--muted); margin-bottom: 1rem; }

.gm-pullquote {
  border-left: 5px solid var(--brand);
  background: var(--bg2);
  padding: 24px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
}
.gm-pullquote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brand-dk);
  line-height: 1.5;
  font-weight: 600;
}
.gm-pullquote cite { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

.gm-cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.gm-cred-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.gm-cred-icon { font-size: 2rem; margin-bottom: 12px; }
.gm-cred-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.gm-cred-text { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.gm-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.gm-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.gm-info-icon { font-size: 2rem; margin-bottom: 12px; }
.gm-info-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.gm-info-text { font-size: 0.88rem; color: var(--muted); }
.gm-info-text a { color: var(--brand); }

.gm-contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.gm-form-group { margin-bottom: 20px; }
.gm-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.gm-form-group input,
.gm-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}
.gm-form-group input:focus,
.gm-form-group textarea:focus { border-color: var(--brand); }
.gm-form-group textarea { resize: vertical; min-height: 140px; }
#gm-form-msg { margin-top: 14px; font-weight: 600; }
#gm-form-msg.success { color: #1a8a1a; }
#gm-form-msg.error   { color: #c0392b; }

/* ============================================================
   ALL RECIPES / FILTER BAR
   ============================================================ */
.gm-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gm-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
}
.gm-filter-btn:hover,
.gm-filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.gm-page-content {
  padding: 48px 0;
  max-width: 800px;
}
.gm-page-content h2, .gm-page-content h3 { margin: 1.5rem 0 0.75rem; }
.gm-page-content p { margin-bottom: 1rem; color: var(--muted); }
.gm-page-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.gm-page-content li { margin-bottom: 0.4rem; }

/* ============================================================
   WRITE FOR US PAGE
   ============================================================ */
.gm-wfu-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0;
  align-items: start;
}
.gm-wfu-main h2 { margin: 1.5rem 0 0.75rem; }
.gm-wfu-main p { color: var(--muted); margin-bottom: 1rem; }
.gm-wfu-main ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.gm-wfu-main li { margin-bottom: 0.5rem; color: var(--muted); }
.gm-wfu-steps { counter-reset: step; }
.gm-wfu-step {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.gm-wfu-step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.gm-wfu-step-content h4 { margin-bottom: 6px; }
.gm-wfu-step-content p  { margin: 0; color: var(--muted); }

.gm-checklist { list-style: none !important; padding-left: 0 !important; }
.gm-checklist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.gm-checklist li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* ============================================================
   LOAD MORE
   ============================================================ */
.gm-load-more-wrap { text-align: center; margin-top: 36px; }
#gm-load-more,
#gm-archive-load-more,
#gm-all-recipes-load-more {
  min-width: 180px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.gm-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.gm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.gm-footer-logo-img {
  height: 40px;
  width: auto;
  max-width: none;
  margin-bottom: 14px;
}
.gm-footer-tagline { font-size: 0.88rem; margin-bottom: 18px; opacity: 0.7; }
.gm-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250,57,232,0.15);
  border: 1px solid rgba(250,57,232,0.3);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--trans);
}
.gm-footer-social a:hover { background: var(--brand); border-color: var(--brand); }

.gm-footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(250,57,232,0.4);
}
.gm-footer-links { display: flex; flex-direction: column; gap: 8px; }
.gm-footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--trans);
}
.gm-footer-links a:hover { color: var(--brand-lt); padding-left: 4px; }

.gm-footer-recent { display: flex; flex-direction: column; gap: 12px; }
.gm-footer-recent-item { display: flex; gap: 10px; align-items: center; }
.gm-footer-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.gm-footer-recent-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gm-footer-recent-title:hover { color: var(--brand-lt); }

.gm-footer-nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.gm-footer-nl-form input {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(250,57,232,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.gm-footer-nl-form input::placeholder { color: #888; }
.gm-footer-nl-form input:focus { border-color: var(--brand); }
.gm-footer-nl-form button { width: 100%; }

.gm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.gm-footer-bottom a { color: rgba(255,255,255,0.55); }
.gm-footer-bottom a:hover { color: var(--brand-lt); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.gm-back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--white) !important;
  border-radius: 50%;
  font-size: 1.6rem;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 9999;
}
.gm-back-top.show { display: flex; }
.gm-back-top:hover { background: var(--dark2) !important; }

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .gm-nav { display: none; }
  .gm-hamburger { display: flex; }

  .gm-single-layout { grid-template-columns: 1fr; }
  .gm-sidebar { display: none; }

  .gm-grid { grid-template-columns: repeat(3, 1fr); }
  .gm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gm-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-spotlight-inner { grid-template-columns: 1fr; }
  .gm-author-strip { grid-template-columns: 1fr; text-align: center; }
  .gm-about-intro { grid-template-columns: 1fr; }
  .gm-wfu-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .gm-logo-img { height: 34px; max-width: 160px; }
  .gm-header-inner { height: 60px; padding: 0 16px; }
  .gm-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-contact-grid { grid-template-columns: 1fr; }
  .gm-cred-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-nl-form { flex-direction: column; }
  .gm-hero-btns { flex-direction: column; align-items: flex-start; }
  .gm-section { padding: 44px 0; }
  .gm-nl-box { padding: 36px 24px; }
  .gm-about-avatar { max-width: 180px; }
  .gm-container { padding: 0 16px; width: 100%; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .gm-grid { grid-template-columns: 1fr; }
  .gm-grid-3 { grid-template-columns: 1fr; }
  .gm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-footer-grid { grid-template-columns: 1fr; }
  .gm-hero { min-height: 380px; }
  .gm-stats-inner { gap: 20px; justify-content: center; }
  .gm-stats-inner .gm-stat { width: 45%; }
  .gm-cred-grid { grid-template-columns: 1fr; }
  .gm-container { padding: 0 16px; }
}
