/* ============================================================
   COZY STITCHES — Complete Stylesheet
   ============================================================ */

:root {
  --navy:       #1E2D7A;
  --cream:      #FFFDF8;
  --cloud:      #EEF2FC;
  --moon:       #B8C5E8;
  --peach:      #F0AE80;
  --blush:      #F7D5E8;
  --yellow:     #F5DC90;
  --lavender:   #D8D0F0;
  --grey:       #8898AA;
  --peach-dark: #C07840;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--cream); color: var(--grey); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: 28px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--peach); color: #7A3A10; box-shadow: 0 4px 14px rgba(240,174,128,0.4); }
.btn-primary:hover { background: var(--peach-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--moon); }
.btn-outline:hover { background: var(--cloud); border-color: var(--navy); }

/* ── TAGS ── */
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; }
.tag-amigurumi   { background: var(--blush);    color: #8B3A5E; }
.tag-blankets    { background: var(--moon);     color: var(--navy); }
.tag-tutorials   { background: var(--yellow);   color: #7A5A10; }
.tag-hauls       { background: var(--lavender); color: #4A3A7A; }
.tag-accessories { background: var(--lavender); color: #4A3A7A; }
.tag-home        { background: var(--yellow);   color: #7A5A10; }
.tag-wip         { background: var(--cloud);    color: var(--navy); }

/* ── WAVY DIVIDERS ── */
.wavy-divider { width: 100%; overflow: hidden; line-height: 0; background: var(--cream); }
.wavy-divider.alt { background: var(--cloud); }
.wavy-divider svg { display: block; width: 100%; }

/* ── NAVBAR ── */
.navbar { background: var(--navy); padding: 14px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(30,45,122,0.3); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 48px; height: 48px; object-fit: contain; }
.nav-logo-text { font-family: 'Fredoka One', cursive; color: var(--cream); font-size: 1.3rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--moon); font-size: 0.95rem; font-weight: 600; transition: color 0.2s; position: relative; padding-bottom: 3px; }
.nav-links a:hover, .nav-links a.active { color: var(--peach); }
.nav-links a.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--peach); border-radius: 2px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--peach); border-radius: 3px; transition: all 0.3s; }

.mobile-menu { display: none; background: #152060; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.mobile-menu.open { max-height: 300px; padding: 12px 0; }
.mobile-menu a { display: block; color: var(--moon); font-weight: 600; font-size: 0.95rem; padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--peach); background: rgba(240,174,128,0.08); }

/* ── PAGE HERO ── */
.page-hero { background: var(--cloud); padding: 52px 0 44px; text-align: center; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { font-size: 1rem; color: var(--grey); max-width: 500px; margin: 0 auto; }

/* ── SECTION HEADER ── */
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.section-header h2 { white-space: nowrap; }
.section-header .line { flex: 1; height: 1px; background: linear-gradient(to right, var(--moon), transparent); }
.section-header .view-all { font-size: 0.85rem; color: var(--peach); font-weight: 700; white-space: nowrap; }

/* ── HOME HERO ── */
.home-hero { background: var(--cloud); padding: 60px 0; }
.home-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px rgba(30,45,122,0.15); aspect-ratio: 4/3; background: linear-gradient(135deg, var(--moon), var(--lavender)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--blush); color: #8B3A5E; font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.hero-content h1 { margin-bottom: 14px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hero-date { font-size: 0.85rem; color: var(--moon); }
.hero-excerpt { color: var(--grey); margin-bottom: 28px; font-size: 1rem; line-height: 1.75; }

/* ── SECTIONS ── */
.section { padding: 52px 0; }
.section.alt { background: var(--cloud); }

/* ── POST CARDS ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(30,45,122,0.07); border: 1px solid rgba(184,197,232,0.3); transition: transform 0.25s, box-shadow 0.25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(30,45,122,0.13); }
.post-card-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--moon), var(--lavender)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 20px; }
.post-card-body .tag { margin-bottom: 10px; }
.post-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.post-card-body p { font-size: 0.875rem; color: var(--grey); line-height: 1.65; margin-bottom: 14px; }
.post-card-footer { display: flex; justify-content: space-between; align-items: center; }
.post-date { font-size: 0.78rem; color: var(--moon); }
.read-more { font-size: 0.85rem; color: var(--peach); font-weight: 700; }

/* ── GALLERY PREVIEW (HOME) ── */
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 2px 12px rgba(30,45,122,0.08); aspect-ratio: 1; background: linear-gradient(135deg, var(--moon), var(--cloud)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; font-size: 0.8rem; transition: transform 0.25s; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(30,45,122,0.65)); padding: 24px 12px 10px; transform: translateY(100%); transition: transform 0.3s; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay span { font-family: 'Fredoka One', cursive; color: #fff; font-size: 0.85rem; }

/* ── BLOG PAGE ── */
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.filter-btn { padding: 6px 18px; border-radius: 20px; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.8rem; cursor: pointer; border: 2px solid rgba(184,197,232,0.5); background: #fff; color: var(--grey); transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-card { display: grid; grid-template-columns: 280px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(30,45,122,0.07); border: 1px solid rgba(184,197,232,0.3); transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(30,45,122,0.12); }
.blog-card-img { background: linear-gradient(135deg, var(--moon), var(--lavender)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; min-height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-card-meta .date { font-size: 0.8rem; color: var(--moon); }
.blog-card-content h2 { font-size: 1.4rem; margin-bottom: 10px; }
.blog-card-content p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; margin-bottom: 18px; }

/* ── GALLERY PAGE ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gal-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(30,45,122,0.07); border: 1px solid rgba(184,197,232,0.3); cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.gal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(30,45,122,0.13); }
.gal-card-img { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--moon), var(--lavender)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; overflow: hidden; }
.gal-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gal-card:hover .gal-card-img img { transform: scale(1.05); }
.gal-card-body { padding: 16px 18px; }
.gal-card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.gal-card-body .gal-meta { font-size: 0.78rem; color: var(--grey); margin-bottom: 8px; }

.gal-card.coming-soon { background: var(--cloud); border: 2px dashed var(--moon); cursor: default; }
.gal-card.coming-soon:hover { transform: none; box-shadow: 0 2px 16px rgba(30,45,122,0.07); }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,15,50,0.85); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox-content { background: var(--cream); border-radius: 20px; overflow: hidden; max-width: 700px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lightbox-img { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--moon), var(--lavender)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 600; overflow: hidden; }
.lightbox-img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-info { padding: 24px 28px; }
.lightbox-info h3 { font-size: 1.4rem; margin-bottom: 8px; }
.lightbox-info p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: var(--cream); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

/* ── ABOUT ── */
.about-hero { background: var(--cloud); padding: 60px 0; }
.about-hero .container { display: grid; grid-template-columns: auto 1fr; gap: 52px; align-items: center; }
.about-photo { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--moon), var(--lavender)); border: 6px solid var(--peach); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--navy); flex-shrink: 0; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content h1 { margin-bottom: 16px; }
.about-content p { font-size: 1rem; color: var(--grey); line-height: 1.8; }

.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fact-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 14px rgba(30,45,122,0.07); border: 1px solid rgba(184,197,232,0.3); display: flex; gap: 16px; align-items: flex-start; }
.fact-emoji { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.fact-text h3 { font-size: 1rem; margin-bottom: 6px; }
.fact-text p { font-size: 0.875rem; color: var(--grey); line-height: 1.6; }

.about-cta { background: var(--navy); border-radius: 20px; padding: 40px; text-align: center; margin-top: 52px; }
.about-cta h2 { color: var(--cream); margin-bottom: 10px; }
.about-cta p { color: var(--moon); margin-bottom: 24px; }

/* ── COMMENTS ── */
.comment-section { margin-top: 52px; padding-top: 40px; border-top: 2px dashed rgba(184,197,232,0.4); }
.comment-section h2 { margin-bottom: 24px; }
.comment { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; border: 1px solid rgba(184,197,232,0.3); }
.comment-author { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 4px; }
.comment-text { font-size: 0.875rem; color: var(--grey); line-height: 1.6; }
.comment-form { background: var(--cloud); border-radius: 16px; padding: 24px; margin-top: 24px; }
.comment-form h3 { margin-bottom: 16px; font-size: 1.1rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--moon); font-family: 'Nunito', sans-serif; font-size: 0.9rem; background: #fff; color: var(--navy); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--peach); }
.form-group textarea { height: 100px; resize: vertical; }
.moderation-note { font-size: 0.78rem; color: var(--grey); margin-top: 8px; font-style: italic; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 32px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 40px; height: 40px; object-fit: contain; }
.footer-logo-text { font-family: 'Fredoka One', cursive; color: var(--cream); font-size: 1.1rem; }
.footer-copy { font-size: 0.78rem; color: var(--moon); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--peach); font-size: 0.9rem; font-weight: 600; }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; color: var(--navy); text-align: center; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (900px and below)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .home-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { min-height: 200px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero .container { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .footer .container { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (600px and below)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .section { padding: 36px 0; }
  .home-hero { padding: 36px 0; }
  .page-hero { padding: 36px 0 28px; }
  .posts-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .about-cta { padding: 28px 20px; }
  .section-header { flex-wrap: wrap; gap: 8px; }
  .blog-card-content { padding: 20px; }
  .about-hero { padding: 36px 0; }
  .about-photo { width: 140px; height: 140px; }
}

/* ── SINGLE POST PAGE ── */
.post-hero-img { width:100%; max-height:420px; overflow:hidden; background:var(--cloud); }
.post-hero-img img { width:100%; height:420px; object-fit:cover; display:block; }
.post-body { max-width:740px; margin:0 auto; padding:48px 24px 60px; }
.post-meta { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.back-link { color:var(--peach); font-weight:700; font-size:0.9rem; }
.back-link:hover { color:var(--peach-dark); }
.post-date-full { font-size:0.85rem; color:var(--moon); }
.post-title { font-size:clamp(1.6rem,4vw,2.4rem); margin-bottom:28px; }
.post-text p { font-size:1.05rem; color:var(--grey); line-height:1.85; margin-bottom:1.4rem; }
