/* ============================================
   GLOBAL VARIABLES & RESET (add if missing)
   ============================================ */
:root {
    --color-white: #ffffff;
    --color-brand: #1a7f6b;
    --color-puerto-rico: #3ba893;
    --color-limed-spruce: #2d3e4b;
    --color-desert-storm: #f8fafc;
    --gutter: 24px;
    --font-heading: "Times LT";
    --font-display: "Freight Display";
    --font-body: "Freight Sans";
}

/* Freight Display */
@font-face {
    font-family: 'Freight Display';
    src: url('/wp-content/themes/crothall/fonts/FreightDispRegular.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightDispRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Display';
    src: url('/wp-content/themes/crothall/fonts/FreightDispMedium.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightDispMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Display';
    src: url('/wp-content/themes/crothall/fonts/FreightDispSemibold.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightDispSemibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Display';
    src: url('/wp-content/themes/crothall/fonts/FreightDispltalic.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightDispltalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}


/* Freight Sans */
@font-face {
    font-family: 'Freight Sans';
    src: url('/wp-content/themes/crothall/fonts/FreightSansLight.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightSansLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Sans';
    src: url('/wp-content/themes/crothall/fonts/FreightSansRegular.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightSansRegular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Sans';
    src: url('/wp-content/themes/crothall/fonts/FreightSansMedium.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightSansMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Sans';
    src: url('/wp-content/themes/crothall/fonts/FreightSansSemibold.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightSansSemibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Freight Sans';
    src: url('/wp-content/themes/crothall/fonts/FreightSansBold.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/FreightSansBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* Times LT */
@font-face {
    font-family: 'Times LT';
    src: url('/wp-content/themes/crothall/fonts/TimesLTRoman.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/TimesLTRoman.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Times LT';
    src: url('/wp-content/themes/crothall/fonts/TimesLT-Bold.woff2') format('woff2'),
         url('/wp-content/themes/crothall/fonts/TimesLT-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-body);
}

/* ============================================
   WHY ARCHIN UNITY SECTION (reduced spacing)
   ============================================ */
.why-section {
    padding: clamp(40px, 6vw, 70px) 0;      /* was 60px–100px */
    background-color: var(--color-white);
}
.why-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 30px;                              /* was 40px */
}
@media (min-width: 800px) {
    .why-inner {
        flex-direction: row;
        align-items: center;
        gap: 40px;                          /* was 60px */
    }
    .why-visual, .why-content {
        flex: 1;
    }
}
.why-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}
@media (min-width: 800px) {
    .why-img {
        aspect-ratio: unset;
        height: 100%;
        min-height: 450px;
    }
}
.why-content .section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 20px;
}
.why-content .section-title {
    font-family: "Times LT";
    font-size: clamp(36px, 5vw, 50px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-limed-spruce);
}
.why-content .section-title em {
    font-style: normal;
    color: var(--color-brand);
}
.why-content .section-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-limed-spruce);
    margin-bottom: 30px;
}
.why-features {
    display: flex;
    flex-direction: column;
    gap: 15px;                              /* was 20px */
}
.why-feat {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--color-desert-storm);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.why-feat:hover {
    background-color: #e2e6e9;
}
.why-feat-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.why-feat h4 {
    font-family: "Times LT";
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-limed-spruce);
}
.why-feat p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-limed-spruce);
    margin: 0;
}

/* ============================================
   TESTIMONIALS (reduced spacing)
   ============================================ */
.reviews-section {
    padding: clamp(40px, 6vw, 70px) 0;      /* was 60px–100px */
    background-color: var(--color-desert-storm);
}
.reviews-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.reviews-header {
    text-align: center;
    margin-bottom: 30px;                    /* was 50px */
}
.reviews-header .section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 12px;
}
.reviews-header .section-title {
    font-family: "Times LT";
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-limed-spruce);
}
.reviews-header .section-title em {
    font-style: normal;
    color: var(--color-brand);
}
.reviews-header .section-body-centered {
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-limed-spruce);
}
.reviews-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    height: auto;
}
.review-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.review-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}
.review-stars {
    display: flex;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 3px;
    color: #f5b342;
    margin-bottom: 20px;
}
.review-text {
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-limed-spruce);
    margin-bottom: 24px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--color-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.review-name {
    font-family: "Times LT";
    font-size: 16px;
    font-weight: 700;
    color: var(--color-limed-spruce);
    margin-bottom: 4px;
}
.review-role {
    font-size: 13px;
    color: #6c7a89;
}
.review-source {
    font-size: 12px;
    color: var(--color-brand);
    margin-top: 5px;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-dot.active {
    background: var(--color-brand);
    transform: scale(1.2);
}
@media (max-width: 700px) {
    .reviews-carousel {
        grid-template-columns: 1fr;
    }
    .review-card {
        flex: 0 0 85%;
    }
}

/* ============================================
   FAQ SECTION (reduced spacing)
   ============================================ */
.faq-section {
    padding: clamp(40px, 6vw, 70px) 0;      /* was 60px–100px */
    background-color: var(--color-white);
}
.faq-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;                              /* was 60px */
    align-items: start;
}
@media (max-width: 900px) {
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.faq-intro .section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 16px;
}
.faq-intro .section-title {
    font-family: "Times LT";
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-limed-spruce);
}
.faq-intro .section-title em {
    font-style: normal;
    color: var(--color-brand);
}
.faq-intro .section-body {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-limed-spruce);
    margin-bottom: 30px;
}
.faq-cta .btn-primary {
    display: inline-block;
    background-color: var(--color-brand);
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
}
.faq-cta .btn-primary:hover {
    background-color: var(--color-puerto-rico);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;                              /* was 16px */
}
.faq-item {
    background-color: var(--color-desert-storm);
    border-radius: 16px;
    overflow: hidden;
}
.faq-q {
    font-family: "Times LT";
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;                     /* was 20px 28px */
    font-size: 20px;
    font-weight: 700;
    color: var(--color-limed-spruce);
    cursor: pointer;
    background-color: var(--color-white);
    transition: background 0.2s;
}
.faq-q:hover {
    background-color: #f0f4f8;
}
.faq-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
    transition: all 0.2s;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    border-color: var(--color-brand);
    color: var(--color-brand);
}
.faq-a {
    padding: 0 24px;                        /* was 0 28px */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-limed-spruce);
}
.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 24px 20px 24px;              /* was 0 28px 24px 28px */
}

