@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  --surface: #f4f1ea;
  --surface-soft: #ebe5da;
  --card: #fbfaf7;
  --text: #1b1d23;
  --muted: #68645c;
  --border: rgba(44, 39, 31, .14);
  --brand-red: #b11226;
  --brand-gold: #f3b23c;
  --ink: #141821;
  --shadow: 0 22px 60px rgba(54, 43, 28, .12);
}

:root[data-theme="dark"] {
  --surface: #11151d;
  --surface-soft: #171c26;
  --card: #1b2130;
  --text: #f8fafc;
  --muted: #b8c0cf;
  --border: rgba(255, 255, 255, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand-secondary) 12%, transparent), transparent 28%),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 72%, var(--surface)));
  color: var(--text);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.muted { color: var(--muted); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(10, 14, 22, .52), rgba(10, 14, 22, .08));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .28s ease, color .28s ease, box-shadow .28s ease, padding .28s ease, border-color .28s ease;
  animation: headerDrop .55s cubic-bezier(.2, .8, .2, 1) both;
}

body:not(.page-home) .site-header,
.site-header.is-scrolled,
body.mobile-menu-open .site-header {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .10);
  backdrop-filter: blur(18px);
  padding-block: 12px;
}

.site-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 156px;
  font-weight: 900;
}
.site-logo .logo-img {
  display: block;
  width: 154px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18));
  transition: opacity .24s ease, transform .22s ease, filter .22s ease;
}
.site-logo .logo-img-default {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  pointer-events: none;
}
body.page-home .site-header.is-scrolled .logo-img-hero,
body.page-home.mobile-menu-open .logo-img-hero { opacity: 0; }
body.page-home .site-header.is-scrolled .logo-img-default,
body.page-home.mobile-menu-open .logo-img-default { opacity: 1; }
.site-logo:hover .logo-img { transform: translateY(-1px) scale(1.025); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22)); }
.site-logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 850;
}
.site-nav a {
  position: relative;
  padding: 12px 0;
  opacity: .92;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.site-nav a:hover {
  color: var(--brand-secondary);
  opacity: 1;
  transform: translateY(-1px);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--brand-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.quick-call,
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--brand-primary), #d72238);
  color: #fff;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 82%, #fff);
  box-shadow: 0 14px 30px rgba(177, 18, 38, .23);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.quick-call::after,
.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 46%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transition: left .55s ease;
}
.quick-call:hover,
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(177, 18, 38, .32); }
.quick-call:hover::after,
.btn:hover::after { left: 125%; }
.quick-call:active,
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost {
  background: rgba(255, 255, 255, .08);
  color: inherit;
  border-color: currentColor;
  box-shadow: none;
}
.icon-action,
.theme-toggle,
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: currentColor;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.icon-action:hover,
.theme-toggle:hover,
.lang-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
.site-header.is-scrolled .icon-action,
body:not(.page-home) .icon-action,
body.mobile-menu-open .icon-action {
  background: color-mix(in srgb, var(--card) 84%, transparent);
  border-color: var(--border);
}
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.flag-icon { width: 24px; height: 24px; border-radius: 999px; display: inline-block; box-shadow: 0 0 0 1px var(--border); overflow: hidden; background-size: cover; background-position: center; }
.flag-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7410 3900'%3E%3Cpath fill='%23b22234' d='M0 0h7410v3900H0z'/%3E%3Cpath stroke='%23fff' stroke-width='300' d='M0 450h7410M0 1050h7410M0 1650h7410M0 2250h7410M0 2850h7410M0 3450h7410'/%3E%3Cpath fill='%233c3b6e' d='M0 0h2964v2100H0z'/%3E%3C/svg%3E"); }
.flag-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Cpath fill='%23e30a17' d='M0 0h1200v800H0z'/%3E%3Ccircle cx='425' cy='400' r='170' fill='%23fff'/%3E%3Ccircle cx='470' cy='400' r='135' fill='%23e30a17'/%3E%3Cpath fill='%23fff' d='m650 400 154-50-95 130V320l95 130z'/%3E%3C/svg%3E"); }

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: currentColor;
  padding: 11px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); }
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 14, 22, .42);
  backdrop-filter: blur(5px);
}

.eyebrow {
  display: inline-flex;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: softFadeUp .65s cubic-bezier(.2, .8, .2, 1) both;
}

