:root {
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Neutral Retro Color Palette */
    --color-primary: #5D737E; /* Muted blue-gray */
    --color-primary-rgb: 93, 115, 126;
    --color-primary-darker: #4A5C65;

    --color-secondary: #A8DADC; /* Light teal/aqua - can be an accent */
    
    --color-accent: #F4A261; /* Warm accent - Ochre/Orange */
    --color-accent-rgb: 244, 162, 97;
    --color-accent-darker: #D98244; /* Darkened F4A261 */

    --neutral-lightest: #F8F9FA;
    --neutral-light: #E9ECEF;
    --neutral-medium: #CED4DA;
    --neutral-dark: #495057;
    --neutral-darkest: #212529;

    --text-color: var(--neutral-darkest);
    --text-color-light: #FFFFFF; /* Ensuring white for specific cases */
    --heading-color: var(--neutral-darkest);
    --link-color: var(--color-primary);
    --link-hover-color: var(--color-primary-darker);

    --background-color: #FDFCFB; /* Very light, almost white with a hint of warmth */
    --card-background: #FFFFFF;
    --section-bg-light: var(--neutral-lightest);

    --border-radius-base: 0.35rem;
    --border-radius-volumetric: 0.5rem;
    --box-shadow-subtle: 0 2px 4px rgba(0,0,0,0.05);
    --box-shadow-volumetric: 0 4px 10px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --box-shadow-volumetric-hover: 0 7px 20px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.08);
    --box-shadow-volumetric-inset: inset 0 2px 4px rgba(0,0,0,0.05);

    --transition-base: all 0.3s ease-in-out;
    --transition-morph: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* GLOBAL STYLES */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem; /* Default margin for headings */
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); } /* .section-title will override */
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: none; /* No underline by default, specific links can add it */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove bottom space */
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem !important; /* Bootstrap class override */
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}
/* Ensuring contrast for section titles if they are on very light backgrounds */
.section-title {
    color: var(--neutral-darkest); /* Dark text for titles */
}


/* GLOBAL BUTTON STYLES */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.7rem 1.4rem; /* Slightly adjusted padding */
    border-radius: var(--border-radius-volumetric);
    transition: var(--transition-morph);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow-volumetric);
    position: relative;
    overflow: hidden;
    line-height: 1.5; /* Ensure text is vertically centered well */
    display: inline-block; /* Consistent behavior */
    text-align: center;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-3px); /* Keep scale subtle or remove if too much */
    box-shadow: var(--box-shadow-volumetric-hover);
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-volumetric);
}

.btn-primary { /* This matches .volumetric-button in HTML */
    background-color: var(--color-accent);
    color: var(--text-color-light);
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background-color: var(--color-accent-darker);
    border-color: var(--color-accent-darker);
    color: var(--text-color-light); /* Ensure text color remains light */
}

.btn-secondary { /* This matches .volumetric-button in HTML if used */
    background-color: var(--color-primary);
    color: var(--text-color-light);
    border-color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: var(--text-color-light); /* Ensure text color remains light */
}

.volumetric-button-outline { /* From HTML structure for resource cards */
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}
.volumetric-button-outline:hover {
    background-color: var(--color-primary);
    color: var(--text-color-light);
    box-shadow: var(--box-shadow-volumetric);
}

/* Link styled as a button */
.btn-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition-base);
    position: relative;
    background: none; /* Remove button-like background */
    border: none; /* Remove button-like border */
    box-shadow: none; /* Remove button-like shadow */
    text-transform: none; /* Usually links are not uppercase */
    letter-spacing: normal;
}
.btn-link::after {
    content: '→';
    margin-left: 0.4em;
    transition: margin-left 0.3s ease;
}
.btn-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
    background: none; /* Ensure no background on hover */
    transform: none; /* No button transform */
    box-shadow: none; /* No button shadow on hover */
}
.btn-link:hover::after {
    margin-left: 0.7em;
}

