/* ==========================================================================
   HEADER
   ========================================================================== */

/*
 * Default header: solid, always legible. Used on every page that does NOT
 * open on a full-bleed dark hero (hakkimizda, kurumsal, subelerimiz, iletisim).
 * `.site-header--overlay` (added only in index.html and kariyer.html, which
 * DO open on a dark hero) turns it transparent+cream until scrolled, at which
 * point it converges to this same solid look.
 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--surface-cream);
  border-bottom: 1px solid var(--border-soft);
  color: var(--brand-ink);
  transition: height var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-header.is-scrolled {
  height: 76px;
}

.site-header--overlay {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--brand-cream);
  text-shadow: 0 1px 4px rgba(20, 33, 15, 0.3);
}

.site-header--overlay.is-scrolled {
  background: var(--surface-cream);
  border-bottom-color: var(--border-soft);
  color: var(--brand-ink);
  text-shadow: none;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-caption {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.site-header.is-scrolled .brand-caption {
  display: none;
}

.brand-tanzim {
  padding-left: var(--space-4);
  border-left: 1px solid var(--border-soft);
  transition: border-color var(--transition);
}

.site-header--overlay .brand-tanzim {
  border-left-color: rgba(250, 250, 247, 0.3);
}

.brand img {
  height: 60px;
  width: auto;
  transition: filter var(--transition), height var(--transition);
}

.brand-tanzim img {
  height: 60px;
}

.site-header.is-scrolled .brand img {
  height: 44px;
}

.site-header.is-scrolled .brand-tanzim img {
  height: 44px;
}

.site-header--overlay .brand img,
.site-header--overlay .brand-tanzim img {
  filter: brightness(0) invert(1);
}

.site-header--overlay.is-scrolled .brand img,
.site-header--overlay.is-scrolled .brand-tanzim img {
  filter: none;
}

/* Below ~480px both logos side by side plus the 40px nav-toggle get tight
   before the user has scrolled (is-scrolled hasn't kicked in yet) — shrink
   them up front on narrow phones. */
@media (max-width: 480px) {
  .brand img {
    height: 42px;
  }

  .brand-tanzim img {
    height: 42px;
  }

  .brand-group {
    gap: var(--space-3);
  }

  .brand-tanzim {
    padding-left: var(--space-3);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  white-space: nowrap;
}

.nav > .btn {
  font-size: var(--text-lg);
}

.nav__list a {
  position: relative;
  padding-block: var(--space-1);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transition: right var(--transition);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   MOBILE NAV OVERLAY
   ========================================================================== */

.nav-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .nav__list,
  .nav .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .nav-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 33, 15, 0.55);
    opacity: 0;
    transition: opacity var(--transition-slow);
  }

  .nav-overlay.is-open .nav-overlay__backdrop {
    opacity: 1;
  }

  .nav-overlay__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: var(--surface-cream);
    color: var(--brand-ink);
    box-shadow: -16px 0 48px rgba(20, 33, 15, 0.3);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }

  .nav-overlay.is-open .nav-overlay__panel {
    transform: translateX(0);
  }

  .nav-overlay__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: var(--space-10);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
  }

  .nav-overlay__list a {
    display: block;
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
  }

  .nav-overlay__list a:hover,
  .nav-overlay__list a.is-active {
    background: rgba(46, 125, 50, 0.1);
    color: var(--brand-green);
  }

  .nav-overlay__list li:last-child {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-soft);
  }

  .nav-overlay__list li:last-child a {
    background: var(--gradient-forest);
    color: var(--brand-cream);
    text-align: center;
    border-radius: var(--radius-full);
  }

  .nav-overlay__close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 40px;
    height: 40px;
  }

  .nav-overlay__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
  }

  .nav-overlay__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-overlay__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   SECTION / DIAGONAL SYSTEM
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--space-16);
  overflow: hidden;
}

@media (min-width: 900px) {
  .section {
    padding-block: 8rem;
  }
}

.section--tight {
  padding-block: var(--space-12);
}

/*
 * For whichever section is the first thing in <main>. The header is fixed
 * (zero flow height), so every page needs its first section's CONTENT
 * pushed below it — the background is free to still run up to y:0, which is
 * what makes the transparent overlay header (index.html, kariyer.html) work.
 */
.section--header-offset {
  padding-top: calc(var(--header-height) + var(--space-10));
}

@media (min-width: 900px) {
  .section--header-offset {
    padding-top: calc(var(--header-height) + var(--space-12));
  }
}

.section--diagonal-top {
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--space-16) + 56px);
}

.section--diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-bottom: calc(var(--space-16) + 56px);
}

.section--diagonal-both {
  clip-path: polygon(0 56px, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding-top: calc(var(--space-16) + 56px);
  padding-bottom: calc(var(--space-16) + 56px);
}

.section-head {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-head--wide {
  max-width: 760px;
}

/* ==========================================================================
   ASYMMETRIC GRID PRIMITIVES
   ========================================================================== */

.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

.split--40-60 {
  grid-template-columns: 2fr 3fr;
}

@media (max-width: 900px) {
  .split--60-40,
  .split--40-60 {
    grid-template-columns: 1fr;
  }
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: var(--space-5);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 3;
}

.bento-row-2 {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 2;
  }
}

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

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 1;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  background: var(--gradient-forest);
  color: var(--brand-cream);
  clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%);
  margin-top: -64px;
  padding-top: calc(var(--space-16) + 64px);
  padding-bottom: var(--space-10);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-leaf);
  margin-bottom: var(--space-5);
}

.site-footer p {
  color: rgba(250, 250, 247, 0.82);
}

.site-footer a {
  color: rgba(250, 250, 247, 0.82);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--brand-lime);
}

.site-footer .social-links {
  margin-top: var(--space-4);
}

.site-footer .social-links a {
  color: var(--brand-cream);
  border-color: rgba(250, 250, 247, 0.3);
}

.site-footer .social-links a:hover {
  border-color: var(--brand-lime);
  color: var(--brand-lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(250, 250, 247, 0.16);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer-brand img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-4);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: rgba(250, 250, 247, 0.6);
}

.footer-bar nav {
  display: flex;
  gap: var(--space-5);
}
