* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --band: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #080b14;
  --muted: #415076;
  --border: #e2e8f0;
  --brand: #c90e0e;
  --brand-soft: #fff1f1;
  --brand-hover: #a70d0d;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

html.dark {
  --bg: #080b14;
  --band: #101722;
  --surface: #101722;
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #cbd5e1;
  --border: rgba(255, 255, 255, 0.12);
  --brand-soft: rgba(201, 14, 14, 0.16);
  --brand-hover: #ff5f5f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  direction: rtl;
}

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

button {
  border: 0;
  font: inherit;
}

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

.container {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(24px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo img {
  width: 118px;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: transparent;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-trigger:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

html.dark .nav-link,
html.dark .nav-trigger {
  color: #ffffff;
}

html.dark .nav-link:hover,
html.dark .nav-trigger:hover {
  color: #ffffff;
}

.nav-menu {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: 288px;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 8px;
  transition: transform 0.16s ease, opacity 0.16s ease, visibility 0.16s ease;
}

html[dir="rtl"] .nav-dropdown {
  right: 0;
  left: auto;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.nav-sub-link:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

html.dark .nav-sub-link,
html.dark .mobile-sub-link {
  color: #ffffff;
}

.nav-sub-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.theme-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 4px;
}

.theme-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.theme-button:hover,
.theme-button.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

html.dark .theme-button {
  color: #cbd5e1;
}

html.dark .theme-button:hover,
html.dark .theme-button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.theme-button svg,
.icon-button svg,
.mobile-services-toggle svg,
.nav-trigger svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  padding: 12px 22px;
  box-shadow: 0 14px 28px rgba(112, 20, 20, 0.2);
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.icon-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-drawer {
  display: none;
  max-height: calc(100svh - 80px);
  overflow-y: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 18px 16px 22px;
  box-shadow: var(--shadow);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 8px;
}

.mobile-nav-link,
.mobile-services-toggle,
.mobile-sub-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  text-align: left;
}

.mobile-nav-link,
.mobile-services-toggle {
  padding: 13px 14px;
  font-size: 16px;
}

.mobile-nav-link:hover,
.mobile-services-toggle:hover {
  background: var(--surface-soft);
}

.mobile-services-panel {
  display: none;
  gap: 4px;
  margin: 2px 0 4px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 8px;
}

.mobile-services-panel.is-open {
  display: grid;
}

.mobile-sub-link {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-sub-link:hover {
  background: var(--surface);
  color: var(--brand);
}

.mobile-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 136px 0 72px;
  background:
    linear-gradient(rgba(8, 11, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 11, 20, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(201, 14, 14, 0.13), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(22, 163, 254, 0.09), transparent 24%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%, 100% 100%;
}

html.dark .article-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(201, 14, 14, 0.28), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(22, 163, 254, 0.14), transparent 24%),
    var(--bg);
}

.article-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.article-layout > * {
  min-width: 0;
}

.article-copy {
  width: 100%;
  min-width: 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  padding: 12px 18px;
}

html[dir="rtl"] .article-back svg {
  transform: scaleX(-1);
}

.kicker {
  margin: 34px 0 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  max-width: 780px;
  margin: 14px 0 18px;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.seo-line {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 750;
  line-height: 1.65;
}

.article-media {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  padding: 34px;
}

.article-media img {
  width: min(100%, 640px);
  max-height: 390px;
  object-fit: contain;
}

.article-body-section {
  padding: 72px 0 86px;
  background: var(--band);
}

.article-body {
  width: min(calc(100% - 32px), 900px);
  max-width: 900px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}

.article-body p {
  min-width: 0;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
}

.footer-logo {
  width: 118px;
  margin: 0 auto;
}

.footer-copy {
  margin: 16px 0 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.footer-socials a:hover,
.powered a:hover {
  color: var(--brand);
}

.powered {
  margin: 16px 0 0;
  color: color-mix(in srgb, var(--muted) 76%, transparent);
  font-size: 0.68rem;
  line-height: 1.4;
}

.powered a {
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 20px 42px rgba(5, 46, 22, 0.3);
}

html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 20px;
}

@media (min-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
  }

  .icon-button {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .article-hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .article-body-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .header-inner {
    min-height: 72px;
  }

  html[dir="rtl"] .header-inner {
    position: relative;
  }

  html[dir="rtl"] .logo {
    position: absolute;
    top: 50%;
    right: 110px;
    transform: translateY(-50%);
  }

  html[dir="rtl"] .mobile-actions {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }

  .logo img {
    width: 96px;
  }

  .theme-button {
    width: 31px;
    height: 32px;
  }

  .mobile-actions {
    position: static;
    margin: 0;
  }

  [data-menu-toggle] {
    position: static;
    z-index: 70;
    display: inline-flex !important;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .article-hero {
    padding: 112px 0 48px;
  }

  .article-layout {
    display: block;
    width: 100%;
    max-width: 100%;
    gap: 24px;
  }

  .article-copy,
  .article-media,
  .seo-line,
  h1 {
    width: calc(100vw - 92px);
    max-width: calc(100vw - 92px);
  }

  .article-copy {
    padding-right: 14px;
    padding-left: 14px;
  }

  .article-back {
    margin-left: -14px;
  }

  .kicker {
    margin-top: 24px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.35rem);
    line-height: 1.05;
    word-break: break-word;
  }

  .seo-line {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-media {
    margin-top: 24px;
    min-height: 250px;
    border-radius: 22px;
    padding: 22px;
  }

  .article-media img {
    width: min(100%, 420px);
    max-height: 250px;
  }

  .article-body-section {
    padding: 46px 0 68px;
  }

  .article-body {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
    border-radius: 22px;
  }

  .article-body p {
    width: 100%;
    max-width: calc(100vw - 120px);
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  html[dir="rtl"] .floating-whatsapp {
    left: 16px;
  }
}

@media (max-width: 420px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

  .header-inner {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .logo img {
    width: 82px;
  }

  .mobile-actions {
    gap: 6px;
  }

  .theme-switch {
    padding: 3px;
  }

  .theme-button {
    width: 28px;
    height: 30px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .article-media {
    min-height: 220px;
    padding: 18px;
  }

  .article-media img {
    max-height: 220px;
  }

  .article-body {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .article-body p {
    max-width: calc(100vw - 112px);
  }
}

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