/* ---- LOCAL FONT FACES ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Outfit-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Outfit-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Outfit-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Outfit-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Montserrat-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Montserrat-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Montserrat-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Montserrat-700.woff2') format('woff2');
}

:root {
  --bg-color: #0c0c0c;
  --bg-elevated: #151515;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c158;
  --border-color: #2a2a2a;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Spacing Scale ── */
  --space-sm: 1rem;      /* 16px — inner element gaps */
  --space-md: 2rem;      /* 32px — component internal */
  --space-lg: 3.5rem;    /* 56px — section-header to content */
  --space-xl: 6rem;      /* 96px — section vertical padding */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #0c0c0c;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 500;
}

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

ul {
  list-style: none;
}

/* LAYOUT */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  height: 120px;
  z-index: 100;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.3s;
  flex-shrink: 0;
  position: relative;
  left: -20px;
}

.logo img {
  height: 116px;
  width: auto;
  display: block;
}

.logo:hover {
  opacity: 0.8;
}

nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0 0 0 2rem;
  padding: 0;
  flex-grow: 1;
  justify-content: center;
}

nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-fast);
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.lang-switch span {
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch span:hover,
.lang-switch span.active {
  color: var(--accent-gold);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent-gold);
  color: #000;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* APP ROUTES (SPA) */
.page {
  display: none;
  opacity: 0;
  background-color: var(--bg-color);
}

.page.active {
  display: block;
  animation: fadeIn var(--transition-slow) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* HERO SECTION */
.page.active > section:first-child,
.page.active > .hero:first-child {
  padding-top: 120px;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Hide video on mobile — save bandwidth, show poster/static bg */
@media (max-width: 768px) {
  .hero-video { display: none; }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -3;
  transform: scale(1.05);
  animation: zoomBg 25s infinite alternate linear;
}

@keyframes zoomBg {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-color) 0%, rgba(12, 12, 12, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  padding: 0 20px;
  margin-top: 40px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS SECTION */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card-img {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  flex: 1;
}

.btn-link {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FEATURES / BENEFITS */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
  transition: var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--accent-gold);
}

.feature-item h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* FULL WIDTH SPLIT SECTION */
.split-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80vh;
  background: var(--bg-elevated);
  margin-top: var(--space-xl);
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-img {
  flex: 1;
  min-width: 400px;
  height: 800px;
  background-size: cover;
  background-position: center;
}

.split-content {
  flex: 1;
  padding: 5rem 6rem;
  min-width: 400px;
}

.split-content h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.pain-point h5 {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.pain-point p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CROSS LINK BANNER */
.cross-link {
  background: linear-gradient(135deg, var(--bg-elevated), #161208);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: var(--space-xl) var(--space-md);
  border-radius: 16px;
  text-align: center;
  margin: var(--space-xl) 0 0;
}

.cross-link h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ---- PORTFOLIO CASE STUDIES ---- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.case-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.case-gallery::-webkit-scrollbar {
  height: 0;
}

.case-gallery::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

.case-gallery::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 2px;
}

.case-gallery img {
  width: 100%;
  min-width: 100%;
  height: 280px;
  object-fit: cover;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.case-body {
  padding: 2rem;
}

.case-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.case-label.problem {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
}

.case-label.solution {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
}

.case-body h4 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.case-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

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

@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-gallery img {
    height: 220px;
  }
}

/* ACCORDION FAQ */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.accordion-trigger {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  transition: color var(--transition-fast);
  user-select: none;
}

.accordion-trigger:hover {
  color: var(--accent-gold);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}

.accordion-item.open .accordion-content {
  max-height: 2000px;
  padding: 0 0 1.5rem 0;
}

.accordion-content p,
.accordion-content ul {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.accordion-content .comparison-list {
  margin: 1rem 0;
}

/* STEPS TIMELINE */
.steps-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--border-color) 100%);
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #b8941e);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.step-body {
  flex: 1;
  padding-top: 0.5rem;
}

.step-body h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.step-result {
  color: var(--accent-gold);
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 6px 6px 0;
}

.step-result strong {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .steps-timeline::before {
    left: 20px;
  }
  .step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }
  .step-item {
    gap: 1.2rem;
  }
}

/* FOOTER */
footer {
  background: #080808;
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-col {
  max-width: 600px;
}

/* FAQ SECTION */
#faq {
  background: var(--bg-color) !important;
  color: var(--text-primary) !important;
  position: relative !important;
  z-index: 5 !important;
  opacity: 1 !important;
  display: block !important;
  padding-top: var(--space-xl) !important;
  padding-bottom: var(--space-xl) !important;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: var(--space-lg);
}

.faq-category h3 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-item {
  margin-bottom: 0;
}

.faq-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #fff;
  line-height: 1.4;
}

