/*
Theme Name: Vandermolen
Theme URI: https://dv-cpa.ca
Description: Hardcoded rebuild of Vandermolen CPA. Page templates: Home, About, Booking, Partner.
Author: The Liminals
Version: 0.2.0
Text Domain: dv-cpa-rebuild
*/
:root {
    --primary: #063b87;
    --primary-shadow: rgba(6, 59, 135, 0.5);
    --dark: #333333;
    --grey: #8a8b8d;
    --light-grey: #69727d;
    --bg: #ffffff;
    --bg-gradient-end: #063b8726;
    --text-muted: #909090;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

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

/* Animation Classes */
.animate-fade-in,
.animate-fade-in-up,
.animate-fade-in-left,
.animate-fade-in-right {
    opacity: 0;
}

.animate-fade-in.is-visible {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up.is-visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left.is-visible {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right.is-visible {
    animation: fadeInRight 0.6s ease-out forwards;
}

.delay-100.is-visible { animation-delay: 100ms; }
.delay-200.is-visible { animation-delay: 200ms; }
.delay-300.is-visible { animation-delay: 300ms; }
.delay-400.is-visible { animation-delay: 400ms; }
.delay-600.is-visible { animation-delay: 600ms; }
.delay-800.is-visible { animation-delay: 800ms; }
.delay-1000.is-visible { animation-delay: 1000ms; }
.delay-1200.is-visible { animation-delay: 1200ms; }

/* Extra delay classes for value cards */
.delay-800 { animation-delay: 800ms; }
.delay-1000 { animation-delay: 1000ms; }
.delay-1200 { animation-delay: 1200ms; }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
p, 
a, 
input, 
select, 
textarea, 
button, 
li, 
td, 
th {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

body {
    color: var(--dark);
    background-color: #ffffff;
    background: linear-gradient(to bottom, #fff 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1 {
    max-width: 75ch;
}

/* ── Utilities ─────────────────────────────────── */
.container {
    max-width: 1120px;
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 1365px) {
    .container {
        width: 100%;
        padding: 0;
    }
}

.text-blue {
    color: var(--primary);
}

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

.full-width {
    width: 100%;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 25px -10px rgba(6, 59, 135, 1);
    font-weight: 600;
    transition: box-shadow 0.35s ease;
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -10px rgba(6, 59, 135, 1);
}

.btn-secondary-card {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: var(--transition);
    border-radius: 0;
}

.btn-secondary-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.year-end .btn-secondary-card {
    color: var(--dark);
}

.tax-services .btn-secondary-card {
    color: var(--dark);
}

.bookkeeping .btn-secondary-card {
    color: var(--dark);
}

/* ── Navbar ─────────────────────────────────────── */
header,
header.navbar,
.navbar {
    position: relative !important;
    height: 90px;
    margin-bottom: 15px;
    z-index: 1000;
    background: transparent !important;
    background-color: transparent !important;
}



.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.navbar .logo-img {
    height: 32px;
    width: 203px !important;
    display: block;
}

.hero-starburst {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(-15deg);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
    width: 800px;
}

.hero-starburst .logo-img {
    width: 100%;
    height: auto;
    filter: invert(19%) sepia(87%) saturate(2335%) hue-rotate(205deg) brightness(92%) contrast(101%);
}

/* First footer-bg-logo styling block deleted. Main block is at line 942. */

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    font-size: 18px;
    font-weight: 400;
    color: var(--dark);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s;
    margin-right: 25px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn {
    text-transform: lowercase;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 7.5px 15px;
    line-height: 25.2px;
    box-shadow: 0 15px 25px -10px rgba(6, 59, 135, 1);
    transition: box-shadow 0.35s ease;
    margin-right: 0;
}

.nav-links .btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 20px 25px -10px rgba(6, 59, 135, 1);
}

/* ── Hero ───────────────────────────────────────── */
.hero {
    padding: 0;
    position: relative;
    overflow: visible;
    max-width: 1120px;
    width: 90%;
    margin: 0 auto;
}

@media (min-width: 1365px) {
    .hero {
        width: 100%;
    }
}

.hero-starburst {
    position: absolute;
    top: 23px;
    left: -300px;
    transform: rotate(7.5deg);
    opacity: 0.10;
    z-index: 0;
    pointer-events: none;
    width: 600px;
}

.hero-starburst img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: start;
    width: 100%;
}

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

.hero h1 {
    font-size: clamp(2.8125rem, 2.1023rem + 4.7348vw, 4.375rem);
    font-weight: 600;
    line-height: 63px;
    letter-spacing: -1px;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 25.2px;
    color: var(--dark);
    max-width: 605px;
    margin-bottom: 35px;
}

.hero-cta {
    min-width: 115px;
}

.hero-image-wrapper {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: clamp(10.9375rem, 8.5511rem + 15.9091vw, 19.6875rem);
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center right;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 100%
    );
}

/* ── Trusted By / Logo Carousel ─────────────────── */
.trusted-by {
    padding: 50px 0 40px;
}

.section-label-center {
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.logo-carousel-mask {
    overflow: hidden;
    max-width: 1135px;
    margin: 0 auto;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-carousel-track {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    animation: logoScroll 55s linear infinite;
}

.logo-carousel-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.logo-item--active {
    opacity: 1;
}

.logo-item img {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

@keyframes logoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── Values ─────────────────────────────────────── */
.values {
    padding: 91px 0 43px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.value-card .icon {
    margin-bottom: 5px;
    /* Fixed container so icons don't stretch */
    height: 42px;
    display: flex;
    align-items: center;
}

.value-card .icon svg {
    height: 42px;
    width: 42px;
}

.value-card h2 {
    font-size: 38px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: normal;
    text-transform: lowercase;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 18px;
    line-height: 25.2px;
    color: var(--dark);
}

/* ── Services ───────────────────────────────────── */
.services {
    padding: 85px 0 45px;
}

.section-title {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: lowercase;
    margin-bottom: 50px;
    line-height: 38px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    min-height: 475px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card .card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-content .btn-secondary-card {
    margin-top: 10px;
}

.card-content h3 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: normal;
    text-transform: lowercase;
    color: #fff;
}

.card-content p {
    font-size: 18px;
    line-height: 25.2px;
    color: #fff;
    font-weight: 500;
}

.service-card.year-end {
    background: rgb(6, 59, 135);
}

.service-card.year-end:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 40px -10px rgba(6, 59, 135, 1);
}

.service-card.tax-services {
    background: rgb(34, 34, 34);
}

.service-card.tax-services:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 40px -10px rgba(34, 34, 34, 1);
}

.service-card.bookkeeping {
    background: rgb(138, 139, 141);
}

.service-card.bookkeeping:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 40px -10px rgba(138, 139, 141, 1);
}

/* ── Pricing ────────────────────────────────────── */
.pricing {
    padding: 80px 0;
}

.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    /* Branded scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.06);
}

.pricing-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.pricing-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 0;
}

.pricing-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
    /* Forces scroll on very small mobile if needed */
}

.pricing-table th,
.pricing-table td {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.pricing-table th {
    border-bottom: none;
    padding-bottom: 30px;
    vertical-align: bottom;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pricing-table .feature-col {
    width: 40%;
}

.pricing-table .feature-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.6;
    padding-left: 0;
}

.pricing-table .icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pricing-table .icon-wrapper svg {
    width: 14px;
    height: 14px;
}

.plan-header {
    position: relative;
    padding-top: 40px !important;
}

.plan-header.best-value .badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    white-space: nowrap;
}

.plan-title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 22px;
    font-weight: 500;
    color: var(--light-grey);
}

/* ── Testimonials ───────────────────────────────── */
.testimonials {
    padding: 63px 0 100px;
}

.testimonials .section-title {
    margin-bottom: 25px;
}

.testimonial-wrapper {
    position: relative;
    text-align: center;
    max-width: 607px;
    margin: 0 auto;
}

.quote-bg {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.quote-bg img {
    width: 320px;
    height: auto;
    display: block;
}

.testimonial-carousel {
    position: relative;
    z-index: 1;
    min-height: 200px;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeInSlide 0.4s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.testimonial-text {
    font-size: 18px;
    line-height: 25.2px;
    color: var(--dark);
    margin-bottom: 14px;
}

.testimonial-author {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.testimonial-author a {
    color: var(--primary);
    text-decoration: none;
}

.testimonial-author a:hover {
    text-decoration: underline;
}


/* ── Contact ─────────────────────────────────────── */
.contact {
    padding: 83px 0 125px;
}

/* ── Contact form wrapper ───────────────────── */
.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--dark);
    border: 1px solid var(--light-grey);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    opacity: 0.5;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5) !important;
}

textarea {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    cursor: pointer;
    padding-right: 36px;
}

.select-wrapper select option {
    background: #fff;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: var(--dark);
}

/* ── Footer ─────────────────────────────────────── */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: clip;
}

