/* ============================================
   VARYASYON E — BestBuild İlhamlı
   Minimal kurumsal, temiz beyaz arka plan,
   mavi-gri tonlar, featured projects, Instagram grid
   ============================================ */

/* --- Global 10% Font Scale --- */
html:has(body.variation-e) {
  font-size: 17.6px; /* 16px × 1.1 = %10 artış */
}

/* --- Color Tokens --- */
:root {
  --e-navy: #2C3E6B;
  --e-navy-dark: #1E2D52;
  --e-navy-light: #3D5080;
  --e-blue-soft: #5B7FBF;
  --e-gold: #C5A55A;
  --e-bg: #FFFFFF;
  --e-bg-alt: #F4F6F9;
  --e-border: #E2E6ED;
  --e-text: #3A3F4B;
  --e-text-light: #7A818E;
  --e-text-muted: #A4AAB6;
}

/* --- Font Override — Outfit + DM Sans --- */
body.variation-e {
  font-family: 'DM Sans', sans-serif;
}

body.variation-e h1,
body.variation-e h2,
body.variation-e h3,
body.variation-e h4 {
  font-family: 'Outfit', sans-serif;
}

body.variation-e h1 { font-weight: 900; letter-spacing: -1px; }
body.variation-e h2 { font-weight: 800; letter-spacing: -0.5px; }
body.variation-e h3 { font-weight: 700; }
body.variation-e h4 { font-weight: 700; }

body.variation-e .section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

body.variation-e .nav__links a,
body.variation-e .nav__mobile a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}

body.variation-e .btn,
body.variation-e .btn--e-primary,
body.variation-e .label {
  font-family: 'DM Sans', sans-serif;
}

body.variation-e .eco-section__text h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

body.variation-e .eco-section__text p,
body.variation-e .eco-section__btn {
  font-family: 'DM Sans', sans-serif;
}

/* --- Header White/Transparent --- */
.header--e {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header--e.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Nav right-align layout */
.nav__right-e {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header--e .nav__links a {
  color: var(--e-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.header--e .nav__links a:hover {
  color: var(--e-navy);
}

/* Lang switch — light header variant */
.lang-switch--e {
  border-color: rgba(0,0,0,0.12);
}

.lang-switch--e .lang-switch__btn {
  color: rgba(0,0,0,0.4);
}

.lang-switch--e .lang-switch__btn.active {
  background: var(--e-navy);
  color: #fff;
}

.lang-switch--e .lang-switch__btn:hover:not(.active) {
  color: var(--e-navy);
}

.header--e .nav__hamburger span {
  background: var(--e-navy);
}

.header--e .nav__mobile {
  background: #fff;
}

.header--e .nav__mobile a {
  color: var(--e-text);
  border-bottom-color: var(--e-border);
}

/* --- Hero Slider --- */
.hero-e {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-e__slides {
  position: absolute;
  inset: 0;
}

.hero-e__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-e__slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-e__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-e__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,18,40,0.2) 0%,
    rgba(10,18,40,0.55) 100%
  );
}

.hero-e__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-e__slide.active .hero-e__content {
  opacity: 1;
  transform: translateY(0);
}

.hero-e__project-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: block;
}

.hero-e__content h1 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
}

/* CTA Pill Button — ortada, oval, şık */
.hero-e__cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  padding: 6px 6px 6px 24px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-e__cta-pill:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
}

.hero-e__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--e-navy);
  margin-left: 16px;
  transition: background 0.3s ease;
}

.hero-e__cta-pill:hover .hero-e__cta-arrow {
  background: rgba(255,255,255,0.9);
}

.hero-e__cta-arrow svg {
  stroke: var(--e-navy);
}

/* Bullets — sol alt */
.hero-e__bullets {
  position: absolute;
  bottom: 40px;
  left: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-e__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-e__bullet.active {
  width: 12px;
  height: 12px;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Arrows — sağ alt */
.hero-e__arrows {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-e__arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-e__arrow-btn:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
}

/* Social — sol kenar dikey */
.hero-e__social {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-e__social a {
  color: rgba(255,255,255,0.5);
  display: flex;
  transition: color 0.3s ease;
}

.hero-e__social a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero-e { height: 85vh; min-height: 500px; }
  .hero-e__bullets { left: 24px; bottom: 28px; }
  .hero-e__arrows { right: 24px; bottom: 24px; }
  .hero-e__social { display: none; }
  .hero-e__arrow-btn { width: 38px; height: 38px; }
}

.btn--e-primary {
  background: var(--e-navy);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--e-primary:hover {
  background: var(--e-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44,62,107,0.25);
}

.btn--e-outline-white {
  background: transparent;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
}

.btn--e-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* --- Features Row (icon badges below hero) --- */
.features-row {
  background: #fff;
  padding: 56px 0;
  border-bottom: 1px solid var(--e-border);
}

.features-row__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-badge__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--e-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--e-navy);
  transition: all 0.3s ease;
}

.feature-badge:hover .feature-badge__icon {
  background: var(--e-navy);
  border-color: var(--e-navy);
  color: #fff;
}

.feature-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--e-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .features-row__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

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

/* --- About Section with Stat Circles --- */
.about-e {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-e__text .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--e-navy);
  margin-bottom: 14px;
  display: block;
}

