/* 
 * Dr. Marco Abud - Saúde da Mente
 * Estilos principais da landing page
 */

/* Reset e Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variáveis CSS */
:root {
    --color-teal: #00B4D8;
    --color-teal-dark: #0096C7;
    --color-teal-light: #E0F7FA;
    --color-navy: #0D1B2A;
    --color-white: #FFFFFF;
    --color-off-white: #F5F9FC;
    --color-text-dark: #1A1A2E;
    --color-text-body: #444444;
    --color-text-light: #FFFFFF;
    --color-whatsapp-green: #25D366;
    --color-youtube-red: #FF0000;

    --font-montserrat: 'Montserrat', sans-serif;
    --font-opensans: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-opensans);
    color: var(--color-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Tipografia */
.font-montserrat {
    font-family: var(--font-montserrat);
}

.font-opensans {
    font-family: var(--font-opensans);
}

/* Cores */
.bg-navy { background-color: var(--color-navy); }
.bg-white { background-color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }
.bg-teal { background-color: var(--color-teal); }
.bg-teal-dark { background-color: var(--color-teal-dark); }
.bg-whatsapp-green { background-color: var(--color-whatsapp-green); }
.bg-youtube-red { background-color: var(--color-youtube-red); }

.text-white { color: var(--color-white); }
.text-teal { color: var(--color-teal); }
.text-text-dark { color: var(--color-text-dark); }
.text-text-body { color: var(--color-text-body); }

/* Layout */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-20 { padding-top: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Width/Height */
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.min-h-screen { min-height: 100vh; }

/* Aspect Ratio */
.aspect-video { aspect-ratio: 16 / 9; }

/* Text */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

/* Background */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-navy { --tw-gradient-from: var(--color-navy); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(13, 27, 42, 0)); }
.from-teal { --tw-gradient-from: var(--color-teal); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 180, 216, 0)); }
.to-teal-dark { --tw-gradient-to: var(--color-teal-dark); }

