/* CSS Variables for Color Scheme */
:root {
    --color-white: #ffffff;
    --color-dark-white: #eeeff5;
    --color-gold-white: hsl(48, 23%, 91%);
    --color-dark-grey: #333333;
    --color-dark-blue: #040432;
    --color-gold: #976407;
    --color-dark-blue-light: rgba(4, 4, 50, 0.8);
    --color-gold-light: rgba(151, 100, 7, 0.1);
    --color-gold-lighter: rgba(151, 100, 7, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark-grey);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {   
    max-width: 100%;
    align-content: center;
    justify-content: center;
    border-radius: 10px;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--color-gold);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-dark-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-dark-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

blockquote {
    font-style: italic;
    border-left: 4px solid var(--color-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
}

/* Header & Navigation */
header {
    background-color: var(--color-dark-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
}

.logo img {
    margin: -5px 0 0 0;
    height: 40px;
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 1.5rem;
}

.desktop-nav ul li a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}

.desktop-nav ul li a.active {
    color: var(--color-gold);
}

/* Hero Section */
#hero {
    background: linear-gradient(var(--color-dark-blue-light), var(--color-dark-blue-light)), url(../images/rifle.jpg);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

#hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(var(--color-dark-blue-light), var(--color-dark-blue-light)), url(../images/rifle.jpg);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: var(--color-gold);
    transition: all 0.3s ease;
    border: 2px solid var(--color-gold);
    background-color: transparent;
}

.btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary {
    background-color: transparent;
    color: var(--color-gold);
    padding: 12px 30px;
    border-radius: 10px;
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    padding: 12px 30px;
    border-radius: 10px;
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* Section Styles */
#intro,
#history,
#mission,
#team,
#services-preview,
#testimonial,
.service-detail,
#service-cta,
#contact-info,
#contact-form,
#enquiry-form {
    padding: 4rem 0;
}

#intro,
#history {
    background-color: var(--color-white);
}

#mission,
#testimonial,
#service-cta {
    background-color: var(--color-gold-lighter);
}

#team,
#services-preview,
.service-detail,
#contact-info,
#contact-form,
#enquiry-form {
    background-color: var(--color-white);
}

/* Mission/Vision Section */
#mission .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-box,
.vision-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission-box h3,
.vision-box h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Team Section */
#team h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.team-member h3 {
    color: var(--color-dark-blue);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Services Preview Section */
#services-preview h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

#service:focus, #service, input, textarea {
    outline: none;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: var(--color-dark-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: var(--color-gold-white);
}

.service-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
}

/* Service Detail Sections */
.service-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail.alt .container {
    direction: rtl;
}

.service-detail.alt .service-text {
    direction: ltr;
}

.service-text h2 {
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
}

.service-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.service-text li {
    margin-bottom: 0.5rem;
}

.service-image {
    width: 80%;
    display: flex;
    justify-self: center;
}

/* Testimonial Section */
#testimonial {
    text-align: center;
}

#testimonial blockquote {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

/* Contact Info Section */
#contact-info .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-details h2,
.map h2 {
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
}

.contact-details address p {
    margin-bottom: 1rem;
}

.contact-details strong {
    color: var(--color-dark-blue);
}

.map-placeholder {
    background-color: var(--color-gold-lighter);
    border-radius: 8px;
    height: 300px;
    width: 500px;   
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Form Styles */
#enquiry-form,
#contact-form {
    background-color: var(--color-gold-lighter);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark-blue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #d9534f;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 5px rgba(151, 100, 7, 0.3);
    outline: none;
}

.success-message {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer i {
    color: var(--color-gold);
}

/* Mobile Navigation - Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger to X transformation - SINGLE SET */
.hamburger.active span:nth-child(1) {
    transform: scale(0) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg)scale(0) translate(6px, -6px);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark-blue);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-menu ul li {
    margin: 2rem 0;
}

.mobile-menu ul li a {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    color: var(--color-gold);
}

/* Close button for mobile menu */
.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update existing header styles for mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }

    /* Adjust hero section for mobile */
    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Adjust page banner for mobile */
    .page-banner {
        padding: 3rem 0;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .service-detail .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.alt .container {
        direction: ltr;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    #hero {
        padding: 4rem 0;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    .mobile-menu ul li a {
        font-size: 1.3rem;
    }

    .btn, .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }