:root {
    --color-charcoal: #1A1D20;
    --color-blue: #1E3A5F;
    --color-gold: #B89C72;
    --color-grey: #F4F5F7;
    --color-white: #FFFFFF;

    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;
    --radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-white);
}

.text-muted {
    color: #6B7280;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue), #112238);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), #9a8058);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(184, 156, 114, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 156, 114, 0.4);
    color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo:hover {
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav a:not(.btn) {
    color: var(--color-charcoal);
    font-size: 0.95rem;
    font-weight: 400;
}

.main-nav a:not(.btn):hover {
    color: var(--color-gold);
}

/* Hero Section */
/* Hero Section Carousel Options */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease 0.5s;
    /* Delay text animation slightly */
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections General */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: #4B5563;
    font-size: 1.125rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Cards / Pillars */
.pillar-card {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-card img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 0.5rem;
    min-height: 4rem;
    vertical-align: top;
}

.pillar-card p {
    color: #4B5563;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Services Overview */
.service-item {
    margin-bottom: 4rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-item-content p {
    margin-bottom: 1.5rem;
    color: #4B5563;
}

/* Outcomes Section */
.outcomes-section {
    background: linear-gradient(135deg, var(--color-blue), #112238);
    color: var(--color-white);
    position: relative;
}

.outcomes-section h2,
.outcomes-section h3 {
    color: var(--color-white);
}

.outcome-block {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast);
}

.outcome-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.outcome-block p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Process Section */
.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
}

.faq-item:first-child {
    border-top: 1px solid #E5E7EB;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-blue);
}

.faq-answer {
    color: #4B5563;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    font-size: 2.5rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.modal p {
    color: #4B5563;
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9CA3AF;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-charcoal);
}

.login-error {
    background-color: #FEE2E2;
    color: #B91C1C;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none;
    border-left: 4px solid #DC2626;
}

.login-error.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal a {
    color: #9CA3AF;
    margin-left: 1rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* Page Headers */
.page-header {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 10rem 0 8rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 29, 32, 0.75), rgba(26, 29, 32, 0.95));
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #D1D5DB;
}

.header-services {
    background-image: url('assets/services-banner_cloud-solutions.png');
}

.header-about {
    background-image: url('assets/services-banner_manage-services.png');
}

/* Utilities */
.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    animation: fadeIn 1s ease-out forwards;
}

.hero-content p {
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
    /* Starts hidden until animation */
}

.hero-actions {
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        /* This allows us to reorder the flexible items inside */
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: flex;
        order: -1;
        /* Push to the far left before the logo */
        margin-right: auto;
        /* Push logo to the right if needed, or keep gaps */
    }

    .logo {
        margin-right: auto;
        /* Aligns logo slightly left/center, adjustable */
    }

    .main-nav {
        display: none;
        /* Hide fully when not active so it doesn't break layout */
        position: absolute;
        top: 100%;
        /* Drop down right below the header */
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0;
        z-index: 1000;
        font-size: 1.1rem;
        border-top: 1px solid var(--color-grey);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--color-grey);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    /* Keep the client portal button accessible when on mobile */
    .main-nav .btn {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
        text-align: center;
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 4rem 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}