/* ============================================================
   MUĞLA TAŞ DUVAR — EDITORYAL ZANAAT TASARIM SİSTEMİ
   Kâğıt tonu zemin · büyük tipografi · hairline bölmeler · düz kartlar
   ============================================================ */
:root {
    --ink: #16120D;
    --ink-soft: #57504A;
    --ink-faint: #8E867F;
    --paper: #FAF6F0;
    --paper-deep: #F1EAE0;
    --line: #E2D9CC;
    --line-dark: #16120D;
    --accent: #A8431F;
    --accent-deep: #7E2F12;
    --accent-wash: #F6E7DE;
    --stone: #2B2620;
    --radius: 4px;
    --font-body: 'Inter', 'Inter-Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Font Awesome font-display fix */
@font-face { font-family: 'Font Awesome 6 Free'; font-display: swap; ascent-override: 90%; descent-override: 20%; }
@font-face { font-family: 'Font Awesome 6 Brands'; font-display: swap; ascent-override: 90%; descent-override: 20%; }
.fas, .far, .fab, .fa, .fa-solid, .fa-brands, i[class*="fa-"] {
    display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.125em; line-height: 1;
}

/* Inter fallback metrics (CLS önleme) */
@font-face { font-family: 'Inter-Fallback'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: 'Inter-Fallback'; src: local('Helvetica Neue'), local('Helvetica'); size-adjust: 106%; ascent-override: 90%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: 'Inter-Fallback'; src: local(-apple-system), local('BlinkMacSystemFont'); size-adjust: 100%; ascent-override: 88%; descent-override: 24%; line-gap-override: 0%; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- TOP BAR ---------- */
.top-bar { background: var(--stone); color: rgba(250,246,240,0.72); padding: 9px 0; font-size: 12.5px; letter-spacing: 0.3px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left { display: flex; align-items: center; gap: 22px; }
.top-bar a { color: rgba(250,246,240,0.72); }
.top-bar a:hover { color: #fff; }
.top-bar i { color: var(--accent); opacity: 0.9; margin-right: 5px; }

/* ---------- HEADER ---------- */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; padding: 16px 0; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 14px; }
.site-logo-img, .mugla-tas-duvar-logo, .site-mugla-tas-duvar-logo-img, .izmir-tas-duvar-logo, .site-izmir-tas-duvar-logo-img { height: 42px; max-width: 170px; width: auto; object-fit: contain; }
.logo-icon { width: 48px; height: 48px; background: var(--accent); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; }
.logo-text h1 { font-size: 20px; color: var(--ink); font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; }
.logo-text p { font-size: 10.5px; color: var(--ink-faint); margin: 0; text-transform: uppercase; letter-spacing: 2.2px; }
.nav-menu { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-menu a { color: var(--ink-soft); font-weight: 500; padding: 7px 13px; font-size: 14px; letter-spacing: 0.1px; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { color: var(--accent); border-bottom-color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); padding: 8px; }

/* ---------- HERO ---------- */
.hero { background: var(--stone); min-height: 88vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: #fff; padding: 110px 20px 90px; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../images/izmirtasduvar-anasayfa.jpg') center/cover no-repeat; opacity: 0.22; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,18,13,0.45) 0%, rgba(22,18,13,0.82) 100%); z-index: 1; }
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.hero-badge-wrapper { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; }
.hero-badge-line { width: 48px; height: 1px; background: var(--accent); opacity: 0.9; }
.hero-badge { display: inline-block; color: rgba(255,255,255,0.85); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); margin-bottom: 22px; font-weight: 800; line-height: 1.08; letter-spacing: -2px; color: #fff; }
.hero-subtitle { font-size: 17px; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.8; color: rgba(255,255,255,0.78); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-actions .btn { min-width: 210px; }
.btn-lg { padding: 17px 34px; font-size: 14.5px; }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); border-radius: 0; }
.btn-outline-white:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-stats { display: flex; justify-content: center; align-items: stretch; gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-stat { text-align: center; padding: 28px 44px 0; }
.hero-stat + .hero-stat-divider + .hero-stat { border-left: 1px solid rgba(255,255,255,0.14); }
.hero-stat-number { display: block; font-size: 38px; font-weight: 800; letter-spacing: -1.5px; color: #fff; line-height: 1.1; }
.hero-stat-label { display: block; font-size: 11.5px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px; margin-top: 8px; }
.hero-stat-divider { display: none; }

/* ---------- BUTONLAR ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 28px; border-radius: 0; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; letter-spacing: 0.3px; }
.btn i { font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- STICKY BUTONLAR ---------- */
.sticky-buttons { position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.sticky-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 6px 20px rgba(22,18,13,0.25); transition: transform 0.2s; }
.sticky-btn i { font-size: 21px; }
.sticky-btn:hover { transform: scale(1.08); }
.sticky-btn.whatsapp { background: #22B15A; }
.sticky-btn.phone { background: var(--accent); }

/* ---------- BÖLÜMLER ---------- */
.section { padding: 100px 24px; background: var(--paper); }
.section-light { background: var(--paper-deep); }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--ink); margin-bottom: 14px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; }
.section-title p { font-size: 16px; color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
/* başlık altı accent çizgisi */
.section-title h2::after { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin: 18px auto 0; }

/* ---------- HİZMET KARTLARI ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper); padding: 38px 30px 34px; text-align: left; transition: background 0.2s; position: relative; }
.service-card:hover { background: #fff; }
.service-card:hover::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.service-icon { width: 50px; height: 50px; background: var(--accent-wash); border-radius: 2px; display: flex; align-items: center; justify-content: center; margin: 0 0 22px; color: var(--accent); font-size: 20px; }
.service-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 12px; font-weight: 700; letter-spacing: -0.3px; }
.service-card p { color: var(--ink-soft); margin-bottom: 20px; font-size: 14.5px; line-height: 1.7; }
.service-card .link { color: var(--accent); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.service-card .link:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ---------- ÖZELLİKLER ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.feature-item { display: flex; gap: 18px; align-items: flex-start; padding: 30px 26px; background: var(--paper-deep); transition: background 0.2s; }
.feature-item:hover { background: #fff; }
.feature-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--accent-wash); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--accent); }
.feature-content h3, .feature-content h4 { color: var(--ink); margin-bottom: 7px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.2px; }
.feature-content p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

/* ---------- GALERİ ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--stone); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 0.5s ease, filter 0.4s; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1.05); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(22,18,13,0.85), transparent); z-index: 2; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3, .gallery-overlay h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.gallery-overlay p { color: rgba(255,255,255,0.65); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--stone); color: #fff; padding: 96px 24px; text-align: center; border-top: 4px solid var(--accent); }
.cta-section h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; font-weight: 800; letter-spacing: -1.2px; }
.cta-section p { font-size: 16px; margin-bottom: 36px; color: rgba(255,255,255,0.62); max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: var(--accent); }

/* ---------- İLETİŞİM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.contact-info { background: var(--stone); color: #fff; padding: 44px 40px; }
.contact-info h3 { font-size: 20px; margin-bottom: 28px; color: #fff; font-weight: 700; letter-spacing: -0.3px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.contact-item-icon { flex-shrink: 0; width: 44px; height: 44px; background: rgba(255,255,255,0.07); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent); }
.contact-item strong { display: block; margin-bottom: 3px; color: #fff; font-size: 14px; font-weight: 600; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.62); font-size: 13.5px; }
.contact-item a:hover { color: #fff; }
.contact-form { background: #fff; padding: 44px 40px; }
.contact-form h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); font-weight: 700; letter-spacing: -0.3px; }
.contact-form > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0; font-size: 14.5px; font-family: inherit; transition: border-color 0.2s; background: var(--paper); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- İLÇE LİNKLERİ ---------- */
.districts-section { background: var(--paper-deep); padding: 64px 0; border-top: 1px solid var(--line); }
.districts-section h2 { text-align: center; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 32px; color: var(--ink); }
.districts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.district-link { display: block; text-align: center; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.district-link:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* ---------- FOOTER ---------- */
.footer { background: var(--stone); color: rgba(255,255,255,0.55); padding: 72px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 52px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.footer-col p { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo { height: 44px; width: 44px; object-fit: contain; margin: 0; }
.footer-brand-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.footer-social { margin-top: 18px; display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,0.5); font-size: 19px; }
.footer-social a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-contact-item i { color: var(--accent); width: 16px; text-align: center; }
.footer-contact-item a { color: rgba(255,255,255,0.55); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; }

/* ---------- SAYFA HERO ---------- */
.page-hero { background: var(--stone); color: #fff; padding: 100px 24px; text-align: center; position: relative; border-bottom: 4px solid var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 16px; font-weight: 800; letter-spacing: -1.5px; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; position: relative; z-index: 1; color: rgba(255,255,255,0.45); }
.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: #fff; }

/* ---------- İÇERİK ---------- */
.content-wrapper { max-width: 820px; margin: 0 auto; padding: 72px 24px; }
.content-wrapper h2 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin: 52px 0 20px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.25; position: relative; padding-left: 22px; }
.content-wrapper h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--accent); }
.content-wrapper h2:first-child { margin-top: 0; }
.content-wrapper h3 { color: var(--accent-deep); font-size: 20px; margin: 36px 0 15px; font-weight: 700; letter-spacing: -0.3px; }
.content-wrapper p { margin-bottom: 20px; color: #4A443D; font-size: 16px; line-height: 1.85; }
.content-wrapper ul, .content-wrapper ol { margin: 18px 0 30px 22px; }
.content-wrapper li { margin-bottom: 11px; color: #4A443D; font-size: 15.5px; line-height: 1.75; }

/* ---------- LIGHTBOX ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(16,13,9,0.95); z-index: 10000; justify-content: center; align-items: center; padding: 40px; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 85vh; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; background: rgba(255,255,255,0.08); border: none; border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s; z-index: 10001; }
.lightbox-close:hover { background: var(--accent); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(255,255,255,0.08); border: none; border-radius: 50%; color: #fff; font-size: 17px; cursor: pointer; transition: background 0.2s; }
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 0; border-bottom: 1px solid var(--line); }
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 13px 4px; border-bottom: none; font-size: 15px; }
    .nav-menu li { border-bottom: 1px solid var(--line); }
    .nav-menu li:last-child { border-bottom: none; }
    .mobile-toggle { display: block; }
    .hero { min-height: auto; }
    .hero-stat { padding: 24px 26px 0; }
    .hero-stat-number { font-size: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 90px 20px 70px; }
    .hero-stats { flex-direction: column; gap: 0; border-top: none; }
    .hero-stat { padding: 22px 0 0; }
    .hero-stat + .hero-stat-divider + .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); margin-top: 22px; padding-top: 22px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    .section { padding: 64px 20px; }
    .services-grid, .features-grid, .gallery-grid { grid-template-columns: 1fr; }
    .sticky-buttons { right: 14px; bottom: 14px; }
    .sticky-btn { width: 48px; height: 48px; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 30px 24px; }
    .districts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hero h1 { letter-spacing: -1px; }
    .hero-badge-wrapper { flex-direction: column; gap: 8px; }
    .hero-badge-line { width: 30px; }
    .hero-actions .btn { width: 100%; }
    .btn-lg { padding: 15px 24px; font-size: 14px; }
    .districts-grid { grid-template-columns: 1fr 1fr; }
}
