/* ==========================================================================
   ZISOFA | Doğal Mimarlık & Lüks Yaşam Stüdyosu
   SDMIM Mimari Altyapı Standartları - Saf Statik Tasarım Sistemi
   ========================================================================== */

:root {
  --bg-cream: hsl(55, 35.29%, 93.33%);       /* #F4F2E7 */
  --bg-sand: hsl(40, 37.5%, 84.31%);         /* #E6DEC8 */
  --bg-sage: hsl(111.43, 14.29%, 71.18%);    /* #AFBFAC */
  --ink-forest: hsl(120, 16.46%, 15.49%);    /* #212E21 */
  --ink-muted: hsl(120, 10%, 34%);
  --accent-lime: hsl(67.39, 95.83%, 71.76%); /* #E8FB72 */
  --border-subtle: hsla(120, 16.46%, 15.49%, 0.14);
  --surface-white: #FAF9F4;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1280px;
  --radius: 4px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--ink-forest);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.28;
  color: var(--ink-forest);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: hsla(55, 35.29%, 93.33%, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink-forest);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.main-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--ink-forest);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--ink-forest);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--ink-forest);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background-color: var(--ink-forest);
  color: var(--bg-cream);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--ink-forest);
}

.btn-accent {
  background-color: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--ink-forest);
}

.btn-accent:hover {
  background-color: var(--bg-cream);
  border-color: var(--bg-cream);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink-forest);
}

.btn-outline:hover {
  background-color: var(--ink-forest);
  color: var(--bg-cream);
}

/* Sections */
.section {
  padding: clamp(64px, 8vw, 118px) 0;
}

.section-sand {
  background-color: var(--bg-sand);
}

.section-sage {
  background-color: var(--bg-sage);
}

.section-forest {
  background-color: var(--ink-forest);
  color: var(--bg-cream);
}

.section-forest h1,
.section-forest h2,
.section-forest h3,
.section-forest h4 {
  color: var(--bg-cream);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: block;
}

.section-forest .section-eyebrow {
  color: var(--accent-lime);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-color: var(--ink-forest);
  color: var(--bg-cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 34, 24, 0.45) 0%, rgba(24, 34, 24, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 96px 0;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  color: var(--bg-cream);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.75;
  color: hsla(55, 35.29%, 93.33%, 0.92);
  margin-bottom: 36px;
}

/* Page Header (Subpages) */
.page-hero {
  padding: clamp(60px, 7vw, 100px) 0 clamp(42px, 5vw, 68px);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-sand);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  margin-bottom: 18px;
}

.page-hero p {
  max-width: 780px;
  font-size: 1.18rem;
  color: var(--ink-muted);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(33, 46, 33, 0.08);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-sand);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
  flex: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-forest);
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.split-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Project Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
  background-color: var(--bg-sand);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 25, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(244, 242, 231, 0.14);
  color: #F4F2E7;
  border: 1px solid rgba(244, 242, 231, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 242, 231, 0.8);
  font-size: 0.95rem;
}

/* Accordion (SSS) */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 26px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 26px 24px;
  color: var(--ink-muted);
}

/* Forms */
.contact-form {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--ink-forest);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ink-forest);
  border-color: transparent;
}

.kvkk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 22px;
}

.kvkk-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Article / Blog Prose */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2, .prose h3, .prose h4 {
  margin-top: 36px;
  margin-bottom: 14px;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul {
  margin: 14px 0 22px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--ink-forest);
  color: var(--bg-cream);
  padding: 68px 0 38px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid hsla(55, 35.29%, 93.33%, 0.16);
}

.footer-brand h2 {
  color: var(--bg-cream);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 10px;
}

.footer-brand p {
  color: hsla(55, 35.29%, 93.33%, 0.78);
  font-size: 1rem;
}

.footer-brand a {
  color: var(--accent-lime);
  text-decoration: underline;
}

.footer-col h3 {
  color: var(--accent-lime);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li {
  color: hsla(55, 35.29%, 93.33%, 0.85);
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  color: hsla(55, 35.29%, 93.33%, 0.65);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mobile-menu-btn { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* SEO & UX Components: Breadcrumb, Project Meta, Author E-E-A-T Box */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--ink-forest);
}

.breadcrumb-sep {
  opacity: 0.45;
  user-select: none;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding: 22px 26px;
  margin-bottom: 34px;
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.project-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-spec-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.project-spec-value {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink-forest);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.author-box {
  margin-top: 48px;
  padding: 26px 28px;
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--ink-forest);
  border-radius: var(--radius);
}

.author-box-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--ink-forest);
  margin-bottom: 6px;
}

.author-box p {
  font-size: 0.98rem;
  color: var(--ink-muted);
  margin-bottom: 0;
}

.author-box a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background-color: var(--surface-white);
  margin-left: 8px;
}

.lang-switch a {
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ink-muted);
}

.lang-switch a::after {
  display: none !important;
}

.lang-switch a:hover {
  color: var(--ink-forest);
}

.lang-switch a.lang-active {
  background-color: var(--ink-forest);
  color: var(--bg-cream);
}

/* Arabic RTL Support */
[dir="rtl"] {
  --font-serif: 'Amiri', Georgia, serif;
  --font-sans: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

[dir="rtl"] body {
  line-height: 1.85;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  letter-spacing: 0;
  line-height: 1.4;
}

[dir="rtl"] .section-eyebrow {
  letter-spacing: 0.04em;
}

[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .author-box {
  border-left: 1px solid var(--border-subtle);
  border-right: 3px solid var(--ink-forest);
}

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .prose ul {
  margin: 14px 22px 22px 0;
}

[dir="rtl"] blockquote {
  border-left: none !important;
  border-right: 4px solid var(--ink-forest);
}
