/* ==========================================================================
   ALWADY GROUP COMPANY - Bilingual Static Website Stylesheet (RTL & LTR)
   Brand Colors Extracted Directly from Original Logo:
   - Primary Deep Royal Blue: #00379a
   - Primary Dark Navy: #061f62
   - Secondary Cobalt Blue: #0075f0
   - Accent Sky Cyan: #03a9f6
   ========================================================================== */

:root {
  --brand-primary: #00379a;
  --brand-primary-dark: #061f62;
  --brand-secondary: #0075f0;
  --brand-accent: #03a9f6;
  --brand-accent-soft: rgba(3, 169, 246, 0.14);

  --bg-body: #ffffff;
  --bg-light: #f4f7fb;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;

  --shadow-sm: 0 2px 8px rgba(6, 31, 98, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 31, 98, 0.10);
  --shadow-lg: 0 20px 45px rgba(6, 31, 98, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ar);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Directional arrow flips automatically between RTL and LTR */
html[dir="ltr"] .dir-arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.topbar {
  background-color: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.topbar-info,
.topbar-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.topbar-item,
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item .icon,
.topbar-phone .icon {
  width: 1rem;
  height: 1rem;
  color: var(--brand-accent);
}

.topbar-link:hover,
.topbar-phone:hover {
  color: var(--brand-accent);
}

.topbar-divider {
  opacity: 0.35;
}

/* ==========================================================================
   Header & Navigation + Original Logo Animation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo-badge-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 55, 154, 0.14);
  border: 1.5px solid rgba(3, 169, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: logoEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo-link:hover .logo-badge-wrapper {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--brand-accent);
  box-shadow: 0 8px 22px rgba(3, 169, 246, 0.28);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-secondary);
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  padding-block: 0.4rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-primary);
}

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

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

.lang-switcher {
  display: inline-flex;
  background-color: var(--bg-light);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 55, 154, 0.25);
}

.lang-btn:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 55, 154, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 55, 154, 0.32);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(3, 169, 246, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(3, 169, 246, 0.45);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--brand-primary-dark);
}

.btn-whatsapp {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #15803d;
  transform: translateY(-2px);
}

.btn-whatsapp-outline {
  background-color: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border-color: #16a34a;
}

.btn-whatsapp-outline:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px;
  cursor: pointer;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--brand-primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section & Animated Logo Card
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 4.5rem;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(6, 31, 98, 0.93) 0%,
    rgba(0, 55, 154, 0.86) 55%,
    rgba(0, 117, 240, 0.72) 100%
  );
}

.hero-content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(3, 169, 246, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand-accent);
  box-shadow: 0 0 10px var(--brand-accent);
}

.hero-title {
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.15rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.highlight-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.highlight-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-logo-showcase {
  display: flex;
  justify-content: center;
}

.hero-logo-card {
  position: relative;
  background: #ffffff;
  color: var(--brand-primary-dark);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(3, 169, 246, 0.45);
  max-width: 370px;
  width: 100%;
  text-align: center;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
  z-index: -1;
  opacity: 0.45;
  filter: blur(14px);
}

.hero-logo-animated {
  width: 220px;
  height: 225px;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 1.1rem;
  transition: transform 0.4s ease;
}

.hero-logo-card:hover .hero-logo-animated {
  transform: scale(1.04);
}

.hero-logo-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-color);
}

.hero-logo-caption strong {
  font-size: 0.98rem;
  color: var(--brand-primary-dark);
}

.hero-logo-caption span {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-badge-wrapper,
  .hero-logo-card {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Common Section Layouts
   ========================================================================== */
.section-padding {
  padding-block: 5rem;
}

.bg-light {
  background-color: var(--bg-light);
}

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

.text-white {
  color: #ffffff !important;
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand-secondary);
  background-color: var(--brand-accent-soft);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: var(--brand-accent);
  background-color: rgba(3, 169, 246, 0.18);
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.25rem;
  align-items: center;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  background: rgba(6, 31, 98, 0.94);
  color: #ffffff;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(3, 169, 246, 0.4);
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-floating-badge strong {
  display: block;
  font-size: 0.92rem;
}

.about-floating-badge span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}

.about-lead {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.about-body {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.about-pillars {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg-light);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--brand-secondary);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #ffffff;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.2rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.official-credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 55, 154, 0.06), rgba(3, 169, 246, 0.1));
  border: 1px solid rgba(0, 55, 154, 0.15);
  border-radius: var(--radius-md);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.cred-label {
  color: var(--text-muted);
}

.cred-val {
  color: var(--brand-primary-dark);
  font-weight: 800;
}

/* ==========================================================================
   Products & Systems Showcase
   ========================================================================== */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 55, 154, 0.22);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-card.is-hidden {
  display: none;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2e8f0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  z-index: 2;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-cyan {
  background-color: var(--brand-secondary);
}

.badge-navy {
  background-color: var(--brand-primary-dark);
}

.badge-accent {
  background-color: #0284c7;
}

.product-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.6rem;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-specs {
  margin-top: auto;
  margin-bottom: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-specs li {
  font-size: 0.84rem;
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.product-specs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-accent);
  flex-shrink: 0;
}

.product-inquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(0, 55, 154, 0.14);
}

.product-inquire-btn:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.feature-icon-wrap .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.feature-box h3 {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.55rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.bg-dark-gradient {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.contact-cards-list {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--brand-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-item h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-card-item p,
.contact-card-item a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.contact-card-item a:hover {
  color: var(--brand-accent);
}

.contact-links-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.direct-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-form-card {
  background-color: #ffffff;
  color: var(--text-main);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  margin-bottom: 0.3rem;
}

.form-card-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-secondary);
  background-color: #ffffff;
}

.form-submit-group {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.form-toast {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  background-color: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.form-toast.is-error {
  background-color: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #041442;
  color: rgba(255, 255, 255, 0.84);
  padding-top: 4rem;
  border-top: 3px solid var(--brand-accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-box {
  width: 78px;
  height: 78px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 1rem;
  border: 2px solid var(--brand-accent);
}

.footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-company-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-company-en {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 0.65rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: 0.45rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 2.5px;
  background-color: var(--brand-accent);
}

.footer-links,
.footer-legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-legal-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-legal-list strong {
  color: #ffffff;
}

.footer-bottom {
  padding-block: 1.4rem;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Responsive Design (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

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

  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .features-grid,
  .form-row,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }
}
