/* ==========================================
   SKI-ANDORRA.NET - MAIN STYLESHEET
   ========================================== */

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

@media only screen and (max-width: 75em) {
    html { font-size: 56.25%; }
}

@media only screen and (max-width: 56.25em) {
    html { font-size: 60%; }
}

@media only screen and (min-width: 112.5em) {
    html { font-size: 75%; }
}

body {
    overscroll-behavior: none;
    box-sizing: border-box;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
}

::selection {
    background-color: #1e88e5;
    color: #fff;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.heading-primary {
    color: #fff;
    text-transform: uppercase;
    backface-visibility: hidden;
    margin-bottom: 6rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.heading-primary--main {
    display: block;
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: 0.5rem;
}

@media only screen and (max-width: 56.25em) {
    .heading-primary--main {
        font-size: 5rem;
        letter-spacing: 0.3rem;
    }
}

@media only screen and (max-width: 37.5em) {
    .heading-primary--main {
        font-size: 3.5rem;
        letter-spacing: 0.2rem;
    }
}

.heading-primary--sub {
    display: block;
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 400;
    margin-top: 1.5rem;
}

@media only screen and (max-width: 37.5em) {
    .heading-primary--sub {
        font-size: 1.8rem;
    }
}

.heading-secondary {
    font-size: 4.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 3rem;
    text-align: center;
}

@media only screen and (max-width: 37.5em) {
    .heading-secondary {
        font-size: 3rem;
    }
}

.heading-tertiary {
    font-size: 3rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 37.5em) {
    .heading-tertiary {
        font-size: 2.4rem;
    }
}

.paragraph {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #555;
}

.paragraph:not(:last-child) {
    margin-bottom: 2rem;
}

.paragraph--large {
    font-size: 2rem;
    text-align: center;
    max-width: 90rem;
    margin: 0 auto 4rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.btn {
    position: fixed;
    border: none;
    top: 20px;
    left: 20px;
    background: #fff;
    z-index: 2000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.bar {
    position: absolute;
    width: 50%;
    height: 4px;
    background: #1e3a8a;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    transition: all 0.4s ease-in-out;
}

.b1 { transform: translate(-50%, -8px); }
.b2 { opacity: 1; }
.b3 { transform: translate(-50%, 8px); }

.active .b1 { transform: translate(-50%) rotate(-135deg); }
.active .b2 { opacity: 0; }
.active .b3 { transform: translate(-50%) rotate(135deg); }

.menu {
    transition: all 0.4s ease-in-out;
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 100px 60px;
}

@media only screen and (max-width: 37.5em) {
    .menu {
        padding: 80px 30px;
    }
}

.active .menu {
    transform: translateX(0);
}

.menu a {
    color: #fff;
    transition: all 0.3s;
}

.menu a:hover {
    color: #fbbf24;
    transform: translateX(5px);
}

.menu > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
}

.menu > ul > li {
    min-width: 200px;
    font-size: 1.8rem;
    font-weight: 600;
}

.menu > ul > li > a {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 15px;
}

.menu > ul > li ul {
    margin-top: 10px;
}

.menu > ul > li ul li {
    margin: 8px 0;
    padding-left: 15px;
    font-size: 1.6rem;
    font-weight: 400;
}

/* ==========================================
   HEADER / HERO
   ========================================== */
header {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url(../images/bg.jpg) center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width: 56.25em) {
    header {
        height: 70vh;
        background-attachment: scroll;
    }
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    z-index: 100;
    background: linear-gradient(transparent, #fff);
}

header #layer1 {
    position: absolute;
    left: 40%;
    bottom: 0;
    width: 100%;
    transform: translateX(-50%);
    z-index: 10;
}

@media only screen and (max-width: 56.25em) {
    header #layer1 {
        display: none;
    }
}

header #layer2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9;
}

@media only screen and (max-width: 56.25em) {
    header #layer2 {
        display: none;
    }
}

header #text {
    position: absolute;
    width: 100%;
    z-index: 200;
    padding: 0 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ==========================================
   STICKY BAR
   ========================================== */
.sticky-bar {
    position: sticky;
    top: 0;
    background: #1e3a8a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 500;
    padding: 1.5rem 0;
}

