/*
Theme Name: Gita Accessories
Theme URI: https://www.gitaaccessories.com/
Author: Gita Accessories
Description: A wide, warm and playful WordPress theme for Gita Accessories - baby clothing and children's gifts. Features a full-width editorial home page showing the latest 9 blog posts with excerpts and links, with no dates anywhere.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gita-accessories
Tags: blog, one-column, wide-blocks, custom-menu, custom-logo, featured-images, translation-ready
*/

:root {
  --cream: #fbf6ec;
  --cream-deep: #f4ead9;
  --ink: #2f2a26;
  --ink-soft: #5d554d;
  --sage: #8fa98a;
  --sage-deep: #5f7a5c;
  --clay: #d98b70;
  --blush: #eab5ac;
  --line: #e6dccb;
  --radius: 26px;
  --shadow: 0 18px 40px -28px rgba(60, 45, 30, .55);
  --wide: 1680px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration: none; }
a:hover { color: var(--clay); }

h1, h2, h3, h4, .nav a, .btn, .eyebrow, .card-more {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px); }
.narrow { max-width: 860px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-tag { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blush), var(--sage));
  flex: none;
}

.nav ul { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav a:hover, .nav .current-menu-item > a { color: var(--clay); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--clay); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 56px); }
.hero-inner {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: var(--cream-deep);
  min-height: clamp(340px, 42vw, 520px);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; padding: clamp(28px, 5vw, 72px); max-width: 640px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); }
.hero p { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 21px); margin: 0 auto 26px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section heading ---------- */
.section { padding: clamp(30px, 4vw, 60px) 0 clamp(48px, 7vw, 96px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line); padding-bottom: 22px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 40px); margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Wide post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
}
.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blush); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-deep); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: clamp(20px, 2vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-body h3 { font-size: clamp(20px, 1.6vw, 25px); margin: 0; }
.post-body h3 a { color: var(--ink); }
.post-card:hover .post-body h3 a { color: var(--sage-deep); }
.post-excerpt { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
.card-more { margin-top: auto; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.card-more::after { content: " \2192"; }

/* Feature the first card across two columns on wide screens */
.post-grid .post-card.is-feature { grid-column: span 2; }
.post-grid .post-card.is-feature .post-thumb { aspect-ratio: 21 / 9; }
.post-grid .post-card.is-feature h3 { font-size: clamp(24px, 2.4vw, 36px); }
.post-grid .post-card.is-feature .post-excerpt { font-size: 18px; }

.taxonomy-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
}
.taxonomy-strip a {
  font-family: "Avenir Next", sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.taxonomy-strip a:hover { border-color: var(--sage); color: var(--sage-deep); }

/* ---------- Single / page ---------- */
.entry-hero { padding: clamp(36px, 5vw, 72px) 0 24px; text-align: center; }
.entry-hero h1 { font-size: clamp(30px, 4vw, 54px); }
.entry-figure { margin: 0 0 clamp(24px, 3vw, 44px); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.entry-content { padding-bottom: clamp(40px, 6vw, 90px); }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote { margin: 0 0 1.2em; }
.entry-content h2 { font-size: clamp(24px, 2.4vw, 34px); margin-top: 1.6em; }
.entry-content h3 { font-size: clamp(20px, 2vw, 26px); margin-top: 1.4em; }
.entry-content img { border-radius: 20px; margin: 1.4em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--blush); padding: 6px 0 6px 22px; font-style: italic; color: var(--ink-soft);
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.pager { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding-bottom: 70px; }
.pager .page-numbers {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: "Avenir Next", sans-serif; font-size: 15px; color: var(--ink-soft);
}
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  padding: clamp(44px, 5vw, 76px) 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--blush); margin-bottom: 16px; }
.site-footer a { color: var(--cream-deep); }
.site-footer a:hover { color: var(--blush); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-note { opacity: .65; font-size: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; opacity: .7; }

/* ---------- Utilities / responsive ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.alignwide { width: 100%; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid .post-card.is-feature { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 14px; padding: 14px 0; }
  .header-inner { flex-wrap: wrap; }
  .header-cta { display: none; }
  .post-grid, .post-grid .post-card.is-feature { grid-template-columns: 1fr; grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