/* VOLUMETRIC INPUTS */
.volumetric-input {
    border-radius: var(--border-radius-base);
    padding: 0.7rem 1rem;
    border: 1px solid var(--neutral-medium);
    box-shadow: var(--box-shadow-volumetric-inset);
    transition: var(--transition-base);
    width: 100%; /* Make inputs full width by default within their containers */
    background-color: var(--card-background);
    color: var(--text-color);
}
.volumetric-input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--box-shadow-volumetric-inset), 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
    outline: none;
}
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-dark);
}


/* HEADER */
.site-header.sticky-top {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--box-shadow-subtle);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary) !important;
}
.navbar .nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--neutral-darkest) !important;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    padding: 0.6rem 0.9rem !important;
    border-radius: var(--border-radius-base);
    transition: var(--transition-base);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-accent) !important;
    background-color: rgba(var(--color-accent-rgb), 0.08);
}
.navbar-toggler {
    border-color: rgba(var(--color-primary-rgb), 0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(var(--color-primary-rgb), 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* HERO SECTION */
.hero-section {
    min-height: 75vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    padding: 5rem 1rem; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 700;
    color: var(--text-color-light);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}
.hero-section .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-color-light);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}
.hero-section .btn { /* Specific to hero button if needed */
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
}

/* CARD STYLES (Global for .card) */
.card {
    border: none;
    box-shadow: var(--box-shadow-volumetric);
    border-radius: var(--border-radius-volumetric);
    transition: var(--transition-morph);
    background-color: var(--card-background);
    overflow: hidden; 
    display: flex; /* Already default by Bootstrap */
    flex-direction: column; /* Already default by Bootstrap */
    height: 100%; /* For d-flex align-items-stretch in rows */
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-volumetric-hover);
}

.card-image { /* Container for the image */
    width: 100%;
    height: 200px; /* Fixed height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: 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-body {
    padding: 1.5rem; /* Consistent padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows card body to fill height */
}
.card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem; /* Adjusted */
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}
.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}
.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: auto; /* Pushes price and button down if card-body is flex-column */
    margin-bottom: 1rem;
}
.service-card .btn, .resource-card .btn {
    margin-top: auto; /* Pushes button to bottom */
}

/* Testimonial Card Specifics */
.testimonial-card .card-image { /* For avatar */
    height: 100px; 
    width: 100px;
    margin: 1.5rem auto 1rem auto; /* Center avatar container */
    border-radius: 50%; /* Ensure container is also round if img isn't perfect */
    box-shadow: var(--box-shadow-subtle);
}
.testimonial-card .card-image img.rounded-circle {
    width: 100px;
    height: 100px;
}
.testimonial-card .card-body {
    text-align: center;
}
.testimonial-card .card-text {
    font-style: italic;
    color: var(--neutral-dark);
    font-size: 0.98rem;
}
.testimonial-card .card-title { /* Author name */
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.testimonial-card .card-subtitle { /* Author title */
    font-size: 0.85rem;
    color: var(--neutral-medium);
}

/* Success Story Card */
.success-story-card .card-title {
    font-size: 1.5rem;
}


/* OUR PROCESS SECTION */
.process-step {
    text-align: center;
}
.process-icon svg {
    width: 50px; /* Adjusted size */
    height: 50px;
    color: var(--color-primary);
    transition: var(--transition-base);
    margin-bottom: 1rem;
}
.process-step:hover .process-icon svg {
    color: var(--color-accent);
    transform: scale(1.1);
}
.process-step h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.progress-indicator-container .progress {
    height: 8px;
    border-radius: var(--border-radius-base);
    background-color: var(--neutral-light);
}
.progress-indicator-container .progress-bar {
    background-color: var(--color-primary) !important;
    transition: width 1.5s ease-in-out;
}

/* STATISTICAL WIDGETS */
.stat-widget {
    text-align: center;
}
.stat-icon svg {
    width: 45px;
    height: 45px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.stat-number {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}
.stat-widget p:not(.stat-label) { /* Description text */
    font-size: 0.9rem;
    color: var(--neutral-medium);
}

/* VOLUMETRIC ELEMENT (general use for process steps, stat widgets if needed) */
.volumetric-element {
    background-color: var(--card-background);
    padding: 1.5rem; /* Adjusted padding */
    border-radius: var(--border-radius-volumetric);
    box-shadow: var(--box-shadow-volumetric);
    transition: var(--transition-morph);
    height: 100%;
}
.volumetric-element:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-volumetric-hover);
}

