/* =========================================================================
   EMA İnşaat — Design tokens
   Palette pulled from the firm's own material: granite grays, warm clay-pink
   stone (visible in the project photos), charcoal + gold from the logo.
   ========================================================================= */
:root {
  --ink: #201e1a;
  --ink-soft: #4a453d;
  --gold: #c8973c;
  --gold-soft: #e0b869;
  --stone-100: #faf8f3;
  --stone-200: #ece6d9;
  --stone-300: #cfc6b4;
  --stone-400: #9c9284;
  --stone-600: #6b6458;
  --clay: #a8623f;
  --clay-soft: #c98564;
  --line: rgba(32, 30, 26, 0.12);

  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(32, 30, 26, 0.10);
  --shadow-md: 0 10px 30px rgba(32, 30, 26, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stone-100);
  line-height: 1.6;
  -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);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: rgba(250,248,243,.4); color: inherit; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--stone-100); }
.btn-dark:hover { background: #34302a; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Stone coursing divider (signature element) ------------------------
   A row of irregular polygons imitating rubble-stone mortar joints —
   the same texture visible in the firm's retaining-wall photos — used as
   a structural divider between sections instead of a generic hairline. */
.stone-seam { height: 22px; width: 100%; overflow: hidden; line-height: 0; }
.stone-seam svg { width: 100%; height: 100%; display: block; }

/* ---- Header -------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(32,30,26,.92);
  backdrop-filter: blur(6px);
  color: var(--stone-100);
  border-bottom: 1px solid rgba(250,248,243,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.brand img { height: 46px; width: 46px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; opacity: .88; position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--gold-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--ink); flex-direction: column; justify-content: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-cta .phone-text { display: none; }
}

/* ---- Hero -----------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  color: var(--stone-100);
  background-size: cover; background-position: center;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,16,.35) 0%, rgba(20,19,16,.55) 55%, rgba(20,19,16,.92) 100%);
  z-index: -1;
}
.hero-inner { padding: 90px 0 70px; width: 100%; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 820px; color: #fff; }
.hero p.lede { font-size: 18px; max-width: 560px; color: var(--stone-200); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(250,248,243,.18); max-width: 720px; }
.hero-stats div b { display: block; font-family: var(--font-mono); font-size: 30px; color: var(--gold-soft); }
.hero-stats div span { font-size: 12.5px; color: var(--stone-300); letter-spacing: .04em; }
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, auto); } }

/* ---- Sections --------------------------------------------------------------*/
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; }
.section-dark { background: var(--ink); color: var(--stone-100); }
.section-dark .section-head p { color: var(--stone-300); }
.section-stone { background: var(--stone-200); }

/* ---- Services grid ----------------------------------------------------------*/
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--stone-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card .svc-img { height: 190px; background-size: cover; background-position: center; position: relative; }
.svc-card .svc-num { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 12px; background: rgba(20,19,16,.7); color: var(--gold-soft); padding: 4px 9px; border-radius: 20px; }
.svc-card .svc-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 20px; margin-bottom: 10px; }
.svc-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.svc-card .svc-link { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--clay); display: inline-flex; align-items: center; gap: 6px; }

/* ---- Gallery ------------------------------------------------------------*/
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a:nth-child(4n+1) { grid-row: span 2; aspect-ratio: 1/2.1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid a:nth-child(4n+1) { grid-row: span 1; aspect-ratio: 1/1; } }

/* ---- Testimonials --------------------------------------------------------*/
.testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testi-row { grid-template-columns: 1fr; } }
.testi-card { background: var(--stone-100); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testi-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 15px; }
.testi-card p.txt { font-size: 15px; color: var(--ink-soft); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-person .name { font-weight: 700; font-size: 14.5px; }
.testi-person .role { font-size: 12.5px; color: var(--stone-400); }

/* ---- Blog cards -----------------------------------------------------------*/
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--stone-100); transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card .cover { height: 180px; background-size: cover; background-position: center; background-color: var(--stone-300); }
.blog-card .body { padding: 20px 22px 24px; }
.blog-card .date { font-family: var(--font-mono); font-size: 12px; color: var(--clay); letter-spacing: .04em; }
.blog-card h3 { font-size: 18.5px; margin: 8px 0 10px; }
.blog-card p { font-size: 14px; color: var(--ink-soft); }

/* ---- FAQ accordion --------------------------------------------------------*/
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 4px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--clay); transition: transform .2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 780px; }

/* ---- CTA band --------------------------------------------------------------*/
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #34302a 100%); color: #fff; border-radius: 10px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--stone-300); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Contact ----------------------------------------------------------------*/
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 24px 0 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: 50%; background: var(--stone-200); display: flex; align-items: center; justify-content: center; flex: none; font-size: 17px; }
.info-list b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--clay); font-family: var(--font-mono); margin-bottom: 3px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---- Footer -----------------------------------------------------------------*/
footer.site-footer { background: var(--ink); color: var(--stone-300); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-grid ul a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(250,248,243,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--stone-400); }

/* ---- Floating action buttons (WhatsApp / call) -------------------------------*/
.fab-stack { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 12px; z-index: 60; }
.fab {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); color: #fff; font-size: 26px;
  transition: transform .15s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--gold); color: var(--ink); }

/* ---- Breadcrumb / page header (inner pages) -----------------------------------*/
.page-hero { padding: 150px 0 60px; background: var(--ink); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.crumbs { font-size: 13px; color: var(--stone-400); margin-bottom: 14px; font-family: var(--font-mono); }
.crumbs a:hover { color: var(--gold-soft); }

/* ---- Blog detail typography ---------------------------------------------------*/
.post-content { font-size: 17px; color: #2c2924; max-width: 760px; }
.post-content h2 { font-size: 26px; margin-top: 1.6em; }
.post-content h3 { font-size: 21px; margin-top: 1.3em; }
.post-content p { margin-bottom: 1.15em; }
.post-content img { border-radius: 6px; margin: 1.4em 0; }
.post-content blockquote { border-left: 3px solid var(--gold); margin: 1.6em 0; padding: 4px 0 4px 22px; font-style: italic; color: var(--ink-soft); }
.post-content ul, .post-content ol { padding-left: 22px; margin-bottom: 1.15em; }
.post-content a { color: var(--clay); text-decoration: underline; }
.tag-pill { display: inline-block; background: var(--stone-200); border-radius: 20px; padding: 4px 12px; font-size: 12.5px; margin: 0 6px 6px 0; color: var(--ink-soft); }

/* ---- Flash messages -------------------------------------------------------------*/
.flash-stack { position: fixed; top: 90px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.flash { padding: 14px 18px; border-radius: 6px; font-size: 14px; box-shadow: var(--shadow-md); color: #fff; }
.flash-success { background: #2f7d4f; }
.flash-danger { background: #b3413a; }
.flash-info { background: #3a5a8c; }
.flash-warning { background: #b3843a; }

/* ---- Form basics (public contact) --------------------------------------------*/
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px;
  font-family: var(--font-body); font-size: 14.5px; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

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