/* ===========================
   EliGal – Design System
   Vanilla CSS – No frameworks
   =========================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #0b1c2d;
  --footer-bg: #213449;
  /* Lighter blue footer */
  --muted: rgba(11, 28, 45, 0.85);
  /* Slightly darker for better contrast at large sizes */
  --line: rgba(11, 28, 45, 0.12);
  --accent: #0ea5e9;
  /* Vibrant Sky Blue replacing Gold */
  --gold: var(--accent);
  /* Keeping variable for compatibility, but it's blue now */
  --max: 1400px;
  /* Expansive width like Tadiran */
  --radius: 24px;
  /* More rounded premium feel */
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', sans-serif;
  /* Primary body font */
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
}

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

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

button {
  font-family: inherit;
}

/* ---------- Accessibility ---------- */
.reveal.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================
   HEADER / TOPBAR
   ====================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11, 28, 45, 0.06);
  direction: rtl;
  padding: 0 24px;
}

.bsd-text {
  font-size: 10px;
  color: rgba(11, 28, 45, 0.5);
  font-weight: 400;
  position: absolute;
  top: 8px;
  right: 20px;
}

.topbar .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 52px;
}

.brandlock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  order: 99;
  direction: ltr;
  margin-right: 10px;
}

.brandlock img {
  width: auto;
  height: 34px;
  object-fit: contain;
  filter: brightness(0);
  transition: opacity 0.2s ease;
}

.brandlock .brand-name {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brandlock:hover img {
  opacity: 0.7;
}

/* Desktop Navigation */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
}

.navlink {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.8);
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}

.navlink:hover {
  background: rgba(11, 28, 45, 0.05);
  color: var(--text);
}

.navlink.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  font-weight: 600;
}

/* Calculator CTA Button in Header */
.nav-calc-btn {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 7px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-calc-btn:hover {
  background: #0284c7;
  transform: scale(1.03);
}

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 12px 20px;
  gap: 8px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-navlink {
  font-size: 14px;
  color: rgba(11, 28, 45, 0.85);
  padding: 12px 14px;
  border-radius: 8px;
  transition: 0.2s ease;
  font-weight: 400;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: right;
  width: 100%;
  text-decoration: none;
  display: block;
}

.mobile-navlink:hover {
  background: rgba(11, 28, 45, 0.06);
}

.mobile-navlink.active {
  background: rgba(201, 162, 77, 0.16);
  border: 1px solid rgba(201, 162, 77, 0.35);
  color: var(--text);
}

/* CTA Banner */
.cta-banner {
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  margin: 40px 0;
  border: 1px solid var(--line);
}

.cta-banner h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--muted) !important;
}

.cta-banner .btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(11, 28, 45, 0.1);
}

.btn.primary {
  background: var(--gold);
  color: #fff !important;
  border: none;
  padding: 18px 44px;
  /* Even bigger padding */
  font-size: 18px;
  /* Bigger font-size */
  font-weight: 700;
  /* Bolder weight */
  gap: 12px;
  /* Bigger gap for icon */
}

.btn.primary:hover {
  background: #0284c7;
  /* Darker blue */
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.45);
  transform: translateY(-3px) scale(1.01);
}

/* Unused .dot class removed as planned */

/* ======================
   MAIN CONTENT
   ====================== */
main {
  padding-top: 52px;
  direction: rtl;
  text-align: right;
}

section {
  padding: 100px 20px;
  /* Even bigger padding for "Tadiran vibe" */
}

section.surface {
  background-color: var(--surface);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 52px);
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}

.hero .video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 45, 0.6);
}

.hero .content {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(680px, 90vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  direction: ltr;
}

.hero-logo {
  width: 120px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .25));
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.06em;
  direction: ltr;
  unicode-bidi: isolate;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.hero-lines {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-cta-row .btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta-row .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
}

/* ======================
   BLOG SECTION (Homepage)
   ====================== */
.blog-section {
  padding: 80px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 28, 45, 0.1);
  border-color: var(--accent);
}

.blog-card .blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.blog-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card .blog-meta {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ======================
   LOGOS STRIP (Proven Pattern)
   ====================== */
.logos-section {
  padding: 30px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  direction: ltr;
  /* Force LTR for predictable slider math */
}

.logo-slider {
  width: 100%;
  height: fit-content;
  overflow: hidden;
}

.logo-slider-track {
  width: fit-content;
  display: flex;
  align-items: center;
  animation: slide-logos 30s linear infinite;
}

.logo-strip-img {
  height: 50px;
  width: auto;
  display: block;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.logo-strip-img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes slide-logos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .logo-strip-img {
    height: 35px;
  }
}

/* ======================
   TYPOGRAPHY
   ====================== */
h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  margin: 0;
}

