/* ==========================================================================
   Arrels - Página Contacte
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section - Parallax
   -------------------------------------------------------------------------- */
.contacte-hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url('../img/img14.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) {
    .contacte-hero-section {
        background-attachment: fixed;
        padding: 0;
    }
}

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

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

.contacte-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: 1.5rem;
}

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

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

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

.contacte-hero-section .hero-subtitle {
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding: 0.75rem 0;
    max-width: 700px;
    line-height: 1.6;
}

.contacte-hero-section .hero-subtitle::before,
.contacte-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);
}

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

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

@media (min-width: 768px) {
    .contacte-hero-section .hero-subtitle {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

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

@media (min-width: 992px) {
    .contacte-hero-section .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 0.25em;
    }

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

/* --------------------------------------------------------------------------
   Contacte Main Section - Parallax amb Glassmorphism
   -------------------------------------------------------------------------- */
.contacte-main-section {
    position: relative;
    background-image: url('../img/img14.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 5rem 0;
}

@media (min-width: 992px) {
    .contacte-main-section {
        background-attachment: fixed;
        padding: 8rem 0;
    }
}

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

/* Glassmorphism Box */
.contacte-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .contacte-box {
        padding: 3.5rem 3rem;
    }
}

@media (min-width: 992px) {
    .contacte-box {
        padding: 4rem;
    }
}

/* Header */
.contacte-header {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contacte-header {
        margin-bottom: 3.5rem;
    }
}

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

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

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

.contacte-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

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

/* --------------------------------------------------------------------------
   Formulari
   -------------------------------------------------------------------------- */
.contacte-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contacte-form input,
.contacte-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contacte-form input:focus,
.contacte-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(224, 153, 0, 0.25);
}

.contacte-form input::placeholder,
.contacte-form textarea::placeholder {
    color: #999;
}

.contacte-form textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c78500 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(224, 153, 0, 0.4);
    width: 100%;
}

@media (min-width: 576px) {
    .btn-enviar {
        width: auto;
    }
}

.btn-enviar: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);
}

/* --------------------------------------------------------------------------
   Info de Contacte
   -------------------------------------------------------------------------- */
.contacte-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-block:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c78500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(224, 153, 0, 0.3);
}

.info-icon i {
    font-size: 1.4rem;
    color: #ffffff;
}

.info-icon-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.info-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 153, 0, 0.4);
}

/* --------------------------------------------------------------------------
   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/img9.webp');
}

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

/* Fade In on Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   Form Flash Message Styles - Override for dark background
   -------------------------------------------------------------------------- */
.contacte-main-section .form-flash-success {
    background-color: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.contacte-main-section .form-flash-error {
    background-color: rgba(248, 113, 113, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
}

/* --------------------------------------------------------------------------
   Captcha Styles - Override for contact page (dark theme)
   -------------------------------------------------------------------------- */
.contacte-main-section .captcha-container label {
    color: rgba(255, 255, 255, 0.8);
}

.contacte-main-section .captcha-box {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.contacte-main-section .captcha-challenge {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--contacte-primary);
    color: var(--contacte-primary);
}

.contacte-main-section .captcha-box input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.contacte-main-section .captcha-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contacte-main-section .captcha-box input:focus {
    border-color: var(--contacte-primary);
    box-shadow: 0 0 0 3px rgba(165, 28, 21, 0.2);
}

.contacte-main-section .captcha-refresh {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.contacte-main-section .captcha-refresh:hover {
    border-color: var(--contacte-primary);
    color: var(--contacte-primary);
}
