/* ==========================================================================
   OffloadHost — shared site styles
   Used by: static pages (terms, privacy, cookies, contact, etc.)
   Note: index.html maintains its own inline styles for the marketing page.
   ========================================================================== */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-subtle: #d1fae5;
    --secondary: #064e3b;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.logo-icon img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Page hero (small banner for inner pages) */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--white) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.page-hero .meta {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Prose container (for text-heavy pages) */
.prose {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 100px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-700);
}

.prose h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 18px;
}

.prose ul,
.prose ol {
    margin: 0 0 18px 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--dark);
    font-weight: 600;
}

.prose a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--primary);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.prose th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--dark);
}

.prose .callout {
    background: var(--primary-subtle);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
}

.prose .callout p:last-child {
    margin-bottom: 0;
}

/* Contact page specific */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.contact-card h3 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--primary-dark);
    font-weight: 600;
}

.contact-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-card .icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-dark);
    fill: none;
    stroke-width: 2;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    line-height: 1.7;
    color: var(--gray-500);
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .page-hero {
        padding: 110px 0 40px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .prose {
        padding: 40px 20px 70px;
        font-size: 1rem;
    }

    .prose h2 {
        font-size: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Back-to-top floating button — mirrors sg.onclickwp FloatingChatWidget pattern */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 999;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark, #0052cc); transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
    .back-to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}
