/* ========================================
   BRITO MEDICAL GROUP - MAIN STYLESHEET
   Color Palette:
   - Ivory: #F4EFE8 (Dominant - 60-70%)
   - Chocolate: #4A3527 (Titles, buttons, accents)
   - Gold: #C6A75E (Fine details, separators)
   ======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ivory: #F4EFE8;
    --chocolate: #4A3527;
    --gold: #C6A75E;
    --white: #FFFFFF;
    --light-gray: #F9F7F5;
    --text-dark: #2C2C2C;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--chocolate);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--chocolate);
    opacity: 0.9;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(74, 53, 39, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--chocolate);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--chocolate);
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

.btn-nav {
    background-color: var(--chocolate);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--gold);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--chocolate);
    border-radius: 3px;
    transition: var(--transition);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--chocolate);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 53, 39, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--chocolate);
    border-color: var(--chocolate);
}

.btn-secondary:hover {
    background-color: var(--chocolate);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 53, 39, 0.2);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* === SECTIONS === */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--white);
}

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

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--ivory) 0%, var(--white) 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, var(--gold) 1px, transparent 1px),
        linear-gradient(-45deg, var(--gold) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.03;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--chocolate);
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--chocolate) 0%, #5e4433 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    color: var(--ivory);
    max-width: 700px;
    margin: 0 auto;
}

/* === BENEFITS GRID === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--ivory);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(74, 53, 39, 0.15);
    border-color: var(--gold);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* === SERVICES HIGHLIGHT === */
.services-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--ivory);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gold);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(198, 167, 94, 0.2);
}

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

/* === SERVICES DETAIL === */
.services-list {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-detail-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--gold);
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: 0 10px 40px rgba(74, 53, 39, 0.1);
    transform: translateX(10px);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

.service-detail-card > p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--chocolate);
}

.service-benefits {
    list-style: none;
    padding-left: 0;
}

.service-benefits li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.service-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.25rem;
}

/* === PROCESS STEPS === */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--chocolate), var(--gold));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
}

.step h4 {
    margin-bottom: 0.75rem;
}

/* === WHY CHOOSE GRID === */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border-top: 4px solid var(--gold);
    transition: var(--transition);
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 53, 39, 0.12);
}

.why-item h4 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* === MISSION & VISION === */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.mv-card {
    background-color: var(--ivory);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--gold);
}

.mv-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mv-card p {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* === VALUES GRID === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--ivory);
}

.value-card:hover {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(198, 167, 94, 0.15);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === FOUNDER SECTION === */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.founder-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(74, 53, 39, 0.15);
    border: 5px solid var(--gold);
}

.founder-content h2 {
    margin-bottom: 1.5rem;
}

.founder-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* === CONTACT === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gold);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--chocolate);
}

.contact-item p,
.contact-item a {
    color: var(--text-dark);
}

.contact-item a:hover {
    color: var(--gold);
}

/* === CONTACT FORM === */
.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(74, 53, 39, 0.1);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
}

.contact-form-intro {
    margin: -0.75rem 0 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--chocolate);
    font-weight: 600;
}

.form-group input:not([type="checkbox"]):not(.honeypot-field),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--ivory);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--ivory);
}

.form-group input:not([type="checkbox"]):not(.honeypot-field):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.form-group.has-error input:not([type="checkbox"]):not(.honeypot-field),
.form-group.has-error select,
.form-group.has-error textarea,
.checkbox-group.has-error {
    border-color: #b42318;
}

.form-group.is-valid input:not([type="checkbox"]):not(.honeypot-field),
.form-group.is-valid select,
.form-group.is-valid textarea,
.checkbox-group.is-valid {
    border-color: #2f855a;
}

.field-error {
    display: none;
    margin-top: 0.5rem;
    color: #b42318;
    font-size: 0.9rem;
}

.form-group.has-error .field-error {
    display: block;
}

.checkbox-group {
    padding: 1rem 1.1rem;
    background-color: var(--ivory);
    border: 2px solid var(--ivory);
    border-radius: 10px;
    transition: var(--transition);
    width: 100%;
}

.checkbox-label-wrap {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    align-items: start;
    column-gap: 0.85rem;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
}

.contact-checkbox {
    display: block !important;
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    margin-top: 0.2rem;
    accent-color: var(--gold);
    flex-shrink: 0;
    justify-self: start;
}

.checkbox-label-wrap span {
    display: block;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
}

.checkbox-group a {
    color: var(--chocolate);
    font-weight: 600;
}

.checkbox-group a:hover {
    color: var(--gold);
}

.honeypot-wrapper {
    position: absolute !important;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.honeypot-field {
    display: block !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    min-height: 1px !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.form-message a {
    color: inherit;
    font-weight: 600;
}

/* === LEGAL PAGES === */
.legal-shell {
    max-width: 920px;
    margin: 0 auto;
}

.legal-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 30px rgba(74, 53, 39, 0.08);
}

.legal-meta {
    color: var(--chocolate);
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card h3 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-card p,
.legal-card li {
    font-size: 1rem;
    line-height: 1.9;
}

.legal-card ul {
    list-style: disc;
    padding-left: 1.35rem;
    margin: 1rem 0 1.5rem;
}

.legal-card ol {
    padding-left: 1.35rem;
    margin: 1rem 0 1.5rem;
}

.legal-card a {
    color: var(--chocolate);
    font-weight: 600;
}

.legal-card a:hover {
    color: var(--gold);
}

/* === MAP === */
.map-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(74, 53, 39, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--chocolate) 0%, #5e4433 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--ivory);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* === FOOTER === */
.footer {
    background-color: var(--chocolate);
    color: var(--ivory);
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
}

.footer-col p {
    color: var(--ivory);
    opacity: 0.9;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--ivory);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(198, 167, 94, 0.3);
}

.footer-bottom p {
    color: var(--ivory);
    opacity: 0.8;
    margin: 0;
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-highlight,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .benefits-grid,
    .why-choose-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.875rem 2rem;
    }
    
    .btn-lg {
        padding: 1rem 2.25rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .legal-card {
        padding: 2rem 1.5rem;
    }
    
    .mv-card,
    .service-detail-card {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* === UTILITIES === */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
