/* =========================================================
   GIRAFFE PATHFINDERS TRAVEL LIMITED
   Main Stylesheet
   Updated: October 2026 by Dalmatius

   Sections:
   1. Theme variables and global styles
   2. Navigation and logo
   3. Buttons and shared components
   4. Hero carousel
   5. Services
   6. About section
   7. Contact section
   8. Footer
   9. Floating controls
   10. Forms, modals and accessibility
   11. Responsive layouts
   12. Reduced-motion accessibility
   ========================================================= */


/* =========================================================
   1. THEME VARIABLES AND GLOBAL STYLES
   ========================================================= */

:root {
    --brand-navy: #102f50;
    --brand-blue: #1f527d;
    --brand-orange: #e8752b;
    --brand-orange-deep: #c65b17;
    --brand-orange-darker: #9c4309;
    --brand-sky: #9dc3e6;

    --ink: #203044;
    --muted: #65758a;
    --soft: #f4f7fb;

    --radius: 20px;
    --shadow: 0 16px 44px rgba(16, 47, 80, 0.10);

    --navbar-height: 108px;
    --navbar-height-mobile: 86px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.7;
    letter-spacing: -0.006em;
}

a {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

img {
    max-width: 100%;
}

section.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

#services,
#about,
#contact {
    scroll-margin-top: var(--navbar-height);
}


/* =========================================================
   2. NAVIGATION AND LOGO
   ========================================================= */

/*
   Desktop logo dimensions:
   Width: 260px
   Height: 90px

   Tablet logo dimensions:
   Width: 230px
   Height: 78px

   Mobile logo dimensions:
   Width: 195px
   Height: 66px
*/

