/* Arzum Şelale — anasayfa (anasayfa.png 1536×1024 referans) */
:root {
  --bg-dark: #04150e;
  --bg-darker: #051512;
  --bg-content: #f4f3f2;
  --bg-content-alt: #f9f9f9;
  --primary: #2d3c16;
  --primary-mid: #3e4e24;
  --gold: #c5a059;
  --gold-bright: #d4b06a;
  --leaf: #78c042;
  --leaf-bright: #8ad14f;
  --olive: #5b6c38;
  --text: #1a1f14;
  --text-muted: #5a5e56;
  --white: #ffffff;
  --container: 1160px;
  --header-h: 78px;
  --tabbar-h: 64px;
  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-content);
}

body.page-home,
body.page-inner {
  min-width: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(0, 8, 8, 0.92) 0%, rgba(4, 21, 14, 0.75) 100%);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--gold);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gold);
  border-radius: 22px;
  padding: 9px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-phone svg {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 6px;
  background: rgba(0, 8, 8, 0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 8, 0.78);
  backdrop-filter: blur(4px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  background: linear-gradient(180deg, #04150e 0%, #062118 100%);
  color: #fff;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  animation: navSlideIn 0.28s ease;
}

@keyframes navSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav-close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 18px;
}

.mobile-nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 16px 8px;
  min-height: 48px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a.is-active,
.mobile-nav-links a:hover {
  color: var(--gold);
}

.mobile-nav-phone {
  margin-top: 28px;
}

.mobile-nav-phone .header-phone {
  width: 100%;
  justify-content: center;
}

/* —— Hero —— */
.hero {
  position: relative;
  height: 480px;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #0a120c var(--hero-img, url("../img/hero-bg.jpg")) right center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 8, 8, 0.55) 0%, rgba(0, 8, 8, 0.2) 55%, rgba(0, 8, 8, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 78px;
  padding-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  width: var(--container);
  max-width: calc(100% - 80px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 8, 8, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-nav-prev { left: 18px; }
.hero-nav-next { right: 18px; }

.hero-nav:hover {
  background: rgba(0, 8, 8, 0.55);
  border-color: var(--gold);
}

.hero-content .hero-title,
.hero-content .hero-text,
.hero-content .hero-actions {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-line-white {
  display: block;
  font-size: 48px;
  color: var(--white);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero-line-gold {
  display: block;
  font-family: var(--font-script);
  font-size: 52px;
  font-style: normal;
  font-weight: 400;
  color: var(--leaf);
  margin: 6px 0 8px;
  line-height: 1.22;
  position: relative;
  z-index: 1;
}

.hero-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-gold {
  background: #78c042;
  color: #fff;
  border-radius: 22px;
  padding: 12px 22px;
  font-size: 13px;
}

.btn-gold:hover {
  background: #8ad14f;
}

.btn-outline-gold {
  background: rgba(0, 8, 8, 0.35);
  color: var(--white);
  border-color: var(--gold);
}

.hero-actions .btn-outline-gold {
  border-width: 1px;
  border-color: var(--gold);
  color: var(--white);
}

.btn-outline-gold:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-bright);
}

.news-head .btn-outline-gold {
  border-color: var(--gold);
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--primary-mid);
  color: var(--white);
  padding: 14px 32px;
  font-size: 13px;
}

.btn-primary:hover {
  background: var(--primary);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 12px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-dots .hero-dot,
.hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots .hero-dot.is-active,
.hero-dots button.is-active {
  width: 22px;
  height: 7px;
  border-radius: 4px;
  background: var(--white);
}

/* —— Services —— */
.services {
  background: var(--bg-content-alt);
  padding: 36px 0 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.services-grid li {
  text-align: center;
  padding: 18px 18px 14px;
  position: relative;
}

.services-grid li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 16%;
  right: 0;
  width: 1px;
  background: #e0dfdc;
}

.service-icon {
  display: inline-flex;
  color: var(--olive);
  margin-bottom: 10px;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

.service-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.service-text p {
  margin: 0;
}

.services-grid h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.services-grid p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* —— Section titles —— */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-align: center;
}

.leaf {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: var(--primary-mid);
  clip-path: path("M7 0C7 0 14 6 14 9.5C14 12.5 11 14 7 14C3 14 0 12.5 0 9.5C0 6 7 0 7 0Z");
  opacity: 0.9;
  flex-shrink: 0;
}

.leaf-flip {
  transform: scaleX(-1);
}

.title-rule {
  width: 48px;
  height: 1px;
  background: #cfcfc8;
}

/* —— Projects —— */
.projects {
  background: var(--bg-content);
  padding: 28px 0 32px;
}

.projects .section-title {
  margin-bottom: 18px;
  font-size: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.project-body {
  position: relative;
  padding: 14px 14px 16px;
  min-height: 88px;
}

.project-body h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-body p,
.project-summary {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  padding-right: 36px;
}

.project-summary p {
  margin: 0;
}

.project-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6a9e3a;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.projects-cta {
  text-align: center;
  margin-top: 22px;
}

.projects-cta .btn-primary {
  padding: 12px 24px;
  font-size: 13px;
}

/* —— Stats —— */
.stats {
  background: #081c15;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  position: relative;
  padding: 12px 18px;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.stat-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.stat-icon svg {
  width: 48px;
  height: 48px;
}

.stat-item strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-item span {
  font-size: 14px;
  opacity: 0.92;
}

/* —— News —— */
.news {
  background: var(--bg-content-alt);
  padding: 36px 0 40px;
}

.news-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  min-height: 44px;
}

.news-head .section-title {
  font-size: 20px;
  grid-column: 1 / -1;
  justify-self: center;
}

.news-head .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  padding: 12px 12px 14px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.news-card a {
  display: block;
}

.news-thumb {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.news-thumb time {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-mid);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  padding: 8px 10px;
  min-width: 64px;
  width: 64px;
  flex: 0 0 64px;
  border-radius: 6px;
}

.news-thumb time span {
  display: block;
  font-size: 20px;
}

.news-thumb time small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.25;
  white-space: normal;
}

.news-thumb img {
  order: 1;
  flex: 1 1 auto;
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  min-width: 0;
}

.news-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf);
}

/* —— Footer (anasayfa.png / hakkımızda.png — düz koyu yeşil) —— */
.site-footer {
  background: #051512;
  color: rgba(255, 255, 255, 0.92);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr 0.95fr 1.25fr;
  gap: 28px 0;
  padding-bottom: 36px;
  align-items: start;
}

.footer-about,
.footer-col {
  padding: 0 28px;
  position: relative;
}

.footer-about {
  padding-left: 0;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-about::after,
.footer-col:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.logo-footer img {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.88);
}

.socials {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  transition: border-color 0.15s, color 0.15s;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.socials svg {
  width: 14px;
  height: 14px;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col li,
.footer-col a,
.footer-col span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: #c5a059;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  background: transparent;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 0;
}

.footer-links a,
.footer-cookie-prefs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover,
.footer-cookie-prefs:hover {
  color: var(--gold);
}

html.cookie-consent-decided .cookie-consent {
  display: none;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 16px 0;
  border-top: 1px solid rgba(197, 160, 89, 0.35);
  background: rgba(4, 21, 14, 0.98);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
}

.cookie-consent-title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: #fff;
}

.cookie-consent-desc {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-desc a {
  color: var(--gold-bright);
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-consent-btn {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-btn:hover {
  background: rgba(197, 160, 89, 0.12);
}

.legal-content-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-content-modal[hidden] {
  display: none;
}

.legal-content-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.legal-content-modal-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 22px 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.legal-content-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-content-modal-heading {
  margin: 0;
  font-size: 22px;
}

.legal-content-modal-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cookie-prefs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-prefs-copy strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-prefs-copy span {
  color: var(--text-muted);
  font-size: 13px;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.cookie-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d9d9d9;
}

.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cookie-switch input:checked + .cookie-switch-ui {
  background: var(--gold);
}

.cookie-switch input:checked + .cookie-switch-ui::after {
  transform: translateX(20px);
}

.cookie-prefs-save {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

body.legal-modal-open,
html.cookie-consent-pending body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1 1 auto;
  }
}

/* —— Back to top —— */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary-mid);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* —— Mobile app tab bar —— */
.app-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(4, 21, 14, 0.97);
  border-top: 1px solid rgba(197, 160, 89, 0.35);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.app-tabbar ul {
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 5), 1fr);
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.app-tabbar a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.app-tabbar a.is-active,
.app-tabbar a:hover {
  color: var(--gold);
}

.app-tabbar a.is-active {
  background: rgba(197, 160, 89, 0.12);
}

@media (max-width: 991px) {
  body.has-tabbar {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    overscroll-behavior-y: none;
  }

  /* Üst logo şeridi + alt tab menü: kaydırırken sabit (mobil app chrome) */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(0, 8, 8, 0.96);
    border-bottom: 1px solid rgba(197, 160, 89, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .page-inner .site-header {
    background: rgba(0, 8, 8, 0.96);
  }

  .app-tabbar {
    display: block;
  }

  body.has-tabbar .cookie-consent {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* —— Responsive: 1280 / 768 / 375 —— */
@media (min-width: 992px) {
  .nav-toggle {
    display: none !important;
  }

  .main-nav {
    display: block !important;
  }
}

@media (max-width: 1279px) {
  .container,
  .hero-content {
    max-width: calc(100% - 48px);
  }

  .main-nav ul {
    gap: 14px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid li:nth-child(3)::after {
    display: none;
  }

  .projects-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  .main-nav {
    display: none !important;
  }

  .site-header .header-inner {
    justify-content: center;
  }

  .site-header .logo {
    margin: 0 auto;
  }

  .header-phone {
    display: none;
  }

  .hero,
  .hero-slide {
    min-height: 420px;
    height: auto;
  }

  .hero-line-white {
    font-size: 34px;
  }

  .hero-line-gold {
    font-size: 40px;
  }

  .hero-nav {
    display: none;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid li::after {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-about,
  .footer-col {
    padding: 0 12px;
  }

  .footer-about::after,
  .footer-col:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .container,
  .hero-content {
    max-width: calc(100% - 32px);
  }

  .logo img {
    height: 42px;
  }

  .hero {
    min-height: 460px;
  }

  .hero-line-white {
    font-size: 28px;
  }

  .hero-line-gold {
    font-size: 34px;
  }

  .hero-text {
    font-size: 14px;
  }

  .services-grid,
  .projects-grid,
  .news-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title {
    font-size: 22px;
  }
}

