/* ============================================
   UPS Telecom — Stylesheet
   Based on original animated parallax design
   ============================================ */

/* --- Reset --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em,
img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u,
i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0;
    font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
*, *:before, *:after { box-sizing: border-box; }

/* --- Base --- */
body, input, select, textarea {
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15pt;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.75em;
}

body {
    background: #348cb2;
    -webkit-text-size-adjust: none;
}

body.loading * {
    animation: none !important;
}

a {
    transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-bottom: dotted 1px;
    color: inherit;
    text-decoration: none;
}
a:hover { border-color: transparent; }
a:focus-visible { outline: 2px solid rgba(150,210,255,0.8); outline-offset: 2px; border-radius: 2px; }

/* --- Focus Indicators (accessibility) --- */
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid rgba(150,210,255,0.8);
    outline-offset: 2px;
}

.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: #fff; color: #348cb2; padding: 8px 16px;
    border-radius: 4px; font-weight: 600; z-index: 9999;
}
.skip-link:focus { top: 16px; }

/* --- Icon (FontAwesome) --- */
.icon { text-decoration: none; position: relative; }
.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}
.icon > .label { display: none; }

/* ============================================
   ANIMATED BACKGROUND (original)
   ============================================ */

@keyframes bg {
    0% { transform: translate3d(0,0,0); }
    100% { transform: translate3d(-2250px,0,0); }
}

#bg {
    animation: bg 60s linear infinite;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    background: #348cb2 url("images/bg.jpg") bottom left;
    background-repeat: repeat-x;
    background-size: 2250px auto;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 6750px;
    z-index: 0;
}

