/* ============================================
   Dr. Esra Pilancı - Ortodontist Website
   Design System & Global Styles
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    /* Primary Colors - Blue palette */
    --primary-50: #e8f1fb;
    --primary-100: #c5dcf5;
    --primary-200: #9ec5ee;
    --primary-300: #77ade7;
    --primary-400: #599ae1;
    --primary-500: #1a73c7;
    --primary-600: #155fa6;
    --primary-700: #0f4b85;
    --primary-800: #0a3764;
    --primary-900: #0b1d35;

    /* Accent - Rose Gold (matching logo) */
    --accent-rose: #b76e79;
    --accent-rose-light: #d4a0a7;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #0d1117;

    /* Navy (from logo text) */
    --navy: #1a2332;
    --navy-light: #2c3e50;

    /* Semantic */
    --success: #28a745;
    --warning: #ffc107;
    --star: #f5c518;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 900px;

    /* Header height */
    --header-height: 110px;
}

/* ============================================
   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);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    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: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-rose));
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: var(--container-narrow);
}

section {
    padding: var(--space-4xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff; /* Solid white to match logo background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    height: var(--header-height);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    height: 85px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 85px;
    width: auto;
    transition: all var(--transition-base);
}

.header.scrolled .logo img {
    height: 65px;
}

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

.logo-text .name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.3px;
}

.logo-text .subtitle {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 1010;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

/* Tıklanabilir alanı (hit area) genişleten görünmez katman */
.nav-links a:not(.nav-cta)::before {
    content: '';
    position: absolute;
    top: -40px;
    bottom: -40px;
    left: -15px;
    right: -15px;
    z-index: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-500);
}

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

/* CTA Button in nav */
.nav-cta {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-xl);
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(26, 115, 199, 0.3);
    transition: all var(--transition-base) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 199, 0.4);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 115, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 115, 199, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-500);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 50%, var(--white) 100%);
    padding-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 199, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(26, 115, 199, 0.08);
    color: var(--primary-600);
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(26, 115, 199, 0.12);
}

.hero-content h1 {
    margin-bottom: var(--space-lg);
    color: var(--navy);
}

.hero-content h1 span {
    color: var(--primary-500);
}

.hero-content .lead {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-500);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: top;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 35, 50, 0.15));
    z-index: 1;
}

/* Floating badge on hero image */
.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: floatBadge 3s ease-in-out infinite;
}

.floating-badge .icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.floating-badge .info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
}

.floating-badge .info span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============================================
   Featured Treatments on Homepage
   ============================================ */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.treatment-card {
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.treatment-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.treatment-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.treatment-card:hover .card-image img {
    transform: scale(1.08);
}

.treatment-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -28px auto 0;
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(26, 115, 199, 0.25);
    color: var(--white);
}

.treatment-card .card-body {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.treatment-card.featured {
    border: 2px solid var(--primary-500);
    background: linear-gradient(135deg, rgba(26, 115, 199, 0.02), rgba(26, 115, 199, 0.06));
}

.treatment-card.featured::before {
    content: '⭐ Öne Çıkan';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
}

.treatment-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.treatment-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   Reviews / Testimonials
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.review-card {
    padding: var(--space-xl);
    position: relative;
}

.review-card .stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--space-md);
}

.review-card .stars span {
    color: var(--star);
    font-size: 1.1rem;
}

.review-card .review-text {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.review-card .reviewer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.review-card .reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-600);
    font-size: 1rem;
}

.review-card .reviewer-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.review-card .reviewer-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.review-card .quote-mark {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 4rem;
    color: var(--primary-100);
    font-family: var(--font-heading);
    line-height: 1;
}

/* ============================================
   Featured Treatment (Tedaviler Page)
   ============================================ */
.featured-treatment {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
    align-items: center;
    background: linear-gradient(135deg, var(--primary-50), var(--white));
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-200);
    margin-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
    .featured-treatment {
        grid-template-columns: 1fr;
        padding: var(--space-xl);
        gap: var(--space-xl);
    }
}

/* ============================================
   Blog Image Cards
   ============================================ */
.blog-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-bg {
    transform: scale(1.05);
}

.blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 29, 53, 0.8) 0%, rgba(11, 29, 53, 0.2) 60%, transparent 100%);
    z-index: 2;
}

.blog-card-content {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    right: var(--space-xl);
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    text-align: center;
}

.blog-card-content .date {
    font-size: 0.8rem;
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-500);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-link {
    color: var(--primary-600);
}

/* ============================================
   About Page
   ============================================ */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: flex-start;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content p {
    margin-bottom: var(--space-md);
    line-height: 1.9;
}

.education-list {
    margin: var(--space-xl) 0;
}

.education-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-200);
}

.education-item .year {
    font-weight: 700;
    color: var(--primary-500);
    min-width: 60px;
    font-family: var(--font-heading);
}

.education-item .desc {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ============================================
   Treatments Page
   ============================================ */
.treatment-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    align-items: start;
}

.treatment-detail-card .number {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-500);
}

.treatment-detail-card h3 {
    margin-bottom: var(--space-sm);
}

