/*
 * Nexura.ly - Stylesheet
 * Integrated Design System: Space Grotesk, Inter, IBM Plex Mono, IBM Plex Sans Arabic, Tajawal
 * Supports Light & Dark Theme via CSS Variables
 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Inter:wght@100..900&family=Noto+Kufi+Arabic:wght@100..900&family=Noto+Sans+Arabic:wght@100..900&family=Space+Grotesk:wght@300..700&family=Tajawal:wght@400;500;700&display=swap');

/* === VARIABLES & TOKENS === */
:root {
  /* Brand Accents */
  --teal: #14B8A6;
  --teal-rgb: 20, 184, 166;
  --cyan: #38BDF8;
  --cyan-rgb: 56, 189, 248;
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;

  /* Fonts */
  --font-heading: 'Space Grotesk', 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'Inter', 'Noto Sans Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-social: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* === DARK THEME (Default) === */
[data-theme="dark"] {
  --bg-primary: #07111F;
  --bg-secondary: #0B1A2E;
  --bg-card: linear-gradient(180deg, rgba(15, 45, 84, 0.72), rgba(7, 17, 31, 0.72));
  --text-primary: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --border: rgba(56, 189, 248, 0.16);
  --header-bg: rgba(4, 12, 24, 0.75);
  --header-border: rgba(56, 189, 248, 0.14);
  --footer-bg: #050D19;
  --footer-border: rgba(56, 189, 248, 0.08);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 28px 72px rgba(56, 189, 248, 0.15);
  --input-bg: #0B1A2E;
  --input-border: rgba(56, 189, 248, 0.2);
  --btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --btn-secondary-border: rgba(148, 163, 184, 0.28);
  --btn-secondary-text: #E2E8F0;
  --eyebrow-bg: rgba(255, 255, 255, 0.04);
  --eyebrow-border: rgba(56, 189, 248, 0.18);
  --eyebrow-text: #7DD3FC;
  --whatsapp-fixed-bg: linear-gradient(135deg, #14B8A6, #22C55E);
  --overlay-bg: rgba(7, 17, 31, 0.45);
  --logo-filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(20, 184, 166, 0.3));
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #0B1F3A;
  --text-secondary: #1E293B;
  --text-muted: #64748B;
  --border: #D8E3FB;
  --header-bg: rgba(248, 250, 252, 0.88);
  --header-border: rgba(216, 227, 251, 0.9);
  --footer-bg: #0B1F3A;
  --footer-border: rgba(11, 31, 58, 0.1);
  --card-shadow: 0 14px 44px rgba(7, 17, 31, 0.05);
  --card-hover-shadow: 0 22px 70px rgba(20, 184, 166, 0.12);
  --input-bg: #FFFFFF;
  --input-border: #D8E3FB;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-border: #D8E3FB;
  --btn-secondary-text: #0B1F3A;
  --eyebrow-bg: #FFFFFF;
  --eyebrow-border: #D8E3FB;
  --eyebrow-text: #0B1F3A;
  --whatsapp-fixed-bg: #22C55E;
  --overlay-bg: rgba(248, 250, 252, 0.5);
  --logo-filter: none;
}

/* === RESET & BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: var(--theme-transition);
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  direction: rtl;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/* Ambient Background Orbs (Dark Mode Only) */
[data-theme="dark"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 7%, rgba(56, 189, 248, 0.10), transparent 25%),
              radial-gradient(circle at 13% 21%, rgba(20, 184, 166, 0.08), transparent 25%),
              linear-gradient(180deg, #06111F 0%, #07111F 42%, #081A30 100%);
  pointer-events: none;
  z-index: -2;
}

[data-theme="dark"]::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--teal);
  color: #06121f;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 760px;
}

.mono, .price, .stat, .step-number, .premium-proofbar strong, .contact-card a, .tel-link, [dir="ltr"] {
  font-family: var(--font-mono);
}

.font-social {
  font-family: var(--font-social);
}

/* === HEADER & NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
}

.nav-wrap {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 46px;
  width: auto;
  filter: var(--logo-filter);
  transition: var(--transition);
}

.brand small {
  display: block;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  margin-top: -4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(20, 184, 166, 0.12);
  color: var(--teal);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #07111F;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-primary);
}

.btn-glass:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--btn-secondary-border);
  background-color: var(--btn-secondary-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.theme-toggle:hover {
  background-color: var(--border);
  border-color: var(--teal);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Menu Toggle (Sidebar Trigger) */
.menu-toggle {
  display: flex;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--border);
  transform: scale(1.05);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* === HERO SECTION === */
