/* 
    Dra. Andrea Santos - Invisalign Site
    Design System & Base Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;600;700&family=Raleway:wght@200;300;400;600;700;800&display=swap');

:root {
    /* Colors */
    --primary-color: #4a4e57;
    --secondary-color: #65bc7b;
    --accent-color: #212934;
    --text-color: #4a4e57;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-black: #000000;
    --bg-gray: #f9f9fb;
    --border-color: #e2e2e2;

    /* Fonts */
    --font-main: 'Raleway', sans-serif;
    --font-heading: 'Exo', sans-serif;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-black);
}

/* Specific Section Styles */

/* Top Bar */
.top-bar {
    background-color: var(--bg-white);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hero */
.hero {
    background-color: var(--bg-black);
    color: var(--text-light);
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-content .subtitle {
    font-size: 2.3rem;
    font-weight: 200;
    margin-bottom: 2rem;
}

.hero-benefits {
    margin-top: 2rem;
    border-top: 3px solid var(--text-light);
    padding-top: 2rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 1.1rem;
}

.hero-benefits i {
    color: var(--text-light);
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* About */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 25px;
    box-shadow: 3px 3px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.about-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content .bio {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-color);
}

/* Features (How it works) */
.features {
    background-color: var(--bg-white);
}

.features-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.features-header .divider {
    width: 200px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--bg-black);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* Video Section */
.video-section {
    background-color: var(--bg-black);
    color: var(--text-light);
}

.video-container {
    max-width: 900px;
    margin: 40px auto 0;
    aspect-ratio: 16/9;
    background: #111;
}

/* Process Accordion */
.process {
    background-color: var(--bg-gray);
}

.accordion {
    max-width: 800px;
    margin: 40px auto;
}

.accordion-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-gray);
}

.accordion-header.active {
    background-color: var(--bg-gray);
    color: var(--primary-color);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 20px 0;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-white);
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Location */
.location {
    padding-bottom: 0;
}

.map-container {
    width: 100%;
    height: 500px;
    background: #eee;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    font-size: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid, .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.8rem;
    }
    
    .hero-benefits {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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