/* ============================================
   CERTIFICATIONS (reduced spacing)
   ============================================ */
.certifications-section {
    padding: clamp(40px, 6vw, 60px) 0;      /* was 60px–80px */
    background-color: var(--color-desert-storm);
    overflow: hidden;
}
.certifications-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.certifications-header {
    text-align: center;
    margin-bottom: 30px;                    /* was 48px */
}
.certifications-header .section-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: 12px;
}
.certifications-header .section-title {
    font-family: "Times LT";
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--color-limed-spruce);
}
.certifications-header .section-title em {
    font-style: normal;
    color: var(--color-brand);
}
.certifications-description {
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-limed-spruce);
}
.certifications-wrapper {
    overflow: hidden;
    position: relative;
}
.certifications-track {
    display: flex;
    gap: 24px;                              /* was 40px */
    width: max-content;
    animation: scrollCerts 25s linear infinite;
}
.certifications-track:hover {
    animation-play-state: paused;
}
.cert-card {
    flex-shrink: 0;
    background-color: var(--color-white);
    padding: 12px 24px;
    border-radius: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.cert-card img {
    height: 70px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}
.cert-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}
@keyframes scrollCerts {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 700px) {
    .cert-card img {
        height: 50px;
        max-width: 80px;
    }
    .certifications-track {
        gap: 16px;                          /* was 24px */
    }
}



/* ============================================
   CONTACT FORM (custom #contactForm)
   ============================================ */
.embed-form {
    width: 100%;
}
#contactForm {
    width: 100%;
}
#contactForm .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
#contactForm .fg {
    margin-bottom: 0;
}
#contactForm .fg.full {
    grid-column: span 2;
}
#contactForm label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}
#contactForm label .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'Freight Sans';
    color: var(--color-white);
    background-color: #286db2;  /* matches theme's form background */
    border: none;
    border-bottom: 1px solid #95baf0;
    border-radius: 0;
    transition: all 0.2s;
}
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-bottom-color: var(--color-puerto-rico);
    background-color: #1e5a9e;
}
#contactForm select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='white' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
}
#contactForm textarea {
    resize: vertical;
    min-height: 100px;
}
#contactForm .form-submit {
    display: inline-block;
    background-color: var(--color-white, #fff);
    color: #3A8DDE;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    border: 2px solid #3A8DDE;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 15px;
    width: auto;
}

