/* ============================================
   VARYASYON D — Modern İnşaat Tarzı
   Parlament lacivert tema, DM Sans font,
   geometrik hero, portfolio grid, takım, FAQ
   ============================================ */

/* --- Font Override — Rosario headings + DM Sans body --- */
body.variation-d {
  font-family: 'DM Sans', 'Inter', sans-serif;
}

body.variation-d h1,
body.variation-d h2,
body.variation-d h3,
body.variation-d h4,
body.variation-d h5,
body.variation-d h6 {
  font-family: 'Rosario', sans-serif;
  font-weight: 700;
}

/* --- Color Tokens --- */
:root {
  --d-dark: #0A1628;
  --d-dark-soft: #111D33;
  --d-charcoal: #1C2B45;
  --d-accent: #4A90D9;
  --d-accent-light: #6AAAE8;
  --d-accent-warm: #D4A04A;
  --d-navy: #003580;
  --d-navy-light: #0B4CA0;
  --d-bg-light: #F5F7FA;
  --d-border: #DEE4ED;
  --d-text: #344054;
  --d-text-light: #667085;
}

/* --- Header Glass --- */
.header--d {
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header--d.scrolled {
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 2px 24px rgba(0,53,128,0.15);
}

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

.header--d .nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-family: 'DM Sans', sans-serif;
}

.header--d .nav__links a:hover { color: #fff; }

@media (max-width: 900px) {
  .nav__right-d { display: none; }
}
.header--d .nav__hamburger span { background: #fff; }
.header--d .nav__mobile { background: var(--d-dark); }
.header--d .nav__mobile a {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* --- Hero Full Width with Geometric Overlay --- */
.hero-geo {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--d-dark);
}

/* Slider slides */
.hero-geo__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.hero-geo__slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Bullets */
.hero-geo__bullets {
  position: absolute;
  bottom: 36px;
  left: 48px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-geo__bullet {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-geo__bullet.active {
  background: #fff;
  width: 48px;
}

/* Arrows */
.hero-geo__arrows {
  position: absolute;
  bottom: 28px;
  right: 48px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-geo__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-geo__arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .hero-geo__bullets { left: 24px; bottom: 24px; }
  .hero-geo__arrows { right: 24px; bottom: 20px; }
  .hero-geo__arrow { width: 38px; height: 38px; }
}

.hero-geo__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-geo__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-geo__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.88) 0%,
    rgba(0,53,128,0.35) 50%,
    rgba(10,22,40,0.2) 100%
  );
}

.hero-geo__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.hero-geo__content .label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--d-accent);
  margin-bottom: 20px;
  display: block;
}

.hero-geo__content h1 {
  color: #fff;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1.08;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-geo__content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.3rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-geo__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn--d-primary {
  background: var(--d-navy);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--d-primary:hover {
  background: var(--d-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,53,128,0.3);
}

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

.btn--d-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* --- Scrolling Text Banner (D theme override) --- */
.scroll-banner { background: var(--d-dark); }
.scroll-banner__item { font-family: 'DM Sans', sans-serif; }

/* --- About Overlap --- */
.about-d {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-d__images {
  position: relative;
  height: 480px;
}

.about-d__images img {
  border-radius: 12px;
  object-fit: cover;
  position: absolute;
}

.about-d__images img:first-child {
  width: 65%;
  height: 85%;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-d__images img:last-child {
  width: 55%;
  height: 70%;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.about-d__text .label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--d-navy);
  margin-bottom: 12px;
  display: block;
}

.about-d__text h2 {
  margin-bottom: 20px;
}

.about-d__text > p {
  color: var(--d-text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-d__text .btn--d-primary {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .about-d {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-d__images {
    height: 320px;
  }
  .about-d__images img:first-child {
    width: 60%;
    height: 80%;
  }
  .about-d__images img:last-child {
    width: 50%;
    height: 65%;
  }
}

/* --- Services with Big Numbers --- */
.services-d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service-d-card {
  padding: 48px 40px;
  border: 1px solid var(--d-border);
  transition: all 0.3s ease;
  position: relative;
}

.service-d-card:hover {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  z-index: 2;
}

.service-d-card__num {
  font-family: 'DM Sans', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(0,53,128,0.07);
  line-height: 1;
  margin-bottom: 16px;
}

.service-d-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--d-dark);
}

.service-d-card p {
  font-size: 0.9rem;
  color: var(--d-text-light);
  line-height: 1.6;
}

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

/* --- Portfolio Grid (Masonry-like) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item--tall {
  grid-row: span 2;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 260px;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__overlay .tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--d-accent);
  margin-bottom: 4px;
}

.portfolio-item__overlay h3 {
  color: #fff;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-item--tall {
    grid-row: auto;
  }
}

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

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--d-border);
  transition: box-shadow 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.team-card__info {
  padding: 20px 24px;
  text-align: center;
}

.team-card__info h4 {
  font-size: 1.05rem;
  color: var(--d-dark);
  margin-bottom: 4px;
}

.team-card__info span {
  font-size: 1rem;
  color: var(--d-text-light);
}

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

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

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--d-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--d-dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.faq-item__question svg {
  transition: transform 0.3s ease;
  min-width: 20px;
  color: var(--d-text-light);
}

.faq-item.active .faq-item__question svg {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--d-text-light);
  line-height: 1.7;
}

/* --- CTA Banner (Dark with image) --- */
.cta-banner-d {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

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

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

.cta-banner-d__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.82);
}

.cta-banner-d__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner-d__content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner-d__content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

/* --- Showcase Gallery (Large Cards with Overlay) --- */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}

.showcase-gallery__header-left .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--d-navy);
  margin-bottom: 8px;
  display: block;
}

