/* Small corrections on top of the original design (styles.css): responsive header,
   readable text on phones, no horizontal scrolling. The look itself is unchanged. */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
section[id], header[id] { scroll-margin-top: 110px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #02424d; outline-offset: 2px; }

/* ---------- Navigation ---------- */
.hs-nav { background: none; box-shadow: none; border: none; }
.hs-nav-logo { display: none; }
.hs-nav-list > li > a { white-space: nowrap; }
.hs-nav-list > li > a img { width: 30px; height: 30px; vertical-align: middle; }

@media (min-width: 992px) {
    /* The plane-and-banner artwork carries the menu, as before, sized to its container. */
    #main-nav { background: url(../img/patti.png) center / 90% auto no-repeat; min-height: 110px; }
    #main-nav .hs-nav-list { float: none; display: flex; flex-wrap: nowrap; justify-content: center;
        margin: 30px 11% 30px 26%; }
    .hs-nav-list > li > a { padding: 10px 6px; font-size: 108%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .hs-nav-list > li > a { font-size: 88%; padding: 8px 4px; }
    .hs-nav-list > li > a img { width: 22px; height: 22px; }
    #main-nav .hs-nav-list { margin-top: 24px; }
}

/* Tablet and phone: a compact bar with the logo and a menu button. */
@media (max-width: 991px) {
    .hs-nav { background: rgba(127, 216, 242, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); min-height: 60px; }
    .hs-nav .navbar-header { float: none; margin: 0; min-height: 60px; border: 0; }
    .hs-nav-logo { display: inline-block; padding: 6px 0; }
    .hs-nav-logo img { width: 48px; height: 48px; }
    .hs-nav .navbar-toggle { display: block; top: 14px; right: 6px; margin: 0; padding: 12px 14px; }
    .hs-nav .custom-toggle-btn .icon-bar { background-color: #02424d !important; margin: 0 0 6px; }
    .hs-nav .navbar-collapse { border: 0; box-shadow: none; max-height: calc(100vh - 60px); overflow-y: auto; }
    .hs-nav .navbar-collapse.collapse { display: none !important; }
    .hs-nav .navbar-collapse.collapse.in { display: block !important; }
    #main-nav .hs-nav-list { float: none; margin: 0 0 10px; }
    #main-nav .hs-nav-list > li { float: none; padding: 0; border-bottom: 1px dashed rgba(212, 95, 66, .6); }
    #main-nav .hs-nav-list > li:last-child { border-bottom: 0; }
    #main-nav .hs-nav-list > li > a { padding: 12px 6px; }
}

/* ---------- Hero ---------- */
header#home { height: auto; min-height: 900px; background-size: cover; background-position: center top; }
.hs-hero { padding-top: 100px; padding-bottom: 150px; }
.hs-hero-logo { display: block; width: 140px; margin: 0 auto; }
.hs-hero-row { display: flex; align-items: center; margin-top: 20px; }
.hs-hero-phone { text-align: right; padding-right: 50px; }
.hs-hero-copy { text-align: left; }
.hs-hero-title { margin: 0 0 28px; }
.hs-hero-title img { width: 400px; }
.hs-app-link label { display: block; font-size: 19px; font-weight: 500; margin-bottom: 8px; color: inherit; }
.hs-app-link-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hs-app-link input { flex: 0 1 220px; min-width: 0; background: none; border: 0; border-bottom: 1px solid #000;
    border-radius: 0; font-size: 19px; padding: 4px 2px; }
.hs-app-link button { font-size: 22px; background: #02424d; box-shadow: none; padding: 6px 16px; border: 0;
    color: #fff; border-radius: 10px; min-height: 44px; }

@media (max-width: 767px) {
    header#home { min-height: 0; }
    .hs-hero { padding-top: 76px; padding-bottom: 110px; }
    .hs-hero-logo { width: 104px; }
    .hs-hero-row { flex-direction: column; margin-top: 10px; }
    .hs-hero-phone { text-align: center; padding-right: 15px; }
    .hs-hero-phone img { width: 170px; }
    .hs-hero-copy { text-align: center; padding-top: 18px; }
    .hs-hero-title { margin-bottom: 16px; }
    .hs-hero-title img { width: 260px; }
    .hs-app-link label { font-size: 16px; }
    .hs-app-link-row { justify-content: center; }
    .hs-app-link input { flex: 1 1 150px; max-width: 200px; }
    .hs-app-link button { font-size: 18px; flex: 1 1 100%; max-width: 280px; }
}

/* ---------- Content ---------- */
@media (max-width: 767px) {
    h2 { font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
    h3 { font-size: 22px; }
    .section-description { width: 92% !important; font-size: 16px; line-height: 1.6; }
    .store .container, .gallery .container, .features .container, .contact .container { padding-left: 12px; padding-right: 12px; }
    .footer-nav ul { padding: 0; }
    .footer-nav li { display: block; margin: 0; }
    .footer-nav li a { display: block; padding: 10px 0; }
    .contact-form input, .contact-form textarea, .contact-form select { font-size: 16px; max-width: 100%; }
    .carousel-inner img { width: 100%; }
}
.section-description p { text-align: inherit; }
iframe, video, #gmaps { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Store buttons: keep the label and its icon on one line at every width. */
.button-game .button-game-bg-mid { white-space: nowrap; height: 54px; overflow: hidden; }
@media (max-width: 480px) {
    .button-game { font-size: 15px !important; }
    .button-game .button-game-bg-mid { padding: 0 14px; letter-spacing: 0; }
}

/* Phones: let the step cards and footer use the full width. */
@media (max-width: 767px) {
    .hs-nav, .hs-nav .navbar-collapse { background: #8adcf3; }
    .store .items-container { padding: 0 2%; }
    .panel-item__text { padding: 14px 16px; bottom: 0; }
    .panel-item__text ul { padding-left: 20px; text-align: left; }
    .footer .footer-nav { text-align: center; }
    .footer .footer-nav ul li { display: block; padding: 0; }
    .footer .footer-nav ul li a { display: inline-block; padding: 9px 4px; }
    .footer .copyright { letter-spacing: .08rem; font-size: 14px; padding: 0 10px; }
}
@media (max-width: 360px) {
    .button-game { font-size: 13px !important; }
    .button-game .button-game-bg-mid { padding: 0 4px; }
}

/* ---------- Forms ---------- */
.hs-form-status { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.hs-form-status.is-ok { color: #0b6b3a; }
.hs-form-status.is-error { color: #b3261e; }
.hs-contact-row { margin-top: 24px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; }
.contact-form textarea { min-height: 120px; }
.contact-form .row { margin-bottom: 10px; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Colour: readability only ---------- */
/* Footer text sat on the green artwork with too little contrast. */
.footer .footer-nav ul li a { color: #7a2a10; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.footer .footer-nav ul li a:hover, .footer .footer-nav ul li a:focus { color: #3d1206; }
.footer .copyright { color: #06434d; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.footer .social-nav a { color: #7a2a10; }
/* Menu links on the sky-blue banner. */
.plain-link a { color: #b8401f !important; }
.plain-link:hover a, .plain-link a:focus { color: #4a1b0f !important; }