#contactForm .form-submit:hover {
    background-color: #3A8DDE;
    color: #fff;
}
#contactForm .form-note {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
    text-align: center;
}
.success-message,
.error-message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}
.success-message {
    background-color: #2e7d32;
    color: white;
}
.error-message {
    background-color: #c62828;
    color: white;
}




/* Responsive adjustments */
@media (max-width: 700px) {
    #contactForm .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    #contactForm .fg.full {
        grid-column: span 1;
    }
    #contactForm .form-submit {
        width: 100%;
        text-align: center;
    }
    .success-modal-content {
        width: 95%;
        padding: 30px 20px;
    }
}



    .be-ix-link-block .be-related-link-container {margin-top: 20px;}
    .be-ix-link-block .be-related-link-container .be-label {margin: 0; 
        font-size: 19px;font-weight: 500;line-height: 100%;color: inherit;font-family: var(--font-display);letter-spacing: .012em;}
    .be-ix-link-block .be-related-link-container .be-list { display: inline-block; list-style: none;margin: 0; padding: 0;}
    .be-ix-link-block .be-related-link-container .be-list .be-list-item {display: inline-block;margin-right: 20px;margin-bottom: 6px;}
    .be-ix-link-block .be-related-link-container .be-list .be-list-item .be-related-link {font-size: 14px;font-weight: 400;line-height: 1.1;}
    .be-ix-link-block .be-related-link-container .be-list .be-list-item .be-related-link:hover {color: var(--color-brand);}
    .be-ix-link-block .be-related-link-container .be-list .be-list-item:last-child { margin-right: 0;}
    @media (max-width: 767px) {
      .be-ix-link-block .be-related-link-container .be-label {width: 100%;margin-bottom: 10px;}
      .be-ix-link-block .be-related-link-container .be-list { display: block;width: 100%;}
      .be-ix-link-block .be-related-link-container .be-list .be-list-item {display: block;margin-right: 0;}
    }
    @media (min-width: 768px) {
      .be-ix-link-block .be-related-link-container {display: flex;align-items: baseline;justify-content: right;}
      .be-ix-link-block .be-related-link-container .be-label {display: inline-block;margin-right: 20px;flex-grow: 0;flex-shrink: 0;}
    }


    /* ============================================
   SUCCESS MODAL
   ============================================ */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;              /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-modal.show {
    display: flex;
}

.success-modal-content {
    background-color: var(--color-white);
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-brand);
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-modal-content h3 {
    font-family: "Times LT";
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-limed-spruce);
}

.success-modal-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 25px;
}

.modal-small {
    font-size: 14px;
    color: #6b7280;
}

/* Button */
.modal-close-btn {
    background-color: var(--color-brand);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background-color: #364049;
}

@media (max-width: 768px) {
    .page-header_container {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .page-header_logo {
        position: relative;
        left: 20px; /* increase this until it’s perfect */
    }
}

.lazy-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

#page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: transparent; /* Handled by slides */
    overflow: hidden;
}

/* Background Split Panels */
.loader-slide {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #0b1f2a;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}
.slide-left { left: 0; }
.slide-right { right: 0; }

/* Animation when finished */
#page-loader.hide .slide-left { transform: translateX(-100%); }
#page-loader.hide .slide-right { transform: translateX(100%); }
#page-loader.hide .loader-content { 
    opacity: 0; 
    transform: scale(1.2); 
    transition: 0.5s ease-out;
}

/* Logo Styling */
.loader-content {
    text-align: center;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.loader-logo {
    width: 180px; /* Smaller and more elegant */
    height: auto;
    animation: logoEntrance 1.2s ease-out forwards;
}

/* Subtle Shimmer Line instead of a chunky spinner */
.shimmer-line {
    width: 100px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.shimmer-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes logoEntrance {
    from { opacity: 0; transform: scale(0.8); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes shimmer {
    100% { left: 100%; }
}