@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-blue: #002855;
    --accent-gold: #D4AF37;
    --light-gray: #F8F9FA;
    --text-color: #333333;
    --white: #FFFFFF;
    --border-color: #DEE2E6;
    --header-font: 'DM Serif Display', serif;
    --body-font: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky; top: 0; z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--body-font); font-size: 1.2rem; font-weight: 600; letter-spacing: 2px; color: var(--text-color); text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
nav ul li a { text-decoration: none; color: var(--text-color); font-size: 1rem; padding-bottom: 5px; position: relative; }
nav ul li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background-color: var(--primary-blue); transition: width 0.3s ease; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }

/* Buttons */
.button-primary { display: inline-block; padding: 14px 28px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 2px solid var(--primary-blue); background-color: var(--primary-blue); color: var(--white); cursor: pointer; }
.button-primary:hover { background-color: var(--white); color: var(--primary-blue); }

/* Hero Section */
.hero { position: relative; height: 90vh; display: flex; align-items: center; text-align: center; overflow: hidden; }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; background-color: var(--primary-blue); }
.hero-content { position: relative; z-index: 2; color: var(--white); animation: fadeIn 1.5s ease-out; margin: 0 auto; padding: 0 2rem; }
.hero-content h1 { font-family: var(--header-font); font-size: 4rem; font-weight: 400; margin-bottom: 1.5rem; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; max-width: 650px; margin: 0 auto 2.5rem; opacity: 0.9; }

/* General Section Styling */
section { padding: 6rem 0; }
section:nth-of-type(even), .team-section { background-color: var(--light-gray); }
.page-content { padding: 4rem 0; }
h2, h3 { font-family: var(--header-font); color: var(--primary-blue); font-weight: 400; }
.page-header { text-align: center; margin-bottom: 4rem; }
.page-header h1, .page-header h2 { font-size: 3rem; }
.page-header p { color: #6c757d; font-size: 1rem; }


/* Content Grid (Why Us, etc.) */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.content-text h2 { font-size: 2.8rem; line-height: 1.3; }
.content-text h3 { font-size: 1.8rem; }
.content-text ul { list-style: none; padding: 0; margin-top: 1.5rem; }
.content-text ul li { padding-left: 2rem; position: relative; margin-bottom: 1rem; }
.content-text ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent-gold); font-size: 1.5rem; line-height: 1; }
.content-image img { width: 100%; }

/* Services Page Grid */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.service-card { border-top: 3px solid var(--primary-blue); padding-top: 1.5rem; }
.service-card h3 { font-size: 1.8rem; margin-top: 0; }

.service-card h3 a {
    text-decoration: none;
    color: inherit; /* This makes the link take the color of the h3 tag */
    transition: color 0.3s ease;
}

.service-card h3 a:hover {
    color: var(--accent-gold); /* Adds a subtle, professional hover effect */
}

/* Team Section */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.team-member { text-align: center; }
.team-member img { width: 100%; max-width: 180px; height: auto; border-radius: 50%; margin-bottom: 1.5rem; aspect-ratio: 1 / 1; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.team-member h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.team-member .job-title { font-size: 1rem; color: #6c757d; margin-top: 0; }

/* Testimonial Section */
.testimonial-section { text-align: center; }
.testimonial-section h2 { font-size: 2.8rem; }
.testimonial-slider { max-width: 700px; margin: 2rem auto 0; position: relative; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadeIn 0.8s; }
.testimonial p { font-size: 1.2rem; font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-weight: 600; color: var(--text-color); font-style: normal; }

/* CTA Section */
.cta-section { background-color: var(--light-gray); text-align: center; }
.cta-section h2 { font-size: 2.8rem; margin-bottom: 1rem; }

/* Terms & Privacy Page Content */
.terms-content { max-width: 800px; margin: 0 auto; }
.terms-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.terms-content ul { padding-left: 20px; list-style-type: disc; }
.terms-content ul li { margin-bottom: 0.75rem; }

/* Form Styles */
form { max-width: 700px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; background-color: var(--light-gray); border: 1px solid var(--border-color); padding: 12px; font-family: var(--body-font); font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-blue); }
#form-status { text-align: center; margin-top: 1rem; font-weight: bold; min-height: 1.2em; }
.form-group-checkbox { display: flex; align-items: center; gap: 10px; }
.form-group-checkbox input[type="checkbox"] { width: 1.2em; height: 1.2em; }
.form-group-checkbox label { margin: 0; font-weight: 400; font-size: 0.9rem; }

/* Footer */
.main-footer { background-color: #212529; color: #adb5bd; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col .logo { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; font-family: var(--body-font); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #adb5bd; text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-address { font-style: normal; font-size: 0.9rem; line-height: 1.6; color: #adb5bd; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid #495057; text-align: center; padding-top: 2rem; font-size: 0.9rem; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: #212529; color: #adb5bd; padding: 1.5rem 0; z-index: 2000; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.5s ease-in-out; }
.cookie-banner.show { transform: translateY(0); }
.cookie-container { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--white); font-weight: 600; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 1rem; flex-shrink: 0; }
.button-secondary { cursor: pointer; padding: 10px 24px; font-weight: 600; border: 2px solid #6c757d; background-color: transparent; color: #6c757d; transition: all 0.3s ease; }
.button-secondary:hover { background-color: #6c757d; color: var(--white); }


/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.show { opacity: 1; transform: translateY(0); }

/* Responsive Styles */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid .content-image { order: -1; max-width: 500px; margin: 0 auto 2rem; }
    .service-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    header .container { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
    .hero { height: 80vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    section, .page-content { padding: 3rem 0; }
    .page-header h1, .page-header h2 { font-size: 2.2rem; }
    .content-text h2, .testimonial-section h2, .cta-section h2 { font-size: 2rem; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col ul { display: inline-block; text-align: center; }
    .cookie-container { flex-direction: column; text-align: center; }
}

/* Contact Info Section */
.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info-box {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    margin-bottom: 1rem;
}
.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
}
.contact-info-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.contact-info-box p {
    color: #6c757d;
    margin-bottom: 1rem;
}
.contact-info-box a, .contact-info-box address {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    font-style: normal;
}
.contact-info-box a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Form Validation & Status */
#form-status.form-error {
    color: red;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
input.invalid, textarea.invalid {
    border-color: red !important;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 40, 85, 0.6); /* Semi-transparent blue */
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.modal-icon {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}
.modal-content h2 {
    font-family: var(--header-font);
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}
.modal-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.modal-content .confirmation-email {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 1.5rem;
}
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.close-button:hover {
    color: #333;
}

/* Contact Info Section */
.contact-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info-box {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--white);
    margin-bottom: 1rem;
}
.contact-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
}
.contact-info-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.contact-info-box p {
    color: #6c757d;
    margin-bottom: 1rem;
}
.contact-info-box a, .contact-info-box address {
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    font-style: normal;
}
.contact-info-box a:hover {
    text-decoration: underline;
}

/* Make contact info responsive */
@media (max-width: 768px) {
    .contact-info-wrapper {
        grid-template-columns: 1fr;
    }
}