/* ============================================================
   paula's hobbyhouse — global stylesheet
   light + dark themes, both with the pastel pink vibe
   ============================================================ */

:root {
    /* shared */
    --pink:        #e89aab;
    --pink-soft:   #f4c8d0;
    --pink-blush:  #fde6ec;
    --pink-deep:   #c97084;
    --rose-text:   #b85a72;
    --cream:       #fdf7f0;
    --brown:       #6b4f3f;
    --brown-soft:  #8a6a55;

    --radius:      18px;
    --radius-sm:   12px;
    --radius-pill: 999px;
    --max-w:       1080px;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);

    --font-script: 'Caveat', 'Patrick Hand', cursive;
    --font-body:   'Quicksand', 'Inter', system-ui, -apple-system, sans-serif;
    --font-tag:    'Patrick Hand', 'Quicksand', sans-serif;

    /* LIGHT (default) */
    --bg:          #fff5f1;
    --bg-2:        #ffeae3;
    --bg-card:     #ffffff;
    --bg-card-hover: #fffafc;
    --border:      rgba(232, 154, 171, 0.32);
    --border-hover: rgba(232, 154, 171, 0.65);
    --text:        #4a3338;
    --text-muted:  #8a6772;
    --text-dim:    #b69aa3;
    --shadow-sm:   0 4px 14px rgba(232, 154, 171, 0.12);
    --shadow:      0 10px 30px rgba(201, 112, 132, 0.18);
    --shadow-lg:   0 20px 60px rgba(201, 112, 132, 0.22);
    --scribble:    #e89aab;
    --scribble-2:  #c97084;
    --grain-op:    0.04;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:          #1a1015;
        --bg-2:        #221319;
        --bg-card:     #2a1820;
        --bg-card-hover: #321c27;
        --border:      rgba(244, 200, 208, 0.18);
        --border-hover: rgba(244, 200, 208, 0.45);
        --text:        #fde6ec;
        --text-muted:  #d9aebb;
        --text-dim:    #8a6470;
        --rose-text:   #f5b8c8;
        --pink:        #f4a9bd;
        --shadow-sm:   0 4px 14px rgba(0, 0, 0, 0.4);
        --shadow:      0 10px 30px rgba(0, 0, 0, 0.5);
        --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.6);
        --scribble:    #f4a9bd;
        --scribble-2:  #ffd9e3;
        --grain-op:    0.07;
    }
}

/* manual theme overrides (toggle button) */
:root[data-theme="light"] {
    --bg:          #fff5f1;
    --bg-2:        #ffeae3;
    --bg-card:     #ffffff;
    --bg-card-hover: #fffafc;
    --border:      rgba(232, 154, 171, 0.32);
    --border-hover: rgba(232, 154, 171, 0.65);
    --text:        #4a3338;
    --text-muted:  #8a6772;
    --text-dim:    #b69aa3;
    --shadow-sm:   0 4px 14px rgba(232, 154, 171, 0.12);
    --shadow:      0 10px 30px rgba(201, 112, 132, 0.18);
    --shadow-lg:   0 20px 60px rgba(201, 112, 132, 0.22);
    --scribble:    #e89aab;
    --scribble-2:  #c97084;
    --rose-text:   #b85a72;
    --pink:        #e89aab;
    --grain-op:    0.04;
}

:root[data-theme="dark"] {
    --bg:          #1a1015;
    --bg-2:        #221319;
    --bg-card:     #2a1820;
    --bg-card-hover: #321c27;
    --border:      rgba(244, 200, 208, 0.18);
    --border-hover: rgba(244, 200, 208, 0.45);
    --text:        #fde6ec;
    --text-muted:  #d9aebb;
    --text-dim:    #8a6470;
    --rose-text:   #f5b8c8;
    --pink:        #f4a9bd;
    --shadow-sm:   0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow:      0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.6);
    --scribble:    #f4a9bd;
    --scribble-2:  #ffd9e3;
    --grain-op:    0.07;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* subtle paper grain on light mode, soft noise on dark */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: var(--grain-op);
    mix-blend-mode: multiply;
}

