/* Şahlıoğlu Grup İnşaat — shared styles */
:root {
  --bg: #1a1410;            /* espresso */
  --bg-2: #221a15;          /* slightly lighter */
  --bg-3: #2d241d;          /* card */
  --line: #3a2f26;
  --line-2: #4a3d31;
  --ink: #f4ece0;           /* cream */
  --ink-2: #d9cab5;
  --ink-3: #9d8c77;
  --accent: #F5C518;        /* construction yellow */
  --accent-ink: #1a1410;
  --danger: #d46a4a;
  --success: #7ea86a;
  --max: 1240px;
  --radius: 2px;
  --radius-lg: 6px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 400; letter-spacing: 0.02em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 20, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  padding: 10px 18px !important;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: #ffd83a; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 28px 28px;
    gap: 2px;
    align-items: stretch;
    transform: translateY(-120%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: inline-flex; }
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 120px;
  background: #120d0a;
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; max-width: 340px; line-height: 1.7; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============ TYPOGRAPHY / COMMON ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }

.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }

.section { padding: 100px 0; }
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: end;
}
.section-header .label-col { display: flex; flex-direction: column; gap: 20px; }
.section-header h2 { max-width: 18ch; }
@media (max-width: 800px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .section { padding: 72px 0; }
}

/* ============ PAGE HERO (secondary pages) ============ */
.page-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.page-hero .crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs span { margin: 0 8px; color: var(--line-2); }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); }
.page-hero p { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 52ch; }
@media (max-width: 800px) {
  .page-hero .container { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 64px 0 40px; }
}

/* ============ PLACEHOLDERS (striped image blocks) ============ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244, 236, 224, 0.04),
      rgba(244, 236, 224, 0.04) 10px,
      rgba(244, 236, 224, 0.07) 10px,
      rgba(244, 236, 224, 0.07) 20px
    ),
    var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-2);
  pointer-events: none;
}
.ph-label {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  padding: 5px 9px;
  border: 1px solid var(--line-2);
}
.ph-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  max-width: calc(100% - 40px);
  line-height: 1.5;
}
.ph-caption strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; text-transform: none; letter-spacing: 0; }

/* ============ PORTFOLIO GRID ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}
.portfolio-hero {
  grid-column: 1;
  grid-row: 1 / 3;
}
.portfolio-grid .ph:not(.portfolio-hero) {
  min-height: 0;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 220px;
  }
  .portfolio-hero {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .portfolio-hero {
    grid-column: 1;
    grid-row: auto;
    min-height: 240px;
  }
  .portfolio-grid .ph { min-height: 200px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd83a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--bg-2); }
.btn svg { width: 14px; height: 14px; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); }

/* ============ UTILITY ============ */
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.grid-lines {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* appear animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
