/* Agen Mimarlık — local redesign v1. Not published. */
:root {
  --bg: #f3efe6;
  --bg-alt: #e8e1d4;
  --paper: #faf7f1;
  --ink: #1b1814;
  --ink-2: #5c564c;
  --ink-3: #8a8378;
  --line: #d5cec1;
  --line-strong: #c4bbaa;
  --accent: #7a4a27;
  --accent-hover: #5e361b;
  --accent-soft: #e4d5c3;
  --hero-shade: linear-gradient(180deg, rgba(16,14,12,.15) 0%, rgba(16,14,12,.25) 40%, rgba(16,14,12,.72) 100%);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
  --wide: 1400px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --header: 4.75rem;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: var(--pad); top: .5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 36px; width: auto; }
.nav {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav a {
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper) !important;
  text-decoration: none !important;
  padding: .7rem 1.15rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper) !important; }
.cta-ghost {
  background: transparent; color: var(--paper) !important;
  border-color: rgba(255,255,255,.7);
}
.cta-ghost:hover { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); }
.cta-line {
  background: none; color: var(--accent) !important; border: 0; padding: 0;
  letter-spacing: .06em; box-shadow: inset 0 -1px 0 var(--accent);
  border-radius: 0;
}
.cta-line:hover { color: var(--accent-hover) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 1rem var(--pad) 1.5rem;
    gap: 1rem;
  }
  body.nav-open .nav { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-shade);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(2.5rem, 7vh, 5rem);
  width: 100%;
}
.hero-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .95;
  color: #fff;
  margin-bottom: .9rem;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  font-weight: 400;
  letter-spacing: .02em;
  max-width: 28rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.hero .cta-ghost { margin-right: .75rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }
.section-kicker {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .85rem;
}
.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.lead {
  max-width: 42rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.section-head { margin-bottom: 2.75rem; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--bg-alt);
}
.service-card .media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.service-card h3 { font-size: 1.7rem; }
.service-card .tagline { font-style: italic; font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); }
.service-card .desc { color: var(--ink-2); font-size: .98rem; flex: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .9rem; color: var(--ink-3); }
.missing-note {
  font-size: .85rem; color: var(--ink-3);
  font-style: italic;
  border-left: 2px solid var(--line-strong);
  padding-left: .75rem;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* Portfolio grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1.25rem;
}
.project-card { text-decoration: none; color: inherit; display: block; group: true; }
.project-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: .85rem;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.project-card:hover img { transform: scale(1.04); }
.project-card h3 {
  font-size: 1.55rem;
  margin-bottom: .2rem;
}
.project-card p { color: var(--ink-2); font-size: .95rem; }

@media (max-width: 800px) {
  .project-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.blog-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 1.25rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.blog-card .meta { font-size: .8rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.blog-card h3 { font-size: 1.5rem; }
.blog-card p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; max-width: 36rem; }
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .8rem; }
.breadcrumb {
  font-size: .85rem; color: var(--ink-3); margin-bottom: 1.1rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Project page */
.project-hero-img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}
.project-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
  align-items: start;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  padding-bottom: 4rem;
}
.gallery a { display: block; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery a:first-child img { aspect-ratio: 16 / 9; }
@media (max-width: 800px) {
  .project-intro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a:first-child { grid-column: auto; }
}

/* Article */
.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 var(--pad) 5rem;
  font-size: 1.08rem;
  color: var(--ink);
}
.article .cover {
  margin: 0 calc(var(--pad) * -1) 2.5rem;
  max-width: none;
}
.article .cover img { width: 100%; max-height: 28rem; object-fit: cover; aspect-ratio: 16 / 8; }
.article p { margin-bottom: 1.15em; }
.article-meta { color: var(--ink-3); font-size: .9rem; margin-bottom: 1.5rem; letter-spacing: .03em; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin: 0 0 1.15rem; }
.contact-list span {
  display: block; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem;
}
.contact-list a { text-decoration: none; font-size: 1.2rem; }
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem;
}
.form label { display: block; font-size: .85rem; margin: 0 0 .35rem; color: var(--ink-2); }
.form .field { margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: .7rem .8rem;
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent);
}
.form textarea { min-height: 8rem; resize: vertical; }
.form-note {
  font-size: .85rem; color: var(--ink-3); margin-top: 1rem;
  font-style: italic;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  color: var(--ink-2);
  font-size: .92rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer .logo img { height: 32px; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .4rem; }
.foot-legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; font-size: .82rem; color: var(--ink-3); }
.muted { color: var(--ink-3); }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Misc */
.more-row { margin-top: 2.25rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(12,10,8,.92);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer;
}

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

.legal-doc { max-width: 44rem; }
.legal-doc h1 { margin-bottom: .5rem; }
.legal-doc h2 { font-family: var(--serif); font-size: 1.45rem; margin: 2rem 0 .75rem; font-weight: 600; }
.legal-doc p, .legal-doc li { line-height: 1.7; }
.legal-doc ul { margin: 0 0 1.1rem 1.2rem; }
.legal-doc li { margin-bottom: .35rem; }
.legal-placeholder {
  border: 1px solid var(--line);
  background: #f7f1e8;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.legal-placeholder strong { display: block; margin-bottom: .35rem; }
.form-status { margin-top: .9rem; min-height: 1.4em; }
.form-status.is-ok { color: #2c5a3c; }
.form-status.is-err { color: #8a2a22; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
