/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@view-transition {
    navigation: auto;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--clr-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(1.75rem, 5vw + 1rem, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2rem);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-text-light);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: var(--fw-medium);
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    font-family: var(--font-body);
    /* letter-spacing: 0.5px; remove tracking for cleaner look */
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    color: var(--clr-text-light);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 95, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-text-light);
    /* Default to light for hero */
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-outline.dark {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-primary);
    border-color: var(--clr-text-light);
    border-color: var(--clr-text-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--clr-bg-card);
    color: var(--clr-primary);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background-color: var(--clr-bg-alt);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Header & Nav */
.navbar {
    background-color: var(--clr-bg-card);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem var(--spacing-md);
    /* Sleek vertical padding */
    max-width: 95%;
    /* Wider layout as requested */
    width: 100%;
    /* Ensure it takes available space up to max-width */
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 10px;
    /* Safety buffer for the scale */
}

.logo-img {
    height: 90px;
    /* Physical layout height */
    width: auto;
    object-fit: contain;
    display: block;

    /* Significantly larger visual scale */
    transform: scale(2.2);
    transform-origin: center left;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: var(--fw-medium);
    color: var(--clr-text-main);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

/* Calling Card Hero */
.hero {
    /* No generic hero styles, specific classes below */
    padding: var(--spacing-lg) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--clr-bg-body);
}