.navbar {
    min-height: var(--navbar-height);
    padding: 0.45rem 0;

    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(16, 47, 80, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 4px 22px rgba(18, 52, 90, 0.08) !important;
}

.navbar > .container,
.navbar > .container-fluid,
.navbar > .container-lg,
.navbar > .container-md,
.navbar > .container-sm,
.navbar > .container-xl,
.navbar > .container-xxl {
    min-height: inherit;
}

.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    max-width: 100%;
    margin-right: 24px;
    padding: 4px 0;

    gap: 0.65rem;

    color: var(--brand-navy) !important;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* Main logo image */
.navbar .navbar-brand img,
.navbar .pathfinders-logo {
    display: block;
    flex: 0 0 auto;

    width: 260px;
    height: 90px;
    max-width: 100%;

    object-fit: contain;
    object-position: left center;
}

/* Optional text-based brand name, if used in the HTML */
.brand-wordmark {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    white-space: nowrap;
}

.brand-wordmark span:first-child {
    color: var(--brand-orange-deep);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.brand-wordmark span:last-child {
    color: var(--brand-navy);
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.navbar .navbar-nav {
    align-items: center;
    gap: 0.1rem;
}

.navbar .nav-link {
    padding: 0.65rem 0.8rem !important;
    border-radius: 9px;

    color: #42536a !important;
    font-size: 0.94rem;
    font-weight: 650;
    white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    background: #fff4ec;
    color: var(--brand-orange-deep) !important;
}

.navbar-toggler {
    flex-shrink: 0;
    border-color: #d6e0eb;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(157, 195, 230, 0.35);
}

.brand-primary {
    color: var(--brand-navy) !important;
}


/* =========================================================
   3. BUTTONS AND SHARED COMPONENTS
   ========================================================= */

.btn-brand {
    padding: 0.75rem 1.35rem;
    border: 1px solid var(--brand-orange-deep);
    border-radius: 999px;

    background: var(--brand-orange-deep);
    color: #fff !important;

    font-weight: 750;

    box-shadow: 0 8px 18px rgba(237, 125, 49, 0.18);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    transform: translateY(-1px);
    border-color: var(--brand-orange-darker);
    background: var(--brand-orange-darker);
    color: #fff !important;
}

.btn-brand:focus-visible {
    outline: 3px solid rgba(237, 125, 49, 0.3);
    outline-offset: 3px;
}

.btn-outline-primary {
    border-color: var(--brand-blue);
    border-radius: 999px;
    color: var(--brand-blue);
    font-weight: 650;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: #fff;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    color: var(--brand-orange-deep);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.section-eyebrow-light {
    color: #ffc08e;
}

.service-icon {
    display: inline-block;
    transform: translateY(-1px);
}


/* =========================================================
   4. HERO SECTION AND CAROUSEL
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-navy);
}

.hero .carousel-item {
    position: relative;
    height: clamp(460px, 68vh, 660px);
    isolation: isolate;
}

.hero-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.001);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;

    padding: clamp(24px, 7vw, 100px);

    background: linear-gradient(
        100deg,
        rgba(7, 25, 45, 0.84) 0%,
        rgba(7, 25, 45, 0.56) 52%,
        rgba(7, 25, 45, 0.16) 100%
    );

    color: #fff;
}

.hero-content {
    width: min(720px, 100%);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

/* Retained in case existing HTML uses this class */
.hero-title-unused {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero .lead {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.hero .btn-brand {
    box-shadow: 0 12px 28px rgba(232, 117, 43, 0.28);
}

.hero .btn-outline-light {
    border-width: 2px;
    border-radius: 999px;
    font-weight: 650;
}

.hero .btn-outline-light:hover {
    background: #fff;
    color: var(--brand-navy);
}

/* Carousel indicators */
.hero .carousel-indicators {
    z-index: 3;
    margin-bottom: 1.1rem;
}

.hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    opacity: 0.5;
}

.hero .carousel-indicators .active {
    background: var(--brand-orange);
    opacity: 1;
}

/* Carousel arrows */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    z-index: 3;
    width: 6%;
    min-width: 48px;
}

/* Carousel pause button */
.hero-pause {
    position: absolute;
    right: clamp(14px, 3vw, 32px);
    bottom: 14px;
    z-index: 4;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;

    background: rgba(9, 29, 53, 0.65);
    color: #fff;

    cursor: pointer;
}

.hero-pause:hover,
.hero-pause:focus-visible {
    background: var(--brand-orange-deep);
}


/* =========================================================
   5. SERVICES SECTION
   ========================================================= */

#services {
    position: relative;
    background: var(--soft) !important;
}

#services .container > .text-center {
    max-width: 760px;
    margin-inline: auto;
}

#services h2,
#about h2,
#contact h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.035em;
}

#services .card,
#about .card,
#contact .card {
    border-radius: var(--radius);
    box-shadow: var(--shadow) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#services .card {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(16, 47, 80, 0.07) !important;
    background: #fff;
}

#services .card::before {
    position: absolute;
    inset: 0 auto 0 0;

    width: 4px;

    background: linear-gradient(
        180deg,
        var(--brand-orange),
        #f5b47e
    );

    content: "";
    opacity: 0.9;
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(18, 52, 90, 0.15) !important;
}

#services .card-body {
    padding: 1.1rem 0.9rem 1rem 1.1rem;
}

#services .service-icon {
    display: inline-grid;
    place-items: center;

    width: 42px;
    height: 42px;
    margin-right: 0.45rem;

    border-radius: 13px;
    background: #fff2e8;

    font-size: 1.15rem;
    vertical-align: middle;
}

#services .card h3 {
    line-height: 1.35;
}

#services .card h4 {
    font-size: 1.15rem;
    font-weight: 750;
}

#services .card p {
    margin-bottom: 0.15rem;
    line-height: 1.75;
}


/* =========================================================
   6. ABOUT SECTION
   ========================================================= */

.about-copy {
    max-width: 68ch;
    margin-inline: auto;

    color: #4a5a6e;
    font-size: 1.1rem;
}

.about-panel {
    padding: 1.5rem;
    border: 1px solid #e4ebf3;
    border-radius: var(--radius);
    background: #f2f6fb;
}

