/* =========================================================
   Garantili Çatı Ustası - Genel Site Stili
   ========================================================= */
:root {
  --red: #c8102e;
  --red-dark: #a20d25;
  --navy: #1b2430;
  --navy-2: #232f3f;
  --gray-50: #f8f8fa;
  --gray-100: #f1f1f4;
  --gray-200: #e4e4ea;
  --gray-500: #71757f;
  --gray-700: #444752;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(20, 24, 33, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 24, 33, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 24, 33, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 3px; background: var(--red); border-radius: 3px; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section-sub { color: var(--gray-500); max-width: 640px; margin-bottom: 40px; font-size: 16px; }
.section-head { text-align: center; margin: 0 auto 20px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #0f151d; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebc59; }

/* ---------------- HEADER ---------------- */
.topbar {
  background: var(--navy); color: #d9dde3; font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.topbar-item i { color: var(--red); }
.topbar-social a { margin-left: 10px; opacity: .85; }
.topbar-social a:hover { opacity: 1; color: var(--red); }

.site-header {
  position: sticky; top: 0; z-index: 500; background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--navy);
  transition: all .15s;
}
.main-nav a:hover, .main-nav a.active { background: var(--gray-100); color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.header-phone .icon-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-phone small { display: block; font-weight: 500; color: var(--gray-500); font-size: 11px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }

@media (max-width: 992px) {
  .main-nav { position: fixed; top: 0; right: -320px; height: 100vh; width: 300px; background: #fff; flex-direction: column; align-items: stretch; padding: 90px 20px 20px; box-shadow: var(--shadow-lg); transition: right .25s ease; overflow-y: auto; z-index: 401; }
  .main-nav.open { right: 0; }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
  .header-cta .btn-whatsapp { display: none; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(10,12,16,.5); z-index: 400; }
  .nav-overlay.open { display: block; }
}

/* ---------------- HERO ---------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(27,36,48,.97) 30%, rgba(27,36,48,.55) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 120px 0 100px; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,16,46,.15); border: 1px solid rgba(200,16,46,.4); color: #ff8a97; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 18px; color: #cfd4dc; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d9dde3; }
.hero-trust i { color: var(--red); font-size: 18px; }

/* ---------------- STATS STRIP ---------------- */
.stats-strip { background: var(--red); color: #fff; }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 20px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: clamp(24px, 3vw, 34px); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; }
.stat-item .lbl { font-size: 13px; opacity: .92; margin-top: 4px; letter-spacing: .02em; }
@media (max-width: 768px) { .stats-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- SERVICES ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s ease; position: relative; overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.service-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--gray-500); font-size: 14.5px; margin-bottom: 16px; }
.service-card .more { font-weight: 700; color: var(--red); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.services-cta { text-align: center; margin-top: 44px; }

.service-hero { background: var(--navy); color: #fff; padding: 70px 0 60px; }
.service-hero .breadcrumb { color: #a9afba; margin-bottom: 16px; font-size: 14px; }
.service-hero .breadcrumb a { color: #fff; }
.service-detail-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 46px; align-items: start; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 30px; }
.service-sidebar { background: var(--gray-50); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.service-sidebar h4 { margin-bottom: 16px; }
.service-sidebar ul li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-weight: 600; font-size: 14.5px; }
.service-sidebar ul li a i { color: var(--red); }
.service-sidebar .contact-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
@media (max-width: 900px) { .service-detail-wrap { grid-template-columns: 1fr; } .service-sidebar { position: static; } }

/* ---------------- ABOUT ---------------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media .badge-card { position: absolute; bottom: -24px; left: -24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.about-media .badge-card .num { font-size: 30px; font-weight: 800; color: var(--red); }
.about-list { margin: 26px 0; display: grid; gap: 14px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 15px; }
.about-list li i { color: #fff; background: var(--red); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } .about-media { margin-bottom: 40px; } }

/* ---------------- TESTIMONIALS ---------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.testimonial-card .stars { color: #f5a623; margin-bottom: 14px; font-size: 14px; }
.testimonial-card p.quote { font-size: 15px; color: var(--gray-700); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: 14.5px; }
.testimonial-person span { font-size: 12.5px; color: var(--gray-500); }

/* ---------------- BLOG ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); transition: all .25s; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card .thumb { height: 190px; overflow: hidden; background: var(--gray-100); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px; }
.blog-card .date { font-size: 12.5px; color: var(--gray-500); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--red); }
.blog-card p { font-size: 14px; color: var(--gray-500); }
.blog-card .readmore { font-weight: 700; color: var(--red); font-size: 13.5px; }

.blog-detail-header { background: var(--navy); color: #fff; padding: 64px 0 44px; }
.blog-detail-header .meta { display: flex; gap: 18px; flex-wrap: wrap; color: #b8bec9; font-size: 13.5px; margin-bottom: 16px; }
.blog-detail-header h1 { font-size: clamp(26px, 3.6vw, 40px); max-width: 820px; }
.blog-cover { margin: -60px auto 40px; max-width: 900px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 3; }
.blog-content { max-width: 780px; margin: 0 auto; font-size: 16.5px; color: #2a2f3a; }
.blog-content h2 { font-size: 26px; margin-top: 1.6em; }
.blog-content h3 { font-size: 20px; margin-top: 1.4em; }
.blog-content img { border-radius: 10px; margin: 20px 0; }
.blog-content a { color: var(--red); text-decoration: underline; }
.blog-content blockquote { border-left: 4px solid var(--red); background: var(--gray-50); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--gray-700); }
.blog-content ul, .blog-content ol { padding-left: 1.4em; }
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; max-width: 780px; margin-left: auto; margin-right: auto; }
.blog-tags span { background: var(--gray-100); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--gray-700); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq-q i { color: var(--red); transition: transform .2s; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; color: var(--gray-500); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ---------------- CTA BANNER ---------------- */
.cta-banner { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; border-radius: var(--radius); padding: 50px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h3 { font-size: 26px; margin-bottom: 6px; }
.cta-banner p { opacity: .9; margin: 0; }
.cta-banner .btn-dark { background: #fff; color: var(--navy); }
.cta-banner .btn-dark:hover { background: var(--gray-100); }

/* ---------------- CONTACT ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-card .item i { width: 42px; height: 42px; border-radius: 12px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card .item strong { display: block; margin-bottom: 3px; }
.contact-info-card .item span, .contact-info-card .item a { color: #cfd4dc; font-size: 14.5px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact-form { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 700; }
.form-group input, .form-group textarea, .form-group select {
  padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-family: var(--font); font-size: 14.5px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--red); }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------------- FOOTER ---------------- */
.site-footer { background: #12181f; color: #b8bec9; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-brand img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: 14px; color: #939aa6; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: #1f2731; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red); }
.footer-links li { margin-bottom: 12px; font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; font-size: 14px; align-items: flex-start; }
.footer-contact i { color: var(--red); margin-top: 3px; }
.footer-bottom { border-top: 1px solid #232b35; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #767d89; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- FLOATING BUTTONS ---------------- */
.floating-actions { position: fixed; right: 20px; bottom: 22px; z-index: 600; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.floatbtn { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .2s; }
.floatbtn:hover { transform: translateY(-3px) scale(1.02); }
.floatbtn i { font-size: 19px; }
.floatbtn-whatsapp { background: #25D366; }
.floatbtn-call { background: var(--red); }
.floatbtn span.floatbtn-label { display: none; }
@media (min-width: 620px) { .floatbtn span.floatbtn-label { display: inline; } }
.floatbtn-icon-only { width: 56px; height: 56px; border-radius: 50%; justify-content: center; padding: 0; }
@media (min-width: 620px) { .floatbtn-icon-only { display: none; } }
@media (max-width: 619px) { .floatbtn-full { display: none; } }

/* ---------------- MISC ---------------- */
.badge-pill { display: inline-block; background: var(--gray-100); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.breadcrumb-strip { background: var(--gray-50); padding: 16px 0; font-size: 13.5px; color: var(--gray-500); }
.breadcrumb-strip a { font-weight: 600; color: var(--navy); }
.page-hero { background: var(--navy); color: #fff; padding: 70px 0 56px; text-align: center; }
.page-hero p { color: #b8bec9; max-width: 600px; margin: 0 auto; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; font-weight: 600; }
.alert-success { background: #e7f8ee; color: #1a7a45; border: 1px solid #b7e8ca; }
.alert-error { background: #fdecec; color: #b22222; border: 1px solid #f7c3c3; }

/* ---------------- GALERİ ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-100); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.gallery-item-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(27, 36, 48, 0.45); color: #fff; font-size: 22px; opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Lightbox (galeri büyük görüntüleme) */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(15, 18, 24, 0.92); z-index: 900;
  display: none; align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: min(94vw, 1100px); max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #f1f2f4; font-size: 14.5px; padding: 0 60px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 15px; }
  .lightbox-caption { padding: 0 20px; font-size: 13px; }
}
