/* Premium micro-interactions — Öztel Yapı palette */

:root {
  --premium-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --premium-dur: 0.28s;
}

/* Scroll header */
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.header.is-scrolled .brand img {
  width: 46px;
  height: 46px;
}

/* Nav underline */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--premium-dur) var(--premium-ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* Brand */
.brand img {
  transition: border-color var(--premium-dur) var(--premium-ease),
    box-shadow var(--premium-dur) var(--premium-ease);
}

.brand:hover img,
.brand:focus-visible img {
  border-color: rgba(176, 146, 104, 0.55);
  box-shadow: 0 12px 34px rgba(176, 146, 104, 0.22);
}

/* Buttons */
.btn,
.nav-btn,
.contact-submit,
.project-action-btn,
.back-home-btn,
.back-projects-btn,
.option-link {
  transition: transform var(--premium-dur) var(--premium-ease),
    box-shadow var(--premium-dur) var(--premium-ease),
    background-color var(--premium-dur) ease,
    border-color var(--premium-dur) ease;
}

@media (hover: hover) {
  .btn-primary:hover,
  .nav-btn:hover,
  .contact-submit:hover {
    box-shadow: 0 22px 48px rgba(176, 146, 104, 0.38);
  }

  .btn:active,
  .nav-btn:active,
  .contact-submit:active {
    transform: translateY(0) scale(0.98);
  }
}

/* Cards */
@media (hover: hover) {
  .project-stat-link:hover .project-stat,
  .management-card:hover,
  .completed-construction-card:hover,
  .ongoing-project-accordion:hover,
  .contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(23, 21, 18, 0.14);
  }

  .option:hover {
    border-color: rgba(176, 146, 104, 0.35);
  }

  .completed-project-image,
  .ongoing-summary-img,
  .about-media img {
    overflow: hidden;
  }

  .completed-construction-card:hover .completed-project-image,
  .ongoing-project-accordion:hover .ongoing-summary-img {
    filter: brightness(1.03);
  }
}

.management-card,
.project-stat,
.completed-construction-card,
.ongoing-project-accordion,
.contact-info-card,
.option {
  transition: transform var(--premium-dur) var(--premium-ease),
    box-shadow var(--premium-dur) var(--premium-ease),
    border-color var(--premium-dur) ease,
    filter var(--premium-dur) ease;
}

/* Contact & social */
.contact-info-card:hover {
  background: rgba(176, 146, 104, 0.06);
}

.contact-social-icons a {
  transition: transform var(--premium-dur) var(--premium-ease),
    background-color var(--premium-dur) ease;
}

@media (hover: hover) {
  .contact-social-icons a:hover {
    transform: translateY(-2px);
    background: rgba(176, 146, 104, 0.08);
  }

  .fixed-actions .fixed-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 44px rgba(23, 21, 18, 0.28);
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Toast */
.oztel-toast {
  position: fixed;
  left: 50%;
  bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  min-width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(23, 21, 18, 0.94);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(176, 146, 104, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--premium-ease);
}

.oztel-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.oztel-toast.is-error {
  border-color: rgba(220, 120, 90, 0.45);
}

.oztel-toast-action {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  border: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-links a::after {
    transform: none;
  }
}

/* Mobile touch feedback (no hover devices) */
@media (hover: none) {
  .project-stat:active,
  .management-card:active,
  .completed-construction-card:active,
  .contact-info-card:active,
  .option:active,
  .mobile-drawer-link:active {
    transform: scale(0.99);
  }

  .btn:active,
  .nav-btn:active,
  .project-action-btn:active {
    transform: scale(0.98);
  }
}

@media (max-width: 980px) {
  .header.is-scrolled {
    padding: 10px 0;
  }
}

/* İletişim — premium slogan kutusu */
.contact .trust-note.trust-note--premium {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 28px;
  padding: 2.75rem 2rem 2rem;
  max-width: 100%;
  border-radius: 28px;
  background: linear-gradient(145deg, #2f2822 0%, #1f1b17 52%, #2a241e 100%) !important;
  border: 1px solid rgba(176, 146, 104, 0.32) !important;
  border-left: 1px solid rgba(176, 146, 104, 0.32) !important;
  box-shadow:
    0 0 0 1px rgba(176, 146, 104, 0.1),
    0 0 36px rgba(176, 146, 104, 0.16),
    0 24px 56px rgba(0, 0, 0, 0.28) !important;
}

.contact .trust-note--premium .trust-note-quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.22;
  pointer-events: none;
  line-height: 0;
}

.contact .trust-note--premium .trust-note-quote-mark svg {
  width: 76px;
  height: 76px;
  display: block;
}

.contact .trust-note--premium .trust-note-slogan {
  position: relative;
  z-index: 1;
  margin: 0 0 2rem;
  padding: 0;
  border: none;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: #f4efe6 !important;
  text-shadow: 0 1px 18px rgba(176, 146, 104, 0.12);
}

.contact .trust-note--premium .trust-note-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.contact .trust-note--premium .trust-note-stat {
  padding: 0 1.1rem;
  border-left: 1px solid rgba(176, 146, 104, 0.24);
}

.contact .trust-note--premium .trust-note-stat:first-child {
  border-left: none;
}

.contact .trust-note--premium .trust-note-stat strong {
  display: block;
  padding: 0 !important;
  margin: 0 0 0.4rem;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold) !important;
  text-shadow: none !important;
}

.contact .trust-note--premium .trust-note-stat > span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.52) !important;
}

@media (max-width: 640px) {
  .contact .trust-note.trust-note--premium {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .contact .trust-note--premium .trust-note-quote-mark svg {
    width: 58px;
    height: 58px;
  }

  .contact .trust-note--premium .trust-note-slogan {
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .contact .trust-note--premium .trust-note-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contact .trust-note--premium .trust-note-stat {
    border-left: none;
    border-top: 1px solid rgba(176, 146, 104, 0.22);
    padding: 0.85rem 0 0;
  }

  .contact .trust-note--premium .trust-note-stat:first-child {
    border-top: none;
    padding-top: 0;
  }
}
