/* Assets/CSS/Style.css - Ágape Premium */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --apple-blue: #f97316;
    --apple-gray: #86868b;
    --apple-bg: #ffffff;
    --itap-blue: #ea580c;
    --itap-glass: rgba(255, 255, 255, 0.75);
    --premium-gradient: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--apple-bg);
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism & Effects */
.premium-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.glass-tag {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
    padding: 10px 20px;
    border-radius: 98px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.card-3d {
    background: #ffffff;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-3d > * {
    transform: translateZ(20px);
}

/* UI Elements */
.btn-premium {
    background: #ea580c;
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: #c2410c;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
}

/* Robust Layout System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.lp-header {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.01);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lp-header.scrolled {
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.lp-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-hero {
    min-height: 100vh;
    padding-top: 240px;
    display: flex;
    align-items: center;
    background: white;
}

.lp-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lp-hero-content h1 {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 32px;
    color: #1d1d1f;
}

.lp-hero-content p {
    font-size: 20px;
    color: #86868b;
    margin-bottom: 40px;
    max-width: 500px;
}

#surveyModal {
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
}

.lp-photo-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f7;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.lp-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-gallery {
    padding: 120px 0;
    background: #fbfbfd;
}

.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.lp-card {
    background: white;
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.lp-form-section {
    padding: 120px 0;
    background: white;
}

.lp-form-card {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 60px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
    box-shadow: 0 40px 100px -20px rgba(249, 115, 22, 0.4);
}

.lp-form-left {
    padding: 80px;
}

.lp-form-right {
    padding: 80px;
    background: rgba(0, 0, 0, 0.05); /* Subtle dark overlay for split effect */
    backdrop-filter: blur(10px);
}

.lp-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.lp-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: #f97316;
    outline: none;
}

.lp-submit {
    width: 100%;
    padding: 20px;
    background: #f97316;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-submit:hover {
    background: #ea580c;
    transform: scale(1.02);
}

/* Utils */
.glass-tag {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 8px 16px;
    border-radius: 98px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Tratamentos & Serviços */
.treatment-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eefbff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.lp-card:hover .treatment-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.treatment-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.treatment-desc {
    color: #86868b;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: #f97316;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-link:hover {
    gap: 8px;
    opacity: 0.8;
}

.flex-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.alinhador-preview {
    flex: 1;
    height: 180px;
    background: linear-gradient(135deg, #f5f5f7 0%, #eefbff 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f97316;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(249, 115, 22, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #f97316;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
    line-height: 1.6;
}

/* Base Survey Modal Styles (Desktop) */
#surveyModal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#surveyModal > div {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    overflow: hidden;
}

#surveyForm {
    padding: 60px;
}

/* Mobile Responsiveness & Survey Modal Refined */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .lp-header {
        height: 80px;
        padding: 0 15px;
    }

    .logo-brand img {
        height: 100px !important;
        margin-top: -15px !important;
    }

    .lp-header nav {
        gap: 15px !important;
    }

    .lp-header nav a {
        font-size: 9px !important;
        letter-spacing: 0.5px !important;
    }

    .lp-hero {
        padding-top: 100px !important;
        min-height: auto !important;
    }

    .lp-hero .container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 40px 15px;
    }

    .lp-hero-content h1 {
        font-size: 32px;
        letter-spacing: -2px;
    }

    .lp-grid {
        grid-template-columns: 1fr;
    }

    #surveyModal {
        padding: 0 !important;
        overflow-y: auto !important;
        align-items: flex-start !important;
        display: none; /* Keep base state, flex handles the rest */
    }

    #surveyModal > div {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        background: white;
        position: relative;
    }

    #surveyForm {
        padding: 30px 20px 80px !important; /* Extra bottom padding for thumb reach */
    }

    #stepHeader {
        margin-bottom: 20px !important; /* More compact header */
    }

    #stepHeader h2 {
        font-size: 22px !important;
    }

    .survey-step div {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .survey-step label:has(input) {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 14px 16px !important; 
        margin-bottom: 8px !important;
        white-space: normal !important;
        word-break: break-word !important;
        font-size: 14px !important;
        width: 100% !important;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 15px; /* Ensure rounded corners on mobile */
    }

    .survey-step label:not(:has(input)) {
        font-size: 10px !important;
        margin-top: 15px !important;
    }

    .survey-step label:has(input:checked) {
        background: rgba(249, 115, 22, 0.08) !important;
        border-color: #f97316 !important;
    }

    .lp-form-card {
        grid-template-columns: 1fr;
    }

    /* Ajustes Novos Tratamentos */
    .lp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .lp-card[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .flex-layout {
        flex-direction: column;
        gap: 20px;
    }

    .alinhador-preview {
        width: 100%;
        height: 150px;
    }

    .lp-grid[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer-sep {
        display: none;
    }

    .footer-bottom-text {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Animações de Revelação */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delayed {
    transition-delay: 0.2s;
}

/* Ajustes Premium nos Cards */
.lp-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 48px;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.03);
}

.lp-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 30px 60px -20px rgba(249, 115, 22, 0.1);
}

.treatment-title {
    font-size: 24px;
    letter-spacing: -1px;
}

/* Treatment Showcase (Tabs) */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 20px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.showcase-tabs::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 16px 32px;
    background: #ffffff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #86868b;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08); /* 3D effect */
}