.sticky-bar .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sticky-btn {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.sticky-btn:hover {
    background: #fbbf24;
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
main {
    padding: 60px 0;
}

section {
    padding: 60px 0;
    max-width: 120rem;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media only screen and (max-width: 37.5em) {
    section {
        padding: 40px 1.5rem;
    }
}

/* ==========================================
   WEATHER SECTION
   ========================================== */
.weather-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.weather-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.weather-card h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.weather-card .temp {
    font-size: 4rem;
    font-weight: 700;
    color: #1e88e5;
    margin: 1rem 0;
}

.weather-card .description {
    font-size: 1.6rem;
    color: #666;
    text-transform: capitalize;
}

.weather-card .details {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    color: #777;
}

.weather-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.weather-icon {
    font-size: 5rem;
    margin: 1rem 0;
}

.weather-card .feels-like {
    font-size: 1.4rem;
    color: #888;
    margin: 0.5rem 0;
}

.weather-card .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.4rem;
}

.weather-card .detail-item .label {
    font-weight: 600;
    color: #555;
}

.weather-card .detail-item .value {
    color: #777;
}

.weather-card .snow-condition {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e88e5;
}

.station-selector {
    margin: 2rem 0;
    text-align: center;
}

.station-selector label {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-right: 1rem;
}

.station-select {
    padding: 1rem 2rem;
    font-size: 1.6rem;
    border: 2px solid #1e88e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.station-select:hover {
    border-color: #1565c0;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

/* ==========================================
   WEBCAMS SECTION
   ========================================== */
.webcams-section {
    margin: 60px auto;
}

.webcams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.webcam-card {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    color: #fff;
    transition: all 0.3s;
}

.webcam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.webcam-card h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* ==========================================
   STATIONS SECTION
   ========================================== */
.station-highlight {
    background: #f8fafc;
    border-radius: 20px;
    padding: 4rem;
    margin: 4rem 0;
}

.station-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

@media only screen and (max-width: 56.25em) {
    .station-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    font-size: 1.6rem;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    color: #555;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 2rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sector-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    color: #333;
}

.sector-card:hover {
    border-color: #1e88e5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.2);
}

.sector-card h5 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.sector-card span {
    font-size: 1.4rem;
    color: #666;
}

/* ==========================================
   FORFAITS SECTION
   ========================================== */
.forfaits-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    padding: 50px 40px;
}

.forfaits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.forfait-card {
    background: #fff;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
}

.forfait-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.forfait-card.featured {
    border: 3px solid #fbbf24;
}

.forfait-card .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #fbbf24;
    color: #1e3a8a;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.forfait-card h3 {
    font-size: 2.4rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.forfait-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: #1e88e5;
    margin: 2rem 0;
}

.forfait-card ul {
    list-style: none;
    margin: 2rem 0;
}

.forfait-card ul li {
    font-size: 1.6rem;
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: #555;
}

.forfait-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* ==========================================
   ACTIVITIES SECTION
   ========================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.activity-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 3rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.activity-card:hover {
    border-color: #1e88e5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.1);
}

.activity-card h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.activity-card p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   ACCOMMODATION SECTION
   ========================================== */
.accommodation-section {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 50px 40px;
    margin: 60px auto;
}

#stay22-widget {
    min-height: 400px;
    margin: 3rem 0;
}

.accommodation-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ==========================================
   CTA & BENEFITS
   ========================================== */
.cta-section {
    margin: 80px auto;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.benefit-card h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.benefit-card p {
    font-size: 1.6rem;
    color: #666;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    margin: 60px auto;
    max-width: 90rem;
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #1e88e5;
}

.faq-item h3 {
    font-size: 1.9rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.faq-item p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.7;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-block;
    background: #1e88e5;
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #1e88e5;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #1e88e5;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: #1e88e5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.2);
}

.btn-link {
    display: inline-block;
    color: #1e88e5;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-link:hover {
    color: #1565c0;
    transform: translateX(5px);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: #1e3a8a;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.footer-section p {
    font-size: 1.4rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 1rem 0;
}

.footer-section ul li a {
    color: #e0e7ff;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: #fbbf24;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    max-width: 120rem;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-bottom p {
    font-size: 1.4rem;
    margin: 1rem 0;
}

.footer-bottom a {
    color: #e0e7ff;
    margin: 0 1rem;
    transition: all 0.3s;
}

.footer-bottom a:hover {
    color: #fbbf24;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
