/* style.css */

/* --- CSS Variables and Root Styles --- */
:root {
    /* Analogous Color Scheme */
    --primary-dark-blue: #1D3557;  /* Dark, professional blue */
    --primary-medium-blue: #457B9D; /* Medium, friendly blue */
    --primary-light-blue: #A8DADC; /* Light, airy blue */
    --accent-red: #E63946;         /* Strong, confident red for CTAs */
    --accent-red-darker: #c9303d;  /* For hover states */
    
    /* Neutral & Text Colors */
    --light-background: #F1FAEE;   /* Off-white, soft background */
    --text-light: #FFFFFF;         /* White text for dark backgrounds */
    --text-dark: #222222;          /* Dark, readable text for light backgrounds */
    --text-muted: #555555;         /* Lighter gray for secondary text */

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Spacing & Borders */
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Global Styles & Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Page load transition */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark-blue);
    margin: 0 0 calc(var(--spacing-unit) * 1.5) 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 var(--spacing-unit) 0; }
a { color: var(--accent-red); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-red-darker); }
ul, ol { margin: 0; padding-left: calc(var(--spacing-unit) * 1.5); }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout & Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.section-light {
    background-color: var(--light-background);
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

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

.is-two-thirds {
    max-width: 66.66%;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-unit) 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
}
.logo:hover { color: var(--primary-dark-blue); }

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-link {
    color: var(--primary-dark-blue);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.burger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-dark-blue);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 2);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
    border-color: var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-darker);
    border-color: var(--accent-red-darker);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.full-width {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 var(--spacing-unit);
}

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

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-unit);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--text-light);
}

/* --- Cards --- */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    margin-bottom: var(--spacing-unit);
}

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

/* --- Our Process Section --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.process-step {
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5);
}

.process-icon {
    margin: 0 auto calc(var(--spacing-unit) * 1.5) auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light-blue);
    padding: var(--spacing-unit);
}

/* --- Pricing Section --- */
.pricing-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.pricing-card {
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--accent-red);
    transform: scale(1.05);
}

.pricing-card .card-content {
    position: relative;
    padding-top: calc(var(--spacing-unit) * 3);
}

.featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-red);
    color: var(--text-light);
    padding: 0.25rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin: var(--spacing-unit) 0;
}
.price sup { font-size: 1.5rem; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card ul { list-style: '✓'; padding-left: var(--spacing-unit); margin: var(--spacing-unit) 0; text-align: left; }
.pricing-card ul li { padding-left: 0.5rem; margin-bottom: 0.5rem; }
.pricing-card .btn { margin-top: auto; }

/* --- Customer Stories (Testimonials) Section --- */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.testimonial-card .card-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    margin-top: calc(var(--spacing-unit) * -2.5);
    border: 4px solid var(--text-light);
    box-shadow: var(--shadow-light);
}
.testimonial-card .card-image img { border-radius: 50%; }

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-unit);
}
.quote::before { content: '“'; }
.quote::after { content: '”'; }

cite {
    font-weight: 600;
    color: var(--primary-dark-blue);
    margin-top: auto;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.team-card .card-image {
    height: 250px; /* Fixed height for consistency */
}

.team-card .role {
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: var(--spacing-unit);
}

/* --- News Section --- */
.content-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.news-card .card-image {
    height: 250px;
}
.news-card .card-content {
    text-align: left;
    align-items: flex-start;
}
.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.read-more {
    margin-top: auto;
    font-weight: 600;
    align-self: flex-end;
}

/* --- External Resources Section --- */
.resources-list {
    display: grid;
    gap: var(--spacing-unit);
}
.resource-item {
    background: #fff;
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.resource-item h3 {
    margin-bottom: 0.5rem;
}
.resource-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 3);
    background-color: #ffffff;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-info p { margin-bottom: 1.5rem; }

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-medium-blue);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark-blue);
    color: var(--light-background);
    padding: calc(var(--spacing-unit) * 3) 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 2);
}

.footer h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-unit);
}

.footer p, .footer a {
    color: var(--primary-light-blue);
}
.footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    padding: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--primary-medium-blue);
    text-align: center;
    padding: calc(var(--spacing-unit) * 1.5) 0;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Specific Page Styles --- */
/* Privacy & Terms Pages */
body.page-legal main .section {
    padding-top: 120px; /* Offset for fixed header */
}
.page-content.is-two-thirds {
    margin: 0 auto;
}
.page-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.map-placeholder {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-top: var(--spacing-unit);
}

/* Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.success-page .section {
    width: 100%;
}


/* --- Responsive Styles --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .is-two-thirds { max-width: 85%; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--light-background);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        gap: calc(var(--spacing-unit) * 3);
    }

    .nav-menu.active {
        right: 0;
    }

    .burger-menu {
        display: flex;
    }
    
    .burger-menu.active .burger-bar:nth-child(1) { transform: rotate(45deg); }
    .burger-menu.active .burger-bar:nth-child(2) { opacity: 0; }
    .burger-menu.active .burger-bar:nth-child(3) { transform: rotate(-45deg); }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-grid ul {
        padding: 0;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.5rem; }
    .is-two-thirds { max-width: 100%; }

    .section {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .pricing-carousel, .testimonial-slider, .team-grid, .content-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--spacing-unit);
        -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS */
    }

    .pricing-carousel > .card, 
    .testimonial-slider > .card, 
    .team-grid > .card, 
    .content-carousel > .card {
        flex: 0 0 90%;
        scroll-snap-align: center;
    }

    /* Hide scrollbar but allow scrolling */
    .pricing-carousel::-webkit-scrollbar,
    .testimonial-slider::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar,
    .content-carousel::-webkit-scrollbar {
        display: none;
    }

    .pricing-carousel, .testimonial-slider, .team-grid, .content-carousel {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

}