.tab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    color: #1d1d1f;
}

.tab-item.active {
    background: #f97316;
    color: #ffffff;
    transform: translateY(2px); /* Pressed effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) inset, 0 2px 4px rgba(249, 115, 22, 0.2);
    border-color: #f97316;
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 100px;
    min-height: 550px;
    position: relative;
    width: 100%;
}

.showcase-image-side {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.circular-frame {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 20px solid #ffffff;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.12);
}

.circular-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.circular-frame:hover img {
    transform: scale(1.05);
}

.showcase-info-side {
    flex: 1;
}

.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .lp-header {
        height: 80px;
    }
    
    .lp-header.scrolled {
        height: 70px;
    }

    .logo-brand img {
        height: 100px !important;
        margin-top: -10px !important;
    }

    .showcase-tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        mask-image: none;
        overflow-x: visible;
        padding-bottom: 20px;
    }

    .tab-item {
        flex-shrink: 0;
        padding: 12px 24px;
    }

    .lp-hero {
        padding-top: 140px !important;
        min-height: auto !important;
    }

    .lp-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .showcase-flex {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .showcase-content {
        min-height: auto !important;
        display: block !important;
        position: relative !important;
        padding-bottom: 20px !important;
        height: auto !important;
    }

    .showcase-slide {
        position: relative;
        display: none;
        opacity: 0;
        transform: translateY(10px);
        padding-bottom: 20px;
        width: 100%;
    }

    .additional-services {
        margin-top: 40px !important;
        padding-top: 40px !important;
    }

    .showcase-slide.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        position: relative !important;
        z-index: 10;
    }
    
    .circular-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .lp-photo-placeholder {
        order: -1; /* Image first on mobile hero */
        animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-20px); }
    }
}

/* Logo Zoom Effect */
.logo-zoom img {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.logo-zoom img:hover {
    transform: scale(1.15);
}
/* Reveal Animations 2026 */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Notebook Premium Aesthetic - Tasks Module */
.notebook-container {
    background: #ffffff; /* Cleaner White Paper */
    min-height: 80vh;
    border-radius: 24px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.04),
        0 4px 10px rgba(0,0,0,0.02);
    position: relative;
    padding: 80px 60px 80px 120px;
    border: 1px solid rgba(0,0,0,0.05);
    background-image: linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 100% 40px;
    line-height: 40px;
}

.notebook-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    width: 2px;
    height: 100%;
    background: rgba(249, 115, 22, 0.15); /* Brand margin line */
}

.notebook-header {
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
}

.notebook-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 48px; /* Larger */
    font-weight: 900; /* Bolder */
    letter-spacing: -2px;
    color: #1d1d1f;
}

.notebook-entry-row {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 40px; /* Matched to new line height */
    position: relative;
    margin-bottom: 0;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.notebook-entry-row:hover {
    background: rgba(249, 115, 22, 0.02);
}

.notebook-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e1e1e1;
    border-radius: 6px; /* Square with slight rounding */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.notebook-check.completed {
    background: #f97316;
    border-color: #f97316;
    transform: scale(1.05);
}

.notebook-check svg {
    width: 12px;
    height: 12px;
    color: white;
}

.notebook-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding-top: 0;
}

.notebook-text.completed {
    text-decoration: line-through;
    text-decoration-color: #f97316;
    text-decoration-thickness: 2px;
    color: #d1d1d6;
    opacity: 0.8;
}

.btn-new-note {
    background: #f97316;
    color: white;
    padding: 16px 32px;
    border-radius: 98px;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-new-note:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
    background: #ea580c;
}

.task-modal-content {
    background: white;
    padding: 60px;
    border-radius: 40px;
    width: 100%;
    max-width: 500px;
}

.task-modal-input {
    width: 100%;
    font-size: 24px;
    font-weight: 900;
    border: none;
    border-bottom: 2px solid #f2f2f7;
    padding: 20px 0;
    margin-bottom: 40px;
    outline: none;
    color: #1d1d1f;
    transition: border-color 0.3s ease;
}

.task-modal-input:focus {
    border-color: #f97316;
}

.task-modal-input::placeholder {
    color: #d1d1d6;
}

.notebook-delete {
    opacity: 0;
    transition: opacity 0.2s;
    color: #ccc;
    cursor: pointer;
}

.notebook-entry-row:hover .notebook-delete {
    opacity: 1;
}

.notebook-delete:hover {
    color: #ff4d4f;
}

@media (max-width: 768px) {
    .notebook-container {
        padding: 40px 20px 40px 60px;
    }
    .notebook-container::before {
        left: 45px;
    }
}
