/* Base design system for generated sites. Themes (modern.css / classic.css) layer fonts
   and accents on top. --pc is the per-site primary colour, injected inline by the layout. */
:root { --pc: #2563eb; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    /* Derived shades from the per-site primary colour. */
    --pc-d: color-mix(in srgb, var(--pc) 72%, #000);
    --pc-t: color-mix(in srgb, var(--pc) 12%, #fff);
    --pc-tt: color-mix(in srgb, var(--pc) 6%, #fff);
    --ink: #14181f;
    --muted: #5a6472;
    --line: color-mix(in srgb, var(--ink) 12%, #fff);
    --bg: #ffffff;
    --soft: #f7f8fa;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 28px -12px rgba(16,24,40,.18);
    --shadow-lg: 0 2px 6px rgba(16,24,40,.06), 0 30px 60px -24px rgba(16,24,40,.30);
    --font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: var(--pc-d); }
::selection { background: color-mix(in srgb, var(--pc) 25%, #fff); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; }

.eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .78rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--pc-d);
    background: var(--pc-t); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.site-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .2rem 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--pc); transition: width .25s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }

.site-main { min-height: 50vh; }

/* Sections */
.b { padding: 5.5rem 0; }
.b h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1.5rem; }
.b-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.b-head h2 { margin-bottom: .5rem; }
.b-btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* Buttons */
.b-btn {
    display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
    background: linear-gradient(180deg, var(--pc), var(--pc-d)); color: #fff;
    border: 1px solid transparent; padding: .85rem 1.5rem; border-radius: 999px;
    font: 600 1rem/1 var(--font-body); text-decoration: none;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pc) 70%, transparent); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.b-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--pc) 75%, transparent); }
.b-btn-outline { background: transparent; color: var(--pc-d); border-color: color-mix(in srgb, var(--pc) 35%, var(--line)); box-shadow: none; }
.b-btn-outline:hover { background: var(--pc-t); }

/* Hero */
.b-hero { position: relative; padding: 7rem 0; text-align: center; overflow: hidden; background:
    radial-gradient(60% 80% at 15% 0%, var(--pc-t), transparent 60%),
    radial-gradient(55% 70% at 95% 20%, color-mix(in srgb, var(--pc) 16%, #fff), transparent 60%),
    var(--bg); }
.b-hero .wrap { position: relative; z-index: 2; max-width: 880px; }
.b-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 1.1rem; }
.b-hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46rem; margin: 0 auto 2rem; }
.b-hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
/* Image hero */
.b-hero-img { color: #fff; background-size: cover; background-position: center; }
.b-hero-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,12,20,.35), rgba(8,12,20,.72)); }
.b-hero-img h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.b-hero-img .b-hero-sub { color: rgba(255,255,255,.92); }
.b-hero-img .b-btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.b-hero-img .b-btn-outline:hover { background: rgba(255,255,255,.14); }

/* Features */
.b-features .b-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.b-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.b-card-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--pc-t); color: var(--pc-d); font-weight: 800; font-family: var(--font-head); margin-bottom: 1rem; }
.b-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.b-card p { margin: 0; color: var(--muted); }

/* Text / prose */
.b-text .eyebrow { }
.b-prose { font-size: 1.12rem; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.b-prose p { margin: 0 0 1.15rem; }

/* Pricing */
.b-pricing { background: var(--soft); }
.b-pricing .b-head { text-align: center; margin-bottom: 3rem; }
.b-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; align-items: stretch; max-width: 980px; margin: 0 auto; }
.b-plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.b-plan-featured { border-color: var(--pc); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--pc) 45%, transparent); }
.b-plan-badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--pc); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.b-plan h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.b-price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; margin: .3rem 0 1.2rem; letter-spacing: -0.03em; }
.b-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.b-plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.b-plan li { padding: .5rem 0 .5rem 1.6rem; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); }
.b-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--pc); font-weight: 800; }

/* Testimonials */
.b-testimonials { background: var(--soft); }
.b-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.b-quote { position: relative; margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem 1.5rem; box-shadow: var(--shadow); }
.b-quote::before { content: "\201C"; position: absolute; top: -.4rem; left: 1rem; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: color-mix(in srgb, var(--pc) 28%, #fff); }
.b-quote blockquote { margin: .6rem 0 1.2rem; font-size: 1.1rem; position: relative; }
.b-quote figcaption { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .95rem; }
.b-avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--pc-t); color: var(--pc-d); font-weight: 700; font-family: var(--font-head); flex: 0 0 auto; }
.b-quote figcaption strong { color: var(--ink); }

/* CTA */
.b-cta { background: linear-gradient(135deg, var(--pc), var(--pc-d)); color: #fff; }
.b-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.b-cta h2 { color: #fff; margin: 0 0 .4rem; }
.b-cta p { margin: 0; opacity: .92; max-width: 38rem; }
.b-cta .b-btn { background: #fff; color: var(--pc-d); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.b-cta .b-btn:hover { filter: none; background: #fff; }

/* Gallery */
.b-gallery .b-head { text-align: center; margin-bottom: 2.5rem; }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.b-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.b-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.b-tile:hover img { transform: scale(1.06); }
.b-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
/* gradient fallback when no image */
.b-tile-grad { display: flex; align-items: flex-end; padding: 1rem; color: #fff; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.b-tile-0 { background: linear-gradient(135deg, var(--pc), var(--pc-d)); }
.b-tile-1 { background: linear-gradient(135deg, #0ea5a4, #155e63); }
.b-tile-2 { background: linear-gradient(135deg, #db2777, #6d28d9); }
.b-tile-3 { background: linear-gradient(135deg, #d97706, #92400e); }
.b-tile-4 { background: linear-gradient(135deg, #2563eb, #0e7490); }

/* Contact */
.b-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.b-contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.b-contact-list li { padding: .45rem 0; }
.b-contact-list a { color: var(--ink); text-decoration: none; }
.b-contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.b-contact-form label { display: block; margin: 0 0 1rem; font-weight: 600; font-size: .88rem; color: var(--muted); }
.b-contact-form input, .b-contact-form textarea { display: block; width: 100%; margin-top: .4rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--soft); }
.b-contact-form input:focus, .b-contact-form textarea:focus { outline: 2px solid var(--pc); border-color: var(--pc); background: var(--bg); }
.b-note { color: var(--muted); font-size: .78rem; margin: .6rem 0 0; }

/* FAQ */
.b-faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.b-faq-item summary { font-family: var(--font-head); font-weight: 600; cursor: pointer; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.b-faq-item summary::after { content: "+"; color: var(--pc); font-weight: 700; }
.b-faq-item[open] summary::after { content: "\2013"; }
.b-faq-item div { color: var(--muted); padding-top: .7rem; }

/* Footer */
.b-footer { padding: 3rem 0; border-top: 1px solid var(--line); background: var(--soft); }
.b-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); }
.b-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.b-footer-links a { color: var(--muted); text-decoration: none; }
.b-footer-links a:hover { color: var(--pc-d); }

/* Webpaza badge */
.site-badge { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; }
.site-badge a { background: rgba(17,24,39,.9); color: #fff; text-decoration: none; font: 600 .78rem var(--font-body); padding: .5rem .85rem; border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.site-badge a:hover { background: #111827; }

/* Reveal on scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 720px) {
    .b { padding: 3.5rem 0; }
    .b-hero { padding: 4.5rem 0; }
    .b-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .site-nav { gap: 1rem; }
}
