/* ==========================================================================
   Arrels - Estilos Página Serveis
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section - Parallax
   -------------------------------------------------------------------------- */
.serveis-hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url('../img/img5.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 15px 60px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .serveis-hero-section {
        background-attachment: fixed;
        padding: 0;
    }
}

.serveis-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.serveis-hero-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
}

.serveis-hero-section .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #E09900 0%, #ffb833 25%, #ffffff 50%, #ffb833 75%, #E09900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
    word-wrap: break-word;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .serveis-hero-section .hero-title {
        font-size: 4rem;
        letter-spacing: 0.2em;
    }
}

@media (min-width: 992px) {
    .serveis-hero-section .hero-title {
        font-size: 5.5rem;
        letter-spacing: 0.25em;
    }
}

@media (min-width: 1200px) {
    .serveis-hero-section .hero-title {
        font-size: 7rem;
        letter-spacing: 0.3em;
    }
}

.serveis-hero-section .hero-subtitle {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ffffff;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding: 0.75rem 0;
}

.serveis-hero-section .hero-subtitle::before,
.serveis-hero-section .hero-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.serveis-hero-section .hero-subtitle::before {
    top: 0;
}

.serveis-hero-section .hero-subtitle::after {
    bottom: 0;
}

@media (min-width: 768px) {
    .serveis-hero-section .hero-subtitle {
        font-size: 1.25rem;
        letter-spacing: 0.35em;
    }

    .serveis-hero-section .hero-subtitle::before,
    .serveis-hero-section .hero-subtitle::after {
        width: 120px;
    }
}

@media (min-width: 992px) {
    .serveis-hero-section .hero-subtitle {
        font-size: 1.4rem;
        letter-spacing: 0.4em;
    }

    .serveis-hero-section .hero-subtitle::before,
    .serveis-hero-section .hero-subtitle::after {
        width: 150px;
    }
}

.serveis-hero-section .hero-buttons {
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.serveis-hero-section .hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-family: var(--font-family-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    border-width: 2px;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 280px;
    text-align: center;
}

.serveis-hero-section .hero-buttons .btn i {
    font-size: 1.1rem;
}

.serveis-hero-section .hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c78500 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(224, 153, 0, 0.4);
}

.serveis-hero-section .hero-buttons .btn-primary:hover,
.serveis-hero-section .hero-buttons .btn-primary:active {
    background: linear-gradient(135deg, #ffb833 0%, var(--color-secondary) 100%);
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(224, 153, 0, 0.5);
}

@media (min-width: 768px) {
    .serveis-hero-section .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .serveis-hero-section .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .serveis-hero-section .hero-buttons .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .serveis-hero-section .hero-buttons .btn:hover {
        transform: translateY(-3px);
    }
}

/* --------------------------------------------------------------------------
   Sessions Section
   -------------------------------------------------------------------------- */
.sessions-section {
    background-color: var(--color-bg-light);
}

.sessions-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .sessions-section .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .sessions-section .section-title {
        font-size: 3.5rem;
    }
}

.sessions-section .section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .sessions-section .section-subtitle {
        font-size: 1.75rem;
    }
}

.sessions-section .section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sessions-section .section-description {
        font-size: 1.2rem;
    }
}

/* Session Cards */
.session-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
}

.session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.session-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.session-card:hover::before {
    transform: scaleX(1);
}

.session-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(165, 28, 21, 0.3);
    transition: all 0.4s ease;
}

.session-card:hover .session-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(165, 28, 21, 0.4);
}

.session-icon i {
    font-size: 2.2rem;
    color: #ffffff;
}

.session-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.session-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Consultes Section
   -------------------------------------------------------------------------- */
.consultes-section {
    position: relative;
    min-height: 500px;
    background-image: url('../img/img4.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .consultes-section {
        min-height: 600px;
        background-attachment: fixed;
    }
}

.consultes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.consultes-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .consultes-content {
        padding: 4rem 3rem;
    }
}

.consultes-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .consultes-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .consultes-title {
        font-size: 3.5rem;
    }
}

.consultes-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .consultes-text {
        font-size: 1.25rem;
    }
}

.consultes-slogan {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .consultes-slogan {
        font-size: 1.75rem;
    }
}

.consultes-section .btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c78500 100%);
    border-color: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(224, 153, 0, 0.4);
    transition: all 0.4s ease;
}