h3 {
  font-size: 20px;
  font-weight: 650;
  margin-top: 12px;
}

p {
  color: var(--muted);
  font-weight: 400;
  /* Increased from 300 for better readability */
  line-height: 1.7;
  font-size: 19px;
  /* Bumped to 19px for bigness */
  margin-top: 12px;
}

ul,
ol {
  padding-right: 18px;
  margin-top: 8px;
}

li {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 400;
}

/* ======================
   ABOUT SECTION
   ====================== */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content p,
.about-content h3,
.about-content ul {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Timeline */
.timeline {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.4;
}

.timeline-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
}

.timeline-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ======================
   SERVICES SECTION
   ====================== */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-container>p {
  max-width: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 20px;
}

.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 20px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.service-item:nth-child(odd) {
  border-left: 1px solid var(--line);
}

.service-item:nth-child(1),
.service-item:nth-child(2) {
  border-top: 1px solid var(--line);
}

.service-item:hover {
  background: rgba(14, 165, 233, 0.03);
}

.service-num {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.35;
  padding-top: 2px;
}

.service-item h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--text);
}

.service-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ======================
   PROJECTS SECTION
   ====================== */
.projects-section {
  background-color: var(--surface);
}

/* Photo Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.project-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.project-gallery img:hover {
  opacity: 0.85;
}

/* Project Content */
.project-content {
  margin-top: 28px;
  max-width: 900px;
}

.project-content h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 650;
}

/* Stats Grid */
.project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 24px;
}

.stat {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat:not(:last-child) {
  border-left: 1px solid var(--line);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Project Details */
details.project {
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  margin-top: 12px;
}

details.project summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
  font-size: 16px;
  color: var(--text);
}

details.project summary::-webkit-details-marker {
  display: none;
}

details.project summary::marker {
  display: none;
  content: '';
}

details.project summary:hover {
  color: var(--gold);
}

.chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 77, 0.3);
  background: rgba(14, 165, 233, 0.08);
  color: var(--gold);
  font-weight: 600;
}

.project-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.project-details p {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 6px;
}

.project-details ul {
  margin-top: 6px;
  padding-right: 24px;
}

.project-details li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* ======================
   CONTACT / FORMS
   ====================== */