.footer-bg-logo {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    max-width: 1700px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.footer-bg-logo img {
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: left center;
}

.footer-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
}

.footer-logo {
    height: 32px;
    display: block;
    margin-bottom: 12px;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo-link .logo-img {
    width: 203px !important;
    height: 32px !important;
}

.footer-tagline {
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-cpa {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.cpa-badge {
    height: 38px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.footer-links a {
    line-height: 20px;
}

.links-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.footer-links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.powered-by:hover {
    color: rgba(255, 255, 255, 0.8);
}

.powered-by svg,
.powered-by-logo {
    width: 80px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.powered-by:hover svg,
.powered-by:hover .powered-by-logo {
    opacity: 0.85;
}

/* ── Hamburger / Menu Toggle ────────────────── */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    z-index: 1001;
    font-size: 22px;
    color: var(--dark);
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.menu-toggle:hover {
    color: var(--primary);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1135px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image-wrapper {
        width: 100%;
    }

    .hero-image {
        height: auto;
        max-height: 500px;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 1024px) {
    header.navbar,
    .navbar {
        height: 88px;
        margin-bottom: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Desktop nav hidden on mobile — overlay used instead */
    .nav-links {
        display: none !important;
    }

    .hero h1 {
        font-size: 54px;
        line-height: 52px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .value-card {
        text-align: center;
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
    }

    .value-card .icon {
        justify-content: center;
    }

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

    .service-card {
        max-width: 350px;
        width: 100%;
        min-height: 475px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
        line-height: 42px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
    }

    .pricing-table .plan-title {
        font-size: 26px;
    }

    .pricing-table .plan-price {
        font-size: 14px;
    }

    .pricing-table .feature-name {
        font-size: 13px;
        line-height: 1.4;
    }

    .pricing-table .feature-col {
        position: sticky;
        left: 0;
        background: linear-gradient(to bottom, #fff 0%, var(--bg-gradient-end) 100%);
        z-index: 2;
        min-width: 180px;
    }

    .pricing-table thead .feature-col {
        background: linear-gradient(to bottom, #fff 0%, var(--bg-gradient-end) 100%);
    }

    .pricing-table th:not(:first-child),
    .pricing-table td:not(:first-child) {
        min-width: 120px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bg-logo {
        max-width: 1500px;
    }

    .footer-bg-logo img {
        min-width: 1500px !important;
        width: 1500px !important;
        max-width: none !important;
        height: 100% !important;
    }
}

@media (max-width: 767px) {
    .hero h1 span {
        white-space: normal !important;
    }
    .hero-description {
        white-space: normal !important;
    }
    .footer-bottom-inner {
        align-items: flex-start;
    }
    .footer-tagline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ── Fluent Forms Styling Overrides ── */
.form-wrapper .fluentform,
.form-wrapper .fluentform *,
.form-wrapper .fluentform input,
.form-wrapper .fluentform select,
.form-wrapper .fluentform textarea,
.form-wrapper .fluentform button,
.form-wrapper .fluentform label,
.form-wrapper .fluentform span,
.form-wrapper .fluentform div,
.form-wrapper .fluentform p,
.form-wrapper .fluent_form_feedback,
.form-wrapper .ff-errors-in-stack,
.form-wrapper .ff-el-help,
.form-wrapper .error {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Label styling */
.form-wrapper .fluentform label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-wrapper .fluentform {
    width: 100%;
}

.form-wrapper .fluentform form.frm-fluentform {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -5px !important;
    width: auto !important;
}

.form-wrapper .fluentform .ff-el-group {
    margin-bottom: 10px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
}

/* Form inputs & fields */
.form-wrapper .fluentform input[type="text"],
.form-wrapper .fluentform input[type="email"],
.form-wrapper .fluentform input[type="tel"],
.form-wrapper .fluentform select,
.form-wrapper .fluentform textarea {
    width: 100% !important;
    padding: 8px 16px !important;
    border: 1px solid var(--light-grey) !important;
    background-color: transparent !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 15px !important;
    line-height: 21px !important;
    color: var(--dark) !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    height: 40px !important;
}

.form-wrapper .fluentform select {
    font-size: 16px !important;
}

.form-wrapper .fluentform textarea {
    height: 96px !important;
    padding: 5px 14px !important;
    resize: vertical;
}

.form-wrapper .fluentform input:focus,
.form-wrapper .fluentform select:focus,
.form-wrapper .fluentform textarea:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5) !important;
}

.form-wrapper .fluentform select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 16px !important;
    padding-right: 48px !important;
}

.form-wrapper .fluentform input::placeholder,
.form-wrapper .fluentform textarea::placeholder {
    color: rgb(51, 51, 51) !important;
    opacity: 0.5 !important;
    font-family: 'Roboto', sans-serif !important;
    text-transform: lowercase !important;
}

/* Grid widths — clean col-half / col-full */
@media (min-width: 769px) {
    .form-wrapper .col-half {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 768px) {
    .form-wrapper .col-half {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.form-wrapper .col-full {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Submit button customization */
.form-wrapper .fluentform .ff-btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 18px !important;
    text-transform: lowercase !important;
    padding: 0 24px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 15px 25px -10px rgba(6, 59, 135, 1) !important;
    transition: box-shadow 0.35s ease !important;
    width: 100%;
}

.form-wrapper .ff-btn-submit:hover {
    box-shadow: 0 20px 25px -10px rgba(6, 59, 135, 1) !important;
}

.form-wrapper .ff-message-success {
    border-left: 4px solid var(--primary) !important;
    background-color: #f7fafc !important;
    color: var(--dark) !important;
    padding: 20px !important;
    border-radius: 0 !important;
    font-weight: 500;
}

.form-wrapper .ff-el-is-required.ff-el-is-required {
    margin-bottom: 0;
}

.form-wrapper label.ff-el-image-holder {
    display: none !important;
}

/* ── Mobile Overlay ─────────────────────────────── */
.mobile-overlay {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: #fff;
    visibility: hidden;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
}

@media (min-width: 1025px) {
    .mobile-overlay {
        display: none !important;
    }
}

.mobile-overlay.active {
    visibility: visible;
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-overlay-header {
    display: none !important;
}

.mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: var(--dark);
    padding: 4px 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.mobile-close-btn:hover {
    color: var(--primary);
}

.mobile-nav {
    flex: 1;
    background: #E6EBF3;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--dark);
    text-decoration: none;
    padding: 10px 0;
    line-height: 1.4;
    text-transform: lowercase;
    transition: color 0.2s;
    border-bottom: none !important;
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-nav-contact {
    flex-shrink: 0;
    background: var(--primary);
}

.mobile-contact-link {
    display: block;
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
    text-decoration: none;
    padding: 15px 0;
    border: none !important;
    transition: background 0.2s;
}

@media (hover: hover) {
    .mobile-contact-link:hover {
        background: #0550bb;
    }
}

/* ── About Page Sections ────────────────────────── */
.we-been-there {
    padding: 60px 0;
    background: transparent;
}

.we-been-there-card {
    background: var(--primary);
    color: #ffffff;
    padding: 50px;
    border-radius: 0;
    text-align: left;
    max-width: 1120px;
    width: 90%; /* Obey the 90% max content width of the site */
    margin: 0 auto;
}

.we-been-there-card h3 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: lowercase;
}

.we-been-there-card p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.about-derek {
    padding: 100px 0;
    background: transparent;
    overflow: clip; /* Clip overflowing images on mobile/smaller screens */
}

.about-derek-container {
    display: flex;
    flex-direction: row-reverse; /* Images first in HTML (right), Content second (left) */
    justify-content: space-between;
    align-items: flex-start;
}

.about-derek-content h3 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: lowercase;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-derek-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
}

.about-derek-images {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: flex-start;
    align-self: flex-start; /* Align self to start */
    margin-left: 250px;     /* 250px margin left */
    margin-bottom: 125px;   /* 125px margin bottom */
}

.about-derek-content {
    width: 45%;
    flex: 0 0 45%;
    text-align: left; /* Always left-aligned */
}

.about-derek-images .image-wrapper.headshot {
    position: absolute;
    top: 100px;
    right: 250px;
    z-index: 2;
    width: 300px; /* Fixed width to prevent scaling down */
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-left: none;
    box-shadow: 0px 10px 40px -10px rgba(34, 34, 34, 0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-derek-images .image-wrapper.headshot:hover {
    transform: scale(1.03);
    box-shadow: 0px 15px 45px -5px rgba(34, 34, 34, 0.85);
}

.about-derek-images .image-wrapper.family {
    position: relative;
    left: -50px;
    z-index: 1;
    width: 300px; /* Fixed width to prevent scaling down */
    max-height: 450px;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-left: none;
    margin-top: 0;
    align-self: flex-end; /* Align self to end */
}

.about-derek-images img {
    width: 100%;
    height: auto !important;
    max-height: 450px;
    display: block;
    object-fit: cover;
}

/* Responsive Overrides for About Page */
@media (max-width: 1400px) and (min-width: 1201px) {
    .about-derek-images {
        margin-left: 150px;
        padding-left: 0;
    }
    .about-derek-images .image-wrapper.headshot {
        right: 150px;
    }
}

@media (max-width: 1200px) {
    .about-derek {
        overflow: visible;
    }
    .about-derek-container {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .about-derek-content {
        width: 100%;
        flex: none;
        text-align: left;
    }
    .about-derek-images {
        position: relative;
        display: block;
        width: 220px;
        height: auto;
        /* margin-left pushes the family photo right;
           headshot at left:-190px will land exactly at container left edge */
        margin: 0 0 170px 190px;
    }
    .about-derek-images .image-wrapper.family {
        position: relative;
        left: -30px;
        width: 220px;
        max-height: none;
        z-index: 1;
    }
    .about-derek-images .image-wrapper.headshot {
        position: absolute;
        top: 80px;
        left: -190px;
        right: auto;
        width: 220px;
        z-index: 2;
        margin-left: 0;
        margin-bottom: 0;
    }
}

/* About Page Hero Image Mask Explicit Rule */
.about-page .hero-image {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 100%
    ) !important;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 15%,
        black 100%
    ) !important;
}

@media (max-width: 767px) {
    .we-been-there-card {
        padding-left: 25px;
        padding-right: 25px;
    }
}

/* Remove top padding from the contact section on the About page */
.about-page .contact {
    padding-top: 0;
}

/* ── Partnerships Page Overrides / Styling ──────── */
/* 100px gap between the "professional partnerships" section and the
   "ready to connect" form (partner page only — .partner-details is unique). */
.partner-details + .contact {
    margin-top: 100px;
}

.partner-details {
    padding: 100px 0;
    background: transparent;
    overflow: clip; /* Clip overflowing images on mobile/smaller screens */
}

.partner-details-container {
    display: flex;
    flex-direction: row-reverse; /* Images first in HTML (right), Content second (left) */
    justify-content: space-between;
    align-items: flex-start;
}

.partner-details-content h3 {
    font-size: 36px;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: lowercase;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.partner-details-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
}

.partner-details-images {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: flex-start;
    align-self: flex-start; /* Align self to start */
    margin-left: 250px;     /* 250px margin left */
    margin-bottom: 125px;   /* 125px margin bottom */
}

.partner-details-content {
    width: 45%;
    flex: 0 0 45%;
    text-align: left; /* Always left-aligned */
}

.partner-details-images .image-wrapper.foreground {
    position: absolute;
    top: 100px;
    right: 250px;
    z-index: 2;
    width: 300px; /* Fixed width to prevent scaling down */
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-left: none;
    box-shadow: 0px 10px 40px -10px rgba(34, 34, 34, 0.75);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-details-images .image-wrapper.foreground:hover {
    transform: scale(1.03);
    box-shadow: 0px 15px 45px -5px rgba(34, 34, 34, 0.85);
}

.partner-details-images .image-wrapper.background {
    position: relative;
    left: -50px;
    z-index: 1;
    width: 300px; /* Fixed width to prevent scaling down */
    max-height: 450px;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-left: none;
    margin-top: 0;
    align-self: flex-end; /* Align self to end */
}

.partner-details-images img {
    width: 100%;
    height: auto !important;
    max-height: 450px;
    display: block;
    object-fit: cover;
}

.partner-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.partner-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.partner-list-item svg {
    flex-shrink: 0;
}

/* Responsive Overrides for Partnerships Page */
@media (max-width: 1400px) and (min-width: 1201px) {
    .partner-details-images {
        margin-left: 150px;
        padding-left: 0;
    }
    .partner-details-images .image-wrapper.foreground {
        right: 150px;
    }
}

@media (max-width: 1200px) {
    .partner-details {
        overflow: visible;
    }
    .partner-details-container {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .partner-details-content {
        width: 100%;
        flex: none;
        text-align: left;
    }
    .partner-details-images {
        position: relative;
        display: block;
        width: 220px;
        height: auto;
        margin: 0 0 170px 190px;
    }
    .partner-details-images .image-wrapper.background {
        position: relative;
        left: -30px;
        width: 220px;
        max-height: none;
        z-index: 1;
    }
    .partner-details-images .image-wrapper.foreground {
        position: absolute;
        top: 80px;
        left: -190px;
        right: auto;
        width: 220px;
        z-index: 2;
        margin-left: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .about-derek-images {
        width: 160px;
        margin: 0 0 140px 140px;
    }
    .about-derek-images .image-wrapper.family {
        width: 160px;
        left: -20px;
    }
    .about-derek-images .image-wrapper.headshot {
        width: 160px;
        top: 60px;
        left: -140px;
    }

    .partner-details-images {
        width: 160px;
        margin: 0 0 140px 140px;
    }
    .partner-details-images .image-wrapper.background {
        width: 160px;
        left: -20px;
    }
    .partner-details-images .image-wrapper.foreground {
        width: 160px;
        top: 60px;
        left: -140px;
    }
}



/* ── Booking Page Overrides ──────── */
.booking-page .hero {
    display: block;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

@media (max-width: 767px) {
    .booking-page .hero {
        padding-top: 40px;
        padding-bottom: 20px;
    }
}

.booking-page .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.booking-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booking-page .hero h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.booking-page .hero-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Calendly booking embed ----
   Copied from the live /call/ page (body.elementor-page-618). The Calendly
   widget is a cross-origin iframe with a solid white background that can't be
   made transparent — so the live page has NO wrapper/box around it. It works
   because the page gradient ends at 150% (not 100%), pushing the blue endpoint
   off-screen so the area behind the widget reads as near-white and the white
   iframe blends in. We replicate that gradient exactly and leave the embed
   transparent, just like the live site. */
.booking-page {
    background: linear-gradient(180deg, #FFFFFF 0%, #063B8726 150%);
}
.booking-embed {
    background: transparent;
    padding: 10px 0 100px;
    margin-top: -75px;
}

@media (max-width: 768px) {
    .booking-embed {
        margin-top: 0;
    }
}