.treatment-detail-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* Featured treatment banner */
.featured-treatment {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: var(--radius-lg);
    padding: var(--space-3xl);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.featured-treatment::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.featured-treatment h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.featured-treatment p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.featured-treatment .btn {
    margin-top: var(--space-lg);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.gallery-tab {
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--primary-500);
    color: var(--white);
    border-color: var(--primary-500);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 35, 50, 0.6));
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

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

.gallery-item .overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   Blog
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card .blog-content {
    padding: var(--space-xl);
}

.blog-card .blog-tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-600);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.blog-card .blog-meta {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.contact-info-card .icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-500);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-500);
    font-weight: 500;
}

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

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    margin-top: var(--space-2xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 115, 199, 0.1);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    background: #ffffff;
    padding: 15px 28px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-brand .logo img {
    height: 80px; /* Increased for better proportion with footer text */
    margin-bottom: 0;
    filter: none; /* Original crisp colors */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-500);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Page Header (Internal pages)
   ============================================ */
.page-header {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--gray-50), var(--primary-50));
    text-align: center;
    position: relative;
}

.page-header h1 {
    margin-bottom: var(--space-md);
}

.page-header .breadcrumb {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.page-header .breadcrumb a {
    color: var(--primary-500);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-section .btn-whatsapp {
    font-size: 1.05rem;
    padding: 16px 40px;
}

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

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

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
        order: -1;
    }

    .hero-image-wrapper img {
        height: 400px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
    
    .featured-treatment {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        gap: 0;
        align-items: flex-start;
    }
    
    /* Remove oversized desktop hit-area on mobile to prevent overlap */
    .nav-links a:not(.nav-cta)::before {
        display: none;
    }
    
    /* Large touch-friendly links with visible separators */
    .nav-links a:not(.nav-cta) {
        padding: 16px 0;
        font-size: 1.05rem;
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(26, 115, 199, 0.08);
    }
    
    .nav-links a:not(.nav-cta):first-child {
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-links .nav-cta {
        margin-top: var(--space-lg);
        touch-action: manipulation;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .treatments-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-badge {
        display: none;
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Accordion Treatment Cards
   ============================================ */
.accordion-treatment {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.accordion-treatment:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.accordion-treatment.active {
    border-color: var(--primary-400);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    padding: var(--space-xl);
    cursor: pointer;
    align-items: center;
    user-select: none;
    transition: background var(--transition-fast);
    border-radius: var(--radius-md);
}

.accordion-treatment.active .accordion-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-treatment.active .accordion-header {
    background: linear-gradient(135deg, rgba(26, 115, 199, 0.03), rgba(26, 115, 199, 0.07));
}

.accordion-header .number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-500);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.accordion-treatment.active .accordion-header .number {
    background: var(--primary-500);
    color: var(--white);
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    transition: color var(--transition-fast);
}

.accordion-treatment.active .accordion-header h3 {
    color: var(--primary-600);
}

.accordion-header .accordion-arrow {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.accordion-treatment.active .accordion-arrow {
    background: var(--primary-500);
    color: var(--white);
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--space-xl);
}

.accordion-treatment.active .accordion-body {
    max-height: 500px;
    padding: 0 var(--space-xl) var(--space-xl);
}

.accordion-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.9;
    padding-left: calc(48px + var(--space-lg));
}

.accordion-body .treatment-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
    padding-left: calc(48px + var(--space-lg));
}

.accordion-body .treatment-tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary-600);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Featured accordion */
.accordion-treatment.featured-accordion {
    border: 2px solid var(--primary-400);
    background: linear-gradient(135deg, rgba(26, 115, 199, 0.01), rgba(26, 115, 199, 0.04));
    position: relative;
}

.accordion-treatment.featured-accordion::before {
    content: '⭐ En Popüler';
    position: absolute;
    top: -11px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: var(--white);
    padding: 3px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 1;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--primary-400);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 2005;
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-400);
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 90vh;
    display: none;
    border-radius: 8px;
    background: black;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-content-wrapper img.active,
.lightbox-content-wrapper video.active {
    display: block;
}

/* ============================================
   Video Play Icon
   ============================================ */
.gallery-item.video-item {
    position: relative;
}
.gallery-item.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 5px; /* Center the triangle optically */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 2;
}
.gallery-item.video-item:hover .play-icon {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary-500);
}

/* ============================================
   Floating Socials
   ============================================ */
.floating-socials {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.floating-socials a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    font-size: 24px;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
}
.floating-socials a:last-child {
    border-bottom: none;
}
.floating-socials a.instagram { color: #E1306C; }
.floating-socials a.whatsapp { color: #25D366; }
.floating-socials a.phone { color: var(--navy); }

.floating-socials a:hover {
    background: var(--primary-50);
    width: 70px;
}

@media (max-width: 768px) {
    .floating-socials {
        display: none;
    }
}

/* ============================================
   Invisalign Promo Banner
   ============================================ */
.invisalign-banner {
    background: linear-gradient(135deg, var(--navy), var(--primary-600));
    color: var(--white);
    padding: var(--space-xl) 0;
}
.invisalign-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.invisalign-banner h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}
.invisalign-banner p {
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}
.invisalign-banner .btn {
    background: var(--white);
    color: var(--navy);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 32px;
}
.invisalign-banner .btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .invisalign-banner .container {
        flex-direction: column;
        text-align: center;
    }
    .invisalign-banner h2 {
        font-size: 1.5rem;
    }
}