.about-panel p {
    color: var(--muted);
}

#about .card {
    padding: clamp(1.3rem, 3vw, 2.5rem) !important;
}

#about .collapse .bg-light {
    border: 1px solid #e4ebf3;
    background: #f2f6fb !important;
}

#about .about-panel {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

#about .about-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem 2rem;

    max-width: 960px;
    margin-inline: auto;
}

.why-grid li {
    padding-left: 1rem;
    border-left: 3px solid var(--brand-orange);
}

.why-grid strong {
    display: block;
    color: var(--brand-navy);
}

.why-grid span {
    color: var(--muted);
}


/* =========================================================
   7. CONTACT SECTION
   ========================================================= */

#contact {
    background: linear-gradient(
        180deg,
        #f5f8fc,
        #edf3f9
    ) !important;
}

.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-heading {
    max-width: 700px;
}

.contact-heading h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    letter-spacing: -0.045em;
}

.contact-info-panel,
.contact-form-panel {
    height: 100%;
    overflow: hidden;
    border-radius: 24px;

    box-shadow: 0 18px 50px rgba(16, 47, 80, 0.10);
}

.contact-info-panel {
    padding: clamp(1.6rem, 3vw, 2.5rem);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232, 117, 43, 0.24),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #102f50 0%,
            #17466d 100%
        );

    color: #fff;
}

.contact-info-panel h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.9rem;

    min-width: 0;
    margin-top: 1.25rem;

    color: #fff;
    text-decoration: none;
}

.contact-detail:hover {
    color: #ffd0ad;
    transform: translateX(3px);
}

.contact-detail-icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.09);
    font-size: 1.2rem;
}

.contact-detail span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-detail small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
}

.contact-detail strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 0.98rem;
}

.contact-trust-note {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;

    margin-top: 2rem;
    padding: 1rem 1.1rem;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.07);
}

.contact-trust-note strong {
    color: #fff;
}

.contact-trust-note span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Contact form */
.contact-form-panel {
    padding: clamp(1.4rem, 3vw, 2.6rem);

    border: 1px solid #e5ebf2;
    background: #fff;
}

.contact-form-panel h3 {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    letter-spacing: -0.035em;
}

.contact-form-panel .form-label {
    color: #263b53;
    font-size: 0.9rem;
}

.contact-form-panel .form-control,
#contact .form-control {
    min-height: 49px;
    padding: 0.78rem 0.9rem;

    border: 1px solid #dce4ed;
    border-radius: 12px;

    background: #fbfcfe;
    box-shadow: none;
}

#contact .form-control {
    border-radius: 10px;
}

.contact-form-panel textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

#contact .form-control:focus,
.contact-form-panel .form-control:focus {
    border-color: var(--brand-orange);
    background: #fff;
    box-shadow: 0 0 0 0.22rem rgba(232, 117, 43, 0.14);
}

#contact .form-label {
    color: var(--brand-navy);
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    min-width: 190px;
}

.contact-submit span {
    font-size: 1.35rem;
    line-height: 1;

    transition: transform 0.2s ease;
}

.contact-submit:hover span {
    transform: translateX(3px);
}

.contact-form-panel .small a {
    color: var(--brand-orange-deep);
    font-weight: 750;
}

.result-box {
    border-radius: 13px;
}


/* =========================================================
   8. FOOTER
   ========================================================= */

footer {
    padding: 48px 0 30px !important;

    background: linear-gradient(
        135deg,
        #102c4c,
        #1d456c
    ) !important;
}

footer p {
    color: rgba(255, 255, 255, 0.85);
}

footer .fw-bold,
footer p {
    color: #fff;
}

footer p.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

footer .footer-links a {
    display: inline-block;
    padding: 0.12rem 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
}

.footer-link:hover {
    color: #ffd4b8;
    text-decoration: underline;
}


/* =========================================================
   9. FLOATING CONTROLS
   ========================================================= */

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1030;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border-radius: 50%;
    background: #178a4a;
    color: #fff;

    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    background: #106b39;
    color: #fff;
}