/* Border */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border-2 { border-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-teal { border-color: var(--color-teal); }
.border-t { border-top-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Transitions */
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Opacity */
.opacity-90 { opacity: 0.9; }

/* Transform */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-\[1\.03\]:hover { transform: scale(1.03); }

/* Hover States */
.hover\:bg-teal-dark:hover { background-color: var(--color-teal-dark); }
.hover\:bg-teal:hover { background-color: var(--color-teal); }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:text-teal:hover { color: var(--color-teal); }
.hover\:text-white:hover { color: var(--color-white); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:bg-black\/10 { background-color: rgba(0, 0, 0, 0.1); }

/* Responsive - SM (640px) */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:w-\[350px\] { width: 350px; }
    .sm\:h-14 { height: 3.5rem; }
    .sm\:w-14 { width: 3.5rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Responsive - MD (768px) */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-end { align-items: flex-end; }
    .md\:gap-16 { gap: 4rem; }
    .md\:min-h-\[calc\(100vh-5rem\)\] { min-height: calc(100vh - 5rem); }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:justify-end { justify-content: flex-end; }
    .md\:w-\[420px\] { width: 420px; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:block { display: block; }
}

/* Responsive - LG (1024px) */
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:w-\[500px\] { width: 500px; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Responsive - XL (1280px) */
@media (min-width: 1280px) {
    .xl\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .xl\:w-\[550px\] { width: 550px; }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Colors with Opacity */
.bg-teal\/20 { background-color: rgba(0, 180, 216, 0.2); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-black\/0 { background-color: rgba(0, 0, 0, 0); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }

/* Club Section Gradient */
.bg-gradient-to-br.from-teal.to-teal-dark {
    background: linear-gradient(to bottom right, var(--color-teal), var(--color-teal-dark));
}

/* Navbar scroll effect handled by JS */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


/* Hero gradient overlay */
.bg-gradient-to-r.from-navy {
    background: linear-gradient(to right, var(--color-navy) 0%, rgba(13, 27, 42, 0.95) 50%, rgba(13, 27, 42, 0.7) 100%);
}

/* Mobile hero: keep headline clear below fixed navbar */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 5.5rem;
    }

    /*
     * Recorte PNG sem fundo: o limite inferior parece “cortado”.
     * Máscara em gradiente dissolve a imagem no fundo navy — sem cards/camadas decorativas.
     */
    .hero-section .hero-figure {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-section .hero-image {
        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 65%,
            rgba(0, 0, 0, 0.88) 76%,
            rgba(0, 0, 0, 0.45) 88%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 65%,
            rgba(0, 0, 0, 0.88) 76%,
            rgba(0, 0, 0, 0.45) 88%,
            transparent 100%
        );
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}

/* Hero desktop layout lock: reduce reflow on browser zoom */
@media (min-width: 1024px) {
    .hero-content {
        min-height: 860px;
        padding-top: 6.5rem;
        padding-bottom: 0;
        display: grid;
        grid-template-columns: minmax(540px, 1fr) 520px;
        align-items: end;
        column-gap: 2.5rem;
    }

    .hero-copy {
        max-width: 640px;
        min-width: 0;
        padding-right: 0;
        align-self: center;
    }

    .hero-figure-wrap {
        width: 520px;
        max-width: 520px;
        justify-content: flex-end;
        align-self: end;
    }

    .hero-figure {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .hero-image {
        width: 520px;
        max-width: 520px;
        min-width: 520px;
    }
}

/* Widths for hero image */
.w-\[280px\] { width: 280px; }

@media (min-width: 640px) {
    .sm\:w-\[350px\] { width: 350px; }
}

@media (min-width: 768px) {
    .md\:w-\[420px\] { width: 420px; }
}

@media (min-width: 1024px) {
    .lg\:w-\[500px\] { width: 500px; }
}

@media (min-width: 1280px) {
    .xl\:w-\[550px\] { width: 550px; }
}

/* Seção Sobre: foto alinhada ao inferior do card e da linha (como na hero) */
.about-doctor-figure-wrap {
    min-width: 0;
}

.about-doctor-card {
    min-height: 0;
    box-sizing: border-box;
    /* Padding só em cima e nas laterais: a foto encosta no limite inferior do card */
    padding: 1rem 1rem 0;
    line-height: 0;
}

.about-doctor-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    /* evita “faixa” fantasma abaixo de <img> em alguns navegadores */
    margin-bottom: 0;
}

/* Course card background */
.\[\#1A2B3C\] { background-color: #1A2B3C; }
.bg-\[1A2B3C\] { background-color: #1A2B3C; }

/* Custom padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

.tracking-\[0\.08em\] { letter-spacing: 0.08em; }

/* Max width for contact buttons */
.max-w-sm { max-width: 24rem; }

.text-left { text-align: left; }

/* Cards de contatos: mobile em coluna, desktop maior e proporcional */
.contact-cards-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .contact-cards-grid {
        gap: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .contact-cards-grid {
        flex-direction: row;
        align-items: stretch;
        gap: 1rem;
    }
}

.contact-cards-grid .contact-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 22rem;
    min-width: 0;
    padding: 0.875rem 1rem 0.95rem;
}

@media (min-width: 1024px) {
    .contact-cards-grid .contact-card {
        width: clamp(280px, 28vw, 340px);
        max-width: none;
        padding: 1.2rem 1.4rem 1.25rem;
    }
}

.contact-card-title {
    font-size: 0.78rem;
    line-height: 1.15;
}

.contact-card-note {
    font-size: 0.82rem;
    line-height: 1.25;
}

.contact-card-phone {
    margin-top: 0.45rem;
    font-size: 1.25rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .contact-card-title {
        font-size: 0.9rem;
    }

    .contact-card-phone {
        font-size: 1.9rem;
    }

    .contact-card-note {
        font-size: 0.95rem;
    }
}

/* Height for hero min-height */
@media (min-width: 768px) {
    .md\:min-h-\[calc\(100vh-5rem\)\] {
        min-height: calc(100vh - 5rem);
    }
}
