/* Rubaçelik — static site */
:root {
  --navy: #1b2d5b;
  --navy-dark: #10182f;
  --navy-mid: #243666;
  --navy-soft: #31457a;
  --steel: #7e8896;
  --steel-2: #a8b0bb;
  --steel-light: #d7dce3;
  --bg: #f3f5f8;
  --bg-alt: #eef1f5;
  --white: #ffffff;
  --text: #1a2030;
  --muted: #5a6372;
  --line: #e3e7ed;
  --wa: #128c7e;
  --wa-hover: #0e7368;
  --focus: #3d6ecc;
  --header-h: 76px;
  --max: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 24, 47, 0.08);
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow", "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy-soft); }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.logo-link img {
  height: 54px;
  width: auto;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--navy-soft); }

.lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.lang a {
  text-decoration: none;
  color: var(--steel);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
}
.lang a[aria-current="page"] {
  color: var(--navy);
  background: var(--bg);
}
.lang a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-mid); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-whatsapp {
  background: var(--wa);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--wa-hover); color: #fff; }
.btn-header {
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(280px, 1.18fr);
  min-height: calc(100svh - var(--header-h));
  background: var(--navy-dark);
  color: #fff;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.5rem, 5vw, 4.25rem);
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 16ch;
}
.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #d5dae3;
  max-width: 36ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-primary:hover { background: #e8ecf3; color: var(--navy); }
.hero-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #0c1324;
}
.hero-visual picture, .hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-visual img {
  object-fit: cover;
  object-position: center 22%;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.section-head h2,
.about-text h2,
.contact-copy h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}
.section-head p, .about-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.about-text p:last-child { margin-bottom: 0; }
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2.75rem;
}
.about-logo {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.2rem;
}
.about-logo img { width: 100%; height: auto; margin: 0 auto; }

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.value {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.3rem;
}
.value .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.value .icon svg { width: 20px; height: 20px; }
.value h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.value p { margin: 0; font-size: 0.95rem; color: var(--muted); }

#services { background: var(--bg); }
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: 0 1px 0 rgba(16,24,47,0.02);
  border-top: 3px solid var(--navy);
}
.service h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.service p { margin: 0; color: var(--muted); }

#projects { background: #fff; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: #d5dae0;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item[data-pos="top"] img { object-position: center 18%; }
.gallery-item[data-pos="upper"] img { object-position: center 30%; }
.gallery-item[data-pos="mid"] img { object-position: center 45%; }
.gallery-item[data-pos="lower"] img { object-position: center 60%; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 0.95rem 0.9rem;
  background: linear-gradient(to top, rgba(16,24,47,0.82), rgba(16,24,47,0));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 24, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.5rem 4.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100svh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #e8eaee;
  font-family: var(--font-display);
  font-weight: 600;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
  transform: none;
  font-size: 1.8rem;
}

#contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.contact-list .icon {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.contact-list .icon svg { width: 18px; height: 18px; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span, .contact-list address {
  font-style: normal;
  color: var(--text);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe3e8;
  min-height: 360px;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}
.map-link {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}
.map-link a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c5cad3;
  padding: 2.5rem 0 1.75rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer .logo-link img {
  height: 48px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}
.footer-meta p { margin: 0.35rem 0 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
}
.site-footer a { color: #e8eaee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright {
  margin: 1.25rem 0 0;
  color: #8b93a0;
  font-size: 0.85rem;
}

.wa-float {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4);
  text-decoration: none;
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 180px 1fr; gap: 2rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 320px; }
}
@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .logo-link img { height: 46px; }
  .btn-header-label { display: none; }
  .nav-toggle { display: flex; }
  .header-tools {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.1rem;
    box-shadow: var(--shadow);
  }
  .header-tools.is-open { display: flex; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .lang { border-left: 0; padding: 0.85rem 0 0.5rem; }
  .header-tools .btn-header { width: 100%; margin-top: 0.4rem; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: 0;
    grid-template-rows: 1fr auto;
  }
  .hero-visual {
    order: -1;
    height: auto;
    min-height: 0;
  }
  .hero-visual img { object-position: center 16%; }
  .hero-copy { padding: 1.35rem 1.25rem 4.75rem; }
  .hero h1 { max-width: none; }
  .hero .lead { max-width: 42ch; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-logo { max-width: 200px; }
  .wa-float { display: flex; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 0.7rem; }
  .gallery-item { aspect-ratio: 5 / 6; }
}

body.lb-open { overflow: hidden; }
