:root {
    --primary: #FFD600; /* Canlı Sarı */
    --dark: #14213d; 
    --darker: #000000;
    --text: #333;
    --white: #ffffff;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* --- HEADER & MENU --- */
header {
    background: var(--dark);
    color: var(--white);
    padding: 15px 0 0 0;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    z-index: 101;
}

.logo span { color: var(--primary); }

/* Hamburger İkon */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after { width: 100%; }

.btn-header {
    background: var(--primary);
    color: var(--darker);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
}

.header-border {
    height: 4px;
    background: var(--primary);
    width: 100%;
}

/* --- MOBİL MENÜ --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    nav ul {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        z-index: 99;
    }

    nav ul.active { left: 0; }
    nav ul li { margin: 20px 0; }
    nav ul li a { font-size: 24px; }
    .desktop-only { display: none; }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 600px;
    background: url('https://www.sakaryakornisci.com/resim/sakarya-kornis-ustasi.webp') no-repeat center center/cover;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 150px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(20,33,61,0.95) 0%, rgba(20,33,61,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    margin-top: 30px;
    width: 100%;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title .highlight { color: var(--primary); }

.hero-desc {
    max-width: 600px;
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--darker);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--darker);
}

.hero-features {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--primary);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-content { margin-top: 10px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
}

/* --- HESAPLAMA ARACI --- */
.calculator-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 50px;
}

.calculator-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid #eee;
}

@media (min-width: 992px) {
    .calculator-card { flex-direction: row; min-height: 420px; }
}

.calc-left {
    padding: 30px;
    flex: 6;
    border-right: 1px solid #f0f0f0;
}

.calc-right {
    flex: 4;
    background: var(--dark);
    color: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.calc-left h3 {
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.input-group { margin-bottom: 25px; }

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.label-row label { font-weight: 600; color: #555; }

.value-display {
    background: var(--darker);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-family: monospace;
    font-size: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Slider CSS */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    margin-top: -9px;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--white);
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
}

.type-options { display: flex; gap: 10px; }

.type-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 10px 5px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.type-option:hover { border-color: var(--primary); background: #fffdf0; }
.type-option.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--darker);
}

.price-value {
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}
.price-currency { font-size: 24px; color: white; }

.btn-randevu {
    background: var(--primary);
    color: var(--darker);
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    max-width: 250px;
}

/* --- HİZMETLER --- */
.services {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: 0.3s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.service-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.service-content { padding: 25px; }
.service-content h4 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.service-content h4 span { color: var(--primary); font-weight: 900; }
.service-content ul { list-style: none; margin-top: 15px; font-size: 14px; color: #666; }
.service-content ul li { margin-bottom: 8px; }
.service-content ul li i { color: var(--primary); margin-right: 5px; }

/* --- ÖZELLİKLER (DARK) --- */
.features-dark {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

/* --- BÖLGELER --- */
.districts-section {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}
.district-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px auto;
}
.district-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #555;
    transition: 0.3s;
}
.district-tag:hover { background: var(--primary); color: black; }

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}
.footer-left span { color: var(--primary); }
.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-item i { font-size: 24px; color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 14px; opacity: 0.6; }

/* --- Performans + Erişilebilirlik İyileştirmeleri (görünümü bozmaz) --- */

/* Aşağı katmanları (fold altı) çizimi ertele: Lighthouse Performance artışı */
.services,
.features-dark,
.districts-section,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

/* Klavye ile gezinme için net odak halkası */
a:focus-visible,
button:focus-visible,
[type="range"]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Hareket hassasiyeti olan kullanıcılar */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* İlçe sayfaları için: Beyaz buton, hover sarı */
.btn-secondary-light{
  background: var(--white) !important;
  color: var(--dark) !important;
  border-color: var(--white) !important;
}
.btn-secondary-light i{ color: var(--dark) !important; }
.btn-secondary-light:hover{
  background: var(--primary) !important;
  color: var(--darker) !important;
  border-color: var(--primary) !important;
}
.btn-secondary-light:hover i{ color: var(--darker) !important; }

/* Logo linki: tasarımı bozma */
.logo .logo-link{
  display: inline-flex;      /* block değil -> genişleyip düzen bozmaz */
  align-items: center;
  gap: 8px;
  text-decoration: none;     /* underline kapalı */
  color: inherit;            /* header rengi neyse aynı */
  line-height: 1;            /* satır yüksekliği şişmesin */
  white-space: nowrap;       /* logo tek satır */
}

.logo .logo-link:visited{ color: inherit; }
.logo .logo-link:hover{ color: inherit; }
