/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* Color palette as per requirements */
    --primary-color: #0a2647; /* Dark blue for background */
    --accent-color: #daa520; /* Gold for buttons and links */
    --light-bg: #f5f5f5; /* Light gray for background blocks */
    --text-color: #333; /* Black for text */
    --white: #ffffff; /* White for form backgrounds */
    --light-accent: #f0e6c0; /* Lighter gold for hover states */
    --dark-accent: #b8860b; /* Darker gold for active states */
    --header-height: 90px; /* Define header height for scroll offset */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding-top: 0; /* Remove padding-top if it exists */
}

/* Fix for section scrolling with sticky header */
section[id],
div[id] {
    scroll-margin-top: var(--header-height); /* Add scroll margin for smooth scrolling with fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    color: var(--white);
    background-color: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: var(--white);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Menu toggle for mobile navigation (CSS only) */
.menu-toggle {
    display: none; /* Hide the checkbox */
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Mobile navigation styles */
.mobile-nav {
    display: none;
    background-color: var(--primary-color);
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    padding: 5px 0;
}

/* CSS-only mobile menu toggle functionality */
#menu-toggle:checked ~ .mobile-nav {
    display: block;
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section - Updated to have background image and centered content */
.hero {
    background-image: url('../img/EL91J.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    margin-top: 0; /* Ensure no margin at the top */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Services Section */
#services {
    position: relative;
    padding-top: 80px; /* Ensure adequate spacing */
}

.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    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(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--text-color);
}

/* Form Section - Updated with non-standard design */
.order-form {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.order-form::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(218, 165, 32, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.order-form::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(218, 165, 32, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.order-form .section-title {
    color: var(--white);
}

.order-form form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.order-form form:hover {
    transform: perspective(1000px) rotateY(2deg);
    box-shadow: -10px 10px 40px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
    outline: none;
}

.form-group input:focus + label,
.form-group select:focus + label {
    color: var(--accent-color);
}

/* Custom styles for the select dropdown */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a2647' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Setting background color for option elements */
.form-group select option {
    background-color: var(--white);
    color: var(--text-color);
    padding: 10px;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked {
    background-color: var(--light-accent);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
}

.form-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-check label {
    font-size: 14px;
    padding-left: 35px;
    cursor: pointer;
    position: relative;
}

.form-check label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-check input:checked + label::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check input:checked + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.order-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.order-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.order-form button[type="submit"]:hover::before {
    left: 100%;
}

/* Form error state */
.form-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.review-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.client-name {
    font-style: italic;
    color: #777;
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content li {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--white);
    transition: color 0.3s ease;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 9999;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin-bottom: 0;
    min-width: 300px;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

#accept-cookies {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--dark-accent);
}

/* Policy Pages */
.policy {
    padding: 80px 0;
}

.policy h1 {
    margin-bottom: 30px;
}

.policy-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content ul, 
.policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.policy-content th, 
.policy-content td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.policy-content th {
    background-color: var(--light-bg);
    font-weight: 600;
}

/* Thank You Page */
.thank-you {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thank-you h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.thank-you p {
    margin-bottom: 20px;
    font-size: 18px;
}

.thank-you .btn {
    margin-top: 20px;
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .hero-image, .service-card, .review-card {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-image {
    animation-delay: 0.3s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

.review-card:nth-child(2) {
    animation-delay: 0.2s;
}

.review-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .hero-image {
        flex: 100%;
    }
    
    .hero-content {
        margin-bottom: 40px;
        padding-right: 0;
    }
    
    .service-card, .review-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    header .container {
        position: relative;
    }
    
    .service-card, .review-card {
        flex: 0 0 100%;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .order-form form, .policy-content, .thank-you-content {
        padding: 25px;
    }
} 