/* Custom styles for PrestoSite */

:root {
    --presto-primary: #0d2d82;
    --presto-secondary: #eb3125;
    --presto-accent: #f4ebff;
    --presto-text: #344054;
    --presto-text-light: #667085;
    --presto-border: #d0d5dd;
    --presto-bg-light: #f9fafb;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--presto-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--presto-text);
}

/* Brand Colors */
.text-presto-primary { color: var(--presto-primary) !important; }
.bg-presto-primary { background-color: var(--presto-primary) !important; }
.text-presto-secondary { color: var(--presto-secondary) !important; }
.bg-presto-secondary { background-color: var(--presto-secondary) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--presto-primary);
    border-color: var(--presto-primary);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0a2468;
    border-color: #0a2468;
}

.btn-danger {
    background-color: var(--presto-secondary);
    border-color: var(--presto-secondary);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #d12c20;
    border-color: #d12c20;
}

/* Navigation */
.navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--presto-text);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--presto-primary);
}

/* Emergency Button Specific */
.btn-emergency {
    background-color: var(--presto-secondary);
    border-color: var(--presto-secondary);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-emergency:hover {
    background-color: #d12c20;
    border-color: #d12c20;
    color: white;
}

.btn-emergency .small {
    font-size: 0.75rem;
    display: block;
    font-weight: 700;
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--presto-bg-light) 0%, #ffffff 100%);
}

.hero-badge {
    background-color: var(--presto-accent);
    color: var(--presto-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Sidebar Services */
.service-item {
    background-color: var(--presto-bg-light);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background-color: white;
    border-color: var(--presto-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--presto-bg-light);
}

.gallery-image {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-4px);
}

/* Rich Text Content Styling */
.content-area {
    font-size: 1rem;
    line-height: 1.7;
}

.content-area h3 {
    color: var(--presto-primary);
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.content-area h4 {
    color: var(--presto-text);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.content-area p {
    margin-bottom: 1.5rem;
    color: var(--presto-text);
}

.content-area strong {
    font-weight: 600;
    color: var(--presto-text);
}

.content-area figure {
    margin: 2.5rem 0;
    text-align: center;
}

.content-area figcaption {
    font-style: italic;
    color: var(--presto-text-light);
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Images */
.img-responsive {
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 2rem;
}

/* Badge Styling */
.badge-custom {
    background-color: var(--presto-accent);
    color: var(--presto-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
}

/* Card Styling */
.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .service-item {
        margin-bottom: 0.75rem;
    }

    .btn-emergency {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .btn-emergency .small {
        font-size: 0.625rem;
    }

    .content-area h3 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .content-area h4 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .gallery-section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .gallery-section {
        display: none !important;
    }

    .content-area {
        font-size: 12pt;
        line-height: 1.5;
    }

    .content-area h3,
    .content-area h4 {
        page-break-after: avoid;
    }
}
