/*
Theme Name: Awais Coloring Studio
Theme URI: https://awais-coloring-studio.aakk0022.chatgpt.site
Author: Awais Ashraf
Description: A cheerful, responsive WordPress storefront for children's coloring books, with separate Pakistan and international ordering journeys.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: awais-coloring-studio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #17213b;
  --muted: #61708f;
  --blue: #2256d8;
  --blue-dark: #173fa7;
  --sky: #eaf4ff;
  --sun: #ffd84d;
  --coral: #ff7468;
  --mint: #dff8ea;
  --paper: #ffffff;
  --line: #dfe7f4;
  --shadow: 0 20px 55px rgba(32, 70, 145, .13);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-bar .site-header { top: 32px; }
.custom-logo { width: auto; max-height: 52px; }
.brand.has-logo .brand-mark { display: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; z-index: 100000; background: #fff; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 650px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(223,231,244,.8);
  backdrop-filter: blur(16px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.025em; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 14px; color: #fff; background: var(--blue); box-shadow: 6px 6px 0 var(--sun);
}
.brand-mark svg { width: 23px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 750; font-size: .94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links .current-menu-item > a { color: var(--blue); }
.nav-cta { padding: 11px 18px; color: #fff !important; background: var(--ink); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.btn {
  display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 22px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 850;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 28px rgba(34,86,216,.27); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn-sun { color: var(--ink); background: var(--sun); box-shadow: 0 10px 28px rgba(214,168,0,.2); }
.arrow { font-size: 1.2em; }

.hero { overflow: hidden; padding: 72px 0 84px; background: linear-gradient(135deg, #f5faff 0%, #fff 55%, #fff9de 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin: 24px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.hero-note span::before { content: "✓"; margin-right: 7px; color: var(--blue); }
.hero-art { position: relative; min-height: 610px; }
.art-sun { position: absolute; inset: 4% 2% auto auto; width: 105px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 20px rgba(255,216,77,.18); }
.cover-stack { position: absolute; inset: 0; }
.mini-cover {
  position: absolute; width: 46%; aspect-ratio: 2/3; overflow: hidden; border: 10px solid #fff; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow); transform: rotate(var(--r));
}
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-cover:nth-child(1) { left: 4%; top: 15%; --r: -9deg; }
.mini-cover:nth-child(2) { left: 29%; top: 2%; z-index: 2; --r: 2deg; }
.mini-cover:nth-child(3) { right: 0; top: 18%; --r: 10deg; }
.art-badge {
  position: absolute; left: 3%; bottom: 5%; z-index: 5; width: 158px; aspect-ratio: 1; display: grid; place-items: center;
  padding: 24px; text-align: center; color: #fff; background: var(--coral); border-radius: 50%; font-weight: 900; line-height: 1.15;
  transform: rotate(-8deg); box-shadow: 0 15px 35px rgba(255,116,104,.32);
}

.section { padding: 100px 0; }
.section-soft { background: #f7faff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-head .lead { max-width: 530px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(38,60,113,.07); }
.book-media { position: relative; aspect-ratio: 4/4.6; overflow: hidden; background: var(--sky); }
.book-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.book-card:hover .book-media img { transform: scale(1.035); }
.age-pill { position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .78rem; font-weight: 900; }
.book-body { padding: 24px; }
.book-body h3 { margin-bottom: 9px; }
.book-body p { min-height: 52px; color: var(--muted); font-size: .94rem; }
.book-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--blue); font-weight: 850; text-decoration: none; }

.chooser { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; padding: 36px; border-radius: 32px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.chooser .eyebrow { color: #8db0ff; }
.chooser p { margin-top: 13px; color: #c4cde0; }
.region-panel { padding: 26px; color: var(--ink); background: #fff; border-radius: 22px; }
.region-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.region-option { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 850; cursor: pointer; }
.region-option.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.region-result { display: none; }
.region-result.is-active { display: block; }
.region-result p { margin: 0 0 18px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: steps; }
.step { padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 32px; color: var(--blue); font-size: 1.05rem; font-weight: 900; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

.freebie { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; padding: 52px; border-radius: 34px; background: var(--sun); }
.freebie .lead { margin-top: 17px; color: #5d5120; }
.signup-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.signup-form input, .contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; min-height: 54px; padding: 0 17px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; outline: none;
}
.contact-form textarea { min-height: 150px; padding-top: 14px; resize: vertical; }
.signup-form input:focus, .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34,86,216,.12); }
.form-note { grid-column: 1/-1; min-height: 24px; color: #5d5120; font-size: .85rem; font-weight: 700; }

.page-hero { padding: 76px 0; text-align: center; background: linear-gradient(180deg, #eef6ff, #fff); }
.page-hero .lead { margin: 20px auto 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; cursor: pointer; }
.filter-button.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.book-card[hidden] { display: none; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.story-art { position: relative; min-height: 520px; border-radius: 32px; background: linear-gradient(145deg, var(--sky), var(--mint)); overflow: hidden; }
.story-art img { position: absolute; width: 51%; height: 78%; object-fit: cover; border: 9px solid #fff; border-radius: 20px; box-shadow: var(--shadow); }
.story-art img:first-child { left: 10%; top: 10%; transform: rotate(-7deg); }
.story-art img:last-child { right: 8%; bottom: 7%; transform: rotate(7deg); }
.story-copy p { margin-top: 18px; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.value { padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.value-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 28px; border-radius: 13px; background: var(--sky); font-size: 1.3rem; }
.value p { margin-top: 8px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.contact-info p { margin: 18px 0 28px; color: var(--muted); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contact-card strong { display: block; }
.contact-card span { color: var(--muted); font-size: .92rem; }
.contact-form { display: grid; gap: 15px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: #f8fbff; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: .9rem; }
.success-message { display: none; padding: 14px 16px; color: #17452a; background: var(--mint); border-radius: 12px; font-weight: 750; }
.success-message.is-visible { display: block; }
.success-message.form-error { color: #7c1d1d; background: #fee2e2; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.local-order { margin-top: 42px; padding: 28px; border-radius: 22px; background: #f7faff; text-align: center; }
.local-order p { margin: 8px auto 18px; color: var(--muted); max-width: 620px; }
.story-copy .btn { margin-top: 26px; }
.content-area { max-width: 820px; }
.content-area > * + * { margin-top: 1.25em; }
.content-area h2, .content-area h3 { margin-top: 1.5em; }
.post-list { display: grid; gap: 24px; max-width: 900px; }
.post-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; }
.post-card h2 a { text-decoration: none; }
.post-card div { margin-top: 12px; color: var(--muted); }
.post-thumbnail { margin-bottom: 30px; overflow: hidden; border-radius: 22px; }

.site-footer { padding: 58px 0 30px; color: #c9d1e4; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.footer-copy { max-width: 430px; margin-top: 20px; color: #9eaac4; }
.footer-title { margin-bottom: 14px; color: #fff; font-weight: 900; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #c9d1e4; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #33415f; color: #8996b2; font-size: .88rem; }

@media (max-width: 900px) {
  .hero-grid, .chooser, .freebie, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 560px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .values { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .nav-links { display: none; position: absolute; top: 78px; left: 20px; right: 20px; padding: 20px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links ul { flex-direction: column; align-items: stretch; }
  .menu-button { display: inline-grid; place-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 52px; }
  .hero-art { min-height: 420px; }
  .mini-cover { border-width: 6px; border-radius: 15px; }
  .art-badge { width: 114px; padding: 16px; font-size: .78rem; }
  .section { padding: 72px 0; }
  .book-grid { grid-template-columns: 1fr; }
  .book-body p { min-height: auto; }
  .region-options, .field-grid, .signup-form { grid-template-columns: 1fr; }
  .chooser, .freebie { padding: 28px 22px; }
  .story-art { min-height: 390px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