/* decorative blob behind everything */
body::after {
    content: "";
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--pink-soft) 0%, transparent 65%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: float-blob 18s ease-in-out infinite alternate;
}

@media (prefers-color-scheme: dark) {
    body::after { opacity: 0.15; }
}

:root[data-theme="dark"] body::after { opacity: 0.15; }

@keyframes float-blob {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 60px) scale(1.15); }
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   typography
   ============================================================ */

h1, h2, h3, h4 {
    font-family: var(--font-script);
    color: var(--rose-text);
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.1;
}

h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.5rem; color: var(--text); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; color: var(--text); font-family: var(--font-body); font-weight: 600; }

p { color: var(--text-muted); font-size: 0.98rem; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }

.break-all { word-break: break-all !important; }

.script { font-family: var(--font-script); color: var(--rose-text); }

.section-title {
    font-family: var(--font-script);
    color: var(--rose-text);
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    text-align: center;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   layout
   ============================================================ */

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section { padding: 88px 0; position: relative; z-index: 1; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* ============================================================
   nav
   ============================================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: background 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rose-text);
    font-family: var(--font-script);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}
.nav-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 400ms var(--ease);
}
.nav-logo:hover img { transform: rotate(-6deg) scale(1.06); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 200ms var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--pink);
    border-radius: 2px;
    transition: width 280ms var(--ease);
}
.nav-links a:hover { color: var(--rose-text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--rose-text); }

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 250ms var(--ease);
}
.theme-toggle:hover {
    color: var(--rose-text);
    border-color: var(--border-hover);
    transform: rotate(15deg);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun,
:root:not([data-theme="light"]) .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon,
:root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle .sun { display: none; }
    :root:not([data-theme]) .theme-toggle .moon { display: inline; }
}
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: inline; }

.nav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--rose-text);
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 720px) {
    .nav-burger { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: 70px; right: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 18px 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all 280ms var(--ease);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================================
   hero
   ============================================================ */

.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-logo {
    width: clamp(280px, 60vw, 520px);
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(201, 112, 132, 0.22));
    animation: hero-pop 900ms var(--ease) both;
}
@keyframes hero-pop {
    0% { opacity: 0; transform: translateY(20px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--rose-text);
    font-family: var(--font-tag);
    font-size: 1.05rem;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    animation: hero-pop 900ms var(--ease) 100ms both;
}
.hero-tag svg { width: 14px; height: 14px; }

.hero h1 { margin-bottom: 14px; }

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    animation: hero-pop 900ms var(--ease) 200ms both;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: hero-pop 900ms var(--ease) 300ms both;
}

/* ============================================================
   buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 280ms var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(201, 112, 132, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 112, 132, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--rose-text);
    border: 1.5px solid var(--border-hover);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   scribbles + decorations
   ============================================================ */

.scribble {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    color: var(--scribble);
}
.scribble svg { width: 100%; height: 100%; overflow: visible; }
.scribble path,
.scribble line,
.scribble circle,
.scribble polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* the draw-in animation: triggered when .draw class is added */
.scribble.draw path,
.scribble.draw line,
.scribble.draw circle,
.scribble.draw polyline {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    animation: scribble-draw 1.8s var(--ease) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes scribble-draw {
    to { stroke-dashoffset: 0; }
}

/* floating loop animation for permanent scribbles */
.scribble.float {
    animation: scribble-float 6s ease-in-out infinite;
}
.scribble.float-slow {
    animation: scribble-float 9s ease-in-out infinite;
}
@keyframes scribble-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(-3deg); }
}

/* heart pulse */
.scribble.beat { animation: heart-beat 2.4s ease-in-out infinite; }
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

/* positioned helpers */
.scribble.top-left   { top: 40px; left: 4%; width: 110px; height: 110px; }
.scribble.top-right  { top: 80px; right: 4%; width: 130px; height: 130px; }
.scribble.bot-left   { bottom: 40px; left: 5%; width: 90px; height: 90px; }
.scribble.bot-right  { bottom: 40px; right: 5%; width: 100px; height: 100px; }
.scribble.mid-left   { top: 50%; left: -20px; width: 80px; height: 80px; }
.scribble.mid-right  { top: 40%; right: -20px; width: 90px; height: 90px; }

