/*
 * Global design tokens
 *
 * Define a set of CSS custom properties (variables) to control the colour
 * palette for the site.  The user requested a dark blue, dark red and
 * white scheme, so the primary colour is a deep navy and the secondary
 * colour is a rich maroon.  Light and muted colours are used for
 * backgrounds and text to ensure good contrast.
 */
:root {
    --primary-color: #00008b;      /* dark blue */
    --secondary-color: #8b0000;    /* dark red */
    --light-color: #ffffff;        /* white */
    --background-light: #f8f9fa;   /* light grey used for section backgrounds */
    --text-dark: #333333;          /* dark grey for body text */
    --text-muted: #666666;         /* muted grey for secondary text */
    --button-hover: #a30000;       /* slightly lighter red for button hover */
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Header Styles */
.site-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    /* Use the secondary colour for the brand text */
    color: var(--secondary-color);
    margin: 0;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--light-color);
    padding: 10px 20px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* Primary button used in the navigation bar */
.navbar-nav .btn-primary {
    background: var(--secondary-color);
    border: none;
    color: var(--light-color);
    padding: 10px 25px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navbar-nav .btn-primary:hover {
    background: var(--button-hover);
}

/* Hero Section */
.hero-section {
    /* Use a gradient from dark blue to dark red for the hero area */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    padding: 100px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-section .btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    color: var(--light-color);
    transition: background 0.3s;
}

.hero-section .btn-primary:hover {
    background: var(--button-hover);
}

/* Features Section */
.features-section {
    background: var(--background-light);
}

.feature-box {
    padding: 30px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    /* Icons inherit primary colour for consistency */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h4 {
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-muted);
}

/* Booking Form Section */
.booking-section {
    background: var(--background-light);
}

.booking-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.booking-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--text-dark);
}

.booking-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

.booking-form .btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 15px 50px;
    color: var(--light-color);
    transition: background 0.3s;
}

.booking-form .btn-primary:hover {
    background: var(--button-hover);
}

/* Services Section */
.service-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    /* Icons for service cards use the primary colour */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
}

/* Footer Styles */
.site-footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.site-footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: var(--light-color);
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    /* subtle border using the primary colour with transparency */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: background 0.3s;
}

.scroll-top:hover {
    background: var(--button-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .feature-box, .service-card {
        margin-bottom: 20px;
    }
}