/* EXTERNAL RESOURCES SECTION */
.resource-card .card-title {
    font-size: 1.1rem;
}
.resource-card .card-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* PRESS SECTION */
.press-logo {
    max-width: 120px; /* Control size */
    height: auto;
    filter: grayscale(90%);
    opacity: 0.65;
    transition: var(--transition-base);
    margin: 0.5rem auto; /* Center if col is wider */
}
.press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* FOOTER */
.site-footer {
    background-color: var(--neutral-darkest);
    color: var(--neutral-light);
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}
.site-footer h5 {
    font-family: var(--font-primary);
    color: var(--text-color-light);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}
.site-footer p, .site-footer .list-unstyled a {
    color: var(--neutral-medium); /* Slightly lighter than pure light for softer look */
    font-size: 0.9rem;
    line-height: 1.6;
}
.site-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
.site-footer .list-unstyled a {
    transition: color 0.2s ease;
    text-decoration: none;
}
.site-footer .list-unstyled a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
.site-footer .copyright-text {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-dark);
    font-size: 0.85rem;
    color: var(--neutral-medium);
    opacity: 0.8;
}

/* SUCCESS.HTML PAGE */
body.success-page { /* Add this class to success.html body tag */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page .site-header,
body.success-page .site-footer {
    flex-shrink: 0;
}
main.success-content { /* Add this class to success.html main tag */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-message-container {
    background-color: var(--card-background);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius-volumetric);
    box-shadow: var(--box-shadow-volumetric);
    max-width: 550px;
}
.success-message-container h1 {
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 2rem;
}
.success-message-container p {
    color: var(--neutral-dark);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.success-message-container .icon-success { /* Example, if you add an icon */
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* PRIVACY.HTML & TERMS.HTML PAGES */
body.privacy-page main, /* Add class to body */
body.terms-page main {   /* Add class to body */
    padding-top: 110px; /* Space for fixed header */
    padding-bottom: 3rem;
}
.content-section { /* Use this class for main content blocks on these pages */
    background-color: var(--card-background);
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-base);
    box-shadow: var(--box-shadow-volumetric);
    margin-bottom: 2rem;
}
.content-section h1, .content-section h2, .content-section h3 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}
.content-section p, .content-section li {
    line-height: 1.8;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}
.content-section ul, .content-section ol {
    padding-left: 1.5rem;
}

/* Cookie Popup - styles are inline in HTML, just ensure no conflicts */
#cookiePopup p {
    font-family: var(--font-secondary);
    color: #fff; /* Override if needed */
}
#cookiePopup button {
     font-family: var(--font-secondary); /* Ensure font consistency */
}

/* ANIMATIONS FOR SCROLL - Basic setup for GSAP to target */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px); /* Initial offset */
}
/* GSAP will add classes or directly animate to visible state */

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem; /* Space for toggled menu */
    }
    .navbar .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.8rem 1rem !important; /* Larger tap targets */
    }
    .hero-section {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    .section-title {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
    .hero-section .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-section .hero-subtitle { font-size: clamp(0.9rem, 3vw, 1.1rem); }
    
    .card-body { padding: 1.25rem; }
    .card-title { font-size: 1.15rem; }
    .card-text { font-size: 0.9rem; }
    
    .site-footer { text-align: center; }
    .site-footer .col-md-4 { margin-bottom: 2rem; }
    .site-footer .col-md-4:last-child { margin-bottom: 0; }

    body.privacy-page main,
    body.terms-page main {
        padding-top: 90px; /* Adjust for potentially smaller header */
    }
}