/* Back-to-top button */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 1029;

    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: var(--brand-navy);
    color: #fff;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);

    font-size: 1.7rem;
    font-weight: 800;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    cursor: pointer;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    outline: 3px solid rgba(237, 125, 49, 0.25);
    outline-offset: 3px;

    background: var(--brand-orange);
    color: #fff;
}


/* =========================================================
   10. FORMS, MODALS AND ACCESSIBILITY
   ========================================================= */

/* Honeypot field for spam protection */
.form-trap {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

/* Modal windows */
.modal-content {
    overflow: hidden;
    border-radius: 18px;
}

.modal-header {
    background: var(--brand-navy) !important;
}

.modal-header .modal-title {
    font-weight: 750;
}

.modal-footer .btn-brand {
    min-width: 150px;
}

/* Visible keyboard focus */
:focus-visible {
    outline: 3px solid var(--brand-sky);
    outline-offset: 2px;
}


/* =========================================================
   11. RESPONSIVE LAYOUTS
   ========================================================= */

/* Tablets and collapsed Bootstrap navigation */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 94px;
    }

    .navbar {
        min-height: 94px;
    }

    .navbar .navbar-brand {
        margin-right: 12px;
    }

    .navbar .navbar-brand img,
    .navbar .pathfinders-logo {
        width: 230px;
        height: 78px;
    }

    .navbar .navbar-nav {
        align-items: stretch;
        gap: 0.15rem;

        padding-top: 12px;
        padding-bottom: 12px;
    }

    .navbar .nav-link {
        white-space: normal;
    }
}

/* Phones and smaller tablets */
@media (max-width: 767.98px) {
    :root {
        --navbar-height: 86px;
    }

    html {
        scroll-padding-top: var(--navbar-height);
    }

    #services,
    #about,
    #contact {
        scroll-margin-top: var(--navbar-height);
    }

    section.py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    /* Hero layout */
    .hero .carousel-item {
        height: auto;
        min-height: 540px;
    }

    .hero-overlay {
        align-items: flex-end;
        padding: 32px 24px 48px;

        background: linear-gradient(
            0deg,
            rgba(9, 29, 53, 0.9),
            rgba(9, 29, 53, 0.25)
        );
    }

    .hero-title {
        font-size: clamp(2.2rem, 5vw, 4.2rem);
    }

    .hero-title-unused {
        font-size: 2.25rem;
    }

    .hero-content {
        padding-top: 160px;
        padding-bottom: 36px;
    }

    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        display: none;
    }

    /* Floating controls */
    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px;
    }

    .back-to-top {
        right: 17px;
        bottom: 78px;
        width: 44px;
        height: 44px;
    }

    /* Contact panels */
    .contact-info-panel,
    .contact-form-panel {
        border-radius: 19px;
    }

    .contact-detail strong {
        font-size: 0.92rem;
    }

    .contact-submit {
        width: 100%;
    }

    /* Optional wordmark */
    .brand-wordmark span:first-child {
        font-size: 0.66rem;
    }

    .brand-wordmark span:last-child {
        font-size: 0.92rem;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    :root {
        --navbar-height: 76px;
    }

    .navbar {
        min-height: 76px;
        padding: 0.25rem 0;
    }

    .navbar .navbar-brand {
        max-width: calc(100% - 60px);
        margin-right: 8px;
    }

    .navbar .navbar-brand img,
    .navbar .pathfinders-logo {
        width: 195px;
        height: 66px;
    }

    .navbar .navbar-toggler {
        padding: 6px 9px;
    }

    .hero-overlay {
        padding: 28px 20px 44px;
    }

    .hero-content {
        padding-top: 140px;
    }
}


/* =========================================================
   12. REDUCED-MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }

    .back-to-top,
    #services .card,
    #about .about-panel,
    .contact-submit span {
        transition: none !important;
    }
}