/* ============================================ */
/*              GLOBAL STYLES & SETUP           */
/* ============================================ */

/* --- CSS Variables for Easy Theme Management --- */
:root {
    --primary-color: #033372; /* ProReal Deep Blue */
    --secondary-color: #ffffff; /* ProReal White */
    --accent-color: #000000; /* Black */
    --tertiary-color: #ababa7; /* ProReal Light Gray */
    --font-family: 'Red Hat Display', sans-serif;
    --header-height: 80px;
}

/* --- Basic Reset and Box Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--accent-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    font-size: 16px;
}

/* --- Global Elements --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #022654; /* A slightly darker blue for hover */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Reusable Components --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 24px;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #022654;
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ============================================ */
/*                  HEADER                      */
/* ============================================ */
.site-header {
    background-color: var(--secondary-color);
    padding: 0 20px;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    border: 40px solid transparent;
    box-sizing: content-box;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-contact a {
    color: var(--accent-color);
    font-weight: 500;
}

.phone-contact a i {
    color: var(--primary-color);
    margin-right: 5px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ============================================ */
/*                  FOOTER                      */
/* ============================================ */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

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

.footer-column p, .footer-column a {
    color: var(--secondary-color);
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-logo img {
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the placeholder logo white */
}

.address {
    margin-top: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    font-size: 1.5rem;
}

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

.association-logos {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.association-logos img {
    height: 35px;
    width: auto;
}

.sub-footer {
    background-color: #022654; /* Darker blue */
    padding: 20px 0;
    text-align: center;
}

.sub-footer p {
    margin: 0;
    font-size: 0.8rem;
}

.sub-footer a {
    text-decoration: underline;
}

/* ============================================ */
/*              HOMEPAGE SECTIONS               */
/* ============================================ */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1618219740975-d40978bb7378?q=80&w=1100&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.25);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--secondary-color);
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: #f4f4f4;
    padding: 20px 0;
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    text-align: center;
}

.trust-item img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.trust-item p {
    margin: 0;
    font-weight: 500;
    color: #555;
}

/* --- Dilemma Section --- */
.solution-column ul {
    list-style: none;
}

.solution-column li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.solution-column i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    padding: 20px;
}

.testimonial-card.active {
    display: block;
}

.reviewer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.star-rating {
    color: #ffd700; /* Gold */
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(3, 51, 114, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* --- Portfolio Preview --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(3, 51, 114, 0.9), rgba(3, 51, 114, 0));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.portfolio-overlay span {
    font-weight: 700;
}

/* --- Process Section --- */
.process-section {
    background-color: #f4f4f4;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.step {
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.step h3 {
    margin-bottom: 10px;
}

/* --- Final CTA Section --- */
.final-cta-section {
    background-color: var(--primary-color);
    color: white;
}

.final-cta-section .section-title, .final-cta-section .sub-headline {
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-section .sub-headline {
    margin-bottom: 40px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-full {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.contact-form button:hover {
    background-color: #e0e0e0;
}

/* ============================================ */
/*              CONTACT PAGE STYLES             */
/* ============================================ */
.contact-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-page-header .sub-headline {
    max-width: 600px;
    margin: 0 auto;
}

.contact-page-section .contact-form {
    max-width: 100%;
}

.contact-page-section .form-group-full {
    margin-bottom: 25px;
}

.contact-page-section .contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-page-section .contact-form input,
.contact-page-section .contact-form select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
    font-size: 1rem;
}

.reassurance-column h3 {
    margin-bottom: 20px;
}

.reassurance-steps {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 30px;
}

.reassurance-steps li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.decorative-line {
    border: none;
    height: 1px;
    background-color: var(--tertiary-color);
    margin: 30px 0;
}

.contact-info-block p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-info-block i {
    color: var(--primary-color);
}

/* ============================================ */
/*              RESPONSIVE DESIGN               */
/* ============================================ */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .main-nav { display: none; }
    .header-contact .btn { display: none; }
    .mobile-nav-toggle { display: block; }

    /* Mobile Navigation Styles */
    .main-nav.active {
        display: block;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    .main-nav.active li {
        text-align: center;
    }
    .main-nav.active a {
        display: block;
        padding: 15px;
    }
    .main-nav.active a:hover {
        background-color: #f4f4f4;
    }
    .main-nav a::after { display: none; } /* Hide underline on mobile nav */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid, .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .header-contact .phone-contact { display: none; }

    .hero-section { height: 80vh; }
    .hero-content h2 { font-size: 1.2rem; }
    .cta-buttons { flex-direction: column;
      gap: 1rem; /* optional spacing between buttons */
  align-items: center; /* center horizontally */ }

    .trust-bar .container {
        justify-content: center;
    }
    .trust-item {
        flex-basis: 40%;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column .logo, .social-icons, .association-logos {
        justify-content: center;
    }

    .portfolio-grid, .process-steps {
        grid-template-columns: 1fr;
    }

    .form-group-split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group-split input:first-child {
        margin-bottom: 20px;
    }

    .slider-btn {
        top: auto;
        bottom: -10px;
        transform: translateY(0);
    }
    .prev-btn { left: 30%; }
    .next-btn { right: 30%; }
    .testimonial-slider { padding-bottom: 50px; }
}