.premium-hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.premium-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.premium-orb-1 {
  width: 320px;
  height: 320px;
  right: 10%;
  top: 5%;
  background: rgba(56, 189, 248, 0.12);
}

.premium-orb-2 {
  width: 280px;
  height: 280px;
  left: 10%;
  bottom: 5%;
  background: rgba(20, 184, 166, 0.10);
}

.premium-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--eyebrow-border);
  border-radius: 999px;
  color: var(--eyebrow-text);
  background-color: var(--eyebrow-bg);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 24px;
}

.premium-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.premium-hero h1 span {
  color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.premium-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.premium-proofbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background-color: var(--eyebrow-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

.premium-proofbar div {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.premium-proofbar div:last-child {
  border-left: 0;
  padding-left: 0;
}

.premium-proofbar strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.premium-proofbar span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.premium-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

#hero-3d-logo {
  width: 100%;
  max-width: 500px;
  height: 480px;
  background-color: transparent;
  outline: none;
  --poster-color: transparent;
}

/* Floating Card decoration */
.floating-card {
  position: absolute;
  right: -20px;
  bottom: 30px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-sm);
  padding: 16px;
  width: 240px;
  z-index: 10;
}

.floating-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
}

.floating-card span {
  font-size: 12px;
  color: var(--text-muted);
}

/* === GENERAL SECTIONS === */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head span {
  display: inline-flex;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 14px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

.section-head.center p {
  margin-inline: auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

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

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(20, 184, 166, 0.4);
}

.card h3 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.card .icon,
.premium-icon,
.premium-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.05);
}

.card .icon svg,
.premium-icon svg,
.premium-circle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.card em {
  display: inline-flex;
  font-style: normal;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.22);
  color: var(--teal);
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 16px;
}

/* Media Card */
.media-card {
  padding: 0;
}

.media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.media-card .card-body {
  padding: 24px;
}

/* Teaser / Soon cards decorative circle */
.teaser-grid .card::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  margin-bottom: 14px;
}

.badge-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

/* === TIMELINE === */
.premium-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.premium-timeline::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 10%;
  left: 10%;
  border-top: 1px dashed var(--border);
  z-index: 1;
}

.premium-timeline article {
  position: relative;
  text-align: center;
  padding: 0 12px;
  z-index: 2;
}

.premium-timeline b {
  position: absolute;
  top: 25px;
  right: calc(50% + 34px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.premium-timeline .premium-circle {
  margin: 20px auto 18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
}

.premium-timeline h3 {
  font-size: 18px;
}

.premium-timeline p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 220px;
  margin: 0 auto;
}

/* Step class cards (alternate timeline in factory page) */
.step {
  position: relative;
  padding: 26px 78px 26px 26px;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 24px;
  top: 26px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07111F;
  font-weight: 700;
  font-size: 14px;
}

/* Check lists inside cards */
.check-list {
  list-style: none;
  margin-top: 16px;
}

.check-list li {
  position: relative;
  padding-right: 24px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--teal);
  font-weight: bold;
}

/* === FEATURE STRIP === */
.feature-strip {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

[data-theme="dark"] .feature-strip::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 35%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: var(--eyebrow-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.1), transparent 35%),
              radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.08), transparent 35%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 24px;
}

/* Premium CTA Box (used in homepage) */
.premium-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.premium-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 35%, rgba(20, 184, 166, 0.12), transparent 30%),
              radial-gradient(circle at 88% 50%, rgba(56, 189, 248, 0.12), transparent 34%);
  pointer-events: none;
}

.premium-cta-box h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
}

.premium-cta-box p {
  color: var(--text-muted);
  margin: 0;
}

/* === INTERNAL PAGES HERO === */
.page-hero {
  padding: 64px 0 40px;
  position: relative;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-top: 12px;
  margin-bottom: 16px;
}

.breadcrumb {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.page-hero img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  background-color: var(--bg-primary);
  width: 100%;
}

/* === FORM & CONTACT === */
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-card .icon {
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card a {
  font-weight: 700;
  color: var(--teal);
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--cyan);
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font: inherit;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

/* Static Map Box styling */
.map-box {
  height: 300px;
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.05), transparent 60%);
  z-index: 1;
}

.map-box > div {
  position: relative;
  z-index: 2;
}

.map-box strong {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.quote-card {
  border-right: 5px solid var(--teal);
  background-color: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}

.contact-inline a {
  color: var(--teal);
}

.contact-inline span {
  color: var(--border);
}

.page-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background-color: var(--eyebrow-bg);
  border: 1px dashed var(--teal);
  color: var(--text-secondary);
  font-size: 13px;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--footer-bg);
  color: #94A3B8; /* Fixed light gray color for readable text */
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Fixed light border for dark background */
  padding: 64px 0 28px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: 36px;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Fixed elegant translucent border */
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 44px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(20, 184, 166, 0.3));
  transition: var(--transition);
}

