/* ============================================
   RAWS Web - Red & White Theme CSS
   ============================================ */

/* Color Variables */
:root {
    --bs-danger: #dc3545;
    --primary-red: #dc3545;
    --primary-white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-text: #212529;
    --secondary-text: #6c757d;
    --white-10: rgba(255, 255, 255, 0.1);
    --red-light: rgba(220, 53, 69, 0.1);
}

/* General Styles */
* {
    transition: background-color 300ms ease, color 300ms ease, transform 200ms ease;
}

html, body {
    scroll-behavior: smooth;
    color: var(--dark-text);
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: var(--primary-red) !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

@media (max-width: 768px) {
    .top-contact-bar {
        display: none !important;
    }
}

.top-contact-bar .contact-item {
    color: var(--primary-white);
    white-space: nowrap;
    transition: all 200ms ease;
}

.top-contact-bar a.contact-item:hover {
    text-decoration: underline !important;
    color: #fff !important;
}

.top-contact-bar .contact-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.top-contact-bar i {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Responsive Contact Bar */
@media (max-width: 992px) {
    .top-contact-bar {
        font-size: 0.85rem;
    }
    
    .top-contact-bar .contact-divider {
        display: none;
    }
    
    .top-contact-bar .row {
        row-gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .top-contact-bar {
        padding: 0.5rem 0 !important;
    }
    
    .top-contact-bar .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-around;
        row-gap: 0 !important;
    }
    
    .top-contact-bar .col-auto {
        flex: 0 1 auto !important;
        text-align: center;
        font-size: 0.65rem;
        padding: 0 0.25rem;
    }
    
    .top-contact-bar .contact-item {
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .top-contact-bar .contact-divider {
        display: inline-block !important;
        margin: 0 0.25rem !important;
        font-size: 0.8rem;
    }
    
    .top-contact-bar i {
        font-size: 0.85rem;
        margin-right: 0.15rem !important;
        display: none;
    }
}

/* Navigation Bar Styling */
.navbar.bg-warning {
    background-color: var(--primary-red) !important;
    padding: 0 !important;
    position: relative;
    z-index: 1021;
    width: 100%;
}

.navbar.bg-warning.sticky-top-desktop {
    position: sticky;
    top: 0;
    z-index: 1021;
}

@media (max-width: 768px) {
    .navbar.bg-warning.sticky-top-desktop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1021 !important;
        width: 100% !important;
    }
}

.navbar-mobile-contact {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.nav-contact-link {
    color: var(--primary-white) !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-contact-link:hover {
    transform: scale(1.1);
}

.navbar.bg-warning .navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
}

.navbar.bg-warning .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.bg-warning .navbar-nav {
    gap: 0;
}

.navbar.bg-warning .nav-link {
    color: var(--primary-white) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 1.5rem !important;
    transition: all 200ms ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.navbar.bg-warning .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: var(--primary-white) !important;
}

.navbar.bg-warning .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.navbar.bg-warning .dropdown-menu {
    background-color: var(--primary-white);
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar.bg-warning .dropdown-item {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 200ms ease;
}

.navbar.bg-warning .dropdown-item:hover,
.navbar.bg-warning .dropdown-item.active {
    background-color: var(--red-light);
    color: var(--primary-red);
    font-weight: 600;
}

/* Responsive Menu */
@media (max-width: 992px) {
    .navbar.bg-warning .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar.bg-warning {
        padding: 0.35rem 0 !important;
    }
    
    .navbar.bg-warning .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 0.3rem;
    }
    
    .navbar.bg-warning .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar.bg-warning .navbar-collapse {
        padding: 0;
        margin-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar.bg-warning .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar.bg-warning .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar.bg-warning .navbar-nav {
        flex-direction: column;
        gap: 0 !important;
    }
    
    .navbar.bg-warning .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        white-space: normal;
    }
    
    .navbar.bg-warning .nav-item.dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar.bg-warning .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        border: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1) !important;
        border-radius: 0;
        display: none;
    }
    
    .navbar.bg-warning .dropdown-menu.show {
        display: block !important;
    }
    
    .navbar.bg-warning .dropdown-menu .dropdown-item {
        padding: 0.5rem 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.85rem;
    }
    
    .navbar.bg-warning .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
}



/* Backgrounds */
.bg-danger {
    background-color: var(--primary-red) !important;
}

.bg-danger-light {
    background-color: var(--red-light) !important;
}

.bg-white-10 {
    background-color: var(--white-10) !important;
    color: var(--primary-white);
}

.bg-white-10::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Typography */
.text-danger {
    color: var(--primary-red) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.display-4, .display-5 {
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid var(--primary-red);
}

.min-vh-75 {
    min-height: 75vh;
    display: flex;
    align-items: center;
}

/* Buttons */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 300ms ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-outline-danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.btn-outline-danger:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Header Section */
.header-section {
    background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-red) !important;
    position: sticky;
    top: 50px;
    z-index: 1018;
}

.header-section h1 {
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-section p {
    font-size: 0.83rem;
    font-weight: 500;
}

/* Mobile Header Section */
.mobile-header-section {
    background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-red) !important;
    padding: 0.5rem 0 !important;
}

@media (max-width: 768px) {
    .mobile-header-section {
        position: fixed !important;
        top: 52px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1020 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    body {
        padding-top: 0;
    }
}

@media (min-width: 769px) {
    .mobile-header-section {
        position: sticky;
        top: 50px;
        z-index: 1019;
    }
}

.mobile-header-section h1 {
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 0.9rem !important;
}

.mobile-header-section p {
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 !important;
    color: var(--secondary-text);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 200ms ease;
}

.mobile-contact-link:hover {
    color: var(--primary-white);
}

.mobile-contact-link i {
    font-size: 0.75rem;
}

.logo-circle {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    border: 3px solid var(--primary-red);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.header-logo-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 50%;
    border: 2px solid var(--primary-red);
    transition: all 300ms ease;
}

.header-logo-badge:hover {
    background-color: var(--primary-red);
    color: var(--primary-white) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}

#dateTimeDisplay {
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    letter-spacing: 0.3px;
}

/* Navbar */
.navbar-dark {
    background-color: var(--primary-red) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: all 200ms ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-white) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Service Cards */
.services-section {
    background-color: var(--light-gray);
}

.service-card {
    border: none;
    background-color: var(--primary-white);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.service-hover-effect {
    cursor: pointer;
}

.service-card.service-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15) !important;
    border-top: 4px solid var(--primary-red);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--red-light);
    border-radius: 50%;
}

