/* KUBE Windows - Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #090D16;
  --bg-card: rgba(18, 25, 41, 0.7);
  --bg-card-hover: rgba(28, 38, 62, 0.8);
  
  --primary-gold: #C5A059;
  --primary-gold-light: #E0C179;
  --primary-gold-glow: rgba(197, 160, 89, 0.25);
  
  --accent-blue: #38BDF8;
  --accent-blue-glow: rgba(56, 189, 248, 0.2);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 160, 89, 0.3);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(197, 160, 89, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 50px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF 20%, var(--primary-gold-light) 60%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: var(--primary-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 50px;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 50px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.05em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--primary-gold-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: var(--primary-gold);
  color: #090D16;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-gold-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), #A47E38);
  color: #090D16;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--primary-gold-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
  background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold-light);
  color: var(--primary-gold-light);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.6) 0%, rgba(9, 13, 22, 0.95) 100%);
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary-gold-light);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-gold), var(--accent-blue));
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section {
  padding: 100px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--primary-gold-glow);
  border-color: var(--primary-gold);
  color: var(--primary-gold-light);
  box-shadow: 0 0 20px var(--primary-gold-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.product-card {
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-gold-light);
  border: 1px solid var(--border-gold);
}

.product-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.anatomy-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.anatomy-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.anatomy-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090D16;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 0 6px var(--primary-gold-glow);
  animation: pulse 2s infinite;
  transition: var(--transition-smooth);
}

.hotspot:hover {
  transform: scale(1.2);
  background: #FFF;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--primary-gold-glow); }
  70% { box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.anatomy-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-box {
  padding: 20px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.feature-box.active {
  border-color: var(--primary-gold);
  background: rgba(197, 160, 89, 0.08);
}

.feature-box h4 {
  font-size: 1.1rem;
  color: var(--primary-gold-light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-wrapper {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.radio-card:hover, .radio-card.selected {
  border-color: var(--primary-gold);
  background: var(--primary-gold-glow);
  color: var(--primary-gold-light);
}

.input-slider {
  width: 100%;
  accent-color: var(--primary-gold);
}

.calc-summary {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-price-box {
  text-align: center;
  margin: 30px 0;
}

.summary-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-price-val {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-gold-light);
}

footer {
  background: #05080E;
  border-top: 1px solid var(--border-light);
  padding: 60px 20px 30px;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  max-width: 450px;
  width: min(450px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 40px;
  text-align: center;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.consult-form {
  position: relative;
  margin-bottom: 0;
  text-align: left;
}

.consult-form[hidden] {
  display: none;
}

.consult-form .form-group {
  margin-bottom: 16px;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
  resize: vertical;
}

.consult-form input:focus,
.consult-form textarea:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px var(--primary-gold-glow);
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-status {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-status[data-state="success"] {
  color: #8fe3ad;
}

.contact-status[data-state="error"] {
  color: #ff9d9d;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
  flex: 1 1 160px;
  justify-content: center;
}

.modal-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 520px) {
  .modal {
    align-items: flex-end;
  }

  .modal-content {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 26px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

/* Profile image object-fit cover inside square container */
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.mobile-menu-drawer.active {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive Breakdown for Tablets and Mobile Devices */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .hero-content p {
    margin: 0 auto 36px;
  }
  .nav-links, .desktop-only {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .calc-wrapper, .anatomy-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .nav-container {
    padding: 0 15px;
  }
  .logo-title {
    font-size: 1.2rem;
  }
  .logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .tabs-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .summary-price-val {
    font-size: 2.1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Maintain original header menu & logo layout in LTR regardless of RTL page state */
header#main-header .nav-container {
  direction: ltr !important;
}

/* Font scaling (+12-15%) and typography enhancement for Hebrew (HE) and Arabic (AR) */
html[lang="he"], html[lang="ar"] {
  font-size: 17px;
}

html[lang="he"] h1, html[lang="ar"] h1 {
  font-size: 3.5rem;
  line-height: 1.25;
}

html[lang="he"] h2, html[lang="ar"] h2 {
  font-size: 2.8rem;
  line-height: 1.3;
}

html[lang="he"] h3, html[lang="ar"] h3 {
  font-size: 1.6rem;
  line-height: 1.35;
}

html[lang="he"] p, html[lang="ar"] p, 
html[lang="he"] li, html[lang="ar"] li, 
html[lang="he"] span, html[lang="ar"] span,
html[lang="he"] button, html[lang="ar"] button,
html[lang="he"] a, html[lang="ar"] a {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Explicitly keep header menu links, logo text, lang buttons and header CTA at original dimensions */
header#main-header .nav-links a {
  font-size: 0.88rem !important;
}
header#main-header .logo-title {
  font-size: 1.4rem !important;
}
header#main-header .logo-subtitle {
  font-size: 0.65rem !important;
}
header#main-header .lang-btn {
  font-size: 0.8rem !important;
}
header#main-header .btn-primary {
  font-size: 0.9rem !important;
}