.site-footer {
  background: #141821;
  color: #fff;
  border-top: 4px solid var(--brand-secondary);
  padding: 58px 28px 22px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(243, 178, 60, .14), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr 1fr;
  gap: 28px;
}
.footer-logo { width: 168px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.site-footer p,
.site-footer a { color: rgba(255, 255, 255, .74); }
.site-footer a:hover { color: var(--brand-secondary); }
.social-list { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { width: min(1180px, 100%); margin: 30px auto 0; color: rgba(255, 255, 255, .58); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }

.social-icons,
.public-socials { display: flex; flex-wrap: wrap; gap: 12px; }
.social-icons a,
.public-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.social-icons a:hover,
.public-socials a:hover { transform: translateY(-3px) rotate(-2deg); background: color-mix(in srgb, var(--brand-secondary) 24%, rgba(255,255,255,.08)); }
.social-icons img,
.public-socials img { width: 23px; height: 23px; object-fit: contain; }
.social-icons span,
.public-socials span,
.floating-socials span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.floating-socials {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
  display: grid;
  gap: 10px;
}
.floating-socials a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: floatPulse 3.8s ease-in-out infinite;
}
.floating-socials a:hover {
  transform: translateX(-5px) scale(1.04);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
}
.floating-socials img { display: block; width: 28px; height: 28px; object-fit: contain; }

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 210;
  width: min(860px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.cookie-banner strong { display: block; margin-bottom: 5px; font-size: 16px; }
.cookie-banner p { margin: 0; color: var(--muted); line-height: 1.55; }
.cookie-banner a { display: inline-flex; margin-top: 7px; color: var(--brand-primary); font-weight: 900; }
.cookie-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.cookie-btn.secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 18px; }
.faq-list summary { font-weight: 900; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-secondary) 18%, transparent);
  color: var(--brand-primary);
  transition: transform .22s ease, background .22s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: color-mix(in srgb, var(--brand-secondary) 30%, transparent); }
.faq-list p { color: var(--muted); line-height: 1.7; }
.module-card,
.blog-card,
.gallery-item,
.service-card,
.contact-info,
.contact-form,
.price-cta,
.generic-page .page-body,
.about-values article,
.about-badges span {
  color: var(--text);
}
.module-page h1 { font-size: clamp(38px, 6vw, 68px); margin: 10px 0; letter-spacing: 0; }
.module-page > p { max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.module-page,
.about-page,
.article-page,
.contact-page,
.generic-page { animation: pageIn .58s cubic-bezier(.2, .8, .2, 1) both; }

.service-card,
.module-card,
.blog-card,
.gallery-item,
.blog-preview-grid article,
.about-values article,
.contact-info,
.contact-form,
.price-cta,
.generic-page .page-body {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(0);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.service-card::before,
.module-card::before,
.blog-card::before,
.gallery-item::before,
.blog-preview-grid article::before,
.about-values article::before,
.contact-form::before,
.price-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(243, 178, 60, .18), transparent 36%);
  transition: opacity .22s ease;
}
.service-card:hover,
.module-card:hover,
.blog-card:hover,
.gallery-item:hover,
.blog-preview-grid article:hover,
.about-values article:hover,
.contact-form:hover,
.price-cta:hover {
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-6px);
  border-color: color-mix(in srgb, var(--brand-secondary) 46%, var(--border));
  box-shadow: 0 24px 58px rgba(15, 23, 42, .16);
}
.service-card:hover::before,
.module-card:hover::before,
.blog-card:hover::before,
.gallery-item:hover::before,
.blog-preview-grid article:hover::before,
.about-values article:hover::before,
.contact-form:hover::before,
.price-cta:hover::before { opacity: 1; }
.blog-card img,
.gallery-item img,
.blog-preview-grid img,
.photo-mosaic img,
.about-hero img {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .45s ease;
}
.blog-card:hover img,
.gallery-item:hover img,
.blog-preview-grid article:hover img,
.photo-mosaic img:hover,
.about-hero img:hover {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}
.contact-form input,
.contact-form textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15, 23, 42, .08); }

.reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .72s cubic-bezier(.2, .8, .2, 1), transform .72s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes softFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(15, 23, 42, .16); }
  50% { box-shadow: 0 18px 42px rgba(177, 18, 38, .18); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; }
  .mobile-menu-toggle { display: block; order: 1; }
  .site-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    z-index: 90;
    width: min(360px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    backdrop-filter: blur(18px);
    transform: translateY(-8px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  body.mobile-menu-open .site-nav {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 13px 12px; border-radius: 10px; }
  .site-nav a:hover { background: color-mix(in srgb, var(--brand-secondary) 16%, transparent); }
  .site-nav a::after { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; margin-left: auto; justify-self: end; padding-right: 54px; }
  .mobile-menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; z-index: 2; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 64px 0; }
  .site-header { padding: 12px 14px; gap: 10px; grid-template-columns: minmax(112px, auto) 1fr; }
  .site-logo { min-width: 126px; }
  .site-logo .logo-img { width: 126px; height: 38px; }
  .quick-call { display: none; }
  .icon-action, .theme-toggle, .lang-link, .mobile-menu-toggle { width: 40px; height: 40px; }
  .header-actions { gap: 8px; padding-right: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-socials { right: 10px; gap: 8px; }
  .floating-socials a { width: 44px; height: 44px; border-radius: 12px; }
  .floating-socials img { width: 25px; height: 25px; }
  .cookie-banner { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; }
}
