/**
 * Tenant Sites Base Stylesheet
 *
 * Uses CSS custom properties (variables) that are overridden by theme configuration.
 * Default values provide a professional blue theme.
 */

/* ==========================================
   CSS Variables (defaults)
   ========================================== */

:root {
    --primary-color: #1976D2;
    --secondary-color: #424242;
    --accent-color: #82B1FF;
    --background-color: #FFFFFF;
    --text-color: #212121;
    --font-family: 'Roboto', sans-serif;

    /* Derived colors */
    --primary-light: color-mix(in srgb, var(--primary-color) 80%, white);
    --primary-dark: color-mix(in srgb, var(--primary-color) 80%, black);
    --text-light: #666666;
    --border-color: #e0e0e0;
}

/* ==========================================
   Reset & Base
   ========================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================
   Layout
   ========================================== */

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

.tenant-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Header
   ========================================== */

.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 1.25rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ==========================================
   Sections
   ========================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
}

.section-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-about {
    background-color: var(--background-color);
}

.section-features {
    background-color: #f8f9fa;
}

.section-contact {
    background-color: var(--background-color);
}

/* ==========================================
   Features Grid
   ========================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
}

.feature-text {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-info {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-info p {
    margin: 0;
    color: var(--text-color);
}

.contact-info strong {
    color: var(--primary-color);
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    text-align: center;
}

.footer-text {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.footer-powered {
    margin: 0;
}

.footer-powered a {
    color: var(--accent-color);
}

.footer-powered a:hover {
    color: white;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}
