/* ============================================
   Dr. Homan Cheng — Plastic Surgery
   Styles — Monochromatic B&W Palette
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --pale-gray: #f0eeeb;
    --light-gray: #d9d5d0;
    --soft-gray: #a8a29e;
    --medium-gray: #6b6560;
    --charcoal: #2c2825;
    --deep-black: #1a1715;
    --heading-font: 'Cormorant Garamond', 'Georgia', serif;
    --body-font: 'Montserrat', 'Helvetica Neue', sans-serif;
}

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

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-divider {
    width: 50px;
    height: 1px;
    background: var(--light-gray);
    margin: 0 auto;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--pale-gray);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-title {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--medium-gray);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--charcoal);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--charcoal);
}

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

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

.mobile-menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--body-font);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--deep-black);
    border-color: var(--deep-black);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

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

.btn-light {
    background: transparent;
    color: var(--medium-gray);
    border-color: var(--light-gray);
    padding: 0.6rem 1.5rem;
    font-size: 0.65rem;
}

.btn-light:hover,
.btn-light.active-filter {
    background: var(--charcoal);
    color: var(--pure-white);
    border-color: var(--charcoal);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--deep-black);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--deep-black) 100%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 2rem;
}

.hero-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 2rem;
}

.hero-title {
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--soft-gray);
    margin: 2rem auto;
}

.hero-subtitle {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--off-white);
}

.page-header-title {
    margin-bottom: 1rem;
}

.page-header-subtitle {
    font-size: 0.95rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- Bio Layout ---------- */
.bio-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.bio-image-wrapper {
    position: relative;
}

.bio-image {
    position: relative;
    overflow: hidden;
}

.bio-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(15%);
    transition: filter 0.5s ease;
}

.bio-image img:hover {
    filter: grayscale(0%);
}

.bio-image-accent {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--light-gray);
    z-index: -1;
}

.bio-content h2 {
    margin-bottom: 0.5rem;
}

.bio-credentials {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 2rem;
}

.bio-content p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.bio-highlights {
    list-style: none;
    margin-top: 1.5rem;
}

.bio-highlights li {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    color: var(--medium-gray);
    border-bottom: 1px solid var(--pale-gray);
    padding-left: 1.5rem;
    position: relative;
}

.bio-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--light-gray);
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--pale-gray);
    background: var(--pure-white);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--light-gray);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--soft-gray);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 0.8;
}

.service-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

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

.service-card p {
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.learn-more {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.learn-more:hover {
    border-color: var(--charcoal);
}

/* ---------- Service Detail ---------- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail.reversed {
    direction: rtl;
}

.service-detail.reversed > * {
    direction: ltr;
}

.service-detail-image {
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-illustration {
    width: 100%;
    min-height: 260px;
    border: 1px solid var(--pale-gray);
    background: linear-gradient(160deg, #faf9f8 0%, #f3f1ee 100%);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.expertise-icon {
    width: min(180px, 70%);
    height: auto;
    opacity: 0.95;
}

.service-detail-content h2 {
    margin-bottom: 1rem;
}

.service-detail-content p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin-bottom: 1rem;
}

.service-list li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--medium-gray);
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--light-gray);
}

/* ---------- Quote Section ---------- */
.quote-section {
    padding: 80px 0;
    background: var(--charcoal);
    text-align: center;
}

.quote-text {
    font-family: var(--heading-font);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--pure-white);
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.quote-attribution {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-top: 2rem;
}

/* ---------- Contact Layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-block h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.contact-detail {
    padding: 1rem 0;
    border-bottom: 1px solid var(--pale-gray);
}

.contact-detail-label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 0.3rem;
}

.contact-detail-value {
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.7;
}

.contact-detail-value a {
    border-bottom: 1px solid var(--light-gray);
    transition: border-color 0.3s ease;
}

.contact-detail-value a:hover {
    border-color: var(--charcoal);
}

.contact-hours {
    padding: 1.5rem 0;
}

/* ---------- Contact Form ---------- */
.contact-form {
    background: var(--off-white);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    background: var(--pure-white);
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--charcoal);
}

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

/* ---------- Gallery ---------- */
.gallery-lock-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
}

.lock-container {
    max-width: 400px;
}

.lock-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    color: var(--light-gray);
}

.lock-icon svg {
    width: 100%;
    height: 100%;
}

.lock-container h2 {
    margin-bottom: 1rem;
}

.lock-container p {
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.password-form {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
}

.password-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-right: none;
    font-family: var(--body-font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.password-form input:focus {
    border-color: var(--charcoal);
}

.password-form button {
    padding: 0.8rem 1.5rem;
    background: var(--charcoal);
    color: var(--pure-white);
    border: 1px solid var(--charcoal);
    font-family: var(--body-font);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.password-form button:hover {
    background: var(--deep-black);
}

.password-error {
    color: #b44;
    font-size: 0.8rem;
    display: none;
}

.gallery-content {
    display: none;
    padding-top: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--pale-gray);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--pure-white);
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* ---------- Image Placeholder ---------- */
.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--pale-gray) 0%, var(--light-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--deep-black);
    color: var(--soft-gray);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 1rem;
    line-height: 1.7;
    color: var(--soft-gray);
}

.footer-brand .logo-name {
    color: var(--pure-white);
}

.footer-section h4 {
    font-family: var(--body-font);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

.footer-section li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    font-size: 0.85rem;
    color: var(--soft-gray);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--soft-gray);
}

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

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.15s; }
.fade-up-delay-2 { transition-delay: 0.3s; }
.fade-up-delay-3 { transition-delay: 0.45s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .services-grid,
    .services-grid[style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .services-grid,
    .services-grid[style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .bio-layout,
    .service-detail,
    .service-detail.reversed,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail.reversed {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pure-white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--pale-gray);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .services-grid[style*="grid-template-columns: repeat(5"] {
        grid-template-columns: 1fr !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500&display=swap');

