/* ============================================= */
/* CSS VARIABLES                               */
/* ============================================= */
:root {
    /* Complementary Color Scheme */
    --primary-color: #0A4D68; /* Deep Teal/Blue */
    --secondary-color: #088395; /* Lighter Teal */
    --accent-color: #F97B22; /* Warm Orange/Coral */
    --bg-light: #FEFBF6; /* Off-White/Light Cream */
    --bg-medium: #EADBC8; /* Beige/Tan */
    
    /* Text Colors */
    --text-dark: #2c2c2c;
    --text-light: #FFFFFF;
    --text-muted: #555555;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Volumetric UI & Shadows */
    --border-radius: 8px;
    --shadow-depth: 4px;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --box-shadow-3d: 0 var(--shadow-depth) 0 var(--shadow-color);
    --box-shadow-3d-hover: 0 calc(var(--shadow-depth) / 2) 0 var(--shadow-color);
    --box-shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.08);
    --text-shadow-heading: 1px 1px 3px rgba(0,0,0,0.3);

    /* Transitions */
    --transition-speed: 0.3s ease;
}

/* ============================================= */
/* GLOBAL & BASE STYLES                        */
/* ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.main-container {
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: var(--text-shadow-heading);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================= */
/* GLOBAL COMPONENTS                             */
/* ============================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    text-align: center;
}

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

.btn-3d {
    position: relative;
    top: 0;
    box-shadow: var(--box-shadow-3d);
}

.btn-3d:hover {
    text-decoration: none;
    color: var(--text-light);
}

.btn-3d:active, .btn-3d:focus {
    top: calc(var(--shadow-depth) / 2);
    box-shadow: var(--box-shadow-3d-hover);
}

/* Cards */
.card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-card);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-content h3 {
    margin-top: 0;
}


/* Forms */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--bg-medium);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 123, 34, 0.3);
}

/* ============================================= */
/* HEADER & NAVIGATION                         */
/* ============================================= */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(254, 251, 246, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color var(--transition-speed);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-logo:hover {
    text-decoration: none;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition-speed);
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* ============================================= */
/* HERO SECTION                                */
/* ============================================= */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}

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

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================= */
/* FEATURES SECTION                            */
/* ============================================= */
.features-section {
    background-color: #f8f2e6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* ============================================= */
/* SERVICES SECTION                            */
/* ============================================= */
.services-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}
.toggle-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-medium);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--secondary-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.service-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.service-group.active {
    display: grid;
}
.service-group .card {
    text-align: left;
    align-items: stretch;
}
.service-group .card-content {
    align-items: flex-start;
    text-align: left;
}


/* ============================================= */
/* CASE STUDIES SECTION                        */
/* ============================================= */
.case-studies-section {
    background-color: var(--bg-medium);
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.case-studies-slider {
    display: flex;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.case-study-card {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.case-quote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.case-client-info h4 {
    margin: 0;
    color: var(--primary-color);
}
.case-client-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.case-results {
    margin-top: 1rem;
    font-weight: 600;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-speed);
}
.slider-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ============================================= */
/* WEBINARS & BLOG SECTION                     */
/* ============================================= */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.webinar-item, .blog-post-item {
    margin-bottom: 2rem;
}

.webinar-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.webinar-date {
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius);
    line-height: 1.1;
    min-width: 60px;
}

.webinar-date span {
    display: block;
    font-size: 1.8rem;
}

.btn-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.blog-post-item a {
    text-decoration: none;
    color: inherit;
}
.blog-post-item h4 {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}
.blog-post-item a:hover h4 {
    color: var(--accent-color);
}

/* ============================================= */
/* RESOURCES SECTION                           */
/* ============================================= */
.resources-section {
    background-color: #f8f2e6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background-color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all var(--transition-speed);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resource-card h4 {
    margin-top: 0;
}
.resource-card h4 a {
    color: var(--primary-color);
    text-decoration: none;
}
.resource-card h4 a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================= */
/* CONTACT SECTION                             */
/* ============================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-card);
}

.contact-info {
    padding-right: 2rem;
}
.contact-info h3 {
    margin-top: 0;
}

/* ============================================= */
/* FOOTER                                      */
/* ============================================= */
.site-footer {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: none;
}

.footer-column p {
    color: var(--bg-medium);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--bg-medium);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
    color: var(--bg-medium);
}

/* ============================================= */
/* OTHER PAGES (SUCCESS, PRIVACY, TERMS)       */
/* ============================================= */
.success-page-container,
.static-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.success-page-container {
    min-height: 100vh;
}

.static-page {
    padding-top: 120px; /* 80px header + 40px space */
    padding-bottom: 60px;
}

.static-page .container {
    max-width: 800px;
}

.static-page h1 {
    margin-bottom: 2rem;
}

.static-page h2 {
    margin-top: 2rem;
}

/* ============================================= */
/* SCROLL ANIMATIONS                           */
/* ============================================= */
[data-scroll-animation] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll-animation].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================= */
/* RESPONSIVE DESIGN (MEDIA QUERIES)             */
/* ============================================= */

/* Tablets */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    h2, .section-title { font-size: 2rem; }

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

    .contact-info {
        text-align: center;
        padding-right: 0;
    }
}


/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

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

    .nav-item {
        margin: 16px 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-group {
        grid-template-columns: 1fr;
    }

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

    .footer-column ul {
        padding-left: 0;
    }
}