/* ===================================
   BEST ACUPUNCTURE CLINIC - STYLES
   Charcoal + Coral | Clean Minimalist
===================================== */

/* ---- CSS Variables ---- */
:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --coral-dark: #E85555;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9F9F9;
    --gray-100: #F3F3F3;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-600: #6B6B6B;
    --gray-800: #2D2D2D;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; }

.lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ---- Utility Classes ---- */
.text-coral { color: var(--coral); }
.text-coral-light { color: var(--coral-light); }
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1rem;
}
.section-label-light { color: var(--coral-light); }
.section-title { margin-bottom: 1.5rem; }
.section-sub {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 500px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.btn-coral {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}
.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--coral);
    border-color: var(--coral);
}
.btn-outline:hover {
    background: var(--coral);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo-text { color: var(--charcoal); }
.navbar.scrolled .nav-links a { color: var(--charcoal); }
.navbar.scrolled .nav-links .btn-outline {
    color: var(--coral);
    border-color: var(--coral);
}

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

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

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--coral);
    border-radius: 50%;
    position: relative;
}
.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    background: var(--white);
    border-radius: 1px;
}
.logo-mark::before {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.logo-mark::after {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.03em;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--coral);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--charcoal);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.82) 0%,
        rgba(44, 44, 44, 0.70) 50%,
        rgba(26, 26, 26, 0.60) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 80px;
}

.hero-headline {
    color: var(--white);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---- Sections ---- */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-sub {
    margin: 0 auto;
}

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

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--coral);
    border-radius: 4px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-content .lead {
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--coral);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--gray-200);
}

/* ---- Services ---- */
.services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 4px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--coral);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 1.375rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---- Philosophy ---- */
.philosophy {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.philosophy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.88) 0%,
        rgba(44, 44, 44, 0.80) 100%
    );
    z-index: -1;
}

.philosophy-content {
    max-width: 720px;
}

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

.philosophy-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 48px;
}

.philosophy-features {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.philosophy-feature {
    flex: 1;
    min-width: 180px;
}

.feature-line {
    width: 40px;
    height: 2px;
    background: var(--coral);
    margin-bottom: 16px;
}

.philosophy-feature h4 {
    color: var(--white);
    margin-bottom: 8px;
}

.philosophy-feature p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-details {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--coral);
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-item a {
    color: var(--coral);
}
.contact-item a:hover {
    text-decoration: underline;
}

/* ---- Form ---- */
.contact-form-wrapper {
    background: var(--gray-50);
    padding: 48px;
    border-radius: 4px;
    border: 1px solid var(--gray-100);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

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

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--coral);
    border-radius: 50%;
    color: var(--coral);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ---- Map ---- */
.map-section {
    border-top: 1px solid var(--gray-100);
}

.map-container iframe {
    filter: grayscale(0.6) contrast(1.05);
    transition: var(--transition);
}

.map-container:hover iframe {
    filter: grayscale(0);
}

/* ---- Footer ---- */
.footer {
    background: var(--charcoal-dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
}

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

.footer-contact p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--coral);
}
.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.8125rem;
}

/* ---- Animations ---- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--charcoal) !important;
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .mobile-menu-btn.active span {
        background: var(--charcoal) !important;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-features {
        flex-direction: column;
        gap: 32px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .stat-divider {
        display: none;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        will-change: opacity, transform;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
