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

:root {
    --primary-teal: #2C929D;
    --white: #FFFFFF;
    --black: #000000;
    --accent-orange: #FF5733;
    --light-grey: #F0F5F5;
    --accent-orange-hover: #CC4628;
    --font-primary: 'Montserrat', 'Arial', sans-serif;
    --header-height: 80px;
    --transition-smooth: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

a:hover { color: var(--accent-orange); }

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

ul { list-style: none; }

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

.section {
    padding: 60px 0;
    position: relative;
}

.bg-white { background-color: var(--white); }
.bg-light-grey { background-color: var(--light-grey); }
.bg-teal { background-color: var(--primary-teal); color: var(--white); }

/* ========================================
   HEADER STYLES
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    transition: all var(--transition-smooth);
}

.header-top {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

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

.header-top-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-top-left a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-top-left a:hover {
    color: var(--light-grey);
}

.header-main {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: var(--white);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-teal);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav ul {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: var(--black);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a.active {
    color: var(--primary-teal);
}

.header-cta {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right var(--transition-smooth);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    text-align: center;
}

.mobile-nav .btn-primary {
    margin-top: 20px;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
}

/* Sticky Header */
.header.sticky .header-top {
    display: none;
}

.header.sticky .header-main {
    height: 65px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 51, 0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border-color: var(--primary-teal);
}

.btn-secondary:hover {
    background-color: var(--light-grey);
    color: var(--primary-teal);
}

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

.btn-white:hover {
    background-color: var(--light-grey);
}

/* Magnetic Button Effect */
.btn-magnetic {
    position: relative;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-teal);
    padding-top: var(--header-height);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 146, 157, 0.85) 0%, rgba(44, 146, 157, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-se-habla {
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

/* ========================================
   SPLIT SECTION (Problem/Solution)
   ======================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.split-section-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.split-section-content h2 {
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.split-section-content p {
    color: var(--black);
    margin-bottom: 15px;
}

.problem-list {
    margin: 20px 0;
}

.problem-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
}

.problem-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-smooth);
    border: 1px solid var(--light-grey);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 146, 157, 0.15);
}

.service-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #3db3b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.service-card h3 {
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.service-card ul {
    text-align: left;
    margin-top: 15px;
}

.service-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
}

/* ========================================
   DR. STEPHENSON SECTION
   ======================================== */
.dr-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.dr-section-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(44, 146, 157, 0.2);
}

.dr-section-content h2 {
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.dr-section-content .credentials {
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================================
   BENEFITS GRID
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-smooth);
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, var(--primary-teal) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--primary-teal);
}

.benefit-card h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
}

/* ========================================
   PROCESS STEPS
   ======================================== */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #3db3b8 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    color: var(--primary-teal);
    margin-bottom: 8px;
}

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonials-section {
    background-color: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    opacity: 0.3;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.testimonial-dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #1a6b76 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-banner h2 {
    margin-bottom: 15px;
    color: var(--white);
}

.cta-banner p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #3db3b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.contact-card h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
}

.contact-card p {
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--black);
}

.contact-card a:hover {
    color: var(--primary-teal);
}

/* ========================================
   FORM STYLES
   ======================================== */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--primary-teal);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-grey);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-smooth);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(44, 146, 157, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-top: 20px;
}

.form-success.show {
    display: block;
}

/* ========================================
   ACCORDION STYLES
   ======================================== */
.accordion {
    margin-top: 40px;
}

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

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-smooth);
}

.accordion-header:hover {
    background-color: var(--light-grey);
}

.accordion-header svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-teal);
    transition: transform var(--transition-smooth);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.7;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-brand-contact {
    margin-top: 20px;
}

.footer-brand-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-brand-contact a {
    color: var(--white);
}

.footer-brand-contact a:hover {
    color: var(--primary-teal);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-teal);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-float-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    animation: float 3s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #1a6b76 100%);
    color: var(--white);
    padding: 150px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    position: relative;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.section-header p {
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ========================================
   CONDITION LIST
   ======================================== */
.condition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.condition-category {
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.condition-category h3 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.condition-category ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.condition-category li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.condition-category li::before {
    content: '✓';
    color: var(--primary-teal);
    font-weight: bold;
}

/* ========================================
   RESOURCES SECTION
   ======================================== */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.resource-link:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(44, 146, 157, 0.15);
}

.resource-link-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #3db3b8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-link-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.resource-link-text h4 {
    color: var(--black);
    margin-bottom: 3px;
    font-size: 1rem;
}

.resource-link-text span {
    font-size: 0.85rem;
    color: #888;
}

/* ========================================
   ARTICLE GRID
   ======================================== */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-smooth);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 146, 157, 0.15);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 25px;
}

.article-card-content h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
}

.article-card-content p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.article-card-content a {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   MAP SECTION
   ======================================== */
.map-section {
    width: 100%;
    height: 400px;
    background-color: var(--light-grey);
    border-radius: 15px;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========================================
   CONFETTI
   ======================================== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   BREATHING EXERCISE
   ======================================== */
.breathing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.breathing-overlay.active {
    display: flex;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #3db3b8 100%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.5); }
    50% { transform: scale(1); }
}

.breathing-text {
    color: var(--white);
    margin-top: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.breathing-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ========================================
   PREFERS REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .animate-fade,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        animation: none;
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    
    .section { padding: 80px 0; }
    
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dr-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 2fr);
        gap: 25px;
    }
    
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .process-step {
        flex: 1 1 300px;
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .condition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-wrapper {
        padding: 50px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    
    .section { padding: 100px 0; }
    
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .process-step {
        flex: 1 1;
    }
    
    .condition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Header (< 768px) */
@media (max-width: 1023px) {
    .header-main {
        padding: 0 20px;
    }
    
    .header-nav ul,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero {
        padding: 120px 20px 60px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }
    
    .header-top-left {
        display: none;
    }
    
    .header-logo img {
        height: 45px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}