@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #F8FAFC;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.site-main { flex: 1; }

.page-section {
    padding: 2rem 0 3rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: #F8FAFC;
    padding: 1rem 1.25rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    color: #111827 !important;
    width: 100%;
}

.header-logo-wrap {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0;
}

.header-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.header-brand-text {
    flex: 1 1 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.header-company-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.header-portal-title {
    margin: 0;
    font-size: 15px;
    color: #64748B;
    margin-top: 4px;
    line-height: 1.3;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #2563EB !important;
    text-decoration: none !important;
    width: fit-content;
}

.header-phone:hover {
    color: #1D4ED8 !important;
}

/* ── Section headings ─────────────────────────────────────── */
.section-heading {
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748B;
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Business cards ───────────────────────────────────────── */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.business-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.35rem;
    text-decoration: none !important;
    color: #111827 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    height: 100%;
}

.business-card:hover {
    border-color: #2563EB;
    background: #EFF6FF;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-3px);
    color: #111827 !important;
}

.business-card-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 0.65rem;
}

.business-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.business-card-address {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.55;
}

.business-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563EB;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #2563EB !important;
    text-decoration: none !important;
    font-weight: 500;
}

.breadcrumb-nav a:hover { text-decoration: underline !important; }

.breadcrumb-nav .sep { color: #CBD5E1; }
.breadcrumb-nav .current { color: #64748B; }

/* ── Location banner ──────────────────────────────────────── */
.location-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.location-banner-icon {
    width: 48px;
    height: 48px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.location-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.25rem;
}

.location-banner-sub {
    font-size: 0.875rem;
    color: #475569;
    margin: 0 0 0.25rem;
}

.location-banner-address {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* ── Review templates ───────────────────────────────────────── */
.templates-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.templates-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #F1F5F9;
}

.templates-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.templates-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: #EFF6FF;
    color: #2563EB;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.review-grid {
    display: grid;
    gap: 0.65rem;
    max-height: 420px;
    overflow-y: auto;
}

.review-grid::-webkit-scrollbar { width: 4px; }
.review-grid::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

.review-chip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.review-chip:hover {
    border-color: #93C5FD;
    background: #F0F9FF;
}

.review-chip.active {
    border-color: #2563EB;
    background: #EFF6FF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.review-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563EB;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.review-chip.active .review-num {
    background: #1D4ED8;
}

.review-preview {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}

/* ── Selected review box ──────────────────────────────────── */
.review-action-box {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-action-box.is-active {
    border-color: #2563EB;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
}

.review-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94A3B8;
}

.review-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.review-empty p { margin: 0; font-size: 0.95rem; }

.review-action-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1rem;
    text-align: center;
}

.review-textarea {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1E293B;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    resize: none;
    margin-bottom: 1.25rem;
}

.review-textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ── Action buttons ───────────────────────────────────────── */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-copy {
    background: #2563EB;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-copy:hover {
    background: #1D4ED8;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-google-review {
    background: #2E944B;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 148, 75, 0.3);
}

.btn-google-review:hover,
.btn-google-review:focus,
.btn-google-review:visited {
    background: #268040;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(46, 148, 75, 0.4);
}

.google-g-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: 'Product Sans', Arial, sans-serif;
    color: #4285F4;
    flex-shrink: 0;
    line-height: 1;
}

.btn-upload {
    background: #111827;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
}

.btn-upload:hover {
    background: #1F2937;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.35);
}

/* ── Upload panel ─────────────────────────────────────────── */
.upload-panel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F5F9;
}

.upload-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.upload-input {
    display: block;
    width: 100%;
    padding: 0.65rem;
    font-size: 0.875rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
}

.upload-error {
    color: #DC2626;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

/* ── Thank you ────────────────────────────────────────────── */
.thank-you-box {
    max-width: 620px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.thank-you-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: #2E944B;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #fff;
}

.thank-you-box h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

/* ── WhatsApp float ───────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: #fff !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff !important;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.75);
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.875rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.d-none { display: none !important; }
.mt-3 { margin-top: 1rem; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem 0.5rem;
    }

    .header-card {
        padding: 12px 16px;
        border-radius: 14px;
    }

    .header-brand {
        gap: 16px;
    }

    .header-logo-wrap {
        flex: 0 0 28%;
        max-width: 28%;
    }

    .header-logo {
        height: 45px;
        max-width: 100%;
    }

    .header-company-name {
        font-size: 1rem;
        line-height: 1.25;
    }

    .header-portal-title {
        font-size: 0.8rem;
    }

    .header-phone {
        font-size: 0.85rem;
    }

    .page-section { padding: 1.25rem 0 2rem; }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .review-grid { max-height: none; }

    .review-action-box {
        padding: 1.25rem;
    }

    .btn-action {
        font-size: 15px;
        padding: 13px 16px;
    }
}
