/* =====================
   CSS Variables
===================== */
:root {
    /* Color Palette */
    --primary-color: #005792; /* Main Blue (0, 87, 146) */
    --secondary-color: #0094F8; /* Light Blue (0, 148, 248) */
    --background-color: #E6E6E6; /* Light Gray (230, 230, 230) */
    --text-color: #000000; /* Black (0, 0, 0) */
    --accent-color: #E6E6E6; /* Light Gray */
    
    /* New Color Variables */
    --dark-section-bg: #00395F; /* Dark Blue (0, 57, 95) */
    --dark-section-text: #FFFFFF; /* White (255, 255, 255) */
    --button-secondary-bg: #0075C5; /* Secondary Button Blue (0, 117, 197) */
    --button-secondary-hover-bg: #0094F8; /* Hover for Secondary Button Blue (0, 148, 248) */
    
    /* Font Families */
    --font-family-primary: 'Montserrat', Arial, sans-serif;
    --font-family-secondary: 'Orbitron', sans-serif;

    /* Footer Colors */
    --footer-bg-color: var(--background-color);
    --footer-text-color: #000000; /* Black for better contrast on light background */

    /* Social Icons */
    --social-icon-color: var(--primary-color);
    --social-icon-hover-color: var(--secondary-color);

    /* Buttons */
    --button-bg-color: var(--primary-color);
    --button-hover-bg-color: var(--secondary-color);
    --button-text-color: #FFFFFF; /* Ensured white text for contrast */

    --btn-contact-bg-color: var(--primary-color);
    --btn-contact-hover-bg-color: var(--secondary-color);
    --btn-contact-text-color: #FFFFFF;

    --btn-booking-bg-color: var(--button-secondary-bg); /* Changed to secondary button color */
    --btn-booking-hover-bg-color: var(--button-secondary-hover-bg);
    --btn-booking-text-color: #FFFFFF;

    /* Back to Top Button */
    --back-to-top-bg-color: var(--primary-color);
    --back-to-top-hover-bg-color: var(--secondary-color);
}

/* =====================
   Reset and Basic Styles
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--background-color);
    color: var(--text-color); /* Black for better readability on light background */
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: outline 0.3s;
}

button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* =====================
   Container
===================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================
   Header Styles
