/* ==========================================================================
   Terra Prime İnşaat — terraprime.info
   Kurumsal kimlikten türetilmiş stil dosyası.
   Renk veya yazı karakterini değiştirmek isterseniz sadece :root bloğunu düzenleyin.
   ========================================================================== */

:root {
  --terra: #B85C38;
  --terra-dark: #8A4128;
  --terra-soft: #F6DCCF;
  --sand: #D9C4A9;
  --cream: #F5F0E8;
  --cream-2: #EFE9DF;
  --ink: #24211E;
  --ink-2: #3B3733;
  --stone: #6E6660;
  --stone-2: #857C73;
  --line: #E3DACB;
  --white: #FFFFFF;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: #C9805F; }

.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--stone); }
.center { text-align: center; }

/* --- Katman şeridi (marka öğesi) --------------------------------------- */
.strata { display: flex; }
.strata span { height: 6px; flex: 1; }
.strata span:nth-child(1) { background: var(--terra); }
.strata span:nth-child(2) { background: var(--sand); }
.strata span:nth-child(3) { background: var(--ink); }

/* --- Butonlar ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn-primary { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: var(--white); }

.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; color: var(--cream); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(245,240,232,.45); }
.btn-ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-wa { background: #1F8E4A; color: #fff; border-color: #1F8E4A; }
.btn-wa:hover { background: #17703A; border-color: #17703A; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Üst bar ------------------------------------------------------------ */
.topbar {
  background: var(--ink);
  color: #B8B1A9;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: var(--cream); }
.topbar strong { color: var(--cream); font-weight: 500; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { width: 42px; height: 40px; flex-shrink: 0; }
.brand-word {
  font-family: var(--display); font-size: 1.32rem; line-height: 1;
  letter-spacing: 0.13em; color: var(--ink); white-space: nowrap;
}
.brand-word b { font-weight: 700; }
.brand-word span { font-weight: 300; }
.brand-sub {
  display: block; font-family: var(--display); font-size: 0.5rem; font-weight: 500;
  letter-spacing: 0.26em; color: var(--terra); margin-top: 6px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--display); font-size: 0.92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--terra); border-bottom-color: var(--terra); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--terra); border-bottom-color: var(--terra); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 46ch; margin-bottom: 30px; }
.hero-note {
  margin-top: 24px; font-size: 0.88rem; color: var(--stone);
  display: flex; align-items: center; gap: 10px;
}
.hero-note svg { width: 17px; height: 17px; color: var(--terra); flex-shrink: 0; }