.faq-item p, .faq-item .answer {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-item strong {
  color: var(--accent-gold);
}

.comparison-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.comparison-box h5 {
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.comparison-list li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
}

.comparison-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}


.cert-list li {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.cert-list li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {

  .header-actions button {
    display: none; /* Hide top CTA but keep language switcher */
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.98);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin: 0;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .price-banner p {
    white-space: normal !important;
  }

  h1 span[style*="nowrap"] {
    white-space: normal !important;
  }

  .hero h1 .logo-inline img, 
  .page:not(#home) .hero h1 .logo-inline img {
    height: 3.5em; /* Prevent overflow on small screens */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .split-img,
  .split-content {
    min-width: 100%;
  }

  .split-img {
    height: 400px;
  }

  .split-content {
    padding: 3rem 5%;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* UTILITIES */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---- INLINE LOGO SCALING ---- */
.logo-inline {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  margin: 0 0.2em;
}

.logo-inline img {
  height: 2.5em; /* 300% from base text sizes naturally */
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -0.05em;
  filter: brightness(0) invert(1);
}

.hero h1 .logo-inline img {
  height: 5em; /* Increased by an additional 50% */
  transform: translateY(-3mm); /* Align vertically with text */
}

/* 200% scaling for subpages */
.page:not(#home) .logo-inline img {
  height: 5em;
}

.page:not(#home) .hero h1 .logo-inline img {
  height: 4.4em;
  transform: translateY(-3mm);
}

.section-subtitle .logo-inline img {
  height: 2em;
}

.footer-col h3 .logo-inline img {
  height: 120px; /* Standardize with header logo height */
  opacity: 1;
}

.footer-bottom .logo-inline img {
  height: 40px; 
  opacity: 0.7;
}

/* ---- PRICE BANNER ---- */
.price-banner {
  background: linear-gradient(135deg, #1a1408, #2a200a);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  margin: var(--space-lg) auto 0;
  max-width: 900px;
  width: 90%;
}

.price-banner .price-main {
  color: var(--accent-gold);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.4;
  display: block;
}






/* ---- MODAL UI ---- */
#contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#contact-modal.open {
  display: flex;
}

.modal-box {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-box h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.modal-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.modal-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.modal-submit {
  width: 100%;
  background: var(--accent-gold);
  color: #000;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.modal-submit:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* ---- B2B DEALER MODAL ---- */
#dealer-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#dealer-modal.open {
  display: flex;
}

.dealer-modal-box {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.5rem;
  border-radius: 12px;
  position: relative;
  width: 92%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.3s ease forwards;
}

.dealer-modal-box::-webkit-scrollbar {
  display: none;
}

.dealer-modal-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--accent-gold);
  text-align: center;
}

.dealer-modal-box .modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a1a;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* B2C enhanced modal form */
.modal-box .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.modal-box .form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 2rem 0;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.form-success h4 {
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .dealer-modal-box {
    padding: 2rem 1.5rem;
  }
}

/* ---- FLOATING CONTACT ICONS ---- */
.floating-contacts {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 500;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-icon:hover {
  transform: scale(1.15);
}

.contact-icon.whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.contact-icon.whatsapp:hover {
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.contact-icon.line {
  background: #06c755;
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.contact-icon.line:hover {
  box-shadow: 0 6px 25px rgba(6, 199, 85, 0.6);
}

.contact-icon.telegram {
  background: #27a7e7;
  color: #fff;
  box-shadow: 0 4px 15px rgba(39, 167, 231, 0.4);
}

.contact-icon.telegram:hover {
  box-shadow: 0 6px 25px rgba(39, 167, 231, 0.6);
}

.contact-icon.email {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.contact-icon.email:hover {
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

/* Footer socials row */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials .contact-icon {
  width: 40px;
  height: 40px;
}

.footer-socials .contact-icon svg {
  width: 20px;
  height: 20px;
}

/* ---- FLOATING MOBILE CTA ---- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .floating-cta {
    display: block;
  }
}

.floating-cta button {
  background: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-cta button:hover {
  transform: translateY(-2px) scale(1.02);
}

/* TARGETED MOBILE FIXES FOR HOME PAGE */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100vw;
  }

  #home .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 60px;
  }

  #home .hero-actions {
    display: flex;
    flex-direction: column !important;
    gap: 1rem;
    width: 80%;
    max-width: 320px;
    margin: 2rem auto 0 !important;
  }

  #home .hero-actions button {
    width: 100% !important;
    margin-left: 0 !important;
  }

  #home .feature-list {
    flex-direction: column !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
  }

  #home .feature-item {
    width: 100% !important;
    flex: none !important;
  }
}

/* ---- PDF LIGHTBOX ---- */
#pdf-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

#pdf-lightbox.open {
  display: flex;
}

