/* 
 * Dr. Gabriel Cerqueira - Elite Medical Website
 * Design System: Royal Blue & Gold
 */

:root {
    /* Colors */
    --primary-color: #0a2e52;
    /* Deep Navy/Royal Blue */
    --secondary-color: #c5a059;
    /* Gold/Bronze */
    --secondary-light: #e6c88a;
    /* Lighter Gold for accents */
    --text-dark: #333333;
    /* Dark Charcoal */
    --text-light: #666666;
    /* Medium Grey */
    --white: #ffffff;
    --off-white: #f8f9fa;
    /* Very light grey for backgrounds */
    --dark-bg: #0f172a;
    /* Dark background for footer/hero */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

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

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.text-gold {
    color: var(--secondary-color);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

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

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(10, 46, 82, 0.8), rgba(10, 46, 82, 0.6)), url('../assets/images/IMG_9335.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    /* Header height */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.hero .subheadline {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    opacity: 1;
    color: var(--white);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--secondary-color);
    border-right: 4px solid var(--secondary-color);
    z-index: -1;
}

/* Services Section */
.services {
    background-color: var(--off-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.testimonials h2 {
    color: var(--white);
}

.testimonials p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
}

.testimonial-item {
    padding: 2rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* FAQ */
.faq {
    background-color: var(--white);
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-answer {
    margin-top: 1rem;
    display: none;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.plus-icon::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-item.active .plus-icon::after {
    content: '-';
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Contact Section */
.contact {
    background-color: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background: var(--white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.contact-info-item p {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-icon {
    background-color: var(--off-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero .subheadline {
        font-size: 1.15rem;
        font-weight: 500;
        color: var(--white);
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
        margin-bottom: 2rem;
    }

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

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    nav ul.active {
        display: flex;
    }

    .about-grid,
    .contact-wrapper,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-buttons {
        flex-direction: column;
    }

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