@charset "UTF-8";

/**
 * Neopolis Travel — styles.css
 * Structural base styles and shared Bootstrap behaviour.
 * Brand colours, typography and page components live in custom.css.
 */

/** Document */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/** Media and links */

img, video {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s var(--ease), opacity .3s var(--ease);
}

a:focus-visible, button:focus-visible, .form-field:focus-visible {
    outline: 2px solid var(--color-sand);
    outline-offset: 4px;
}

/** Bootstrap grid: wider side gutters on phones */

.container {
    --bs-gutter-x: 2rem;
}

/** Spam trap field of the enquiry forms (kept out of sight and out of tab order) */

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/** Animate on scroll (AOS) */

[data-aos] {
    will-change: opacity, transform;
}

[data-aos].aos-animate {
    will-change: auto;
}

/* Without JavaScript the AOS styles would keep elements hidden */
html:not(.js) [data-aos] {
    opacity: 1;
    transform: none;
}

/** Responsive */

@media (min-width: 768px){
    .container {
        --bs-gutter-x: 1.5rem;
    }
}

/* Reduced motion: !important is needed to stop every animation and transition, including library ones */
@media (prefers-reduced-motion: reduce){
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
