:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary: #f59e0b;
    --bg: #ffffff;
    --surface: #faf5ff;
    --surface-alt: #f3e8ff;
    --text: #2d3748;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
    --shadow: rgba(0,0,0,0.06);
    --font-heading: Fredoka, sans-serif;
    --font-body: Nunito, sans-serif;
    --radius: 16px;
    --max-width: 1200px;
}

[data-theme="dark"] {
    --primary: #a78bfa;
    --primary-hover: #8b5cf6;
    --secondary: #fbbf24;
    --bg: #0f0b24;
    --surface: #1e1b3a;
    --surface-alt: #2d2650;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-inverse: #0f0b24;
    --border: #3b3060;
    --shadow: rgba(0,0,0,0.4);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }

/* Header */
.site-header { background: var(--surface); box-shadow: 0 1px 4px var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo img { height: 44px; }
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav li { position: relative; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 8px 0; display: block; }
.nav a:hover { color: var(--primary); }
.nav li.active > a { color: var(--primary); }

/* Dropdown Navigation */
.nav .has-dropdown > a::after { content: '▾'; margin-left: 4px; font-size: 0.7em; }
.nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); min-width: 200px; padding: 8px 0; z-index: 200; flex-direction: column; gap: 0; }
.nav .dropdown-menu li { width: 100%; }
.nav .dropdown-menu a { padding: 10px 20px; white-space: nowrap; font-size: 0.9rem; }
.nav .dropdown-menu a:hover { background: var(--surface-alt); }
.nav .has-dropdown:hover .dropdown-menu { display: flex; }

/* Mobile nav toggle */
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }



.theme-toggle-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); background: var(--bg); border-radius: 50%; cursor: pointer; color: var(--text); transition: all 0.2s; }
.theme-toggle-btn:hover { background: var(--surface-alt); border-color: var(--primary); color: var(--primary); }
.theme-toggle-btn svg { display: block; }

/* Hero */
/* The hero background image renders as an absolutely-positioned <img> (not a
   CSS background-image), so the Image Adjust crop/pan/zoom (object-position +
   transform: scale) applies identically to the live editor preview. .hero
   needs position: relative + overflow: hidden so the image layer positions
   relative to the section and never overflows it. */
.hero { padding: 100px 0; position: relative; overflow: hidden; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero-has-bg-img h1 { color: #fff; }
.hero-has-bg-img p { color: rgba(255,255,255,0.9); }
.hero-has-bg-img::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 0; }
.hero-fullbleed { min-height: 500px; display: flex; align-items: center; }
.hero-centered { text-align: center; }
.hero-centered .hero-content { max-width: 800px; margin: 0 auto; }
.hero-minimal { min-height: 400px; display: flex; align-items: center; }
.hero h1 { font-size: 3.2rem; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 28px; max-width: 600px; }

/* Sub-page banner */
.page-banner { padding: 60px 0; background: var(--surface-alt); text-align: center; }
.page-banner h1 { font-size: 2.5rem; }

/* Sections */
section { padding: 80px 0; }
section h2 { font-size: 2.2rem; margin-bottom: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }



/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card { background: var(--surface); padding: 32px; border-radius: var(--radius); box-shadow: 0 1px 4px var(--shadow); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.service-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.service-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 40px; }
.team-card { text-align: center; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; box-shadow: 0 4px 12px var(--shadow); overflow: hidden; font-size: 0; color: transparent; }
.team-card h3 { margin-bottom: 4px; }
.team-role { color: var(--primary); font-size: 0.85rem; margin-bottom: 6px; }
.team-bio { color: var(--text-muted); font-size: 0.85rem; }

/* Testimonials */
.testimonials { background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.testimonial-card { background: var(--bg); padding: 28px; border-radius: var(--radius); border-left: 4px solid var(--primary); }
.testimonial-quote { font-style: italic; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.testimonial-author { font-weight: 600; }

/* FAQ */
.faq-list { max-width: 700px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--primary); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 8px; color: var(--text-muted); font-size: 0.95rem; }



/* CTA */
.cta-banner { background: var(--primary); color: var(--text-inverse); text-align: center; }
.cta-banner h2 { color: var(--text-inverse); }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; font-size: 1.1rem; }
.cta-banner .btn { background: var(--text-inverse); color: var(--primary); }
.cta-card { background: var(--surface); border-radius: var(--radius); padding: 60px 40px; text-align: center; max-width: 700px; margin: 0 auto; box-shadow: 0 4px 16px var(--shadow); }

/* Contact */
.contact-info { text-align: center; margin-top: 20px; }
.contact-info p { margin: 6px 0; color: var(--text-muted); }

/* Map */
.map-section { background: var(--surface); padding: 60px 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px var(--shadow); }

/* Carousel / Gallery */
.carousel { background: var(--surface); }
.carousel-wrapper { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 32px; }
.carousel-track { position: relative; height: 400px; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 5; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--primary); }

/* Footer */
.site-footer { background: #1f2937; color: #d1d5db; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; }
.copyright { text-align: center; padding-top: 24px; border-top: 1px solid #374151; margin-top: 24px; font-size: 0.85rem; color: #9ca3af; }



/* Responsive */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    .nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 16px 24px; box-shadow: 0 4px 12px var(--shadow); }
    .nav.open ul { flex-direction: column; gap: 0; }
    .nav.open li { padding: 8px 0; }
    .nav .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; display: flex; }
    .mobile-nav-toggle { display: block; }
}


body { font-size: 16px; font-family: Nunito, sans-serif; line-height: 1.7 }
h1, h2, h3, h4, h5, h6 { font-family: Fredoka, sans-serif; font-weight: 600 }
.btn-primary { padding: 14px 32px; font-size: 16px; font-weight: 700; border-radius: 16px }

.section-cta-1 .subtext { color: rgba(255,255,255,0.9) }
.section-cta-1 .headline { font-size: 36px; color: #ffffff }
.section-cta-1 { padding: 80px 0; text-align: center }
.section-faq-1 .headline { font-size: 36px; text-align: center }
.section-faq-1 { padding: 80px 0 }
.section-hero-1 .subtext { font-size: 18px }
.section-hero-1 .headline { font-size: 48px }
.section-hero-1 { padding: 80px 0 }
.section-about-1 .body { font-size: 17px }
.section-about-1 .headline { font-size: 36px }
.section-about-1 { padding: 80px 0 }
.section-services-1 .card { padding: 28px; border-radius: 16px }
.section-services-1 .headline { font-size: 36px; text-align: center }
.section-services-1 { padding: 80px 0 }
.section-testimonials-1 .card { padding: 28px; border-radius: 16px }
.section-testimonials-1 .headline { font-size: 36px; text-align: center }
.section-testimonials-1 { padding: 80px 0 }

[data-theme="dark"] .section-cta-1 .subtext { color: rgba(15,11,36,0.9) }
[data-theme="dark"] .section-cta-1 .headline { color: #0f0b24 }

@media (max-width: 1024px) {
    body { font-size: 15px }
    .section-hero-1 .headline { font-size: 2.25rem }
    .section-hero-1 { padding: 60px 0 }
}

@media (max-width: 768px) {
    body { font-size: 14px }
    .section-hero-1 .headline { font-size: 1.75rem }
    .section-hero-1 { padding: 40px 16px }
    .section-services-1 .card { padding: 16px }
    .section-services-1 { padding: 40px 16px }
}