@keyframes overlay-fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#overlay {
    animation: overlay-fade 1.5s 1.5s forwards;
    background-attachment: fixed, fixed;
    background-image: url("images/overlay-pattern.png"), url("images/overlay.svg");
    background-position: top left, center center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header--scrolled {
    background: rgba(20,50,80,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-nav {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
}

.site-nav__logo {
    font-size: 1.2rem; font-weight: 900; color: #fff;
    text-decoration: none; border: none; letter-spacing: 0.02em;
}
.site-nav__logo:hover { border: none; }

.site-nav__menu {
    display: flex; align-items: center; gap: 4px; list-style: none;
}
.site-nav__link {
    display: block; padding: 8px 16px; font-size: 0.85rem; font-weight: 400;
    color: rgba(255,255,255,0.85); border: none; border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.site-nav__link:hover { color: #fff; background: rgba(255,255,255,0.1); border: none; }
.site-nav__link--cta {
    background: rgba(255,255,255,0.15); font-weight: 600; border-radius: 100px;
    padding: 8px 20px; margin-left: 8px;
}
.site-nav__link--cta:hover { background: rgba(255,255,255,0.25); }

.site-nav__toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px;
}
.site-nav__toggle span {
    display: block; width: 24px; height: 2px; background: #fff;
    border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.site-nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-nav__toggle--active span:nth-child(2) { opacity: 0; }
.site-nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO (original centered style)
   ============================================ */

@keyframes hero-fade {
    0% { transform: translate3d(0,1em,0); opacity: 0; }
    100% { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes nav-icons {
    0% { transform: translate3d(0,1em,0); opacity: 0; }
    100% { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.hero {
    position: relative; z-index: 2;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}

.hero__inner {
    animation: hero-fade 1s 2.25s forwards;
    backface-visibility: hidden;
    opacity: 0;
    position: relative;
    padding: 0 24px;
    max-width: 800px;
}

.hero__title {
    font-size: 4.35em;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1em;
    margin-bottom: 0.15em;
}

.hero__tagline {
    font-size: 1.25em;
    opacity: 0.75;
    margin: 0.75em 0 0.25em 0;
}

.hero__nav { margin: 1.5em 0 0 0; }

.hero__nav ul { display: flex; justify-content: center; gap: 8px; }

.hero__nav li {
    animation: nav-icons 0.5s ease-in-out forwards;
    backface-visibility: hidden;
    display: inline-block;
    height: 5.35em;
    line-height: 5.885em;
    opacity: 0;
    width: 5.35em;
}
.hero__nav li:nth-child(1) { animation-delay: 2.5s; }
.hero__nav li:nth-child(2) { animation-delay: 2.75s; }
.hero__nav li:nth-child(3) { animation-delay: 3s; }

.hero__nav a {
    -webkit-tap-highlight-color: transparent;
    border: 0;
    display: inline-block;
}
.hero__nav a:before {
    transition: all 0.2s ease-in-out;
    border-radius: 100%;
    border: solid 1px #fff;
    display: block;
    font-size: 1.75em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    width: 2.5em;
}
.hero__nav a:hover { font-size: 1.1em; }
.hero__nav a:hover:before { background-color: rgba(255,255,255,0.175); }
.hero__nav a:active:before { background-color: rgba(255,255,255,0.35); }

.hero__stats {
    display: flex; justify-content: center; gap: 32px;
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__stat { text-align: center; }
.hero__stat-num { font-size: 2em; font-weight: 900; line-height: 1; }
.hero__stat-suf { font-size: 1.2em; font-weight: 700; }
.hero__stat-lbl { display: block; font-size: 0.75em; opacity: 0.65; margin-top: 4px; }

.hero__scroll {
    display: inline-block; margin-top: 2em; border: none;
    font-size: 2em; opacity: 0.4;
    animation: bounce-down 2s ease-in-out infinite;
    animation-delay: 4s;
}
.hero__scroll:hover { opacity: 0.8; border: none; }

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.section {
    position: relative; z-index: 2;
    padding: 100px 0;
    background: rgba(10,30,55,0.88);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.section--alt {
    background: rgba(5,20,40,0.92);
}

.container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.section__title {
    font-size: 2.4em; font-weight: 900; letter-spacing: -0.03em;
    line-height: 1.2; text-align: center; margin-bottom: 0.4em;
}

.section__sub {
    font-size: 1.1em; text-align: center; opacity: 0.7;
    max-width: 680px; margin: 0 auto 3em auto; line-height: 1.8;
}

/* --- Service Cards --- */
.cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}

.card__icon {
    font-size: 2em; margin-bottom: 16px; opacity: 0.8;
    color: rgba(150,210,255,0.9);
}

.card__title {
    font-size: 1.2em; font-weight: 700; margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card__text {
    font-size: 0.88em; opacity: 0.7; line-height: 1.8; margin-bottom: 16px;
}

.card__stats {
    display: flex; flex-wrap: wrap; gap: 12px;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08);
}
.card__stats span {
    font-size: 0.78em; font-weight: 600; opacity: 0.6;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
}

/* --- Values --- */
.values {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; margin-bottom: 60px;
}

.value {
    padding: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: border-color 0.3s, transform 0.3s;
}
.value:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }

.value__icon {
    font-size: 1.8em; margin-bottom: 12px; display: block;
    color: rgba(150,210,255,0.8);
}

.value h3 { font-size: 1.05em; font-weight: 700; margin-bottom: 8px; }
.value p { font-size: 0.88em; opacity: 0.65; line-height: 1.75; }

/* --- Industries --- */
.industries { text-align: center; }
.industries__title { font-size: 1em; font-weight: 600; margin-bottom: 20px; opacity: 0.8; }
.industries__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.industries__tags span {
    padding: 6px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 0.82em; font-weight: 400; opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
}
.industries__tags span:hover { opacity: 1; border-color: rgba(255,255,255,0.3); }

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}

.contact-info { padding-top: 8px; }

.contact-detail {
    display: flex; align-items: center; gap: 12px;
    font-size: 1em; margin-bottom: 24px;
}
.contact-detail i { font-size: 1.3em; opacity: 0.7; }

.contact-promise {
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border-left: 3px solid rgba(150,210,255,0.4);
    border-radius: 0 8px 8px 0;
}
.contact-promise p { font-size: 0.85em; opacity: 0.65; line-height: 1.7; }

/* --- Form --- */
.contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 36px;
    display: flex; flex-direction: column; gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
    font-size: 0.82em; font-weight: 600; opacity: 0.85;
}
.optional { font-weight: 300; opacity: 0.5; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.92em;
    font-weight: 300;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(150,210,255,0.5);
    box-shadow: 0 0 0 3px rgba(150,210,255,0.1);
}
.form-group input.input--error,
.form-group select.input--error,
.form-group textarea.input--error { border-color: #f5465d !important; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23ffffff' fill='none' stroke-width='1.5' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-group select option { background: #1a3050; color: #fff; }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-error { font-size: 0.76em; color: #f5465d; min-height: 0; }
.form-error:not(:empty) { min-height: 1.2em; }

.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- Button --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 32px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95em; font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative; overflow: hidden;
    width: 100%;
}
.btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); }

.btn__loader {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
.btn--loading .btn__text { opacity: 0; }
.btn--loading .btn__loader { display: block; position: absolute; }
.btn--loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status { text-align: center; font-size: 0.88em; font-weight: 500; min-height: 0; }
.form-status--success { color: #5ae0a0; }
.form-status--error { color: #f5465d; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative; z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 40px 0 24px;
}

.site-footer__grid {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-footer__name {
    font-size: 1.1em; font-weight: 900; display: block; margin-bottom: 4px;
}
.site-footer__brand p { font-size: 0.82em; opacity: 0.5; }

.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a {
    font-size: 0.85em; opacity: 0.5; border: none;
    transition: opacity 0.2s;
}
.site-footer__links a:hover { opacity: 1; border: none; }

.site-footer__copy {
    text-align: center; padding-top: 16px;
    font-size: 0.78em; opacity: 0.4;
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    animation: fade-in-fallback 0s 3s forwards;
}
.fade-in--visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes fade-in-fallback { to { opacity: 1; transform: translateY(0); } }

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 1680px) {
    body, input, select, textarea { font-size: 13pt; }

    @keyframes bg {
        0% { transform: translate3d(0,0,0); }
        100% { transform: translate3d(-1500px,0,0); }
    }
    #bg { background-size: 1500px auto; width: 4500px; }
}

@media screen and (max-width: 1280px) {
    body, input, select, textarea { font-size: 12pt; }

    @keyframes bg {
        0% { transform: translate3d(0,0,0); }
        100% { transform: translate3d(-750px,0,0); }
    }
    #bg { background-size: 750px auto; width: 2250px; }
}

@media screen and (max-width: 768px) {
    .site-nav__toggle { display: flex; z-index: 101; }
    .site-nav__menu {
        position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
        height: 100vh; background: rgba(10,25,50,0.97);
        flex-direction: column; align-items: flex-start;
        padding: 80px 28px 28px;
        transition: right 0.3s ease; gap: 4px;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .site-nav__menu--open { right: 0; }
    .site-nav__link { width: 100%; padding: 12px 0; font-size: 1em; }
    .site-nav__link--cta { margin-left: 0; margin-top: 12px; text-align: center; }

    .hero__title { font-size: 2.5em; }
    .hero__stats { flex-wrap: wrap; gap: 20px; }
    .hero__stat { min-width: 80px; }

    .cards { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 24px; }

    .site-footer__grid { flex-direction: column; gap: 16px; text-align: center; }
}

@media screen and (max-width: 736px) {
    body { min-width: 320px; }
    body, input, select, textarea { font-size: 11pt; }

    @keyframes bg {
        0% { transform: translate3d(0,0,0); }
        100% { transform: translate3d(-300px,0,0); }
    }
    #bg { background-size: 300px auto; width: 900px; }

    .hero__title { font-size: 2em; }
    .hero__nav a:hover { font-size: 1em; }
    .hero__nav a:active { font-size: 1em; }

    .section { padding: 60px 0; }
    .section__title { font-size: 1.8em; }
}

@media screen and (max-width: 480px) {
    @keyframes bg {
        0% { transform: translate3d(0,0,0); }
        100% { transform: translate3d(-412.5px,0,0); }
    }
    #bg { background-size: 412.5px auto; width: 1237.5px; }

    .hero__title { font-size: 1.7em; }
    .hero__nav { padding: 0 1em; }
}

/* ============================================
   REDUCED MOTION (accessibility)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #bg { animation: none !important; }
    .fade-in { opacity: 1; transform: none; }
}
