/* SuperSite Base — Default Styles
   AI customizes these per client deployment. Keep tokens + shared components
   here; per-page styles go at the bottom or in a separate file. */

:root {
    /* Color */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #f59e0b;         /* CTA strip, badges, highlights */
    --color-text: #111827;
    --color-text-light: #4b5563;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;

    /* Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-scale-h1: clamp(2rem, 4vw + 1rem, 3.5rem);
    --font-scale-h2: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    --font-scale-h3: 1.25rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 720px;
    --section-py: clamp(3rem, 6vw, 5rem);

    /* Shape */
    --radius-sm: .25rem;
    --radius-md: .5rem;
    --radius-lg: 1rem;

    /* Depth */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--max-width-narrow); }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: var(--font-scale-h1); }
h2 { font-size: var(--font-scale-h2); }
h3 { font-size: var(--font-scale-h3); }

/* Header */
.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { font-size: 1.25rem; font-weight: 700; color: var(--color-text); text-decoration: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--color-text-light); font-size: .875rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--color-primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .5rem 0; min-width: 160px; box-shadow: var(--shadow-md); z-index: 10; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: .375rem 1rem; font-size: .8rem; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Footer */
.site-footer { background: var(--color-bg-dark); color: #d1d5db; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; font-size: .875rem; margin-bottom: .75rem; }
.site-footer p, .site-footer a { font-size: .875rem; color: #9ca3af; display: block; margin-bottom: .25rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: .8rem; color: #6b7280; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.5rem; border-radius: var(--radius-md); font-size: .875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s, color .12s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-text); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }

/* Forms */
.form-input { width: 100%; padding: .625rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: .875rem; }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.form-label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .25rem; color: var(--color-text); }

/* Generic sections */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--color-text-muted); }

/* Hero */
.hero { position: relative; min-height: 65vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); z-index: 0; }
/* Swap .hero-bg background for a real image:
   .hero-bg { background: url(/uploads/hero.webp) center/cover; }
   .hero-bg::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.5)); } */
.hero-inner { position: relative; z-index: 1; padding: 4rem 1.5rem; text-align: center; max-width: 800px; }
.hero-title { margin-bottom: 1rem; letter-spacing: -.02em; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw + .5rem, 1.25rem); opacity: .92; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Trust bar */
.trust-bar { background: var(--color-bg-alt); padding: 2rem 0; border-block: 1px solid var(--color-border); }
.trust-bar-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; text-align: center; }
.trust-item strong { display: block; font-size: 1.75rem; font-weight: 700; color: var(--color-primary); line-height: 1; margin-bottom: .25rem; }
.trust-item span { font-size: .875rem; color: var(--color-text-muted); }

/* Card grid */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--color-text-light); margin-bottom: 1rem; }
.card-link { font-size: .875rem; font-weight: 500; color: var(--color-primary); }

/* Split 2-column */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { color: var(--color-text-light); margin-bottom: 1rem; }
.split-text .btn { margin-top: .5rem; }

/* Placeholder image block — visible stand-in until a real asset is dropped in. */
.placeholder-image { aspect-ratio: 4/3; background: var(--color-bg-alt); border: 2px dashed var(--color-border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--color-text-muted); }

/* Testimonials */
.testimonial { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; }
.testimonial p { color: var(--color-text); font-size: 1rem; margin-bottom: 1rem; font-style: italic; line-height: 1.5; }
.testimonial p::before { content: '“'; font-size: 2rem; color: var(--color-primary); line-height: 0; vertical-align: -.2em; margin-right: .1em; }
.testimonial footer { font-size: .875rem; color: var(--color-text-muted); font-style: normal; }

/* CTA strip */
.cta-strip { background: var(--color-accent); color: var(--color-bg-dark); padding: var(--section-py) 0; text-align: center; }
.cta-inner h2 { margin-bottom: .5rem; }
.cta-inner p { margin-bottom: 1.5rem; font-size: 1.125rem; opacity: .85; max-width: 560px; margin-inline: auto; }
.cta-strip .btn-primary { background: var(--color-bg-dark); }
.cta-strip .btn-primary:hover { background: #000; }

/* Contact teaser tweaks */
.contact-teaser p { margin-bottom: .5rem; color: var(--color-text-light); }
.contact-teaser strong { color: var(--color-text); }

/* Gallery grid (used by gallery module) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .site-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-border); box-shadow: var(--shadow-md); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .5rem 0; }
    .split-2 { grid-template-columns: 1fr; gap: 2rem; }
    .hero { min-height: 55vh; }
    .hero-inner { padding: 3rem 1rem; }
}
