/* Tuğla Merkezi — ABC Yalıtım ve Yapı Malzemeleri */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7e2bc;
  --cream-soft: #f4ead8;
  --paper: #fbf6ee;
  --terracotta: #b54a2c;
  --terracotta-dark: #8c321c;
  --brick: #c56a42;
  --anthracite: #1a1714;
  --ink: #2a221b;
  --muted: #6b5e52;
  --soft: #e4e2d6;
  --line: #d9cdb8;
  --white: #fffdf9;
  --header-h: 76px;
  --wrap: 1160px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(26, 23, 20, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-dark); }
address { font-style: normal; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--anthracite);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.85rem;
}
.eyebrow.dark { color: var(--terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 620;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cream {
  background: var(--cream);
  color: #281e14;
}
.btn-cream:hover { background: #ffe9c4; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 226, 188, 0.45);
}
.btn-ghost:hover { background: rgba(247, 226, 188, 0.1); }
.btn-block { width: 100%; }

.text-link {
  font-weight: 620;
  text-decoration: none;
  color: var(--terracotta-dark);
  border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--terracotta); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 23, 20, 0.94);
  backdrop-filter: blur(12px);
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 226, 188, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
}
.brand-text small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--anthracite);
}
.hero-media, .hero-media picture, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; object-position: 35% 50%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.25) 0%, rgba(20, 18, 14, 0.15) 32%, rgba(20, 18, 14, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 18, 14, 0.45) 0%, rgba(20, 18, 14, 0.05) 55%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.4rem;
  max-width: 42rem;
  margin-left: max((100% - var(--wrap)) / 2, 1rem);
  margin-right: auto;
  width: min(calc(100% - 2rem), 42rem);
}
.hero-copy h1 { color: var(--cream); margin-bottom: 0.7rem; }
.hero .lead {
  color: #efe7d8;
  font-size: 1.05rem;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Intro */
.intro {
  background: var(--cream-soft);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .intro-grid { grid-template-columns: 1fr 1.1fr; align-items: end; gap: 3rem; }
}
.intro-text { font-size: 1.12rem; color: var(--ink); margin: 0; }

.section { padding: 4.2rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

/* Products */
.products { background: var(--paper); }
.product-featured { display: grid; gap: 1.4rem; margin-bottom: 1.4rem; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 23, 20, 0.05);
}
.product-photo { background: #ddd4c6; }
.product-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.product-body { padding: 1.25rem 1.35rem 1.5rem; }
.product-body p { color: var(--muted); }
.badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  color: #3a2a1c;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.product-card.typo {
  box-shadow: none;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.4rem;
}
.product-card.typo h3 { font-size: 1.45rem; }
.product-card.typo p { flex: 1; }
.typo-cream { background: var(--cream); color: var(--ink); }
.typo-cream p, .typo-soft p { color: #4a3d32; }
.typo-brick { background: var(--terracotta); color: var(--cream); }
.typo-brick p { color: #f6e4d0; }
.typo-brick .text-link,
.typo-ink .text-link { color: var(--cream); }
.typo-ink { background: var(--anthracite); color: var(--cream); }
.typo-ink p { color: #d8cbb8; }
.typo-ink h3,
.typo-brick h3 { color: inherit; }
.typo-soft { background: #efe4cf; color: var(--ink); }
.product-card.typo .badge { align-self: flex-start; }


/* Factory / manufacturer blocks — add another .factory-block for the next brand */
.factory-block {
  margin-bottom: 2.4rem;
  padding: 1.5rem 1.25rem 1.4rem;
  background: var(--cream-soft);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
}
.factory-head { max-width: 40rem; margin-bottom: 1.25rem; }
.factory-head h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 0.35em;
}
.factory-head > p:not(.badge) { color: var(--muted); }
.factory-products {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.factory-product {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 23, 20, 0.06);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.06);
  display: flex;
  flex-direction: column;
}
.factory-photo { background: #ddd4c6; }
.factory-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}
.factory-product:first-child .factory-photo img { object-position: center 40%; }
.factory-product-body {
  padding: 0.95rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
}
.factory-product-body .text-link { margin-top: auto; }
.factory-product-body h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: 1.18rem;
  margin: 0;
  color: var(--anthracite);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* A factory block with one product: horizontal split on desktop, stacked on mobile */
.factory-products:has(> :only-child) {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .factory-products:has(> :only-child) .factory-product {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: stretch;
  }
  .factory-products:has(> :only-child) .factory-photo img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover;
  }
  .factory-products:has(> :only-child) .factory-product-body {
    justify-content: center;
    padding: 1.4rem 1.7rem 1.5rem;
    gap: 0.65rem;
  }
  .factory-products:has(> :only-child) .factory-product-body .text-link {
    margin-top: 0;
  }
}

.other-products-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 1rem;
}

/* Projects */
.projects { background: var(--cream-soft); }
.project-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(26, 23, 20, 0.06);
}
.project-photo { position: relative; background: #cfc3b0; }
.project-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.project-body { padding: 1rem 1.15rem 1.2rem; }
.project-body p { color: var(--muted); margin: 0; }
.status-pill {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--cream);
  color: var(--anthracite);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* Quote form */
.quote {
  background: var(--anthracite);
  color: var(--cream-soft);
}
.quote h2 { color: var(--cream); }
.quote .eyebrow { color: var(--brick); }
.quote-grid {
  display: grid;
  gap: 2rem;
}
.quote-intro p { color: #d9cdb8; }
.quote-intro .note {
  font-size: 0.9rem;
  color: #b9aa96;
  border-left: 2px solid var(--terracotta);
  padding-left: 0.8rem;
}
.quote-contacts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.quote-contacts a { color: var(--cream); text-decoration: none; font-weight: 600; }
.quote-contacts a:hover { text-decoration: underline; }

.quote-form {
  background: #241f1a;
  border: 1px solid rgba(247, 226, 188, 0.14);
  border-radius: 22px;
  padding: 1.3rem;
}
.field-row { display: grid; gap: 0.85rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
.field span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; }
.field abbr { color: var(--brick); text-decoration: none; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(247, 226, 188, 0.22);
  background: #1a1714;
  color: var(--white);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--cream);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-file small { color: #b9aa96; font-size: 0.8rem; }
.field input[type="file"] {
  padding: 0.55rem;
  background: #1f1b16;
}
.form-error {
  color: #ffc4b0;
  background: rgba(181, 74, 44, 0.2);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* Contact */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  gap: 1.2rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.contact-card a { color: var(--terracotta-dark); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer {
  background: #120f0d;
  color: #d4c6b2;
  padding: 2.6rem 0 6.5rem;
}
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-brand img { width: 64px; height: auto; flex-shrink: 0; }
.footer-brand p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
  line-height: 1.35;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-links a { color: #d4c6b2; text-decoration: none; }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.85rem; color: #8d7f70; margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 20, 15, 0.28);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1ebe5d; }
.wa-float:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* Layout breakpoints */
@media (min-width: 700px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .factory-products { grid-template-columns: repeat(3, 1fr); }
  .factory-block { padding: 1.7rem 1.6rem 1.6rem; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-column: 1 / -1; }
  .project-wide .project-photo img { height: 380px; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .quote-form { padding: 1.6rem 1.7rem; }
}

@media (min-width: 960px) {
  .product-featured { grid-template-columns: 1fr 1fr; }
  .product-featured:has(> :only-child) { grid-template-columns: minmax(0, calc(50% - 0.7rem)); }
  .quote-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 3rem; }
  .project-grid { grid-template-columns: repeat(6, 1fr); }
  .project-card { grid-column: span 3; }
  .project-card:nth-child(3),
  .project-card:nth-child(4) { grid-column: span 3; }
  .project-wide { grid-column: span 6; }
  .product-photo img { height: 240px; }
}

@media (max-width: 799px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--anthracite);
    flex-direction: column;
    padding: 0.6rem 1.25rem 1.2rem;
    gap: 0;
    border-bottom: 1px solid rgba(247, 226, 188, 0.12);
  }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(247, 226, 188, 0.08); }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
}

@media (max-width: 420px) {
  .brand img { width: 48px; }
  .hero { min-height: 88vh; }
  .hero-copy { padding-top: 4.2rem; }
  .project-photo img { height: 240px; }
}