.lightbox-container {
  width: 92%;
  max-width: 900px;
  height: 85vh;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.3s ease forwards;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lightbox-header h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.lightbox-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #fff;
}

.lightbox-body {
  flex: 1;
  overflow: hidden;
}

.lightbox-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

@media (max-width: 768px) {
  .lightbox-container {
    width: 98%;
    height: 90vh;
    border-radius: 8px;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.2rem 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
#cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
#cookie-consent-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
}
.consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.consent-text {
  flex: 1;
}
.consent-text strong {
  color: var(--accent-gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
}
.consent-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}
.consent-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}
.consent-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.consent-accept {
  background: var(--accent-gold);
  color: #000;
}
.consent-accept:hover {
  background: #e5c348;
  transform: scale(1.03);
}
.consent-necessary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.consent-necessary:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .consent-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .consent-actions {
    width: 100%;
    justify-content: center;
  }
}

/* FEATURE LIST - Partner Section */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.feature-item h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Hero H1 alignment */
.hero-content h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   BEFORE / AFTER COMPARISON SLIDER
   ═══════════════════════════════════════════════ */
.ba-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
}

.ba-case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.ba-case-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Comparison Container */
.ba-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-comparison img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-comparison .ba-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-comparison .ba-after {
  z-index: 0;
}

/* Slider Handle */
.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--accent-gold);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.ba-slider-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  cursor: ew-resize;
  transition: transform 0.15s ease;
}

.ba-slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.ba-slider-handle svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

/* Labels */
.ba-label {
  position: absolute;
  top: 12px;
  z-index: 5;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
}

.ba-label-before {
  left: 12px;
  background: rgba(255, 80, 80, 0.85);
  color: #fff;
}

.ba-label-after {
  right: 12px;
  background: rgba(212, 175, 55, 0.9);
  color: #000;
}

/* Case Info */
.ba-case-info {
  padding: 1.8rem 2rem;
}

.ba-case-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.ba-case-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.ba-case-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ba-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

.ba-case-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-gold);
}

/* CTA under cases */
.ba-cta-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════
   PORTFOLIO GALLERY
   ═══════════════════════════════════════════════ */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.03);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 10000;
}

/* ═══════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════ */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: rgba(212, 175, 55, 0.1);
}

.comparison-table th {
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-gold);
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-col {
  background: rgba(212, 175, 55, 0.04);
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table .check { color: #4caf50; font-weight: 700; }
.comparison-table .cross { color: #ff6b6b; font-weight: 700; }

/* ═══════════════════════════════════════════════
   GUARANTEES SECTION
   ═══════════════════════════════════════════════ */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.guarantee-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-fast);
}

.guarantee-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.guarantee-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border-radius: 16px;
}

.guarantee-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.guarantee-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE: Before/After + Portfolio
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ba-cases-grid {
    grid-template-columns: 1fr;
  }
  .ba-comparison {
    aspect-ratio: 3 / 2;
  }
  .ba-slider-handle {
    width: 40px;
    height: 40px;
  }
  .ba-slider-handle svg {
    width: 20px;
    height: 20px;
  }
  .ba-case-info {
    padding: 1.2rem 1.4rem;
  }
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .portfolio-gallery {
    grid-template-columns: 1fr;
  }
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
}