/* ==========================================================================
   FAKHR AL-AJYAL AL-MUTAJADEDA CO. LTD. - Official Stylesheet
   Bilingual RTL (Arabic Default) & LTR (English) via CSS Logical Properties
   Palette derived directly from original company emblem (1000251111.png)
   ========================================================================== */

:root {
  /* Brand Colors Extracted from Original Logo */
  --brand-primary: #092147;       /* Deep Royal Navy from diamond frame & collar */
  --brand-primary-dark: #05142E;  /* Darker Navy for footer & deep backgrounds */
  --brand-secondary: #C58B3B;     /* Warm Gold / Bronze from footwear & frame */
  --brand-secondary-light: #DFB16B;
  --brand-accent: #067A68;        /* Emerald Teal from central wave */
  --brand-leather: #6D3214;       /* Rich Saddle Brown from leather layers */

  /* Neutral & Surface Colors */
  --bg-body: #FDFBF7;
  --bg-surface: #F4EFE6;
  --bg-card: #FFFFFF;
  --text-main: #111C2D;
  --text-muted: #4A5568;
  --border-light: rgba(9, 33, 71, 0.1);
  --shadow-sm: 0 4px 14px rgba(9, 33, 71, 0.06);
  --shadow-md: 0 12px 32px rgba(9, 33, 71, 0.1);
  --shadow-lg: 0 20px 48px rgba(9, 33, 71, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

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-family: inherit;
  font-size: inherit;
}

/* Automatic directional icon flip in LTR */
html[dir="ltr"] .dir-icon {
  transform: scaleX(-1);
}

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

.section-padding {
  padding-block: 5rem;
}

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

.bg-navy-dark {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
  color: #FFFFFF;
}

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

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

.text-light-muted {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */
.top-bar {
  background-color: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid rgba(197, 139, 59, 0.25);
}

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

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
}

.top-link:hover {
  color: var(--brand-secondary-light);
}

.top-divider {
  opacity: 0.35;
}

.top-bar-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.legal-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 139, 59, 0.35);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legal-pill strong {
  color: var(--brand-secondary-light);
}

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

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

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

.logo-badge {
  position: relative;
  width: 58px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(197, 139, 59, 0.14), rgba(9, 33, 71, 0.04));
  border: 1px solid rgba(197, 139, 59, 0.35);
  animation: logoEntrance 0.9s ease-out both, logoFloat 5s ease-in-out infinite 1s;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-link:hover .logo-badge {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(197, 139, 59, 0.3);
}

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

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(9, 33, 71, 0.08);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 139, 59, 0.24);
  }
}

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

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

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

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

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding-block: 0.35rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2.5px;
  background: var(--brand-secondary);
  transition: width var(--transition);
}

.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: var(--bg-surface);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 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: var(--brand-primary);
  color: #FFFFFF;
}

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

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--brand-accent);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #A96F22 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(197, 139, 59, 0.3);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

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

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

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

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 640px;
  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(5, 20, 46, 0.93) 0%,
    rgba(9, 33, 71, 0.85) 55%,
    rgba(6, 122, 104, 0.65) 100%
  );
}

.hero-container {
  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: rgba(197, 139, 59, 0.2);
  border: 1px solid rgba(223, 177, 107, 0.5);
  color: var(--brand-secondary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-secondary-light);
}

.hero-title {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

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

.hero-actions {
  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.16);
}

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

.highlight-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-secondary-light);
}

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

/* Hero Official Brand Identity Card */
.hero-brand-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(197, 139, 59, 0.45);
  text-align: center;
}

.brand-card-emblem-wrap {
  width: 120px;
  height: 140px;
  margin-inline: auto;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: logoFloat 6s ease-in-out infinite;
}

.brand-card-wordmark-wrap {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.hero-wordmark-img {
  width: 100%;
  max-height: 145px;
  object-fit: contain;
  margin-inline: auto;
}

.brand-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: start;
  background: var(--bg-surface);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.meta-key {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-val {
  color: var(--brand-primary);
  font-weight: 700;
}

/* ==========================================================================
   Section Headers & Pillars
   ========================================================================== */
.section-header {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-accent);
  background: rgba(6, 122, 104, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.eyebrow-gold {
  color: var(--brand-secondary-light);
  background: rgba(197, 139, 59, 0.2);
}

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

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

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

.pillar-card {
  background: var(--bg-card);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

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

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.pillar-icon-navy {
  background: var(--brand-primary);
}

.pillar-icon-gold {
  background: var(--brand-secondary);
}

.pillar-icon-teal {
  background: var(--brand-accent);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.65rem;
}

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

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

.about-media {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #FFFFFF;
}

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

.about-floating-card {
  position: absolute;
  bottom: -1.25rem;
  inset-inline-end: 1.25rem;
  background: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-inline-start: 4px solid var(--brand-secondary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 320px;
}

.floating-logo {
  width: 44px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.floating-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.floating-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

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

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.credential-box {
  background: #FFFFFF;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.credential-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.credential-value {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 800;
}

/* ==========================================================================
   Products Showcase & Category Filter
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

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

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

.filter-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(9, 33, 71, 0.2);
}

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

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

.product-card[hidden] {
  display: none !important;
}

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

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface);
}

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

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

.product-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-navy {
  background: rgba(9, 33, 71, 0.9);
}

.badge-gold {
  background: rgba(184, 125, 45, 0.95);
}

.badge-teal {
  background: rgba(6, 122, 104, 0.92);
}

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

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

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

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.tag-chip {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--brand-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-accent);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.product-link:hover {
  color: var(--brand-secondary);
}

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

.feature-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-secondary-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-primary);
  color: var(--brand-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.btn-whatsapp-full {
  width: 100%;
  background: #128C7E;
  color: #FFFFFF;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
}

.btn-whatsapp-full:hover {
  background: #075E54;
}

.contact-form-panel {
  background: #FFFFFF;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

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

.form-panel-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(9, 33, 71, 0.2);
  background: var(--bg-body);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(9, 33, 71, 0.12);
}

.form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.form-buttons .btn {
  flex: 1 1 210px;
}

.form-feedback {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(6, 122, 104, 0.12);
  color: var(--brand-accent);
  border: 1px solid rgba(6, 122, 104, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 4rem;
  border-top: 4px solid var(--brand-secondary);
}

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

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-box {
  width: 58px;
  height: 66px;
  background: #FFFFFF;
  padding: 5px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-brand-en {
  font-size: 0.8rem;
  color: var(--brand-secondary-light);
  font-weight: 700;
}

.footer-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
  max-width: 440px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-secondary-light);
  margin-bottom: 1.15rem;
}

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

.footer-links a:hover,
.footer-legal-list a:hover {
  color: var(--brand-secondary-light);
}

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

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

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

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-block: 3.5rem;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .header-cta {
    display: none;
  }

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

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

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

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

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

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

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

  .about-floating-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .contact-form-panel {
    padding: 1.5rem 1.15rem;
  }
}

/* Grid & Mobile Overflow Safeguards */
.hero-container > *,
.about-grid > *,
.contact-grid > *,
.pillars-grid > *,
.products-grid > *,
.features-grid > *,
.footer-top > * {
  min-width: 0;
}

@media (max-width: 768px) {
  .brand-link {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem;
  }

  .logo-badge {
    width: 44px;
    height: 50px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 0.88rem;
    white-space: normal;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    white-space: normal;
  }
}
