/* StarCloud Connect — site styles (on top of Materialize 0.97 in min/plugin-min.css) */
:root {
    --navy: #000d16;
    --navy-2: #072b44;
    --blue: #2196F3;
    --blue-dark: #1976D2;
    --teal: #2073a0;
    --ink: #1f2933;
    --muted: #5f6b76;
    --soft: #f4f7fa;
    --radius: 12px;
    --shadow: 0 2px 14px rgba(15, 40, 70, .08);
    --nav-h: 72px;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: #fff; display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--blue-dark); }
.responsive-img { max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.navbar-fixed { height: var(--nav-h); }
nav.site-nav { height: var(--nav-h); line-height: var(--nav-h); background: var(--navy); box-shadow: none; transition: box-shadow .2s; }
nav.site-nav.scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
nav.site-nav .nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 100%; }
nav.site-nav .brand-logo { position: static; left: auto; transform: none; -webkit-transform: none; display: flex; align-items: center; height: 100%; padding: 0; }
nav.site-nav .brand-logo img { height: 42px; width: auto; display: block; }
nav.site-nav .nav-links { display: flex; align-items: center; height: 100%; margin: 0; }
nav.site-nav .nav-links li { float: none; }
nav.site-nav .nav-links a { font-size: .95rem; letter-spacing: .5px; padding: 0 14px; color: #fff; opacity: .8; transition: opacity .15s; }
nav.site-nav .nav-links a:hover,
nav.site-nav .nav-links a.active { opacity: 1; background: transparent; }
nav.site-nav .nav-links a.active { box-shadow: inset 0 -3px 0 var(--blue); }
nav.site-nav .nav-links .btn-signup { height: 38px; line-height: 38px; padding: 0 20px; margin-left: 8px; border-radius: 19px; background: var(--blue); opacity: 1; font-weight: 500; }
nav.site-nav .nav-links .btn-signup:hover { background: var(--blue-dark); }
nav.site-nav .nav-links .btn-lang { display: flex; align-items: center; height: 34px; line-height: 34px; margin-left: 12px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 17px; opacity: 1; }
nav.site-nav .nav-links .btn-lang:hover { border-color: #fff; }
nav.site-nav .btn-lang i { font-size: 18px; height: auto; line-height: 1; margin-right: 6px; }
nav.site-nav .button-collapse { display: flex; align-items: center; height: var(--nav-h); margin: 0; }
nav.site-nav .button-collapse i { font-size: 30px; height: auto; line-height: 1; }

.side-nav { background: var(--navy); padding-top: 16px; }
.side-nav li > a { color: #fff; font-size: 1.05rem; display: flex; align-items: center; }
.side-nav li > a:hover { background: rgba(255, 255, 255, .08); }
.side-nav li > a i { color: #8fb3cc; margin-right: 14px; }
.side-nav .side-logo { padding: 8px 32px 20px; }
.side-nav .side-logo img { height: 40px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - var(--nav-h)); max-height: 860px; padding: 64px 0;
        background: var(--navy) url(../img/banner_starcloud.jpg) center / cover no-repeat; color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0, 13, 22, .5) 0%, rgba(0, 13, 22, .8) 100%); }
.hero .container { position: relative; }
.hero h1 { font-weight: 300; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.15; margin: 0 0 1.2rem; }
.hero .typed { display: inline-block; min-height: 1.15em; font-weight: 500; }
.hero .typed::after { content: ""; display: inline-block; width: 3px; height: .9em; margin-left: 6px; vertical-align: -0.05em; background: var(--blue); animation: blink 1s steps(1) infinite; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 300; max-width: 640px; margin: 0 auto 2.2rem; opacity: .92; color: #fff; }
.hero .btn-large { margin: 6px; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) { .hero { background-image: url(../img/_default-mobile.jpg); } }
@media (prefers-reduced-motion: reduce) { .hero .typed::after { animation: none; } }

/* ---------- Buttons ---------- */
.btn, .btn-large { border-radius: 24px; text-transform: none; font-weight: 500; letter-spacing: .3px; box-shadow: none; }
.btn-primary { background: var(--blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Sections ---------- */
.section-pad { padding: 80px 0; }
.section-soft { background: var(--soft); }
.section-title { font-weight: 300; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2; margin: 0 0 .6rem; text-align: center; }
.section-sub { color: var(--muted); text-align: center; font-size: 1.1rem; max-width: 640px; margin: 0 auto 48px; }
.row.equal { display: flex; flex-wrap: wrap; }
.row.equal > .col { margin-bottom: 24px; }
.row.equal > .col > * { height: 100%; }

.step { position: relative; background: #fff; border-radius: var(--radius); padding: 36px 24px 28px; text-align: center; box-shadow: var(--shadow); }
.step .num { position: absolute; top: 14px; left: 18px; font-size: .85rem; font-weight: 500; color: var(--blue); opacity: .6; }
.step i.material-icons { font-size: 56px; color: var(--blue); }
.step h5 { font-size: 1.3rem; font-weight: 400; margin: 14px 0 8px; }
.step p { color: var(--muted); margin: 0; }

.row.equal > .col > .shot { height: auto; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }

.band { background: linear-gradient(135deg, var(--navy-2), var(--teal)); color: #fff; text-align: center; padding: 64px 0; }
.band i.material-icons { font-size: 56px; opacity: .9; }
.band h3 { font-weight: 300; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 8px 0 24px; }
.band .btn-large { background: #fff; color: var(--teal); }
.band .btn-large:hover { background: #e9f3fa; }

.app-promo { display: flex; align-items: center; gap: 48px; padding: 48px; border-radius: 20px; color: #fff;
             background: radial-gradient(circle at 15% 20%, rgba(33, 150, 243, .35), transparent 55%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 100%);
             box-shadow: 0 18px 40px rgba(0, 13, 22, .25); overflow: hidden; }
.app-promo-media { flex: 0 0 38%; }
.app-promo-media img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 16px 36px rgba(0, 0, 0, .45); transform: rotate(-3deg); }
.app-promo-body { flex: 1; }
.app-promo .eyebrow { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: #8fd0ff; margin-bottom: 8px; }
.app-promo h3 { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; margin: 0 0 12px; }
.app-promo p { color: #c6d3dd; font-size: 1.1rem; margin: 0 0 20px; }
.app-features { margin: 0 0 28px; }
.app-features li { display: flex; align-items: center; margin: 10px 0; font-size: 1.02rem; }
.app-features i { font-size: 20px; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #8fd0ff; margin-right: 12px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges img { height: 48px; width: auto; }
@media (max-width: 860px) {
    .app-promo { flex-direction: column; text-align: center; padding: 32px 20px; gap: 32px; }
    .app-promo-media { flex-basis: auto; width: 75%; max-width: 320px; }
    .app-features { display: inline-block; text-align: left; }
    .store-badges { justify-content: center; }
}

/* ---------- Inner pages ---------- */
.page-head { background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; padding: 56px 0 48px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 300; margin: 0; }
.page-body { padding: 56px 0 72px; }
.page-body h5 { color: var(--teal); font-weight: 400; }
.page-body .lead { font-size: 1.25rem; font-weight: 300; color: var(--muted); max-width: 760px; margin: 0 auto 40px; text-align: center; }
.page-body .collapsible { border-radius: var(--radius); overflow: hidden; }
.contact-list li { display: flex; align-items: flex-start; margin: 10px 0; }
.contact-list i { color: var(--teal); margin-right: 10px; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }

/* ---------- Login / Sign up ---------- */
.auth { max-width: 460px; margin: 0 auto; }
.auth .social .btn { width: 100%; margin-bottom: 10px; }
.auth .divider-text { display: flex; align-items: center; color: var(--muted); margin: 18px 0; }
.auth .divider-text::before, .auth .divider-text::after { content: ""; flex: 1; height: 1px; background: #dde3e8; }
.auth .divider-text span { padding: 0 12px; font-size: .9rem; }
.auth .btn-large { width: 100%; }
.auth .switch-link { text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- Footer ---------- */
footer.page-footer { background: var(--navy); color: #c6d3dd; margin-top: 0; padding-top: 56px; }
footer.page-footer .footer-logo { height: 40px; margin-bottom: 12px; }
footer.page-footer h6 { text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; font-weight: 500; color: #8fb3cc; margin: 8px 0 16px; }
footer.page-footer ul { margin: 0 0 24px; }
footer.page-footer ul li { margin: 8px 0; }
footer.page-footer a { color: #dce6ee; }
footer.page-footer a:hover { color: #fff; }
footer.page-footer .contact-list i { color: #8fb3cc; font-size: 20px; }
footer.page-footer .social a { display: inline-flex; align-items: center; }
footer.page-footer .social i { font-size: 1.3rem; width: 26px; }
footer.page-footer .footer-copyright { background: rgba(255, 255, 255, .04); color: #8fa3b3; }

/* ---------- Carrier logos: auto-scrolling carousel + country finder ---------- */
.logo-carousel { display: flex; align-items: center; gap: 12px; max-width: 1000px; margin: 0 auto; }
.lc-viewport { flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lc-viewport.dragging { cursor: grabbing; }
.lc-track { display: flex; width: max-content; margin: 0; padding: 12px 0 16px; will-change: transform; }
.lc-track li { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 140px; height: 96px; margin-right: 16px; padding: 12px 12px 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.lc-country { max-width: 100%; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: .7rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-track img,
.country-ops img { display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.lc-btn { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d5dde5; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: background .15s, border-color .15s; }
.lc-btn:hover { background: var(--soft); border-color: #b9c6d2; }
.lc-btn:focus { outline: none; }
.lc-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.country-finder { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.country-finder label { font-size: 1rem; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.country-finder select.browser-default { width: 100%; max-width: 320px; height: 46px; padding: 0 16px; border: 1px solid #d5dde5; border-radius: 23px; background-color: #fff; color: var(--ink); font-size: 1rem; cursor: pointer; }
.country-finder select.browser-default:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 150, 243, .2); }
.country-ops { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.country-ops:not(:empty) { margin-top: 20px; }
.country-ops li { display: flex; align-items: center; justify-content: center; width: 140px; height: 76px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); animation: op-in .25s ease-out both; }
@keyframes op-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
    .lc-btn { display: none; }
    .lc-track li { width: 120px; height: 84px; margin-right: 12px; padding: 10px 8px 8px; gap: 6px; }
    .lc-country { font-size: .65rem; padding: 1px 6px; }
    .lc-track img, .country-ops img { height: 32px; }
    .country-ops li { width: calc((100% - 24px) / 3); height: 64px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .country-ops li { animation: none; } }

/* ---------- Tablet & phone refinements ---------- */
@media (max-width: 992px) {
    .hero { min-height: 70vh; }
    .section-pad { padding: 64px 0; }
}
@media (max-width: 600px) {
    .hero { min-height: calc(100vh - var(--nav-h)); }
    .section-pad { padding: 48px 0; }
    .page-head { padding: 40px 0 32px; }
    .page-body { padding: 40px 0 56px; }
    .panel { padding: 24px 18px; }
    .app-promo-media img { transform: none; }
    footer.page-footer ul li { margin: 0; }
    footer.page-footer ul li a { display: inline-block; padding: 7px 0; }
    footer.page-footer .footer-copyright { height: auto; line-height: 1.5; padding: 14px 0; }
}

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; margin: 0; padding: 32px 28px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.quote .quote-mark { font-size: 44px; color: var(--blue); opacity: .35; margin-left: -6px; }
.quote blockquote { flex: 1; margin: 4px 0 24px; padding: 0; border: 0; font-size: 1.2rem; font-weight: 300; line-height: 1.5; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; font-size: .95rem; font-weight: 500; color: var(--muted); padding-top: 16px; border-top: 1px solid #e6ebef; }
.quote .avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #e3f2fd; color: var(--blue); margin-right: 10px; }
.quote .avatar i { font-size: 20px; }