===================== */
.header {
    background-color: var(--background-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container .logo {
    width: 150px;
    height: auto;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: #000000; /* Black for better contrast on light background */
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-toggle span {
    height: 3px;
    width: 25px;
    background-color: #000000; /* Changed to black */
    margin-bottom: 5px;
    display: block;
}

/* =====================
   Main Content Padding to Prevent Overlap
===================== */
.main-content {
    padding-top: 120px; /* Increased from 80px to 120px to account for fixed header */
}

/* =====================
   Hero Section Styles
===================== */
.hero {
    padding: 80px 0 40px; /* Adjust as needed */
    text-align: left;
    color: #000000; /* Black for better readability */
}

.hero .container {
    width: 100%;
    padding: 0;
}

.hero h1 {
    font-family: var(--font-family-secondary);
    font-size: 48px;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease-out;
    color: var(--primary-color);
    text-align: left;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
    color: #000000; /* Black for better readability */
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.5;
    text-align: left;
}

/* =====================
   Core Message Section Styles
===================== */
.core-message {
    background-color: var(--background-color);
    padding: 40px 0;
    color: #000000; /* Black for better readability */
}

.core-message .container {
    text-align: left;
}

.core-message h2 {
    font-family: var(--font-family-secondary);
    font-size: 36px;
    text-align: left;
    margin-bottom: 30px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

.core-message p {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: left;
}

/* =====================
   Closing Section Styles
===================== */
.closing-section {
    background-color: var(--background-color);
    padding: 40px 0;
    color: #000000; /* Black for better readability */
}

.closing-section .container {
    text-align: left;
}

.closing-section h2 {
    font-family: var(--font-family-secondary);
    font-size: 32px;
    text-align: left;
    margin-bottom: 25px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

.closing-section p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: left;
}

.button-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.button-group .btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50px;
    margin: 10px 5px;
    transition: background-color 0.3s, transform 0.3s;
    flex: 1;
    max-width: 30%;
    text-align: center;
}

.button-group .btn:hover,
.button-group .btn:focus {
    background-color: var(--button-hover-bg-color);
    transform: translateY(-5px);
}

/* =====================
   About Section
===================== */
.about-section {
    background-color: var(--background-color);
    padding: 60px 0;
    color: #000000; /* Black for better readability */
}

.about-section .container {
    text-align: left;
}

.about-section h2 {
    font-family: var(--font-family-secondary);
    font-size: 36px;
    text-align: left;
    margin-bottom: 40px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

.about-content {
    margin: 0 0 40px 0;
    text-align: left;
}

.about-content h3 {
    font-family: var(--font-family-secondary);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
    text-align: left;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: left;
}

.about-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.about-content ul li {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
}

/* Center Button on Company Page */
.about-section .about-contact {
    text-align: center;
    margin-bottom: 40px;
}

.about-section .about-contact .btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--btn-contact-bg-color);
    color: var(--btn-contact-text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.about-section .about-contact .btn-contact:hover,
.about-section .about-contact .btn-contact:focus {
    background-color: var(--btn-contact-hover-bg-color);
    transform: translateY(-5px);
}

/* Core Values */
.core-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-top: 40px;
}

.core-value {
    background-color: var(--dark-section-bg); /* Dark Blue (0, 57, 95) */
    color: var(--dark-section-text); /* White */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.core-value:hover,
.core-value:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.core-value h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #FFFFFF; /* White for better contrast */
    text-align: left;
}

.core-value p {
    font-size: 16px;
    color: #FFFFFF; /* White */
    text-align: left;
}

/* =====================
   Services Section
===================== */
.services-section {
    background-color: var(--background-color);
    padding: 20px 0 40px;
    color: #000000; /* Black for better readability */
    position: relative;
}

.services-section .container {
    text-align: left;
}

.services-section h2 {
    font-family: var(--font-family-secondary);
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
    text-align: left;
}

/* Accordion Styles */
.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 15px;
    background-color: var(--dark-section-bg); /* Dark Blue (0, 57, 95) */
    color: var(--dark-section-text); /* White */
    font-size: 20px;
    font-family: var(--font-family-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.accordion-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg); /* Change '+' to '×' */
}

/* Updated Accordion Title Styles */
.accordion-button .accordion-title {
    font-weight: bold;
    color: var(--dark-section-text); /* White */
    transition: color 0.3s, text-decoration 0.3s;
}

.accordion-button:hover .accordion-title,
.accordion-button:focus .accordion-title,
.accordion-button[aria-expanded="true"] .accordion-title {
    text-decoration: underline;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

/* Accordion Content Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease-out;
    background-color: var(--background-color); /* Light Gray (230, 230, 230) */
    color: #000000; /* Black */
}

.accordion-content.open {
    max-height: 1000px; /* Increased from 500px to accommodate more content */
    padding: 20px;
}

.accordion-content h4 {
    font-size: 24px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
    margin-bottom: 10px;
}

.accordion-content h5 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #000000; /* Black */
    font-weight: 500;
}

.accordion-content p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
    color: #000000; /* Black */
}

.accordion-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.accordion-content ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #000000; /* Black */
}

.accordion-content .service-details {
    list-style-type: circle;
    margin-left: 20px;
}

.accordion-content .service-details li {
    margin-bottom: 8px;
    color: #000000; /* Black */
}

/* Closing Tagline */
.closing-tagline {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-top: 40px;
    margin-bottom: 40px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

/* Services Contact Button */
.services-contact {
    text-align: center;
    margin-bottom: 40px;
}

.services-contact .btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--btn-contact-bg-color);
    color: var(--btn-contact-text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.services-contact .btn-contact:hover,
.services-contact .btn-contact:focus {
    background-color: var(--btn-contact-hover-bg-color);
    transform: translateY(-5px);
}

/* =====================
   Contact Section
===================== */
.contact-section {
    background-color: var(--background-color);
    padding: 40px 0 30px;
    color: #000000; /* Black for better readability */
}

.contact-section .container {
    text-align: left;
}

.contact-section h2 {
    font-family: var(--font-family-secondary);
    font-size: 36px;
    text-align: left;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Secondary Blue (0, 148, 248) */
}

.contact-section p {
    text-align: left;
    margin-bottom: 30px;
    color: #000000; /* Black */
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-form {
    flex: 1;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-section-bg); /* Dark Blue (0, 57, 95) */
    padding: 20px;
    border-radius: 8px;
}

.contact-form .form-row {
    display: flex;
    justify-content: space-between;
}

.contact-form .form-row label {
    flex: 0 0 48%;
}

.contact-form label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: left;
    color: #FFFFFF; /* White */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background-color: #E6E6E6; /* Light Gray (230, 230, 230) */
    border: 1px solid #E6E6E6; /* Light Gray (230, 230, 230) */
    color: #000000; /* Black */
    font-size: 16px;
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--button-secondary-bg); /* Secondary Button Blue (0, 117, 197) */
    color: var(--button-text-color); /* White */
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    text-align: center;
    border-radius: 4px;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: var(--button-secondary-hover-bg); /* Hover to #0094F8 */
}

