/* /assets/css/layout.css
   Clean & consolidated layout styles
*/

/* =========================
   Topbar
========================= */
.topbar{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.topbar a{ color: var(--text-2); }
.topbar a:hover{ color: var(--link-hover); }

.topbar .topbar-pill{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}

/* =========================
   Navbar (base)
========================= */
.navbar{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.navbar-brand{
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.navbar .nav-link{
  color: var(--text-2);
  font-weight: 600;
  transition: color var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
  color: var(--link-hover);
}

.dropdown-menu{
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.dropdown-item{ color: var(--text-2); }
.dropdown-item:hover{
  background: var(--surface-2);
  color: var(--text);
}

/* =========================
   Navbar (mobile)
   - Hamburger / collapse panel polish
========================= */
.navbar .navbar-toggler{
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: .45rem .6rem;
  box-shadow: none;
}
.navbar .navbar-toggler:focus{ box-shadow: var(--focus); }

.navbar .navbar-toggler-icon{
  background-image: none;
  width: 1.25em;
  height: 1.25em;
  position: relative;
  display: inline-block;
}
.navbar .navbar-toggler-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--text) 0 0) 0 20%/100% 2px,
    linear-gradient(var(--text) 0 0) 0 50%/100% 2px,
    linear-gradient(var(--text) 0 0) 0 80%/100% 2px;
  background-repeat: no-repeat;
  opacity: .92;
}

@media (max-width: 991.98px){
  .navbar .navbar-collapse{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem;
    margin-top: .75rem;
    box-shadow: var(--shadow);
  }

  .navbar .nav-link{
    padding: .7rem .75rem;
    border-radius: 12px;
  }
  .navbar .nav-link:hover{ background: var(--surface-2); }

  .navbar .dropdown-menu{
    background: var(--surface-2);
    border-color: var(--border);
    box-shadow: none;
    margin-top: .35rem;
  }
}

/* =========================
   Premium Navbar (addon)
========================= */
.navbar-premium{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

/* Sticky premium hissi */
.navbar-premium.sticky-top{
  backdrop-filter: blur(10px);
}

/* Navbar iç satırı — dikey padding az; logo negatif marginle taşabilir, şerit şişmez */
.navbar-premium > .container{
  overflow: visible;
  padding-top: 0.375rem !important;
  padding-bottom: 0.375rem !important;
}
.navbar-premium .navbar-brand{
  position: relative;
  z-index: 2;
}

/* Brand */
.nav-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
}

/* Ana navbar marka görseli — responsive boyut; taşma serbest, topbar’a dokunmaz */
.navbar-premium .navbar-brand .nav-logo{
  width: auto;
  display: block;
  height: clamp(42px, 10.5vw, 52px);
  max-width: min(260px, 86vw);
  object-fit: contain;
  border-radius: 12px;
  margin-top: -0.45rem;
  margin-bottom: -0.45rem;
}

@media (min-width: 576px){
  .navbar-premium .navbar-brand .nav-logo{
    height: clamp(48px, 8vw, 62px);
    max-width: min(290px, 72vw);
    margin-top: -0.55rem;
    margin-bottom: -0.55rem;
  }
}

@media (min-width: 992px){
  .navbar-premium .navbar-brand .nav-logo{
    height: clamp(56px, 5.2vw, 78px);
    max-width: min(340px, 28vw);
    margin-top: -0.7rem;
    margin-bottom: -0.7rem;
  }
}
.nav-brand-text{
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* Active link underline */
.navbar-premium .nav-link.active{
  color: var(--text) !important;
  position: relative;
}
.navbar-premium .nav-link.active::after{
  content:"";
  position:absolute;
  left: .6rem;
  right: .6rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  opacity: .9;
}

/* Dropdown menu */
.navbar-premium .dropdown-menu{
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 991.98px){
  .navbar-premium .nav-link.active::after{ display: none; }
}

/* =========================
   Hero (index)
   - Minimal base; height/overlay in pages.css
========================= */
.hero{ position: relative; }

.hero .carousel-indicators [data-bs-target]{
  background-color: var(--accent);
}

.hero .hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Backward compat */
.hero .hero-content{
  position: relative;
  z-index: 2;
}

/* =========================
   Sections
========================= */
.section{ padding: 72px 0; }

.section-title{ max-width: 720px; }

.section-title .kicker{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}

/* =========================
   Breadcrumb / Page Hero
========================= */
.page-hero{
  padding: 34px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a{ color: var(--text-2); }
.breadcrumb a:hover{ color: var(--link-hover); }
.breadcrumb .breadcrumb-item.active{ color: var(--muted); }

/* =========================
   Forms focus (no hard-coded rgba)
========================= */
.form-control:focus,
.form-select:focus,
.btn:focus{
  box-shadow: var(--focus);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

/* =========================
   Featured Projects Header Glass
========================= */
.projects-header-glass{
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

/* Metinler okunaklı olsun */
.projects-header-glass .kicker,
.projects-header-glass h2,
.projects-header-glass p{
  color: #fff;
}

@media (max-width: 768px){
  .projects-header-glass{ gap: 12px; }
}

/* =========================
   Footer (Background + brand + bottom)
========================= */
.footer{
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity: .9;
  background:
    radial-gradient(900px 360px at 10% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(700px 320px at 90% 20%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
}

.footer > .container{
  position: relative;
  z-index: 2;
}

.footer small,
.footer p,
.footer a{
  color: var(--text-2);
}
.footer a:hover{ color: var(--link-hover); }

.footer .footer-bottom{
  border-top: 1px solid var(--border);
}

/* Brand block */
.footer-brand{
  display: flex;
  align-items: center;
}

.footer-logo{
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.08));
}

.footer-about{
  max-width: 42ch;
  line-height: 1.65;
}

.footer-nav-title{
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-nav-list{
  display: grid;
  gap: 10px;
}

.footer-nav-list:not(.footer-nav-list--services) a{
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text-2);
  transition: color .2s ease;
}

.footer-nav-list:not(.footer-nav-list--services) a:hover{
  color: var(--primary);
}

/* Footer: hizmet / alt başlık listesi (şık satırlar) */
.footer-nav-list--services{
  gap: 6px;
}

.footer-nav-list--services > li{
  margin: 0;
}

.footer-service-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.footer-service-link:hover{
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

[data-theme="dark"] .footer-service-link:hover{
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.footer-service-link__accent{
  width: 4px;
  align-self: stretch;
  min-height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  flex-shrink: 0;
  opacity: .9;
}

.footer-service-link:hover .footer-service-link__accent{
  opacity: 1;
}

.footer-service-link__text{
  flex: 1 1 auto;
  min-width: 0;
}

.footer-service-link__chev{
  font-size: .72rem;
  opacity: .45;
  flex-shrink: 0;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}

.footer-service-link:hover .footer-service-link__chev{
  opacity: 1;
  color: var(--primary);
  transform: translateX(3px);
}

.footer-cta-strip{
  border-top: 1px solid var(--border);
}

.footer-cta-card{
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  background: var(--card);
  border: 1px solid var(--border) !important;
}

.footer-cta-card__accent{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: calc(var(--radius) + 10px) 0 0 calc(var(--radius) + 10px);
  background: linear-gradient(180deg, var(--accent), var(--primary));
  opacity: 0.95;
}

.footer-cta-card .card-body{
  padding-left: 1.75rem !important;
}

@media (min-width: 992px){
  .footer-cta-card .card-body{
    padding-left: 2rem !important;
  }
}

/* Site footer — yeniden düzen */
.site-footer__mesh{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(720px 280px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(600px 260px at 100% 30%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 50%);
}

.footer.site-footer > .container{
  position: relative;
  z-index: 2;
}

.site-footer__inner{
  padding-bottom: 2.5rem;
}

@media (min-width: 992px){
  .site-footer__inner{
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
}

.site-footer__logo{
  max-width: 188px;
}

.site-footer__tagline{
  max-width: 46ch;
}

.site-footer__col-title{
  margin-bottom: 1rem !important;
}

/* İletişim sütunu — uzun adres/e-posta taşmasını keser */
.site-footer .row{
  min-width: 0;
}

.site-footer .row > [class*="col"]{
  min-width: 0;
}

.site-footer__contact-col{
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__contact-col .site-footer__col-title{
  width: 100%;
  text-align: center;
}

.site-footer__contact-list.footer-contact{
  width: 100%;
  max-width: 100%;
}

.site-footer .footer-contact__item{
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-contact__body{
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.site-footer .footer-contact__value{
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.45;
  max-width: 100%;
}

.site-footer__pill{
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  border: 1px solid var(--border);
}

.site-footer__pill i{
  color: var(--accent);
  font-size: 0.95rem;
}

/* Footer — sosyal medya (taşma yok, grid) */
.site-footer__social{
  border-top: 1px solid var(--border);
  max-width: 100%;
  min-width: 0;
}

.site-footer__social-panel{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: calc(var(--radius) + 6px);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 35%, transparent);
}

.site-footer__social-heading{
  margin-bottom: 0.35rem !important;
}

.site-footer__social-lead{
  margin-bottom: 1rem !important;
  max-width: 40rem;
}

.site-footer__social-list{
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.5rem 0.65rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.site-footer__social-item{
  min-width: 0;
  max-width: 100%;
}

.site-footer__social-link.social-link{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 0.5rem 0.65rem;
  gap: 0.5rem;
}

.site-footer__social-icon{
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  color: var(--text);
}

.site-footer__social-icon i{
  font-size: 1.05rem;
}

.site-footer__social-label{
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer__social-link:hover .site-footer__social-icon{
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
}

@media (max-width: 575.98px) {
  .site-footer__social-list{
    grid-template-columns: 1fr;
  }

  .site-footer__social-panel{
    padding: 1rem;
  }
}

.site-footer__bottom{
  border-top: 1px solid var(--border);
}

.site-footer__copy{
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}