/* 
  Odontologia Sinzato - Design System (Apple-Level) 
  Baseado nos 10 Princípios de Jony Ive e Carga Cognitiva Zero
*/

:root {
    /* Brand Colors */
    --color-primary: #1D7C52;       /* Verde Clássico (Ação principal) */
    --color-primary-dark: #10442D;  /* Verde Profundo */
    --color-accent: #208658;        /* Verde Vivo (Hover) */
    --color-highlight: #FFFF00;     /* Amarelo Ouro (Atenção) */
    
    /* Neutrals */
    --color-surface: #FFFFFF;
    --color-surface-alt: #F9FAFB;
    --color-surface-gray: #EEEEEE;
    --color-text-main: #1F2937;
    --color-text-muted: #4B5563;
    --color-text-light: #9CA3AF;
    --color-footer-bg: #1A1A2E;     /* Grafite suave, no lugar do #303030 */
    --color-white: #FFFFFF;

    /* Typography */
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing (Modular scale) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 96px;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Motion */
    --transition-fast: 150ms ease-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =========================================
   Layout & Utility
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.center {
    text-align: center;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-inline: auto;
}

.section-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* =========================================
   Components (Atoms/Molecules)
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    font-size: 1.125rem;
    padding: 18px 36px;
}

.btn-full {
    width: 100%;
}

.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}

/* =========================================
   Header (Organism)
========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding var(--transition-normal);
}

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

.logo {
    height: 50px;
    width: auto;
}

.mobile-menu-btn {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    animation: fadeUp 1s var(--transition-slow) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
}

/* =========================================
   Clínica Section
========================================= */
.clinica {
    background-color: var(--color-surface-alt);
}

.clinica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.clinica-images {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.img-main {
    position: absolute;
    width: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-secondary {
    position: absolute;
    width: 60%;
    bottom: -20px;
    right: 0;
    z-index: 2;
    border: 8px solid var(--color-surface-alt);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.img-wrapper:hover {
    transform: translateY(-5px);
}
.img-wrapper:hover img {
    transform: scale(1.05);
}

/* =========================================
   Especialidades Section
========================================= */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo-overlay {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.card-logo-overlay.text-only {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.card-logo {
    height: 40px;
}

.card-logo-square {
    height: 60px;
}

.card-logo-wide {
    height: 80px;
}

.card-content {
    padding: var(--spacing-xl);
}

.card-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Agendamento Section
========================================= */
.agendamento {
    position: relative;
    padding: 120px 0;
}

.agendamento-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    z-index: 1;
}

.agendamento-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(16, 68, 45, 0.85); /* Verde escuro com opacidade */
    z-index: 2;
}

.agendamento-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: stretch;
}

.agendamento-info {
    padding: var(--spacing-2xl);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-container {
    flex-grow: 1;
    width: 100%;
    min-height: 250px;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.agendamento-card {
    width: 100%;
    padding: var(--spacing-2xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agendamento-card .section-title {
    color: var(--color-primary-dark);
}

.agendamento-form {
    margin-top: var(--spacing-xl);
    text-align: left;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-family-main);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 124, 82, 0.2);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding-top: var(--spacing-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--color-text-light);
    max-width: 300px;
}

.footer h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    color: var(--color-text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* =========================================
   Video Banner Section
========================================= */
.video-banner {
    width: 100%;
    height: 700px;
    padding-top: 80px; /* Offset for fixed header */
    display: block;
    line-height: 0;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   Highlight Bar Section
========================================= */
.highlight-bar {
    width: 100%;
    height: 70px;
    background-color: var(--color-primary-dark);
}

.highlight-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    height: 100%;
}

.highlight-text {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.highlight-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.125rem;
    transition: color var(--transition-fast);
}

.highlight-phone:hover {
    color: var(--color-highlight);
}

.phone-icon {
    width: 20px;
    height: 20px;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 992px) {
    .clinica-grid {
        grid-template-columns: 1fr;
    }
    .clinica-images {
        min-height: 500px;
        margin-top: var(--spacing-2xl);
    }
    .img-main { width: 90%; }
    .img-secondary { width: 70%; bottom: 0; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--color-primary-dark);
        cursor: pointer;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-2xl) var(--spacing-md);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-normal);
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .main-nav.nav-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .video-banner {
        height: 400px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .agendamento-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .highlight-container {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }
    .highlight-text {
        font-size: 1rem;
    }
    .highlight-phone {
        font-size: 1rem;
    }
}
