/* === Calibre Design System === */
/* CSS custom properties are set inline by the SiteShell from the manifest */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, var(--h1-size, 3.5rem)); font-weight: 800; }
h1:focus, h1:focus-visible { outline: none; }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--h2-size, 2.2rem)); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* === Layout Utilities === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 750px; margin: 0 auto; padding: 0 1.5rem; }

.section-padding { padding: var(--section-padding, 5rem) 0; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

/* === Cards === */
.card {
    background: var(--color-secondary);
    border-radius: var(--border-radius, 14px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: var(--hover-transform, translateY(-3px)); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--grid-gap, 1.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--grid-gap, 1.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--grid-gap, 1.5rem); }

/* === Header === */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-muted, #e5e7eb)20;
    backdrop-filter: blur(10px);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.site-header .logo {
    font-size: 1.3rem; font-weight: 800;
    color: var(--color-text);
}
.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a {
    color: var(--color-text); opacity: 0.7; font-weight: 500;
    transition: opacity 0.2s;
}
.site-header nav a:hover { opacity: 1; }

/* === Mobile Nav === */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text); }
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-muted)20; }
    .site-header nav.active { display: flex; }
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--color-muted, #e5e7eb)20;
    padding: 2rem 0;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* === WhatsApp Float === */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 15px rgba(37,211,102,0.35);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* === Section Styles === */
.section-badge {
    display: inline-block;
    background: var(--color-accent)20;
    color: var(--color-accent);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.rating-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; }

/* === Gallery === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* === Pricing === */
.pricing-card { padding: 2rem; text-align: center; }
.pricing-card.highlighted { border: 2px solid var(--color-primary); position: relative; transform: scale(1.02); }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--color-primary); margin: 1rem 0; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; }
.pricing-card li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-muted)15; }
.pricing-card li::before { content: "✓ "; color: var(--color-primary); font-weight: bold; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--color-muted)20; }
.faq-item summary { padding: 1.25rem 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "▸"; font-size: 1.2rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item .answer { padding-bottom: 1.25rem; opacity: 0.75; line-height: 1.7; }

/* === Preview Toggle Bar === */
.preview-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990;
    background: var(--color-text); color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
}
.preview-bar label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.preview-bar input[type="checkbox"] { accent-color: var(--color-accent); }

/* === Dark mode (respects system preference; toggled by theme class) === */
@media (prefers-color-scheme: dark) {
    :root { --color-text: #E5E0F0; --color-bg: #1A1525; --color-secondary: #2D2440; }
}
[data-theme="dark"] { --color-text: #E5E0F0; --color-bg: #1A1525; --color-secondary: #2D2440; }
[data-theme="light"] { --color-text: #1F1A2E; --color-bg: #FFFFFF; --color-secondary: #F5F3FF; }