.about-e__text h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}

.about-e__text > p {
  color: var(--e-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-e__stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.about-e__stat {
  text-align: center;
}

.about-e__stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--e-navy);
  line-height: 1;
}

.about-e__stat span {
  font-size: 0.78rem;
  color: var(--e-text-muted);
  margin-top: 4px;
  display: block;
}

.about-e__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.about-e__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .about-e {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-e__stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* --- Services Grid --- */
.services-e-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service-e-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.service-e-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-e-card:hover img {
  transform: scale(1.05);
}

.service-e-card__info {
  position: relative;
  z-index: 2;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(30,45,82,0.9), transparent);
  width: 100%;
}

.service-e-card__info h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.service-e-card__info p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .services-e-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Core Values with Circle Icons --- */
.values-e-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  text-align: center;
}

.value-e-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-e-item__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--e-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--e-navy);
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.value-e-item:hover .value-e-item__icon {
  background: var(--e-navy);
  color: #fff;
}

.value-e-item h4 {
  font-size: 0.9rem;
  color: var(--e-text);
  margin-bottom: 4px;
}

.value-e-item p {
  font-size: 0.8rem;
  color: var(--e-text-light);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .values-e-grid { grid-template-columns: repeat(3, 1fr); }
}

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

/* --- Featured Projects --- */
.projects-e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-e-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.project-e-card:hover img {
  transform: scale(1.06);
}

.project-e-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(30,45,82,0.9) 0%, transparent);
}

.project-e-card__info h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.project-e-card__info span {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .projects-e-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .projects-e-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Image Banner --- */
.cta-e {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
}

.cta-e__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-e__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-e__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,45,82,0.8);
}

.cta-e__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-e__content h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-e__content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

/* --- Instagram Grid --- */
.instagram-section {
  padding: 64px 0;
}

.instagram-section__header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.instagram-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--e-text);
}

.instagram-section .label {
  display: block;
  margin-bottom: 8px;
}

.instagram-section .handle {
  font-size: 0.9rem;
  color: var(--e-text-muted);
  display: inline-block;
  text-decoration: none;
}

.instagram-section .handle:hover {
  color: var(--e-navy);
}

.instagram-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.instagram-marquee {
  overflow: hidden;
  width: 100%;
}

.instagram-marquee__track {
  display: flex;
  gap: 12px;
  animation: insta-scroll 30s linear infinite;
  width: max-content;
}

.instagram-marquee__track a {
  flex-shrink: 0;
  width: 270px;
  display: block;
}

.instagram-marquee__track img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

.instagram-marquee__track img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

@keyframes insta-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .instagram-marquee__track a {
    width: 200px;
  }
}

/* --- Varyasyon E Font Size Uyumu --- */

/* Section header — tüm sayfada tutarlı */
body.variation-e .section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

body.variation-e .section-header p {
  font-size: 0.95rem;
}

/* About */
body.variation-e .about-e__text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

body.variation-e .about-e__text > p {
  font-size: 0.95rem;
}

/* Values */
body.variation-e .value-e-item h4 {
  font-size: 1rem;
}

body.variation-e .value-e-item p {
  font-size: 0.88rem;
}

/* Service cards */
body.variation-e .service-e-card__info p {
  font-size: 0.88rem;
}

/* CTA banner */
body.variation-e .cta-e__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

body.variation-e .cta-e__content p {
  font-size: 0.95rem;
}

/* Instagram — h2 artık .instagram-section içinde tanımlı */

/* Breathing */
body.variation-e .breathing__item p {
  font-size: 0.9rem;
}

/* Eco section */
body.variation-e .eco-section__text h3 {
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .nav__right-e {
    display: none;
  }
}

body.variation-e .eco-section__text p {
  font-size: 0.92rem;
}

/* Footer */
body.variation-e .footer__brand p {
  font-size: 0.88rem;
}

body.variation-e .footer__col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

body.variation-e .footer__col ul li a {
  font-size: 0.88rem;
}

/* --- Footer E --- */
.footer--e {
  background: var(--e-navy-dark);
}
