/* ==========================================================================
   MSA Reklam — Kurumsal One-Page Stilleri
   Marka: #fdc40a | #000000 | #ffffff
   UI: floating glass nav, clay cards, 3D tilt, antigravity depth
   ========================================================================== */

:root {
  --msa-yellow: #fdc40a;
  --msa-black: #000000;
  --msa-white: #ffffff;
  --msa-ink: #111111;
  --msa-muted: #5c5c5c;
  --msa-soft: #f6f6f4;
  --msa-glass: rgba(255, 255, 255, 0.72);
  --msa-glass-dark: rgba(0, 0, 0, 0.55);
  --msa-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --msa-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --msa-radius: 1.5rem;
  --msa-radius-sm: 1rem;
  --msa-nav-h: 4.5rem;
  --msa-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --msa-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --msa-z-nav: 50;
  --msa-z-modal: 60;
  --msa-z-toast: 70;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--msa-nav-h) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--msa-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--msa-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(253, 196, 10, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(0, 0, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #fafaf8 0%, #f3f3f0 45%, #ffffff 100%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(253, 196, 10, 0.25);
  touch-action: manipulation;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--msa-black);
}

:focus-visible {
  outline: 3px solid var(--msa-yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--msa-yellow);
  color: var(--msa-black);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  scroll-margin-top: calc(var(--msa-nav-h) + 1rem);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--msa-black);
}

.section-lead {
  max-width: 42rem;
  color: var(--msa-muted);
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--msa-black);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--msa-yellow);
  border-radius: 99px;
}

/* ---------- Floating glass navbar ---------- */
.site-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: var(--msa-z-nav);
  pointer-events: none;
}

.navbar-msa {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--msa-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--msa-shadow-soft);
  transition: transform 0.35s var(--msa-ease), box-shadow 0.35s var(--msa-ease), background 0.35s ease;
}

.navbar-msa.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.navbar-msa .navbar-brand {
  padding: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar-msa .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--msa-ink) !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-msa .nav-link:hover,
.navbar-msa .nav-link.active {
  background: var(--msa-yellow);
  color: var(--msa-black) !important;
}

.navbar-msa .navbar-toggler {
  border: 0;
  box-shadow: none;
  padding: 0.4rem;
  cursor: pointer;
}

.navbar-msa .navbar-toggler:focus-visible {
  outline: 3px solid var(--msa-yellow);
}

.navbar-msa .navbar-toggler-icon {
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-msa {
    border-radius: 1.25rem;
  }

  .navbar-msa .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
  }
}

/* ---------- Buttons ---------- */
.btn {
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  transition: transform 0.2s var(--msa-ease), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-msa {
  background: var(--msa-yellow);
  color: var(--msa-black);
  border: 2px solid var(--msa-black);
  box-shadow: 4px 4px 0 var(--msa-black);
}

.btn-msa:hover,
.btn-msa:focus-visible {
  background: var(--msa-black);
  color: var(--msa-yellow);
  border-color: var(--msa-black);
  box-shadow: 2px 2px 0 var(--msa-yellow);
  transform: translateY(-2px);
}

.btn-msa-outline {
  background: transparent;
  color: var(--msa-white);
  border: 2px solid var(--msa-white);
}

.btn-msa-outline:hover,
.btn-msa-outline:focus-visible {
  background: var(--msa-yellow);
  color: var(--msa-black);
  border-color: var(--msa-yellow);
}

/* ---------- Hero (3D spatial) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--msa-nav-h) + 2.5rem);
  padding-bottom: 4rem;
  color: var(--msa-white);
  overflow: hidden;
  perspective: 1200px;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: brightness(0.42) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(0deg, rgba(253, 196, 10, 0.15), transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  transform-style: preserve-3d;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Floating 3D decor */
.hero-float {
  position: absolute;
  z-index: 2;
  width: clamp(4rem, 10vw, 7rem);
  height: clamp(4rem, 10vw, 7rem);
  border-radius: 1.5rem;
  background: var(--msa-yellow);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    inset 8px 8px 16px rgba(255, 255, 255, 0.35),
    inset -8px -8px 16px rgba(0, 0, 0, 0.12);
  transform-style: preserve-3d;
  animation: float-y 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-float--a {
  right: 12%;
  top: 28%;
  animation-delay: 0s;
}

.hero-float--b {
  right: 22%;
  bottom: 18%;
  width: clamp(3rem, 7vw, 5rem);
  height: clamp(3rem, 7vw, 5rem);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  animation-delay: 1.2s;
}

.hero-float--c {
  right: 6%;
  bottom: 32%;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  animation-delay: 2s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotateX(12deg) rotateY(-18deg);
  }
  50% {
    transform: translateY(-18px) rotateX(8deg) rotateY(-10deg) translateZ(20px);
  }
}

.hero-accent-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: var(--msa-yellow);
  z-index: 3;
}

/* ---------- About ---------- */
.about-visual {
  position: relative;
  perspective: 1000px;
}

.about-visual img {
  width: 100%;
  border-radius: var(--msa-radius);
  box-shadow: var(--msa-shadow);
  border: 3px solid var(--msa-black);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.45s var(--msa-ease);
}

