/* ==========================================================================
   HISTÓRIA DO CASAL - CSS PROFISSIONAL
   ========================================================================== */

/* Variáveis CSS */
:root {
    --hero-height: 90vh;
    --section-spacing: 3rem;
    --container-width: 1200px;
    --content-gap: 2rem;
    --border-radius: 8px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */
.historia-amor-section {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.historia-amor-hero {
    height: var(--hero-height);
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%),
                url('../images/a-e-maria-pb.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.historia-amor-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.historia-amor-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.historia-amor-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.historia-amor-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.historia-amor-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ==========================================================================
   SECTIONS PRINCIPAIS
   ========================================================================== */
.historia-amor-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.historia-amor-section:first-of-type {
    padding-top: calc(var(--section-spacing) + 2rem);
}

.historia-amor-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.95);
}

.historia-amor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    opacity: 0.6;
}

.historia-amor-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--content-gap);
    align-items: center;
}

.historia-amor-content.reverse {
    direction: rtl;
}

.historia-amor-content.reverse > * {
    direction: ltr;
}

/* ==========================================================================
   IMAGENS
   ========================================================================== */
.historia-amor-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.historia-amor-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    display: block;
}

.historia-amor-image img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.historia-amor-image.quarta-foto img {
    max-width: 70%;
}

/* ==========================================================================
   TEXTO
   ========================================================================== */
.historia-amor-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.historia-amor-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.2;
    margin:  1rem 0;
    position: relative;
    text-align: center;
}

.historia-amor-text p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.historia-amor-quote {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    font-style: italic;
    color: var(--color-text);
   
    border-left: 2px solid var(--color-primary-dark);
    padding-left: 1.5rem !important;
    margin: 0.1rem 0 !important;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    line-height: 1.6;
    text-align: justify;
   
}

.historia-amor-text a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    
    transition: var(--transition);
    padding-bottom: 2px;
}

.historia-amor-text a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   SEÇÃO DE VÍDEO
   ========================================================================== */
.video-section {
    padding: calc(var(--section-spacing) + 2rem) 0;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
}

.video-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.video-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-section-header p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--color-border);
    background: #000;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.video-wrapper iframe {
    width: 100%;
    height: clamp(350px, 56.25vw, 550px);
    border: none;
    display: block;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   BOTÃO DE VÍDEO
   ========================================================================== */
.video-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: #93c572;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(147, 197, 114, 0.3);
    border: 2px solid #93c572;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.video-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 197, 114, 0.4);
    background: #7ab555;
    border-color: #7ab555;
    color: white;
}

.video-link-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(147, 197, 114, 0.3);
}

.video-link-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 197, 114, 0.3), 0 3px 12px rgba(147, 197, 114, 0.3);
    color: white;
}

.video-link-icon {
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.video-link-btn:hover .video-link-icon {
    transform: scale(1.1);
}

.video-link-text {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(147, 197, 114, 0.3);
    }
    50% {
        box-shadow: 0 3px 15px rgba(147, 197, 114, 0.5);
    }
}

.video-link-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

.video-link-btn:hover {
    animation: none;
}

/* ==========================================================================
   RESPONSIVIDADE PROFISSIONAL
   ========================================================================== */