.contact-section {
  background-color: var(--bg);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.kicker span {
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  display: inline-block;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.sub {
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.info-item a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
  color: var(--text);
  text-align: right;
  font-size: 14px;
  transition: border-color 0.2s;
}

input::placeholder,
textarea::placeholder {
  text-align: right;
  direction: rtl;
  color: var(--muted);
  opacity: 0.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
}

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

.toggle-advanced {
  margin-top: 14px;
  margin-bottom: 8px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  padding: 8px 0;
  font-family: inherit;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  direction: rtl;
}

.checkbox-label {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-consent {
  margin-top: 16px;
}

.consent-label {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: auto;
  margin: 4px 0 0 0;
  flex-shrink: 0;
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.consent-label .required {
  color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

#advanced-form {
  display: none;
}

#advanced-form.open {
  display: block;
}

/* ======================
   FOOTER
   ====================== */
footer {
  background: #0ea5e9;
  /* Solid Navy */
  color: #fff;
  padding: 180px 20px 0px;
  /* Increased top padding to avoid wave intersection */
  direction: rtl;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  /* Slight overlap to prevent seam */
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,197.3C1248,213,1344,203,1392,197.3L1440,192L1440,0L1392,0L1344,0L1248,0L1152,0L1056,0L960,0L864,0L768,0L672,0L576,0L480,0L384,0L288,0L192,0L96,0L48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
}

.footer-brand,
.footer-col {
  position: relative;
  z-index: 2;
}

footer .container {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
  /* Reduced spacing */
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.footer-brand .logo-big {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0;
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 12px 0;
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-brand p {
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 440px;
  font-weight: 300;
}

.footer-col .footer-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
  font-family: 'Rubik', sans-serif;
  margin-top: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.footer-col ul li a:hover {
  color: #4fd1c5;
  padding-right: 8px;
}

/* Footer Wave Overlay */
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.15' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,144C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
}




.footer-bottom {
  border-top: none;
  /* Removed border */
  padding-top: 0;
  /* Removed top padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #fff;
}

.footer-bottom p {
  color: #fff;
  margin: 0;
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom span {
  color: #fff;
}

/* ======================
   FLOATING ACTION STACK
   ====================== */
.floating-stack {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-bubble {
  width: 52px;
  /* Smaller and more refined */
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.float-bubble:hover {
  transform: scale(1.1) translateX(5px);
  /* Move towards the right slightly on hover */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.float-bubble.whatsapp {
  background: #25D366;
}

.float-bubble.mail {
  background: #ffffff;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.float-bubble svg {
  width: 24px;
  height: 24px;
}

.footer-bottom span {
  color: var(--muted);
}

/* ======================
   ACCENT SIDE BARS
   ====================== */
/* Legacy accent side bars removed in overhaul */

section.accent.contact {
  --accent: var(--accent-contact);
}

/* ======================
   WHATSAPP FAB
   ====================== */
/* ======================
   CALCULATOR INTEGRATION
   ====================== */
.calculator-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.calculator-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  /* Removed radial gradient */
  pointer-events: none;
  z-index: 0;
}

.calc-section {
  position: relative;
  z-index: 1;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.calc-section:hover {
  background: rgba(14, 165, 233, 0.02);
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.05);
}

.calc-section h3 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 24px;
  font-family: 'Rubik', sans-serif;
}


/* ======================
   LEGAL PAGES
   ====================== */
.legal-page {
  padding-top: 78px;
  direction: rtl;
  text-align: right;
  overflow: visible;
}

.legal-page section {
  padding: clamp(24px, 5vw, 86px) 16px;
  overflow: visible;
}

.legal-page .legal-content {
  max-width: 1120px;
  margin: 0 auto;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal-page h1 {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 650;
  margin: 12px 0 24px 0;
}

.legal-page h2 {
  font-size: clamp(18px, 4vw, 20px);
  font-weight: 650;
  margin-top: 16px;
  margin-bottom: 10px;
}

.legal-page p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 17px);
  margin-top: 10px;
}

.legal-page li {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(13px, 2vw, 15px);
}

.legal-page ul {
  padding-right: 16px;
  margin-top: 10px;
}

.legal-page .contact-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-top: 16px;
}

.legal-page .contact-card p {
  margin: 0;
}

.legal-page .last-updated {
  color: rgba(11, 28, 45, 0.4);
  font-size: 14px;
  margin-top: 32px;
}

.legal-section {
  margin-bottom: 16px;
}

/* ======================
   CALCULATOR PAGE
   ====================== */
.calc-page {
  padding: 120px 20px 48px;
}

.calculator {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 28, 45, 0.1);
  box-shadow: 0 20px 60px rgba(11, 28, 45, 0.08);
  color: var(--text);
  direction: rtl;
}

.calc-header {
  text-align: center;
  margin-bottom: 36px;
}

.calc-header h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.calc-header p {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(11, 28, 45, 0.55);
  margin: 0;
  font-weight: 400;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  align-items: center;
  gap: 6px;
}

.calc-field label .field-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.calc-badge {
  background: #f0f4f8;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: rgba(11, 28, 45, 0.1);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: var(--gold);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

.calc-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-toggle {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 28, 45, 0.1);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  color: var(--text);
}

.calc-toggle.active {
  border-color: var(--gold);
  background: rgba(14, 165, 233, 0.1);
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.calc-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  background: #fff;
  border: 1px solid rgba(11, 28, 45, 0.1);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}

.calc-select:focus {
  border-color: var(--gold);
  outline: none;
}

/* Calculator Results */
.calc-results {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(11, 28, 45, 0.05);
  position: relative;
  overflow: hidden;
}

.calc-results-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(14, 165, 233, 0.05);
  border-radius: 0 0 0 100%;
  margin-right: -32px;
  margin-top: -32px;
  pointer-events: none;
}

.calc-results-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-income-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(11, 28, 45, 0.1);
}

.calc-income-label {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.calc-income-value {
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.calc-tax-note {
  font-size: 12px;
  color: #15803d;
  font-weight: 500;
  background: #dcfce7;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}

.calc-stats .stat-label {
  font-size: 13px;
  color: rgba(11, 28, 45, 0.6);
  margin-bottom: 4px;
}

.calc-stats .stat-value {
  font-size: 20px;
  font-weight: 700;
}

.calc-stats .stat-value small {
  font-size: 13px;
  font-weight: 400;
}

.calc-roi-box {
  background: #f8f9fa;
  color: var(--text);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(11, 28, 45, 0.1);
  margin-top: 8px;
}

.calc-roi-box .roi-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.calc-roi-box .roi-label svg {
  color: var(--gold);
  fill: var(--gold);
}

.calc-roi-box .roi-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.calc-cta {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--text);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: 0.2s;
}

.calc-cta:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

/* ======================
   404 PAGE
   ====================== */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.page-404 h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-404 p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Success Page */
.page-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.page-success h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.page-success p {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ======================
   RESPONSIVE – TABLET
   ====================== */
@media (max-width: 980px) {
  section {
    padding: 32px 20px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .timeline {
    flex-direction: column;
    gap: 16px;
  }



  .desktop-nav {
    display: none !important;
  }

  .nav-calc-btn {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .hero-title {
    font-size: clamp(44px, 9vw, 64px);
  }

  section.accent::before {
    right: 12px;
    width: 4px;
  }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .project-gallery img:last-child {
    grid-column: span 2;
  }

  .project-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-left: none;
  }

  .badges {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ======================
   RESPONSIVE – MOBILE
   ====================== */
@media (max-width: 640px) {
  section {
    padding: 24px 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-brand-row {
    gap: 10px;
  }

  .hero-logo {
    width: 50px;
  }

  main {
    padding-top: 52px;
  }

  .topbar .wrap {
    padding: 0 12px;
    gap: 8px;
  }

  .brandlock {
    margin-left: 4px;
  }

  .brandlock img {
    height: 28px;
  }

  .bsd-text {
    right: 12px;
  }

  .hamburger-btn {
    padding: 6px;
  }

  .mobile-menu {
    padding: 10px 16px;
    gap: 6px;
  }

  .mobile-navlink {
    padding: 10px 12px;
    font-size: 13px;
  }

  h2 {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 16px;
  }

  h3 {
    font-size: 18px;
    margin-top: 10px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 6px;
  }

  li {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .hero {
    min-height: 500px;
    height: calc(100vh - 52px);
  }

  .hero .content {
    width: min(100%, 90vw);
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 48px);
  }

  .hero-lines {
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1.3;
  }

  .hero-tagline {
    font-size: clamp(16px, 3vw, 22px);
  }

  .badges {
    flex-direction: column;
    gap: 8px;
  }

  .pill {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd) {
    border-left: none;
  }

  .service-item h3 {
    font-size: 15px;
  }

  .service-item p {
    font-size: 13px;
  }

  .timeline-item {
    gap: 12px;
  }

  .timeline-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .timeline-icon svg {
    width: 22px;
    height: 22px;
  }

  .timeline-content h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .timeline-content p {
    font-size: 13px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery img:last-child {
    grid-column: span 1;
  }

  .project-stats {
    grid-template-columns: 1fr;
  }

  .stat:not(:last-child) {
    border-left: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
  }

  .form-field label {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  textarea {
    min-height: 100px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    gap: 8px;
  }

  .actions.wide {
    gap: 8px;
  }

  .actions.wide .btn {
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  footer {
    padding: 140px 16px 24px;
  }

  footer::before {
    height: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand a {
    justify-content: center;
  }

  .footer-brand p {
    margin: 12px auto 0;
    max-width: none;
  }

  .footer-col {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .card {
    padding: 16px !important;
  }



  section.accent::before {
    display: none;
  }

  .logos-section {
    padding: 16px;
  }

  .logos-section img {
    border-radius: 8px;
  }

  details.project {
    padding: 12px;
    margin-top: 10px;
  }

  details.project summary {
    font-size: 14px;
  }

  .project-details p {
    font-size: 14px;
  }

  .project-details ul {
    padding-right: 20px;
  }

  .project-details li {
    font-size: 14px;
  }

  .calculator {
    padding: 20px;
  }

  .calc-grid {
    gap: 24px;
  }

  .calc-results {
    padding: 20px;
  }

  .calc-income-value {
    font-size: 36px;
  }

  .calc-page {
    padding-top: 100px;
  }

  .logos-section {
    padding: 32px 16px;
  }

  /* Floating Action Bubbles - Final Override for Mobile/Tablet */
  .floating-stack {
    top: auto !important;
    bottom: 24px !important;
    left: auto !important;
    right: 24px !important;
    transform: none !important;
    gap: 12px;
  }

  .float-bubble {
    width: 46px !important;
    height: 46px !important;
  }

  .float-bubble svg {
    width: 20px !important;
    height: 20px !important;
  }
}