/* ===================================================================
   AĞRI TESİSAT — Turan Yapı Tesisat & Hırdavat
   Tasarım tokenları: Lacivert + Altın/Amber + Kırmızı vurgu
   =================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #122b52;
  --navy-3: #18386b;
  --gold: #d4a537;
  --gold-light: #e9c873;
  --red: #d7282f;
  --cream: #f7f5ef;
  --paper: #fffdf8;
  --ink: #1c2330;
  --ink-soft: #4b5468;
  --line: #e4dfd1;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -16px rgba(11, 31, 58, 0.35);
  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", "Poppins", sans-serif;
  --diamond: repeating-linear-gradient(45deg, rgba(212,165,55,0.07) 0, rgba(212,165,55,0.07) 1px, transparent 1px, transparent 26px),
             repeating-linear-gradient(-45deg, rgba(212,165,55,0.07) 0, rgba(212,165,55,0.07) 1px, transparent 1px, transparent 26px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 78px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy); color: #dfe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--pattern { background-color: var(--navy); background-image: var(--diamond); background-size: 36px 36px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cfd9ec;
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #e9c873; }
.topbar-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-text strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 18px; letter-spacing: .01em;}
.brand-text span { display: block; font-size: 12px; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--red); color: #fff; box-shadow: 0 10px 24px -8px rgba(215,40,47,.55); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(212,165,55,.5); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--block { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; padding: 100px 0 130px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(212,165,55,0.18), transparent 45%), var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; background-image: var(--diamond); background-size: 40px 40px; opacity: .9;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 18px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.lead { font-size: 18px; color: #d9e1f1; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge {
  position: relative; justify-self: center; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 60%), var(--navy-2);
  border: 3px solid rgba(212,165,55,.45); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-badge img { width: 230px; height: 230px; border-radius: 50%; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold-light); }
.hero-stats div span { font-size: 13px; color: #c7d1e6; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-5px); }
.service-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card .icon-wrap svg { width: 28px; height: 28px; stroke: var(--gold-light); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }
.service-card .more { color: var(--red); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 16px; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Blog cards ---------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--navy-2); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px 22px 26px; }
.blog-card .meta { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;}
.blog-card h3 { font-size: 18px; }
.blog-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; padding: 20px 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 14px;
}
.faq-q .plus { font-size: 22px; color: var(--gold); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--ink-soft); }
.faq-a-inner { padding: 0 6px 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list .ic svg { width: 20px; height: 20px; stroke: var(--gold-light); }
.info-list strong { display: block; color: var(--navy); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; background: var(--paper); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14.5px; font-weight: 600; }
.alert-success { background: #e3f4e8; color: #1d6b3a; }
.alert-danger { background: #fbe5e6; color: #9c2126; }
.alert-warning { background: #fdf1d8; color: #8a6314; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7d1e6; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-display); }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; font-size: 13px; color: #9aa7c2; flex-wrap: wrap; gap: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }

/* ---------- Article content (rich text output) ---------- */
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.4em; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose strong { color: var(--navy); }
.prose a { color: var(--red); text-decoration: underline; }

/* ---------- Sidebar widgets ---------- */
.side-widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.side-widget h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.side-list a { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.side-list a:hover { color: var(--red); }
.cta-box { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.cta-box h4 { color: #fff; }
.cta-box p { color: #cfd9ec; font-size: 14px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.pagination a:hover { background: var(--navy); color: #fff; }
.pagination .current { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---------- Why-us ticks ---------- */
.tick-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.tick-list li svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ---------- Floating action buttons (WhatsApp + Hemen Ara) — her sayfada ---------- */
.fab-stack {
  position: fixed; right: 20px; bottom: 22px; z-index: 70;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.fab {
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 27px; height: 27px; }
.fab--whatsapp { background: #25d366; position: relative; }
.fab--whatsapp::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: fabPulse 2.4s ease-out infinite;
}
.fab--call { background: var(--red); }
.fab--call svg { stroke: #fff; }
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab--whatsapp::after { animation: none; }
}
@media (max-width: 760px) {
  .fab-stack { right: 14px; bottom: 16px; }
  .fab { width: 52px; height: 52px; }
  .fab svg { width: 24px; height: 24px; }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-badge { width: 220px; height: 220px; }
  .hero-badge img { width: 180px; height: 180px; }
  .hero-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .topbar-left span:nth-child(3) { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .main-nav .btn--call { display: none; }
}
.main-nav.open ul {
  display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
  flex-direction: column; padding: 18px 22px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