/* Tablets grandes */
@media (max-width: 1200px) {
    :root {
        --container-width: 1000px;
        --content-gap: 2.5rem;
    }
    
    .historia-amor-content {
        padding: 0 1.5rem;
    }
    
    .historia-amor-image img {
        max-width: 400px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    :root {
        --hero-height: 80vh;
        --section-spacing: 3rem;
        --content-gap: 2rem;
    }
    
    .historia-amor-hero {
        background-attachment: scroll;
    }
    
    .historia-amor-hero-content {
        max-width: 700px;
        padding: 0 1.5rem;
    }
    
    .historia-amor-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .historia-amor-content.reverse {
        direction: ltr;
    }
    
    .historia-amor-text {
        order: 2;
        gap: 0.5rem;
        padding: 0 2rem;
    }
    
    .historia-amor-image {
        order: 1;
        justify-content: center;
        width: 100%;
    }
    
    .historia-amor-text h2 {
        text-align: center;
    }
    
    .historia-amor-text p {
        text-align: justify;
    }
    
    .historia-amor-quote {
        text-align: center;
        border-left: none;
        padding: 0.2rem 0 !important;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        text-align: justify;
    }
    
    .historia-amor-image img {
        max-width: 80%;
        width: 100%;
        height: auto;
        border-radius: calc(var(--border-radius) + 4px);
        object-fit: cover;
    }
    
    .video-section {
        padding: 3rem 0;
    }
    
    .video-section .container {
        padding: 0 1.5rem;
    }
    
    .video-section-header {
        margin-bottom: 2.5rem;
    }
    
    .video-wrapper {
        max-width: 800px;
    }
    
    .video-link-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tablets pequenos */
@media (max-width: 768px) {
    :root {
        --section-spacing: 2.5rem;
        --content-gap: 1.5rem;
    }
    
    .historia-amor-hero-content {
        padding: 0 1rem;
    }
    
    .historia-amor-content {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .historia-amor-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .historia-amor-image img {
        max-width: 80%;
        width: auto;
        height: auto;
        border-radius: calc(var(--border-radius) + 2px);
        object-fit: cover;
    }
    
    .video-section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .video-wrapper iframe {
        height: clamp(300px, 56.25vw, 450px);
    }
    
    .video-link-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .video-link-icon {
        font-size: 0.8rem;
    }
}

/* Dispositivos móveis grandes */
@media (max-width: 600px) {
    :root {
        --hero-height: 70vh;
        --section-spacing: 2rem;
    }
    
    .historia-amor-hero-content {
        padding: 0 0.8rem;
    }
    
    .historia-amor-content {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }
    
    .historia-amor-text {
        gap: 0.5rem;
    }
    
    .historia-amor-text h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    
    .historia-amor-text p {
        font-size: clamp(1rem, 1.1vw, 1.2rem);
    }
    
    .historia-amor-quote {
        font-size: clamp(1.2rem, 2vw, 1.4rem);
       
        text-align: justify;
    }
    
    .historia-amor-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .historia-amor-image img {
        max-width: 85%;
        width: auto;
        height: auto;
        border-radius: calc(var(--border-radius) + 1px);
        object-fit: cover;
    }
    
    .video-section {
        padding: 2rem 0;
    }
    
    .video-section .container {
        padding: 0 1rem;
    }
    
    .video-section-header h2 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
    
    .video-section-header p {
        font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    }
    
    .video-wrapper iframe {
        height: clamp(250px, 56.25vw, 400px);
    }
    
    .video-link-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .video-link-icon {
        font-size: 0.75rem;
    }
}

/* Dispositivos móveis pequenos */
@media (max-width: 480px) {
    :root {
        --hero-height: 60vh;
        --section-spacing: 1.5rem;
    }
    
    .historia-amor-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    .historia-amor-hero p {
        font-size: clamp(0.9rem, 1.2vw, 1rem);
    }
    
    .historia-amor-content {
        padding: 0 0.5rem;
        gap: 1.2rem;
    }
    
    .historia-amor-text h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    
    .historia-amor-text p {
        font-size: clamp(0.9rem, 1vw, 1rem);
    }
    
    .historia-amor-quote {
        font-size: clamp(1rem, 2vw, 1.2rem);
       
        text-align: justify;
    }
    
    .historia-amor-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .historia-amor-image img {
        max-width: 90%;
        width: auto;
        height: auto;
        border-radius: calc(var(--border-radius) - 1px);
        object-fit: cover;
    }
    
    .video-section {
        padding: 1.5rem 0;
    }
    
    .video-section .container {
        padding: 0 0.8rem;
    }
    
    .video-section-header {
        margin-bottom: 1.5rem;
    }
    
    .video-section-header h2 {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
    
    .video-section-header p {
        font-size: clamp(0.85rem, 1vw, 0.95rem);
        line-height: 1.5;
    }
    
    .video-wrapper {
        max-width: 100%;
        border-width: 2px;
    }
    
    .video-link-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.2rem;
        border-radius: 18px;
    }
    
    .video-link-icon {
        font-size: 0.7rem;
    }
    
    .video-link-wrapper {
        margin-top: 1rem;
    }
}

/* Dispositivos muito pequenos */
@media (max-width: 360px) {
    :root {
        --hero-height: 60vh;
    }
    
    .historia-amor-hero h1 {
        font-size: 1.8rem;
    }
    
    .historia-amor-hero p {
        font-size: 0.95rem;
    }
    
    .historia-amor-text h2 {
        font-size: 1.3rem;
    }
    
    .historia-amor-text p {
        font-size: 1rem;
    }
    
    .historia-amor-quote {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .historia-amor-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .historia-amor-image img {
        max-width: 80%;
        width: auto;
        height: auto;
        border-radius: calc(var(--border-radius) - 3px);
        object-fit: cover;
    }
    
    .video-section-header h2 {
        font-size: 1.3rem;
    }
    
    .video-section-header p {
        font-size: clamp(0.9rem, 1vw, 1rem);
        line-height: 1.6;
    }
    
    .video-link-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        gap: 0.15rem;
        border-radius: 15px;
    }
    
    .video-link-icon {
        font-size: 0.65rem;
    }
    
    .video-link-wrapper {
        margin-top: 0.8rem;
    }
}

/* Orientação paisagem em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --hero-height: 100vh;
    }
    
    .historia-amor-hero h1 {
        font-size: 1.8rem;
    }
    
    .historia-amor-hero p {
        font-size: 0.95rem;
    }
}

/* Telas de alta resolução */
@media (min-width: 1400px) {
    :root {
        --container-width: 1320px;
        --content-gap: 1rem;
        --section-spacing: 3.5rem;
    }
    
    .historia-amor-text h2 {
        font-size: 2.5rem;
    }
    
    .historia-amor-text p {
        font-size: 1.2rem;
    }
    
    .historia-amor-quote {
        font-size: 1.3rem;
    }
    
    .video-section .container {
        max-width: 1200px;
    }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .historia-amor-scroll-indicator {
        animation: none;
    }
    
    .historia-amor-image img {
        transition: none;
    }
    
    .historia-amor-text a {
        transition: none;
    }
    
    .video-link-btn {
        animation: none;
        transition: none;
    }
    
    .video-link-btn:hover {
        transform: none;
    }
    
    .video-link-btn:hover .video-link-icon {
        transform: none;
    }
}

/* Foco melhorado para navegação por teclado */
.historia-amor-text a:focus,
.historia-amor-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.video-section .historia-amor-text h2 {
    color: #93c572;
}