@media (max-width: 720px) {
    .scribble.top-left, .scribble.bot-left, .scribble.mid-left { display: none; }
    .scribble.top-right, .scribble.bot-right, .scribble.mid-right { width: 70px; height: 70px; }
}

/* ============================================================
   cards / grid
   ============================================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all 380ms var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 154, 171, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 280ms var(--ease);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.card:hover::before { opacity: 1; }

.card-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-2);
    transition: transform 600ms var(--ease);
}
.card:hover .card-img { transform: scale(1.03); }

.card-body { padding-top: 16px; flex: 1; display: flex; flex-direction: column; }

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--pink-blush);
    color: var(--rose-text);
    border-radius: 999px;
    font-family: var(--font-tag);
    font-size: 0.82rem;
    margin-bottom: 10px;
    width: fit-content;
}
@media (prefers-color-scheme: dark) {
    .card-tag { background: rgba(244, 200, 208, 0.12); }
}
:root[data-theme="dark"] .card-tag { background: rgba(244, 200, 208, 0.12); }

.card h3 { margin-bottom: 6px; }
.card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; }

.card-price {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.card-price .price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--rose-text);
    font-size: 1.15rem;
}
.card-price .price-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-tag);
}
.card-price .badge-sold {
    background: var(--bg-2);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-tag);
    font-size: 0.82rem;
}

/* featured (larger image, used on home) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.feature-grid .card-img { aspect-ratio: 4 / 5; }

/* ============================================================
   about
   ============================================================ */

.about {
    background: linear-gradient(180deg, transparent 0%, var(--bg-2) 50%, transparent 100%);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 760px) {
    .about-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}
.about-img {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius);
    border: 6px solid var(--bg-card);
    box-shadow: var(--shadow);
    transform: rotate(-2deg);
    transition: transform 500ms var(--ease);
}
.about-img:hover { transform: rotate(0deg) scale(1.02); }
.about h2 { margin-bottom: 16px; }
.about p { margin-bottom: 14px; font-size: 1.02rem; line-height: 1.7; }
.about .signature {
    font-family: var(--font-script);
    color: var(--rose-text);
    font-size: 1.8rem;
    margin-top: 14px;
}

/* ============================================================
   commissions pricing
   ============================================================ */

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 380ms var(--ease);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-hover);
}
.price-card.featured {
    border: 2px solid var(--pink);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card) 100%);
}
.price-card.featured::before {
    content: "most popular";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--pink);
    color: #fff;
    font-family: var(--font-tag);
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.price-card h3 { color: var(--rose-text); font-family: var(--font-script); font-size: 1.9rem; font-weight: 700; }
.price-card .price-big {
    font-family: var(--font-body);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 4px;
}
.price-card .price-big .from { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.price-card .price-desc { color: var(--text-muted); margin-bottom: 18px; min-height: 42px; font-size: 0.92rem; }
.price-card ul {
    list-style: none;
    text-align: left;
    margin: 18px 0 24px;
    padding: 18px 0 0;
    border-top: 1px dashed var(--border);
}
.price-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 6px 0;
}
.price-card ul li svg {
    width: 16px; height: 16px;
    color: var(--pink);
    flex-shrink: 0;
    margin-top: 3px;
}

