* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: #f6f7fb;
    color: #1f2933;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    font-size: 1.1rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    text-decoration: underline;
}

.main-nav a.active {
    color: #111827;
}

.page {
    padding: 2rem 0;
}

.page-home {
    padding-top: 0;
}

.page-home > section {
    margin: 0 auto;
}

.page-home > section + section {
    margin-top: 1.5rem;
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    background: linear-gradient(135deg, #4f46e5, #805ad5);
    color: #fff;
    padding: 3rem 0;
}

.hero.hero-home {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(1.5rem, 5vw, 3rem);
}

.page-home section.container,
.page-home .feature-section,
.page-home .testimonial-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin: 0 0 0.5rem;
    opacity: 0.85;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.lead {
    max-width: 640px;
    font-size: 1.1rem;
    margin: 0;
}

main .grid {
    display: grid;
    gap: 2rem;
}

section {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

section h2 {
    margin-top: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #111827;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25);
}

.cta-button.secondary {
    background: transparent;
    border-color: rgba(248, 250, 252, 0.4);
    color: #f8fafc;
    box-shadow: none;
}

.cta-button.small {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: none;
}

.header-cta {
    display: flex;
    align-items: center;
}

.stat-grid,
.feature-grid,
.testimonial-grid {
    display: grid;
    gap: 1.5rem;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card,
.feature-card,
.testimonial-card {
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
}

.stat-card {
    text-align: center;
}

.session-availability-summary {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.35rem 0;
}

.book-btn {
    margin-top: 0.5rem;
}

.book-btn .button-link {
    display: inline-block;
    margin-top: 0.25rem;
}

.muted-text {
    color: #64748b;
    font-size: 0.9rem;
}

.booking-opportunities {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.booking-session-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.booking-session-card {
    border: 1px solid #cbd5f5;
    border-radius: 0.85rem;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.05);
}

.public-map-section,
.booking-map-section {
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}

.public-map-section .map-canvas.readonly-map,
.booking-map-section .map-canvas.readonly-map {
    position: relative;
    width: 100%;
    min-height: 600px;
    border: 1px solid #cbd5f5;
    border-radius: 1rem;
    background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: #f8fafc;
    overflow: hidden;
}

.booking-map-section .map-canvas.readonly-map {
    min-height: 640px;
}

.public-map-section .map-workspace-static,
.booking-map-section .map-workspace-static {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

.stat-label {
    margin: 0.35rem 0 0;
    color: #475569;
}

.feature-section {
    background: #f8fafc;
    border: none;
    box-shadow: none;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-card p {
    margin: 0;
    color: #475569;
}

.testimonial-section {
    background: #fff;
}

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

.testimonial-card p {
    margin: 0;
}

.testimonial-card .author {
    margin-top: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5f5;
    font-size: 1rem;
}

input:focus {
    outline: 2px solid #6366f1;
    border-color: transparent;
}

button {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
button:focus {
    background: #4338ca;
}

.link-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5f5;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
    color: #1f2933;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.button-link:hover,
.button-link:focus {
    background: #eef2ff;
    border-color: #6366f1;
    color: #1e1b4b;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.18);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert ul {
    margin: 0.5rem 0 0 1rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.map-element {
    min-width: 40px;
    min-height: 40px;
    box-sizing: border-box;
    text-align: center;
    white-space: pre-line;
    word-break: break-word;
}

.footer {
    text-align: center;
    font-size: 0.95rem;
    color: #4b5563;
}

.site-footer {
    border-top: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
    color: #4b5563;
    font-size: 0.9rem;
}

@media (min-width: 900px) {
    main .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