.site-footer p {
  font-size: 14px;
  line-height: 1.7;
}

.site-footer h4 {
  color: #F8FAFC; /* Fixed bright heading for dark background */
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-grid a {
  display: block;
  color: #E2E8F0; /* Fixed light color for readable links */
  margin-bottom: 10px;
  font-size: 14px;
  transition: var(--transition);
  text-align: right; /* Explicitly right-align all footer links to override dir="ltr" on phone numbers */
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Fixed light border */
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #94A3B8; /* Fixed light gray color */
  font-size: 13px;
}

/* === FLOATING WHATSAPP BUTTON === */
.whatsapp-fixed {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: 74px; /* Increased by ~27% from 58px */
  height: 74px; /* Increased by ~27% from 58px */
  border-radius: 50%;
  background: transparent; /* Option A: Transparent background to avoid bleed-through */
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(34, 197, 94, 0.3);
  animation: wa-pulse 2s infinite;
}

.whatsapp-fixed img,
.whatsapp-fixed svg {
  width: 100%; /* Option A: Let the PNG fill the container space fully */
  height: 100%;
  object-fit: contain;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* === ANIMATIONS (Scroll Reveal) === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 980px) {
  .header-actions {
    display: flex;
    gap: 8px;
  }

  .premium-hero-grid,
  .page-hero .container,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .premium-hero-visual {
    order: -1;
  }

  #hero-3d-logo {
    height: 380px;
  }

  .premium-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .premium-timeline::before {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .floating-card {
    position: static;
    margin: 16px auto 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  #hero-3d-logo {
    height: 320px;
  }

  .grid-2, .grid-3, .grid-4, .premium-timeline, .footer-grid {
    grid-template-columns: 1fr;
  }

  .premium-proofbar {
    grid-template-columns: 1fr;
  }

  .premium-proofbar div {
    border-left: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
  }

  .premium-proofbar div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .premium-actions .btn {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header {
    height: auto;
  }

  .nav-wrap {
    height: 74px;
  }

  .main-nav {
    top: 74px;
  }

  .brand img {
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .card {
    padding: 24px;
  }

  .feature-strip, .cta, .premium-cta-box {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
  }

  .whatsapp-fixed {
    left: 16px;
    bottom: 16px;
    width: 62px; /* Increased by 24% from 50px */
    height: 62px; /* Increased by 24% from 50px */
  }

  .whatsapp-fixed img,
  .whatsapp-fixed svg {
    width: 100%;
    height: 100%;
  }
}

/* === SIDEBAR DRAWER === */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(3px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: -400px; /* Slides in from left */
  width: min(400px, 100%);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border); /* Border on the right edge */
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2); /* Shadow cast to the right */
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 40px;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism for sidebar in dark mode */
[data-theme="dark"] .site-sidebar {
  background: rgba(11, 26, 46, 0.85);
  backdrop-filter: blur(25px);
  border-right: 1px solid rgba(56, 189, 248, 0.12);
  border-left: 0;
}

.site-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.sidebar-close {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sidebar-close:hover {
  background-color: var(--border);
  transform: rotate(90deg);
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.sidebar-header .brand img {
  height: 38px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto; /* Pushes actions to the bottom */
}

.sidebar-nav a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 0;
  transition: var(--transition);
  position: relative;
  display: inline-block;
  align-self: flex-start;
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal);
  transition: var(--transition);
}

.sidebar-nav a:hover {
  color: var(--teal);
  transform: translateX(-8px); /* Shift left slightly in RTL */
}

.sidebar-nav a:hover::after {
  width: 100%;
}

.sidebar-nav a.active {
  color: var(--teal);
}

.sidebar-nav a.active::after {
  width: 40px;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.sidebar-actions .btn {
  width: 100%;
}

.sidebar-footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.sidebar-footer h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sidebar-footer a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  transition: var(--transition);
}

.sidebar-footer a:hover {
  color: var(--teal);
}

/* === PRINT STYLES === */
@media print {
  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  .site-header,
  .whatsapp-fixed,
  .theme-toggle,
  .menu-toggle,
  .btn,
  .premium-orb,
  .floating-card,
  .cta,
  .premium-cta-box,
  .site-sidebar,
  .sidebar-overlay {
    display: none !important;
  }

  .container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .card, .premium-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    background: transparent !important;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    color: #000000 !important;
    page-break-after: avoid;
  }
}