/* commission process steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    counter-reset: step;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -16px; left: 22px;
    width: 36px; height: 36px;
    background: var(--pink);
    color: #fff;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-script);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.step h4 { margin: 12px 0 8px; color: var(--rose-text); font-family: var(--font-script); font-size: 1.5rem; font-weight: 700; }
.step p { font-size: 0.92rem; }

/* faq accordion */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 250ms var(--ease);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    padding: 18px 22px;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.faq-q svg { width: 18px; height: 18px; color: var(--pink); transition: transform 300ms var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms var(--ease);
}
.faq-a-inner { padding: 0 22px 18px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.faq-item.open .faq-a { max-height: 400px; }

/* contact form */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-row label {
    font-family: var(--font-tag);
    color: var(--rose-text);
    font-size: 1rem;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 250ms var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(232, 154, 171, 0.14);
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }

/* ============================================================
   gallery lightbox
   ============================================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 14, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-card);
}
.lightbox-close {
    position: absolute;
    top: 22px; right: 22px;
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--rose-text);
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 250ms var(--ease);
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.05); }
.lightbox-close svg { width: 18px; height: 18px; }

/* ============================================================
   footer
   ============================================================ */

footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}
.footer-brand img { width: 70px; margin-bottom: 12px; }
.footer-brand .brand-name {
    font-family: var(--font-script);
    color: var(--rose-text);
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 8px;
}
.footer-brand p { font-size: 0.92rem; }
.footer h5 {
    font-family: var(--font-tag);
    color: var(--rose-text);
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 200ms var(--ease);
}
.footer-links a:hover { color: var(--rose-text); }
.footer-bottom {
    border-top: 1px dashed var(--border);
    padding-top: 22px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-tag);
}
.footer-bottom .heart { color: var(--pink); display: inline-block; animation: heart-beat 2.4s ease-in-out infinite; }

/* ============================================================
   reveal-on-scroll
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger.visible > * {
    animation: stagger-up 700ms var(--ease) both;
}
.stagger.visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger.visible > *:nth-child(2) { animation-delay: 90ms; }
.stagger.visible > *:nth-child(3) { animation-delay: 180ms; }
.stagger.visible > *:nth-child(4) { animation-delay: 270ms; }
.stagger.visible > *:nth-child(5) { animation-delay: 360ms; }
.stagger.visible > *:nth-child(6) { animation-delay: 450ms; }
.stagger.visible > *:nth-child(7) { animation-delay: 540ms; }
.stagger.visible > *:nth-child(8) { animation-delay: 630ms; }
.stagger.visible > *:nth-child(n+9) { animation-delay: 700ms; }

@keyframes stagger-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* page-banner for non-home pages */
.banner {
    text-align: center;
    padding: 150px 0 60px;
    position: relative;
}
.banner h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 10px;
}
.banner p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    body::after { animation: none; }
}

/* ============================================================
   mobile polish — phone-first tweaks
   ============================================================ */

/* iOS safe areas (notch, home indicator) */
.nav { padding-top: env(safe-area-inset-top); }

/* make sure inputs don't cause zoom on iOS (font must be >= 16px) */
@media (max-width: 720px) {
    .form-row input,
    .form-row textarea,
    .form-row select { font-size: 16px; }
}

/* tighten things on small phones */
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }

    .hero { padding: 130px 0 50px; }
    .hero-logo { width: clamp(220px, 78vw, 360px); }
    .hero-sub { font-size: 1rem; }

    .nav-inner { padding: 0 16px; }
    .nav-logo { font-size: 1.3rem; gap: 8px; }
    .nav-logo img { width: 34px; height: 34px; }
    .nav-logo span { display: inline; }

    section { padding: 48px 0; }

    .banner { padding: 120px 0 36px; }
    .banner h1 { font-size: 2.6rem; }
    .banner p { font-size: 0.95rem; padding: 0 8px; }

    .section-title { font-size: 2.2rem; }
    .section-sub { font-size: 0.92rem; margin-bottom: 32px; }

    .card { padding: 14px; }
    .grid { gap: 16px; }
    .feature-grid { gap: 16px; }

    .about-img { max-width: 220px; }

    .price-card { padding: 24px 18px; }
    .price-card .price-big { font-size: 2rem; }

    .btn { padding: 12px 18px; font-size: 0.92rem; }

    .footer-grid { gap: 22px; }
    footer { padding: 40px 0 24px; }

    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
}

/* tap targets: make sure every interactive thing is >=44px touch height */
@media (max-width: 720px) {
    .nav-links a {
        padding: 6px 0;
        min-height: 32px;
        display: flex;
        align-items: center;
    }
    .theme-toggle { width: 42px; height: 42px; }
    .nav-burger { padding: 10px; }
    .filter-btn { padding: 10px 18px; min-height: 42px; }
    .faq-q { min-height: 56px; }
}

/* prevent horizontal scroll on overflowing scribbles */
main, body { overflow-x: hidden; }

/* better focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
    border-radius: 4px;
}