.calling-card-hero {
    background: radial-gradient(circle at top right, #f1f5f9, #ffffff);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    position: relative;
    /* Removed fixed height for flexibility */
    min-height: 350px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.blob-mask {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    background-color: #e2e8f0;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    margin: 0 auto;
}

/* Hero Text Elements (Previously Inline) */
.hero-role {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.hero-blurb {
    max-width: 600px;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.hero-blurb-secondary {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    display: flex;
}

/* Split Layout for About Page */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.split-image-container {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.split-image-container:hover {
    transform: rotate(0deg);
}

/* About Grid Layout (Desktop) */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "title image"
        "details image";
    gap: var(--spacing-md) var(--spacing-xl);
    align-items: center;
}

.about-details {
    align-self: start;
}

@media (max-width: 900px) {

    .hero-layout,
    .split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        /* Default alignment */
    }

    @media (max-width: 900px) {
        .hero-actions {
            justify-content: center !important;
        }
    }

    .hero-visual {
        min-height: auto;
        order: -1;
        /* Image on top on mobile */
        margin-bottom: 1rem;
    }

    .blob-mask {
        max-width: 180px;
        height: auto;
        aspect-ratio: 1/1;
    }

    .split-image-container {
        /* Reset order logic, handled by flex below now */
        margin-bottom: 1rem;
        padding: 0.5rem;
        /* Minimal padding */
        transform: none !important;
        max-width: 220px;
        /* Small image on mobile */
        margin-left: auto;
        margin-right: auto;
    }

    .about-hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Order: Title -> Image -> Details */
    .about-hero-grid .hero-title {
        order: 1;
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
    }

    .about-hero-grid .split-image-container {
        order: 2;
        margin-bottom: 0.5rem;
    }

    .about-hero-grid .about-details {
        order: 3;
    }

    .mobile-center {
        text-align: center;
    }
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
}

.section-light {
    background-color: var(--clr-bg-body);
}

.section-white {
    background-color: var(--clr-bg-card);
}

.section-brand {
    background-color: var(--clr-primary);
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--spacing-xs);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--clr-secondary);
    margin: var(--spacing-sm) auto;
}

.section-lead {
    font-size: var(--fs-h3);
    color: var(--clr-text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-weight: var(--fw-regular);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: var(--spacing-xl);
    /* Increased from lg to xl for breathing room */
}

/* Services Grid - Bento Style */
.services-grid {
    display: grid;
    /* Lowered minmax to 280px to prevent overflow on small devices */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: transparent;
    padding: var(--spacing-sm);
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--shadow-md); */
    /* transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    /* border: 1px solid rgba(0, 0, 0, 0.03); */
    /* border-top: 6px solid var(--clr-secondary); */
    border-left: 4px solid var(--clr-secondary);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateX(5px);
    /* box-shadow: var(--shadow-xl); */
    border-left-color: var(--clr-primary);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.card-list {
    margin-bottom: var(--spacing-md);
}

.card-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.card-list li::before {
    content: "•";
    color: var(--clr-secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-footer {
    font-size: 0.9rem;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--clr-bg-alt);
    color: var(--clr-text-muted);
    font-style: italic;
}

.highlight-text {
    color: var(--clr-primary);
    font-weight: var(--fw-bold);
    font-style: normal;
}

/* Target Audience - Visual Cards */
.target-grid {
    display: grid;
    /* Lowered minmax to 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.target-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    /* group: relative;  Removed invalid property */
}

.target-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.target-card:hover .target-img {
    transform: scale(1.05);
}

.target-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
    color: white;
    text-align: center;
}

.target-title {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.target-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Footer */
.footer {
    background-color: var(--clr-primary);
    color: var(--clr-text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.footer-title {
    color: var(--clr-text-light);
}

.footer-text {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.8;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--clr-secondary);
    margin-bottom: var(--spacing-md);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 0;
        background-color: #ffffff;
        /* Solid white for absolute clarity */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        /* Gentle shadow */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-container {
        position: relative;
        justify-content: flex-end;
        /* Keep menu on the right since logo is absolute */
        min-height: 60px;
        /* Preserve height */
    }

    .nav-links {
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        position: fixed;
        top: 0;
        /* Cover the logo/navbar completely */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 4rem var(--spacing-md) var(--spacing-lg);
        z-index: 1000;
        gap: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: var(--fw-medium);
        color: var(--clr-primary);
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        /* Softer, modern touch targets */
        transition: all 0.2s ease;
        text-align: center;
        width: 100%;
        border: none;
    }

    .nav-link:active,
    .nav-link.active {
        background-color: rgba(15, 42, 74, 0.05);
        /* Visual feedback on tap */
        color: var(--clr-secondary);
    }

    /* Polish the button for mobile menu */
    .nav-links .btn-primary {
        margin-top: 1rem;
        width: 100%;
        max-width: 320px;
        align-self: center;
        box-shadow: 0 8px 20px -5px rgba(30, 58, 95, 0.4);
    }

    @keyframes premiumSlideDown {
        from {
            opacity: 0;
            transform: translateY(-15px) scale(0.99);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        /* Ensure z-index works robustly */
        z-index: 1001;
        /* Layer above the logo's transparent areas */
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Robust centering */
        width: clamp(160px, 50vw, 200px);
        /* Fluid width: min 160px (for SE), target 50% of viewport, max 200px */
        height: auto;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transform: none;
        /* Remove magic number scaling */
        pointer-events: none;
        margin: 0;
        position: static;
        /* Flow naturally within the fluid container */
    }

    .navbar {
        padding: 0.75rem 0;
        /* Increase padding to house the large logo */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-layout,
    .split-layout {
        gap: 1rem;
        /* More balanced space between image and text */
    }

    .hero {
        padding: 2rem 0;
        /* Breathier hero section */
        min-height: auto;
    }

    .section {
        padding: var(--spacing-lg) 0;
        /* More balanced section padding */
    }

    .hero-name {
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
        /* Force smaller size on mobile */
        line-height: 1.2;
    }

    .hero-role {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-blurb {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 2rem;
        /* Slightly larger for luxury feel */
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Remove redundant animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Accordion Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--clr-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
    color: var(--clr-primary);
    font-weight: 600;
    pointer-events: none;
    /* Let the container handle click */
}

.faq-toggle-icon {
    font-size: 1.5rem;
    color: var(--clr-secondary);
    transition: transform 0.3s ease;
    line-height: 1;
    font-weight: bold;
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding-bottom: var(--spacing-md);
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    /* Turn + into x */
}

/* Responsive Calendly Widget */
.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
    width: 100%;
}

@media (max-width: 768px) {
    .calendly-inline-widget {
        height: 750px;
        /* Increased to ensure full visibility on mobile */
    }
}

/* Contact Info Styles */
.contact-info {
    text-align: center;
    margin-top: 3rem;
    /* Default desktop spacing */
    color: var(--clr-text-muted);
}

.contact-link {
    color: var(--clr-primary);
    font-weight: bold;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info {
        margin-top: 1rem;
        /* Tighter on mobile */
    }
}