/* ===================================================
   DETAY KOLTUK YIKAMA — Premium Light Theme Stylesheet
   Designed to feel like an Apple/SaaS landing page.
   =================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --bg-card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #86868b;
    --accent: #4a9ea1;
    --accent-light: #e8f4f4;
    --accent-dark: #3a8082;
    --border: #e5e5ea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: .4s cubic-bezier(.25,.46,.45,.94);
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

em { font-style: normal; color: var(--accent); }

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.site-header.scrolled .logo-img {
    height: 48px;
}

.site-footer .logo-img {
    height: 52px;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,.15));
}

/* Nav */
.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.site-header.scrolled .main-nav a { color: var(--text-secondary); }
.site-header.scrolled .main-nav a:hover { color: var(--text); }

/* Header CTA */
.btn-header {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-header:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(74,158,161,.35);
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.site-header.scrolled .menu-toggle span { background: var(--text); }

/* ---------- HERO SLIDER ---------- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 7s ease;
}

.slide.active .slide-bg { transform: scale(1.06); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.1) 100%);
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: #fff;
}

.slide-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .7s ease, transform .7s ease;
}

.slide.active .reveal-item:nth-child(1) { transition-delay: .2s; }
.slide.active .reveal-item:nth-child(2) { transition-delay: .4s; }
.slide.active .reveal-item:nth-child(3) { transition-delay: .6s; }
.slide.active .reveal-item:nth-child(4) { transition-delay: .8s; }

.slide-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-title em { color: var(--accent); font-style: normal; }

.slide-desc {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    max-width: 480px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero CTA Button */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    opacity: 0;
    transform: translateY(20px);
    width: fit-content;
}

.btn-hero:hover {
    transform: translateY(-3px) !important;
    background: var(--accent-dark);
    box-shadow: 0 12px 35px rgba(74,158,161,.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

.slider-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width .05s linear;
}

/* ---------- SECTIONS (shared) ---------- */
.section {
    padding: 120px 0;
}

.section-services,
.section-ba,
.section-gallery { background: var(--bg-alt); }

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

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 16px auto 0;
}

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card-img {
    overflow: hidden;
    height: 240px;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body {
    padding: 28px;
}

.service-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.65;
}

.service-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.service-link:hover { gap: 10px; }

/* ---------- WHY US ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.why-block {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-block-hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 0;
    overflow: hidden;
    position: relative;
}

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

.why-block-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
    color: #fff;
}

.why-block-overlay h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.why-block-overlay p { font-size: 14px; color: rgba(255,255,255,.8); }

.why-block-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1;
}

.why-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- BEFORE / AFTER ---------- */
.ba-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.ba-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    aspect-ratio: 16/10;
}

.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-img-after {
    clip-path: inset(0 0 0 50%);
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    pointer-events: none;
}

.ba-label {
    position: absolute;
    bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 100px;
    z-index: 6;
}

.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-quote {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: -8px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author strong {
    font-size: 15px;
    display: block;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-light);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-item-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

/* ---------- APPOINTMENT ---------- */
.section-appointment { background: var(--bg); }

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 64px;
}

.appointment-info .section-tag { margin-bottom: 8px; }

.appointment-info .section-title {
    margin-bottom: 16px;
}

.appointment-info > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.appointment-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.contact-item svg { color: var(--accent); flex-shrink: 0; }

/* Form */
.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(74,158,161,.12);
}

.form-group textarea { resize: vertical; }

.btn-submit {
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(74,158,161,.35);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

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

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
    font-size: 14px;
    max-width: 280px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* ---------- WhatsApp FAB ---------- */
.fab-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fabPulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,.5);
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,.6); }
}

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .why-block-hero {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item-lg { grid-column: span 2; grid-row: span 2; }
    .gallery-item-wide { grid-column: span 1; }

    .appointment-wrapper {
        grid-template-columns: 1fr;
        padding: 48px;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .section { padding: 80px 0; }

    .main-nav {
        position: fixed;
        inset: 0;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
        z-index: 1000;
    }

    .main-nav.open { opacity: 1; visibility: visible; }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .main-nav a {
        font-size: 22px;
        font-weight: 600;
        color: var(--text);
    }

    .btn-header { display: none; }
    .menu-toggle { display: flex; }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--text);
    }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--text);
    }

    .services-grid,
    .testimonials-grid { grid-template-columns: 1fr; }

    .why-grid { grid-template-columns: 1fr; }
    .why-block-hero { min-height: 250px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .gallery-item-lg { grid-column: span 2; grid-row: span 1; }

    .appointment-wrapper { padding: 32px; gap: 32px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }

    .slide-title { letter-spacing: -1px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery-item-lg, .gallery-item-wide { grid-column: span 1; }

    .appointment-wrapper { padding: 24px; }

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