/* ==========================================================================
   Craft Pop Inc. — craftpopinc.com
   Palette taken from the studio itself: pink display shelves, butter-yellow
   walls, plum lettering on the Craft Pop sign.
   ========================================================================== */

:root {
    --primary-color: #E2558F;
    --primary-dark: #C23C74;
    --accent-color: #FFC94D;
    --butter: #FFF6D6;
    --butter-deep: #FDEBB0;
    --blush: #FDE7EF;
    --lilac: #8E6CCF;
    --mint: #4FB9A4;
    --dark-color: #3A2140;
    --text: #3A2B3E;
    --muted: #6E5F72;
    --line: #EEDCE5;
    --white: #FFFFFF;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(58, 33, 64, 0.10);
    --shadow-lg: 0 18px 48px rgba(58, 33, 64, 0.16);
    --transition: all 0.25s ease;
    --font-head: "Baloo 2", "Trebuchet MS", sans-serif;
    --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-dark); }
a:hover { color: var(--primary-color); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--dark-color);
    line-height: 1.15;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--dark-color); color: var(--white); padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
    padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; transition: var(--transition); line-height: 1.2;
}
.btn-primary { background: var(--primary-color); color: var(--white); box-shadow: 0 6px 0 var(--primary-dark); }
.btn-primary:hover { color: var(--white); transform: translateY(2px); box-shadow: 0 4px 0 var(--primary-dark); }
.btn-outline { border-color: var(--dark-color); color: var(--dark-color); background: var(--white); }
.btn-outline:hover { background: var(--dark-color); color: var(--white); }
.btn-yellow { background: var(--accent-color); color: var(--dark-color); box-shadow: 0 6px 0 #D9A21F; }
.btn-yellow:hover { color: var(--dark-color); transform: translateY(2px); box-shadow: 0 4px 0 #D9A21F; }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.logo a {
    display: flex; align-items: center; gap: 10px;
    color: var(--primary-color); text-decoration: none; transition: opacity 0.3s;
}
.logo a:hover { opacity: 0.8; }
.logo img { width: 46px; height: 46px; }
.logo-text {
    font-family: var(--font-head); font-weight: 800; font-size: 1.55rem;
    color: var(--primary-color); line-height: 1; display: flex; flex-direction: column;
}
.logo-text small {
    font-family: var(--font-body); font-weight: 700; font-size: 0.68rem;
    color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; text-transform: uppercase;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: 8px 12px; border-radius: 999px;
    font-weight: 700; font-size: 0.97rem; color: var(--dark-color); text-decoration: none;
    transition: var(--transition);
}
.main-nav a:hover { background: var(--blush); color: var(--primary-dark); }
.main-nav a.active { background: var(--primary-color); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; color: var(--dark-color); text-decoration: none; white-space: nowrap; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: var(--blush); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px;
    background: var(--dark-color); transition: var(--transition); content: "";
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--butter);
    padding: 64px 0 80px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 8% 18%, rgba(226, 85, 143, 0.18) 0 34px, transparent 35px),
        radial-gradient(circle at 92% 12%, rgba(142, 108, 207, 0.16) 0 52px, transparent 53px),
        radial-gradient(circle at 85% 92%, rgba(79, 185, 164, 0.16) 0 40px, transparent 41px);
}
.hero-grid {
    position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700;
    color: var(--primary-dark); background: var(--white); border: 2px solid var(--blush);
    padding: 4px 16px; border-radius: 999px; font-size: 0.98rem; margin-bottom: 18px;
}
.hero h1 span { color: var(--primary-color); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li {
    background: var(--white); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.92rem;
    box-shadow: 0 3px 0 var(--butter-deep);
}
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.hero-photos figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-photos .tall { grid-row: span 2; }
.hero-photos .tilt-l { transform: rotate(-2deg); }
.hero-photos .tilt-r { transform: rotate(2deg); }

/* Page hero (inner pages) */
.page-hero { background: var(--butter); padding: 54px 0 46px; text-align: center; position: relative; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--butter { background: var(--butter); }
.section--blush { background: var(--blush); }
.section--plum { background: var(--dark-color); color: rgba(255, 255, 255, 0.88); }
.section--plum h2, .section--plum h3 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--plum .section-head p { color: rgba(255, 255, 255, 0.75); }
.kicker {
    display: block; font-family: var(--font-head); font-weight: 700; color: var(--primary-color);
    letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.92rem; margin-bottom: 6px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 560px; }
.split-media .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media .duo img { aspect-ratio: 3 / 4; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column; transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.98rem; }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-body .more::after { content: " \2192"; }
.tag {
    align-self: flex-start; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--butter); color: var(--dark-color); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px;
}
.tag--real { background: #E3F5F0; color: #1F6E5E; }

.feature {
    background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
    border-top: 6px solid var(--primary-color);
}
.feature:nth-child(4n+2) { border-top-color: var(--accent-color); }
.feature:nth-child(4n+3) { border-top-color: var(--lilac); }
.feature:nth-child(4n+4) { border-top-color: var(--mint); }
.feature p { color: var(--muted); margin: 0; }
.feature .num {
    font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--primary-color); line-height: 1;
    display: block; margin-bottom: 8px;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 30px 22px 24px; box-shadow: var(--shadow); }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-color); color: var(--white); font-family: var(--font-head); font-weight: 800;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Workshop rows (workshops page) */
