/* ==========================================================================
   KDK420 — Base styles
   ========================================================================== */

:root {
  --color-bg: #0b0f14;
  --color-bg-alt: #10151c;
  --color-surface: #161d26;
  --color-border: #232b36;
  --color-text: #e7ecf2;
  --color-text-muted: #9aa7b4;
  --color-accent: #22c58b;
  --color-accent-dim: #1a9c6d;
  --color-accent-soft: rgba(34, 197, 139, 0.12);
  --color-brand: #e0332f;
  --max-width: 1180px;
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #06120d;
}

.btn-primary:hover {
  background: var(--color-accent-dim);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-external {
  background: #f5a623;
  color: #1a1300;
}

.btn-external:hover {
  background: #d88f12;
}

.nav-actions .btn-primary {
  padding: 12px 24px;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  width: 110px;
  align-self: stretch;
}

.brand .dot {
  color: var(--color-brand);
}

.brand-logo {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 110px;
  height: 110px;
  max-width: none;   /* opt out of the global img{max-width:100%} that squashed it */
  object-fit: contain;
  display: block;
  z-index: 5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-toggle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  background: transparent;
}

.lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.header-contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.header-contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(224, 51, 47, 0.2);
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.phone-info svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.phone-info a {
  transition: color 0.2s ease;
}

.phone-info a:hover {
  color: var(--color-brand);
}

.phone-info a:hover svg {
  opacity: 1;
}

.social-icons-minimal {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons-minimal a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icons-minimal a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.social-icons-minimal svg {
  width: 16px;
  height: 16px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

/* Hero --------------------------------------------------------------- */

.hero {
  padding: 120px 0 96px;
  background:
    radial-gradient(600px 300px at 85% -10%, var(--color-accent-soft), transparent 70%),
    linear-gradient(100deg, var(--color-bg) 38%, rgba(11, 15, 20, 0.82) 60%, rgba(11, 15, 20, 0.6) 100%),
    url("../assets/img/site/hero-banner.jpg");
  background-size: auto, cover, cover;
  background-position: center, center, right center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.hero-panel h3 {
  font-size: 1.05rem;
}

.hero-panel ul li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.hero-panel ul li:last-child {
  border-bottom: none;
}

.hero-panel .check {
  color: var(--color-accent);
}

/* Cards / grids -------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--color-accent-dim);
  transform: translateY(-2px);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
}

/* CTA band --------------------------------------------------------------- */

.cta-band {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.social-links a svg {
  width: 28px;
  height: 28px;
}

.social-links a:hover {
  color: var(--color-text);
}

.social-links a:hover svg {
  filter: brightness(1.2);
}

/* Page hero (inner pages) ------------------------------------------------ */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, var(--color-bg-alt) 0%, rgba(16, 21, 28, 0.88) 55%, rgba(16, 21, 28, 0.55) 100%),
    url("../assets/img/site/page-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb .sep {
  margin: 0 6px;
}

/* Contact page ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-info li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info li:last-child {
  border-bottom: none;
}

.contact-info .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-info .value {
  color: var(--color-text);
  font-size: 0.95rem;
}

form.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}

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

.contact-form label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.map-note {
  margin-top: 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Products / verticals table ---------------------------------------------- */

.vertical-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.product-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 24px 28px 28px;
}

.spec-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-row .vertical-tag {
  margin-bottom: 0;
}

/* Responsive --------------------------------------------------------------- */

/* Product Cards - SAMPLE 1: Clean Minimal Design (All Equal Sizes) ------------------- */

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

/* Spec cards are just a label and a value, so three fit comfortably across.
   Product cards keep the two-column layout above — they carry an image, a tag
   row and a paragraph, all of which crowd at three.
   Desktop-only: below 1025px the responsive rules further down take over. */
@media (min-width: 1025px) {
  .grid.grid-3.spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(34, 197, 139, 0.15);
}

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

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

.product-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-card .vertical-tag {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.product-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* RTL (Arabic) ------------------------------------------------------------- */

[dir="rtl"] .eyebrow,
[dir="rtl"] .vertical-tag,
[dir="rtl"] .footer-grid h4,
[dir="rtl"] .contact-info .label,
[dir="rtl"] .spec-label,
[dir="rtl"] .brand {
  letter-spacing: normal;
}

[dir="rtl"] .nav.open .nav-links {
  left: 0;
  right: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .nav-links,
  .nav-actions .lang-toggle,
  .header-contact-card {
    display: none;
  }

  .nav-actions .btn-primary {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    width: 78px;
  }

  .brand-logo {
    width: 78px;
    height: 78px;
    max-width: none;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 18px;
  }

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

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 56px 0;
  }
}

/* Blinking mascot (Blink2do) --------------------------------------------- */

.mascot-blink {
  position: relative;
  display: block;
  line-height: 0;
}

.mascot-blink > img:first-child {
  width: 100%;
  height: auto;
}

/* eyelid overlay — `left` stays physical so it tracks the artwork in RTL too */
.mascot-lids {
  position: absolute;
  top: 23.75%;
  left: 40.31%;
  width: 23.75%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  animation: mascotBlink 2.6s step-end infinite;
}

@keyframes mascotBlink {
  0%, 94.5% { opacity: 0; }
  94.6%     { opacity: 1; }
  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-lids { display: none; }
}

/* About page photo — dimmed, with KDK420 brand lockup ------------------- */

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.about-photo > img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.55) saturate(0.9);
}

/* soft floor so the lockup stays readable */
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 20, 0.82) 0%, rgba(11, 15, 20, 0) 48%);
  pointer-events: none;
}

/* physical `left` + fixed LTR order — the photo never mirrors in RTL */
.about-photo-brand {
  position: absolute;
  left: clamp(20px, 4%, 46px);
  bottom: clamp(18px, 4.5%, 38px);
  z-index: 2;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 16px);
  line-height: 1;
}

.about-photo-logo {
  width: clamp(38px, 6vw, 58px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}

.about-photo-text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-photo-name {
  font-size: clamp(1.2rem, 3.1vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.about-photo-name span {
  color: var(--color-accent);
}

.about-photo-loc {
  font-size: clamp(0.6rem, 1.15vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(231, 236, 242, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Phone numbers must never be reordered by RTL bidi ---------------------- */

a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