.service-card.service-hover-effect:hover .service-icon {
    background-color: var(--primary-red);
    color: var(--primary-white) !important;
}

/* About Section */
.about-section {
    background-color: var(--primary-white);
    padding: 5rem 0;
}

.list-group-item {
    background-color: transparent;
    color: var(--dark-text);
    padding: 1rem 0;
    font-size: 1.1rem;
}

.list-group-item i {
    color: var(--primary-red);
    font-size: 1.3rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02634 100%);
}

.form-control-lg {
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    transition: all 200ms ease;
}

.form-control-lg:focus {
    border-color: var(--primary-white);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background-color: var(--white-10) !important;
}

.form-control-lg::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background-color: var(--primary-red);
    border-top: 3px solid #c82333;
}

footer h5 {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

footer a {
    transition: color 200ms ease;
}

footer a:hover {
    color: var(--primary-white) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rounded-3 {
    border-radius: 1.5rem;
}

.rounded-4 {
    border-radius: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-section .row {
        text-align: center;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .min-vh-75 {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Slider Image */
.slider-image {
    height: 600px;
    object-fit: fill;
}

@media (max-width: 768px) {
    .slider-image {
        height: 315px;
        object-fit: fill;
    }
    
    .carousel, 
    .slider-section,
    [class*="carousel"],
    [class*="slider"] {
        margin-top: 35px !important;
    }
}

/* Pricing Card Animations */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.2) !important;
}

.pricing-card:hover .pricing-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.pricing-card:hover .btn-danger {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
}

/* Message Card Animations */
.message-card {
    transition: all 0.3s ease;
}

.message-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.2) !important;
}

.message-card:hover .message-card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.message-card:hover .btn-outline-danger {
    transform: scale(1.05);
}

/* Modal Animations and Centering */
.modal {
    display: none;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.fade .modal-dialog {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: scale(0.9);
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: scale(1);
}

/* Modal fade out animation */
@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal.hide .modal-dialog {
    animation: modalFadeOut 0.5s ease forwards;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideInUp 0.6s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #c82333;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Print Styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
}