.workshop {
    display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center;
    padding: 36px 0; border-bottom: 2px dashed var(--line); scroll-margin-top: 96px;
}
.workshop:last-child { border-bottom: 0; }
.workshop-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.workshop-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.workshop-meta li { background: var(--blush); border-radius: 999px; padding: 3px 12px; font-size: 0.86rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 280px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.masonry figcaption { padding: 12px 16px 14px; font-size: 0.92rem; color: var(--muted); }
.masonry figcaption strong { color: var(--dark-color); display: block; font-family: var(--font-head); font-size: 1.05rem; }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip img { border-radius: var(--radius-sm); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.wide-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--primary-color); color: var(--white); border-radius: 28px;
    padding: 48px 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 201, 77, 0.35);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.cta-band .btn-row { margin-top: 0; position: relative; z-index: 1; }
.cta-band .btn-outline { border-color: var(--white); background: transparent; color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--primary-dark); }

/* ---------- Info boxes ---------- */
.info-box {
    background: var(--butter); border-radius: var(--radius); padding: 26px 28px; border: 2px dashed var(--butter-deep);
}
.info-box h3 { margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }

.note { font-size: 0.92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-group { max-width: 860px; margin: 0 auto 40px; }
.faq-group > h2 { font-size: 1.7rem; margin-bottom: 16px; }
.faq details {
    background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(58, 33, 64, 0.07);
    margin-bottom: 12px; border: 1px solid var(--line);
}
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--dark-color);
    position: relative; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--primary-dark);
    font-size: 1.3rem; line-height: 28px; text-align: center; font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--dark-color); font-size: 1.05rem; }

.contact-form label { display: block; font-weight: 700; margin: 14px 0 6px; color: var(--dark-color); font-size: 0.95rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 1rem; background: #FFFDF7; color: var(--text); transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary-color); background: var(--white); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.contact-form button { margin-top: 20px; }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 12px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Footer (standard template) ---------- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p { margin: 0 0 0.6rem; }
.footer-section p,
.footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section a { text-decoration: none; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    .header-phone { display: none; }
}

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 76px; left: 0; right: 0; background: var(--white);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin: 0;
    }
    .main-nav.open { max-height: calc(100dvh - 76px); overflow-y: auto; }
    .main-nav ul { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
    .main-nav a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
    .header-actions { margin-left: auto; }

    .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .split--rev .split-media { order: 0; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .workshop { grid-template-columns: 240px 1fr; gap: 26px; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
    .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 68px; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 56px; }
    .header-inner { min-height: 68px; gap: 10px; }
    .main-nav { top: 68px; }
    .main-nav.open { max-height: calc(100dvh - 68px); }
    .header-actions .btn { display: none; }
    .logo-text { font-size: 1.35rem; }
    .logo img { width: 40px; height: 40px; }
    .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
    .workshop { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
    .contact-form .row-2 { grid-template-columns: 1fr; }
    .contact-card { padding: 24px 20px; }
    .masonry { columns: 2 150px; column-gap: 12px; }
    .masonry figure { margin-bottom: 12px; }
    .masonry figcaption { padding: 8px 10px 10px; font-size: 0.82rem; }
    .masonry figcaption strong { font-size: 0.95rem; }
    footer { margin-top: 2.5rem; }

    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: 10px 16px; background: var(--white); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(58, 33, 64, 0.08);
    }
}

/* ---------- Small utilities ---------- */
figure.card, figure.wide-photo { margin: 0; }
.note.center { text-align: center; margin-top: 20px; }