.showcase-gallery__header-left h2 {
  font-size: 2.2rem;
  line-height: 1.15;
}

.showcase-gallery__header-right {
  max-width: 380px;
  text-align: right;
}

.showcase-gallery__header-right p {
  color: var(--d-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.showcase-gallery__card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.showcase-gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.showcase-gallery__card:hover img {
  transform: scale(1.06);
}

.showcase-gallery__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.15) 45%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: background 0.4s ease;
}

.showcase-gallery__card:hover .showcase-gallery__card-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.25) 50%, transparent);
}

.showcase-gallery__card-overlay h3 {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 8px;
}

.showcase-gallery__card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.showcase-gallery__card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.showcase-gallery__card-meta span svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

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

@media (max-width: 640px) {
  .showcase-gallery { grid-template-columns: 1fr; }
  .showcase-gallery__card { aspect-ratio: 4/3; }
  .showcase-gallery__header { flex-direction: column; align-items: flex-start; }
  .showcase-gallery__header-right { text-align: left; }
}

/* --- Footer D — Modern --- */
.footer-d-modern {
  background: #0A1628;
  color: #fff;
}

/* CTA Bant */
.footer-d-modern__cta {
  background: linear-gradient(135deg, #E8EAF0, #D5D9E3);
  padding: 48px 24px;
}

.footer-d-modern__cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-d-modern__cta-inner h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.footer-d-modern__cta-inner > div:first-child p {
  color: rgba(0,0,0,0.55);
  font-size: 1.05rem;
}

.footer-d-modern__cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ana Footer Grid */
.footer-d-modern__main {
  padding: 56px 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-d-modern__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-d-modern__brand img {
  height: 28px;
  max-height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer-d-modern__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-d-modern__social {
  display: flex;
  gap: 12px;
}

.footer-d-modern__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.footer-d-modern__social a:hover {
  border-color: var(--d-navy, #003580);
  background: var(--d-navy, #003580);
  color: #fff;
}

.footer-d-modern__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.footer-d-modern__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-d-modern__col li {
  margin-bottom: 10px;
}

.footer-d-modern__col a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-d-modern__col a:hover {
  color: #fff;
}

.footer-d-modern__newsletter-text {
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-d-modern__newsletter {
  display: flex;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
}

.footer-d-modern__newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.footer-d-modern__newsletter input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-d-modern__newsletter button {
  background: var(--d-navy, #003580);
  border: none;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

.footer-d-modern__newsletter button:hover {
  background: #0046A8;
}

/* Alt Çizgi */
.footer-d-modern__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-d-modern__bottom span {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

.footer-d-modern__bottom-links {
  display: flex;
  gap: 20px;
}

.footer-d-modern__bottom-links a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-d-modern__bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}

@media (max-width: 900px) {
  .footer-d-modern__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-d-modern__cta-inner { flex-direction: column; text-align: center; }
  .footer-d-modern__cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .footer-d-modern__grid { grid-template-columns: 1fr; }
  .footer-d-modern__bottom { flex-direction: column; text-align: center; }
}

/* --- Varyasyon D Font Size Uyumu --- */

/* Section header h2 — tüm sayfada tutarlı */
body.variation-d .section-header h2 {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
}

body.variation-d .section-header p {
  font-size: 1.1rem;
}

/* Icon Features (Neden Assun İnşaat) — sayfa geneli ile uyumlu */
body.variation-d .icon-features__header h2 {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
}

body.variation-d .icon-features__item h4 {
  font-size: 1.3rem;
}

body.variation-d .icon-features__item p {
  font-size: 1.05rem;
}

/* About text */
body.variation-d .about-d__text > p {
  font-size: 1.1rem;
}

/* Service cards */
body.variation-d .service-d-card h4 {
  font-size: 1.35rem;
}

body.variation-d .service-d-card p {
  font-size: 1.05rem;
}

/* Team cards */
body.variation-d .team-card__info h4 {
  font-size: 1.25rem;
}

/* FAQ */
body.variation-d .faq-item__question {
  font-size: 1.25rem;
}

body.variation-d .faq-item__answer p {
  font-size: 1.05rem;
}

/* News Insights */
body.variation-d .news-insights__header h2 {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
}

body.variation-d .news-insights__header p {
  font-size: 1.1rem;
}

body.variation-d .news-insights__item-text h4 {
  font-size: 1.2rem;
}

body.variation-d .news-insights__item-text p {
  font-size: 1rem;
}