.about-visual:hover img {
  transform: rotateY(0) rotateX(0) translateZ(12px);
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 1.25rem -1rem -1rem 1.25rem;
  border-radius: var(--msa-radius);
  background: var(--msa-yellow);
  z-index: -1;
  border: 3px solid var(--msa-black);
}

/* ---------- Clay / glass service cards + 3D tilt ---------- */
.group-title {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.group-title .badge-featured {
  background: var(--msa-yellow);
  color: var(--msa-black);
  border: 2px solid var(--msa-black);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--msa-black);
}

.service-card {
  --rx: 0deg;
  --ry: 0deg;
  height: 100%;
  border: none;
  border-radius: 1.75rem;
  background: #ffd84d;
  color: var(--msa-black);
  box-shadow:
    10px 14px 28px rgba(0, 0, 0, 0.14),
    inset -8px -8px 18px rgba(0, 0, 0, 0.1),
    inset 8px 8px 18px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition: box-shadow 0.25s ease, transform 0.15s ease;
  cursor: default;
  will-change: transform;
}

.service-card:hover {
  box-shadow:
    14px 22px 36px rgba(0, 0, 0, 0.18),
    inset -8px -8px 18px rgba(0, 0, 0, 0.1),
    inset 8px 8px 18px rgba(255, 255, 255, 0.5);
}

.service-card.is-featured {
  background: var(--msa-yellow);
}

.service-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(0, 0, 0, 0.12);
  transform: translateZ(28px);
}

.service-card.is-featured .card-img-wrap {
  aspect-ratio: 16 / 11;
}

.service-card:not(.is-featured) .card-img-wrap {
  aspect-ratio: 16 / 10;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--msa-ease);
}

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

.service-card .card-body {
  padding: 1.25rem 1.35rem 1.4rem;
  transform: translateZ(36px);
}

.service-card .card-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.service-card .card-text {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.service-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: var(--msa-black);
  color: var(--msa-yellow);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  transform: translateZ(40px);
}

.webvo-by {
  display: block;
  margin-top: 0.65rem;
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.42);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.services-band {
  background:
    linear-gradient(180deg, transparent, rgba(253, 196, 10, 0.08), transparent);
}

/* ---------- Why us ---------- */
.why-grid {
  perspective: 1000px;
}

.why-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--msa-radius-sm);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--msa-shadow-soft);
  transition: transform 0.3s var(--msa-ease), box-shadow 0.3s ease;
  cursor: default;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--msa-shadow);
}

.why-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--msa-yellow);
  border: 2px solid var(--msa-black);
  margin-bottom: 1rem;
  box-shadow:
    4px 4px 0 var(--msa-black),
    inset 3px 3px 8px rgba(255, 255, 255, 0.45);
}

.why-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.why-card p {
  margin: 0;
  color: var(--msa-muted);
  font-size: 0.95rem;
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 3px solid var(--msa-black);
  box-shadow: 6px 6px 0 var(--msa-yellow);
  cursor: pointer;
  transition: transform 0.25s var(--msa-ease), box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 var(--msa-yellow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--msa-ease);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.msa-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--msa-z-modal);
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overscroll-behavior: contain;
}

.msa-lightbox.is-open {
  display: flex;
}

.msa-lightbox img {
  max-width: min(96vw, 1000px);
  max-height: 85vh;
  border-radius: 1rem;
  border: 3px solid var(--msa-yellow);
}

.msa-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--msa-yellow);
  color: var(--msa-black);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--msa-radius);
  padding: 1.75rem;
  box-shadow: var(--msa-shadow-soft);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-list a {
  color: var(--msa-ink);
  font-weight: 600;
  cursor: pointer;
}

.contact-list a:hover {
  color: #8a6a00;
  text-decoration: underline;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border-radius: 0.85rem;
  border: 2px solid #e4e4e4;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--msa-yellow);
  box-shadow: 0 0 0 0.2rem rgba(253, 196, 10, 0.35);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #b42318;
}

.invalid-feedback {
  font-size: 0.85rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.map-placeholder {
  border-radius: var(--msa-radius);
  overflow: hidden;
  border: 3px solid var(--msa-black);
  box-shadow: 6px 6px 0 var(--msa-yellow);
  margin-top: 1.5rem;
}

.map-placeholder img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  min-height: 220px;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-state="ok"] {
  color: #1a7f37;
}

.form-status[data-state="err"] {
  color: #b42318;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--msa-black);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: var(--msa-yellow);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--msa-yellow);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-title {
  color: var(--msa-yellow);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.social-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--msa-white);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--msa-yellow);
  color: var(--msa-black);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.webvo-badge {
  height: 36px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(0.15);
}

/* ---------- Reveal / antigravity motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) rotateX(6deg);
  transition: opacity 0.7s var(--msa-ease), transform 0.7s var(--msa-ease);
  transform-origin: center bottom;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--msa-black);
  background: var(--msa-yellow);
  color: var(--msa-black);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--msa-black);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--msa-black);
  color: var(--msa-yellow);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-float,
  .reveal,
  .service-card,
  .about-visual img,
  .btn,
  .gallery-item img {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .service-card {
    transform: none !important;
  }
}

/* ---------- Utilities ---------- */
.bg-msa-soft {
  background: rgba(253, 196, 10, 0.08);
}

.divider-msa {
  width: 4rem;
  height: 4px;
  background: var(--msa-yellow);
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