.hero-sub { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-sub .wrap { padding-top: 54px; padding-bottom: 54px; }
.hero-sub h1 { margin-bottom: 18px; }
.hero-sub .lead { max-width: 62ch; }

.breadcrumb { font-size: 0.82rem; color: var(--stone); margin-bottom: 20px; }
.breadcrumb a { color: var(--stone); }
.breadcrumb span { margin: 0 8px; color: var(--sand); }

/* --- Vaat şeridi -------------------------------------------------------- */
.promises { background: var(--ink); color: var(--cream); }
.promises .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(245,240,232,.13);
}
.promise { background: var(--ink); padding: 30px 26px; }
.promise svg { width: 26px; height: 26px; color: var(--terra); margin-bottom: 14px; }
.promise h3 { color: var(--cream); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.promise p { font-size: 0.88rem; line-height: 1.6; color: #B8B1A9; }

/* --- Bölümler ----------------------------------------------------------- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.cream { background: var(--cream); }
.section.cream-2 { background: var(--cream-2); }
.section.dark { background: var(--ink); color: #C8C2BA; }
.section.dark h2, .section.dark h3 { color: var(--cream); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: var(--stone); }

/* --- Hizmet kartları ---------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--terra); transform: translateY(-3px); }
.card .icon { width: 40px; height: 40px; color: var(--terra); }
.card ul { margin: 0; padding-left: 18px; color: var(--stone); font-size: 0.92rem; line-height: 1.75; }
.card ul li::marker { color: var(--sand); }
.card .more {
  margin-top: auto; padding-top: 8px; font-family: var(--display);
  font-size: 0.9rem; font-weight: 600; color: var(--terra);
  display: inline-flex; align-items: center; gap: 8px;
}
.card .more svg { width: 16px; height: 16px; }

/* --- Kesit çizimi ------------------------------------------------------- */
.section-detail .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.layer-list { list-style: none; margin: 26px 0 0; padding: 0; }
.layer-list li {
  display: grid; grid-template-columns: 30px 1fr; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.layer-list li:last-child { border-bottom: 1px solid var(--line); }
.layer-list .n {
  font-family: var(--display); font-size: 0.78rem; font-weight: 700;
  color: var(--white); background: var(--terra);
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.layer-list b { display: block; font-family: var(--display); font-size: 0.98rem; color: var(--ink); }
.layer-list p { font-size: 0.9rem; color: var(--stone); line-height: 1.6; margin: 3px 0 0; }

.figure { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.figure figcaption {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--stone-2); letter-spacing: 0.02em;
}

/* --- Süreç -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--sand); }
.step:first-child { border-top-color: var(--terra); }
.step .no {
  font-family: var(--display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--terra); margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--stone); line-height: 1.65; }

/* --- Liste blokları ----------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.checklist svg { width: 20px; height: 20px; color: var(--terra); margin-top: 3px; }
.checklist b { font-family: var(--display); color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 40px; }

.panel { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.panel.dark { background: var(--ink); border-color: var(--ink); color: #C8C2BA; }
.panel.dark h3 { color: var(--cream); }
.panel.terra { background: var(--terra); border-color: var(--terra); color: #F8E5DA; }
.panel.terra h3, .panel.terra h2 { color: var(--white); }

/* --- Bölge listesi ------------------------------------------------------ */
.districts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.districts span {
  font-size: 0.88rem; padding: 7px 14px; background: var(--white);
  border: 1px solid var(--line); color: var(--ink-2);
}
.section.cream .districts span,
.section.cream-2 .districts span { background: var(--white); }

/* --- SSS ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 44px 24px 0; color: var(--stone); }
.faq .answer p { margin-bottom: .8em; }

/* --- CTA bandı ---------------------------------------------------------- */
.cta-band { background: var(--terra); color: #F8E5DA; }
.cta-band .wrap {
  padding: 62px var(--gutter); display: grid; grid-template-columns: 1.3fr auto;
  gap: 36px; align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { max-width: 52ch; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }

/* --- Form --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.field label .req { color: var(--terra); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 50px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra);
}
.field .hint { font-size: 0.82rem; color: var(--stone-2); }
.form-foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between; margin-top: 4px;
}
.form-foot .kvkk { font-size: 0.82rem; color: var(--stone-2); max-width: 46ch; }
.hp { position: absolute !important; left: -9999px !important; }

.form-alert {
  grid-column: 1 / -1; padding: 14px 18px; border-left: 4px solid var(--terra);
  background: var(--terra-soft); color: var(--ink); font-size: 0.92rem;
}

/* --- İletişim kutuları -------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--terra); margin-top: 4px; }
.contact-list .k {
  font-family: var(--display); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2);
}
.contact-list .v { font-size: 1.02rem; color: var(--ink); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #A79F97; font-size: 0.92rem; }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding: 62px 0 46px;
}
.site-footer h4 {
  font-family: var(--display); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #C9805F; margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #C8C2BA; }
.site-footer a:hover { color: var(--cream); }
.site-footer .brand-word { color: var(--cream); }
.site-footer .f-brand { margin-bottom: 18px; }
.site-footer .f-brand svg { width: 40px; height: 38px; }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,.13); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.83rem; color: #857C73;
}

/* --- Yüzen WhatsApp butonu ---------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1F8E4A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(36,33,30,.28);
}
.wa-float:hover { background: #17703A; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* --- Yardımcılar -------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Duyarlı düzen
   ========================================================================== */

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hero-figure { max-width: 520px; }
  .section-detail .wrap { grid-template-columns: 1fr; gap: 40px; }
  .promises .grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 0 18px; box-shadow: 0 16px 30px rgba(36,33,30,.10);
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a {
    padding: 15px var(--gutter); border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent; font-size: 1rem;
  }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--terra); }
  .nav-toggle { display: flex; }
  .header-cta .btn-desk { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 15.5px; }
  .section { padding: 58px 0; }
  .section.tight { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .promises .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .two-col, .three-col, .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 30px; padding: 46px 0 34px; }
  .brand svg { width: 36px; height: 34px; }
  .brand-word { font-size: 1.14rem; }
  .brand-sub { display: none; }
  .site-header .wrap { min-height: 70px; }
  .nav { inset: 70px 0 auto 0; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .header-cta .btn { width: auto; }
  .panel { padding: 24px 20px; }
  .figure { padding: 18px; }
  .topbar { font-size: 0.78rem; }
  .cta-band .wrap { padding: 46px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .nav-toggle, .wa-float, .cta-band, .topbar { display: none !important; }
  body { font-size: 11pt; }
}


/* --- Hero figürü -------------------------------------------------------- */
.hero-figure {
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-self: end; width: 100%;
}
.hero-figure .hf-top {
  padding: 30px 30px 24px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: flex-start;
}
.hero-figure .hf-top svg { width: 62px; height: 60px; }
.hf-band {
  display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center;
  padding: 22px 30px;
}
.hf-no {
  font-family: var(--display); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; opacity: .55;
}
.hf-t b { display: block; font-family: var(--display); font-size: 1.06rem; font-weight: 700; line-height: 1.25; }
.hf-t em { display: block; font-style: normal; font-size: 0.85rem; margin-top: 5px; opacity: .78; }
.hf-terra { background: var(--terra); color: #FFF; }
.hf-sand  { background: var(--sand);  color: var(--ink); }
.hf-ink   { background: var(--ink);   color: var(--cream); }

@media (max-width: 1000px) {
  .hero-figure { justify-self: start; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-figure .hf-top { padding: 22px 20px 18px; }
  .hf-band { padding: 18px 20px; grid-template-columns: 32px 1fr; gap: 12px; }
}

/* --- Düzeltmeler -------------------------------------------------------- */
figure { margin: 0; }

/* Koyu zeminde katman şeridinin üçüncü bandı görünsün */
.site-footer .strata span:nth-child(3) { background: #6E6660; }

/* Küçük ekranda üst bardaki açıklama metni gizlensin */
@media (max-width: 640px) {
  .topbar .wrap > div:first-child { display: none; }
  .topbar .wrap { justify-content: flex-end; min-height: 34px; }
}