#form-messages {
    margin-bottom: 20px;
    font-size: 16px;
}

#form-messages.success {
    color: var(--secondary-color);
}

#form-messages.error {
    color: #FF4D4D; /* Kept as is for error visibility */
}

/* Booking Call-to-Action */
.booking-cta {
    flex: 1;
    max-width: 48%;
    background-color: var(--dark-section-bg); /* Dark Blue (0, 57, 95) */
    color: var(--dark-section-text); /* White */
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
}

.booking-cta h3 {
    font-family: var(--font-family-secondary);
    font-size: 28px;
    color: #FFFFFF; /* White */
    margin-bottom: 20px;
    text-align: center;
}

.booking-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFFFF; /* White */
}

.btn-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--btn-booking-bg-color); /* Secondary Button Blue (0, 117, 197) */
    color: var(--btn-booking-text-color); /* White */
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-booking:hover,
.btn-booking:focus {
    background-color: var(--btn-booking-hover-bg-color); /* Hover to #0094F8 */
    transform: translateY(-5px);
}

/* =====================
   Footer Styles
===================== */
.footer {
    background-color: var(--footer-bg-color);
    padding: 20px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .logo {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    color: var(--footer-text-color); /* Black */
    text-align: center;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: var(--social-icon-color);
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--social-icon-hover-color);
}

/* =====================
   Animations
===================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Back to Top Button
===================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--back-to-top-bg-color);
    color: var(--background-color);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 24px;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: var(--back-to-top-hover-bg-color);
    transform: translateY(-5px);
}

/* =====================
   Spinner Styles
===================== */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.3); /* Matches light background */
    border-top: 4px solid var(--button-text-color); /* White top border */
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================
   Responsive Styles
===================== */
@media (max-width: 1024px) {
    /* Tablet Styles */
    /* Add any tablet-specific styles here */
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease-in-out;
    }

    .navbar.open {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 20px 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Adjust styles for smaller screens */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }

    .core-message h2,
    .closing-section h2,
    .about-section h2,
    .services-section h2,
    .services-subtitle,
    .booking-cta h3 {
        font-size: 28px;
    }

    .about-content h3,
    .booking-cta h3,
    .services-subtitle {
        font-size: 24px;
    }

    .about-content p,
    .contact-section p,
    .booking-cta p,
    .core-message p,
    .closing-section p,
    .accordion-content p,
    .accordion-content ul li {
        font-size: 16px;
    }

    .closing-tagline {
        font-size: 18px;
    }

    .core-values {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }

    .contact-content {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form,
    .booking-cta {
        max-width: 100%;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    .contact-form .form-row label {
        flex: 1;
        margin-bottom: 15px;
    }

    .booking-cta {
        margin-top: 40px;
    }

    .accordion-button {
        font-size: 18px;
        padding: 12px;
    }

    .accordion-content.open {
        max-height: 1500px; /* Increased max-height for mobile */
    }

    .accordion-content h4 {
        font-size: 20px;
    }

    .accordion-content h5 {
        font-size: 18px;
    }

    .accordion-content p {
        font-size: 14px;
    }

    .accordion-content ul li {
        font-size: 14px;
    }

    .accordion-content .service-details li {
        font-size: 14px;
    }

    .btn-contact,
    .btn-booking,
    .button-group .btn {
        font-size: 18px;
        padding: 12px 24px;
    }

    .social-links a {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .core-message h2,
    .closing-section h2,
    .about-section h2,
    .services-section h2,
    .services-subtitle,
    .booking-cta h3 {
        font-size: 24px;
    }

    .about-content h3,
    .booking-cta h3,
    .services-subtitle {
        font-size: 20px;
    }

    .core-value h4,
    .accordion-content h4 {
        font-size: 18px;
    }

    .about-content p,
    .contact-section p,
    .booking-cta p,
    .core-message p,
    .closing-section p,
    .accordion-content p,
    .accordion-content ul li {
        font-size: 14px;
    }

    .btn-contact,
    .btn-booking,
    .button-group .btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .closing-tagline {
        font-size: 16px;
    }

    .accordion-button {
        font-size: 16px;
        padding: 10px;
    }

    .accordion-content.open {
        max-height: 1500px; /* Increased max-height for mobile */
    }

    .accordion-content h4 {
        font-size: 18px;
    }

    .accordion-content h5 {
        font-size: 16px;
    }

    .accordion-content p {
        font-size: 14px;
    }

    .accordion-content ul li {
        font-size: 14px;
    }

    .accordion-content .service-details li {
        font-size: 14px;
    }

    .social-links a {
        font-size: 18px;
    }
}