.consultes-section .btn-primary:hover {
    background: linear-gradient(135deg, #ffb833 0%, var(--color-secondary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(224, 153, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Tarifes Section
   -------------------------------------------------------------------------- */
.tarifes-section {
    background-color: #ffffff;
}

.tarifes-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .tarifes-section .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .tarifes-section .section-title {
        font-size: 3.5rem;
    }
}

/* Tarifa Icons */
.tarifa-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c78500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(224, 153, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.tarifa-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.tarifa-card:hover .tarifa-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(224, 153, 0, 0.4);
}

.tarifa-icon-alt {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ffb833 100%);
    box-shadow: 0 10px 30px rgba(224, 153, 0, 0.4);
}

.tarifa-card-alt:hover .tarifa-icon-alt {
    box-shadow: 0 15px 40px rgba(224, 153, 0, 0.5);
}

/* Tarifa Cards */
.tarifa-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarifa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165, 28, 21, 0.03) 0%, rgba(224, 153, 0, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tarifa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--color-secondary);
}

.tarifa-card:hover::before {
    opacity: 1;
}

.tarifa-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tarifa-title {
        font-size: 1.2rem;
    }
}

.tarifa-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.tarifa-mode {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tarifa-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tarifa-price {
        font-size: 3.5rem;
    }
}

.tarifa-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
    vertical-align: super;
}

.tarifa-price-alt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tarifa-price-alt {
        font-size: 1.75rem;
    }
}

/* Tarifa Card Alt (for Informes and Consultes) */
.tarifa-card-alt {
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
}

.tarifa-card-alt .tarifa-title {
    color: #ffffff;
}

.tarifa-card-alt .tarifa-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.tarifa-card-alt .tarifa-price {
    color: #ffffff;
}

.tarifa-card-alt .tarifa-currency {
    color: var(--color-secondary);
}

.tarifa-card-alt .tarifa-price-alt {
    color: var(--color-secondary);
}

.tarifa-card-alt:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(165, 28, 21, 0.3);
}

.tarifa-card-alt::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Tarifes Note */
.tarifes-note {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Galeria Section
   -------------------------------------------------------------------------- */
.galeria-section {
    overflow: hidden;
}

.galeria-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    position: relative;
}

.galeria-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease;
}

.galeria-image:hover {
    transform: scale(1.05);
}

.galeria-image:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .galeria-image {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .galeria-image {
        height: 350px;
    }
}

.galeria-1 {
    background-image: url('../img/img6.webp');
}

.galeria-2 {
    background-image: url('../img/img7.webp');
}

.galeria-3 {
    background-image: url('../img/img8.webp');
}

.galeria-4 {
    background-image: url('../img/img2.webp');
}

/* --------------------------------------------------------------------------
   Contacte Footer Section (copied from inici.css for consistency)
   -------------------------------------------------------------------------- */
.contacte-footer-section {
    position: relative;
    background-image: url('../img/img9.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

@media (min-width: 992px) {
    .contacte-footer-section {
        background-attachment: fixed;
    }
}

.formulari-box {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.formulari-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.formulari-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
}

.formulari-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .formulari-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .formulari-title {
        font-size: 3.5rem;
    }
}

.formulari-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .formulari-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .formulari-text {
        font-size: 1.35rem;
    }
}

.contact-form .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(224, 153, 0, 0.3);
}

.contact-form .form-control::placeholder {
    color: var(--color-text-muted);
}

.contact-form .btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background-color: #c78500;
    border-color: #c78500;
}

.contacte-info-box {
    position: relative;
    padding: 3rem 4rem;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacte-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 5px);
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.contacte-info-box > * {
    position: relative;
    z-index: 1;
}

.contacte-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .contacte-info-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .contacte-info-title {
        font-size: 3.5rem;
    }
}

.contacte-item {
    margin-bottom: 2rem;
}

.contacte-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .contacte-label {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .contacte-label {
        font-size: 1.6rem;
    }
}

.contacte-label i {
    color: var(--color-secondary);
}

.contacte-detail {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    padding-left: 1.75rem;
}

@media (min-width: 768px) {
    .contacte-detail {
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .contacte-detail {
        font-size: 1.35rem;
    }
}

.contacte-detail a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.contacte-detail a:hover {
    color: var(--color-secondary);
}

.contacte-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: var(--color-secondary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Disable parallax on touch devices
   -------------------------------------------------------------------------- */
@media (hover: none) {
    .serveis-hero-section,
    .consultes-section,
    .contacte-footer-section {
        background-attachment: scroll;
    }
}
