/* ================================================
   METABOLIC RESET CLINIC - VANILLA CSS
   ================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --background: hsl(120, 20%, 97%);
    --foreground: hsl(240, 20%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 20%, 15%);
    --primary: hsl(242, 40%, 34%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(96, 52%, 50%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(240, 15%, 94%);
    --muted-foreground: hsl(240, 10%, 45%);
    --accent: hsl(96, 45%, 93%);
    --accent-foreground: hsl(96, 52%, 25%);
    --border: hsl(240, 10%, 88%);
    --gold: hsl(96, 52%, 50%);
    --gold-foreground: hsl(0, 0%, 100%);
    --warm-bg: hsl(120, 15%, 96%);
    
    /* Border Radius */
    --radius: 0.75rem;
    
    /* Spacing */
    --container-padding: 1rem;
    --section-padding: 5rem 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 100px;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--warm-bg);
}

.section-services {
    background-color: var(--warm-bg);
}

.section-testimonials {
    background-color: var(--warm-bg);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .header-content {
        height: 80px;
        padding: 0 2rem;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-svg {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.logo-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem;
    color: #363479;
    display: block;
    line-height: 1.2;
}
.logo-title-footer{
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #363479;
    letter-spacing: 0.05em;
}
.logo-subtitle-footer {
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* Navigation */
#header.header{
    background-color: #ffffff;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(var(--foreground), 0.8);
    transition: color 0.2s;
}

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

.header-cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .header-cta {
        display: flex;
    }
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    z-index: 100;
}

.mobile-toggle:hover {
    opacity: 0.7;
}

.mobile-toggle:active {
    transform: scale(0.95);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
    display: block;
    max-height: 500px;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.mobile-nav-link {
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
}

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

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border);
}

.mobile-cta-btn {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

/* Button Sizes */
.btn-sm {
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 48px;
    padding: 0 2rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

.btn-xl {
    height: 56px;
    padding: 0 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: hsl(242, 40%, 30%);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--gold-foreground);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

.btn-gold:hover {
    background-color: hsl(96, 52%, 45%);
}

.btn-outline {
    border: 2px solid var(--primary-foreground);
    color: var(--primary-foreground);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-ghost {
    background-color: transparent;
}

.btn-ghost:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-xl .icon {
    width: 20px;
    height: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        hsla(242, 40%, 34%, 0.9),
        hsla(242, 40%, 34%, 0.7),
        hsla(242, 40%, 34%, 0.3)
    );
}

.hero-container {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-content {
    max-width: 42rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    position: relative;
    margin-top: -3rem;
    z-index: 10;
}

.trust-card {
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .trust-card {
        padding: 2rem;
    }
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .trust-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.trust-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.trust-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.875rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

.service-card {
    background-color: var(--card);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.service-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.service-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.service-long-description {
    display: none;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.service-long-description.open {
    display: block;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.service-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.service-toggle:hover {
    color: var(--secondary);
}

.chevron {
    transition: transform 0.2s;
}

.chevron.open {
    transform: rotate(180deg);
}

/* ===== PROCESS SECTION ===== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    position: relative;
    text-align: center;
}

.process-icon-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.process-icon svg {
    color: var(--primary);
}

.process-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.process-title {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.process-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    color: rgba(var(--primary), 0.2);
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.star {
    color: var(--gold);
}

.testimonial-text {
    font-size: 0.875rem;
    color: rgba(var(--foreground), 0.8);
    line-height: 1.6;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

.author-detail {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 5rem 0 6rem;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-bg-circles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(150, 200, 100, 0.2);
    filter: blur(60px);
}

.cta-circle-1 {
    width: 256px;
    height: 256px;
    top: -96px;
    right: -96px;
}

.cta-circle-2 {
    width: 256px;
    height: 256px;
    bottom: -96px;
    left: -96px;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.875rem;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

@media (min-width: 640px) {
    .cta-actions {
        flex-direction: row;
    }
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.2s;
}

.cta-phone-link:hover {
    color: rgba(255, 255, 255, 1);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.footer-brand {
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

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

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-list a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-list .icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    :root {
        --container-padding: 1rem;
    }
}
