/* ============================================================
   Kasernet – Static Website Styles
   Order: variables → reset → typography → layout → components
          → sections → footer → responsive
   ============================================================ */

/* ── 1. CSS Custom Properties ────────────────────────────── */
:root {
  /* Colors */
  --color-orange:      #ee6f31;
  --color-blue:        #0170c1;
  --color-blue-light:  #2786e9;
  --color-dark:        #333333;
  --color-black:       #000000;
  --color-bg:          #ebebeb;
  --color-white:       #ffffff;

  /* Typography */
  --font-body:         'Open Sans', sans-serif;
  --font-heading:      'Raleway', sans-serif;
  --font-emphasis:     'Poppins', sans-serif;

  /* Layout */
  --container-max:     1200px;
  --section-pad:       80px 0;

  /* Components */
  --card-shadow:       0px 0px 5px 5px rgba(0, 0, 0, 0.15);
  --radius-card:       8px;
  --radius-pill:       9999px;
  --transition:        0.3s ease;
}

/* ── 2. Reset ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-dark);
  background-color: var(--color-bg);
}

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

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

ul { list-style: none; }

/* ── 3. Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.tagline {
  font-family: var(--font-emphasis);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-orange);
}

/* ── 4. Layout Utilities ─────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.text-center { text-align: center; }
.text-white  { color: var(--color-white); }

.bg-dark   { background-color: var(--color-dark); }
.bg-light  { background-color: var(--color-bg); }
.bg-orange { background-color: var(--color-orange); }
.bg-black  { background-color: var(--color-black); }
.bg-white  { background-color: var(--color-white); }

/* Two-column flex layout */
.two-col {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.two-col > * { flex: 1; }
.two-col.reverse { flex-direction: row-reverse; }

/* Card grids */
.card-grid { display: grid; gap: 1.5rem; }
.four-col  { grid-template-columns: repeat(4, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.two-col-grid { grid-template-columns: repeat(2, 1fr); }

.section-intro {
  font-size: 1.05rem;
  color: #666;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

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

/* ── 5. Accent Bar ───────────────────────────────────────── */
.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--color-orange);
  margin-bottom: 12px;
}

.text-center .accent-bar,
.text-center > .accent-bar {
  margin-left: auto;
  margin-right: auto;
}

/* ── 6. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-emphasis);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

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

.btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}
.btn-primary:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-orange {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}
.btn-orange:hover {
  background: #d45e20;
  border-color: #d45e20;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-orange);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-orange);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── 7. Cards ────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: transform var(--transition);
}

.card:hover { transform: translateY(-4px); }

.card-icon {
  margin-bottom: 1.25rem;
  color: var(--color-orange);
}

.card h3 { margin-bottom: 0.75rem; }

/* Product card */
.product-card { text-align: center; }
.product-card .img-placeholder { margin: 0 auto 1.5rem; }
.product-card h3 { margin-bottom: 0.5rem; }
.product-card .tagline { margin-bottom: 1rem; font-size: 0.95rem; }
.product-card p { margin-bottom: 1.5rem; font-size: 0.95rem; color: #555; }

/* ── 8. Image Placeholder ────────────────────────────────── */
.img-placeholder {
  position: relative;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.img-placeholder span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
  font-family: var(--font-emphasis);
  text-align: center;
  padding: 1rem;
}

/* ── 9. Header & Navigation ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Top bar */
.top-bar {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.top-bar-right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.top-bar a {
  color: #ccc;
  transition: color var(--transition);
  font-family: var(--font-emphasis);
}

.top-bar a:hover { color: var(--color-orange); }

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  transition: background var(--transition), color var(--transition);
}

.social-links a:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: -0.02em;
  margin-right: auto;
  flex-shrink: 0;
}

.logo span { color: var(--color-dark); }

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

.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-emphasis);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-dark);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-list > li > a:hover {
  color: var(--color-orange);
  background: rgba(238, 111, 49, 0.06);
}

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-white);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-card);
  min-width: 220px;
  padding: 0.75rem;
  z-index: 200;
  border-top: 3px solid var(--color-orange);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }

/* ── Mega-menu two-column Products dropdown ── */
.dropdown-mega {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 360px;
  background: var(--color-white);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  border-radius: 4px;
  border-top: 3px solid var(--color-orange);
  flex-direction: row;
  padding: 0.5rem 0;
  z-index: 999;
}
.has-dropdown:hover .dropdown-mega,
.has-dropdown.open .dropdown-mega { display: flex; }

.mega-col {
  flex: 1;
  padding: 0.5rem 0.75rem;
}
.mega-col:first-child { border-right: 1px solid #f0f0f0; }

.mega-col .dropdown-label {
  display: block;
  font-family: var(--font-emphasis);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.3rem;
}
.mega-col a {
  display: block;
  padding: 0.32rem 0.5rem;
  font-size: 0.875rem;
  color: #555;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}
.mega-col a:hover {
  color: var(--color-orange);
  background: rgba(238,111,49,0.06);
}

.dropdown-label {
  display: block;
  font-family: var(--font-emphasis);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  padding: 0.5rem 0.5rem 0.25rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.25rem;
}

.dropdown-label:not(:first-child) { margin-top: 0.75rem; }

.dropdown li a {
  display: block;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  color: var(--color-dark);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.dropdown li a:hover {
  color: var(--color-orange);
  background: rgba(238, 111, 49, 0.06);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
  margin-left: 1rem;
}

.nav-toggle svg { display: block; }

/* ── 10. Hero Section ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--color-white);
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.hero-text { flex: 1.1; }

.hero-text h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--color-orange);
}

.hero-sub {
  font-size: 1.1rem;
  color: #b0b8c8;
  margin-bottom: 1.75rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-bullets {
  margin-bottom: 2.25rem;
}

.hero-bullets li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: #d0d8e8;
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.hero-dashboard {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.hero-dashboard-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.hero-dashboard-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-dashboard-bar span:nth-child(1) { background: #ff5f57; }
.hero-dashboard-bar span:nth-child(2) { background: #febc2e; }
.hero-dashboard-bar span:nth-child(3) { background: #28c840; }

.dashboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: #ccc;
}

.dashboard-row .badge {
  background: var(--color-orange);
  color: white;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.65rem;
  font-size: 0.72rem;
  font-family: var(--font-emphasis);
  font-weight: 600;
}

.dashboard-row .badge.green { background: #28c840; }
.dashboard-row .badge.blue  { background: var(--color-blue-light); }

.dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.dashboard-stat {
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.dashboard-stat .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-orange);
}

.dashboard-stat .stat-label {
  display: block;
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 0.1rem;
}

/* ── 11. Section: E-Commerce Intro ───────────────────────── */
.ecommerce-intro {
  background: var(--color-white);
}

.ecommerce-intro .inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ecommerce-intro h2 { margin-bottom: 1rem; }

/* ── 12. Section: Why mAIcomerce (4 cards) ───────────────── */
.why-maicomerce { background: var(--color-bg); }

.why-maicomerce .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.why-maicomerce .section-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 13. Section: AutoOMS ────────────────────────────────── */
.autooms { background: var(--color-white); }

.autooms .col-text h2 { margin-bottom: 1rem; }
.autooms .col-text p  { margin-bottom: 1.5rem; color: #555; }

/* ── 14. Section: Integrations ───────────────────────────── */
.integrations { background: var(--color-bg); }

.integrations .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0;
}

.logo-strip-label {
  text-align: center;
  font-family: var(--font-emphasis);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.logo-badge {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border: 2px solid #d0d0d0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition), color var(--transition),
              background var(--transition);
  font-family: var(--font-emphasis);
}

.logo-badge:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: rgba(238, 111, 49, 0.04);
}

/* ── 15. Section: Hardware Products ──────────────────────── */
.hardware { background: var(--color-white); }

.hardware .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── 16. Section: Kommerce ───────────────────────────────── */
.kommerce-section {
  background: var(--color-dark);
}

.kommerce-section .col-text h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.kommerce-section .col-text p {
  color: #bbb;
  margin-bottom: 1.5rem;
}

.kommerce-section .feature-list {
  margin-bottom: 1.75rem;
}

.kommerce-section .feature-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: #ccc;
  font-size: 0.95rem;
}

.kommerce-section .feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}

.kommerce-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.kommerce-mock-bar {
  background: rgba(255,255,255,0.08);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.kommerce-mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kommerce-mock-bar span:nth-child(1) { background: #ff5f57; }
.kommerce-mock-bar span:nth-child(2) { background: #febc2e; }
.kommerce-mock-bar span:nth-child(3) { background: #28c840; }

.kommerce-mock-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock-row {
  height: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.mock-row.short { width: 60%; }
.mock-row.med   { width: 80%; }
.mock-row.highlight { background: rgba(238,111,49,0.4); }

/* ── 17. Section: MyShop ─────────────────────────────────── */
.myshop { background: var(--color-bg); }

.myshop .col-text h2 { margin-bottom: 0.5rem; }
.myshop .col-text .tagline { margin-bottom: 1rem; }
.myshop .col-text p { margin-bottom: 1.5rem; color: #555; }

.myshop-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.myshop-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--color-white);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.myshop-feature svg { flex-shrink: 0; margin-top: 2px; }

.myshop-feature p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ── 18. Section: CTA Banner ─────────────────────────────── */
.cta-banner {
  background: var(--color-orange);
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 2.2rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-banner .btn-group { justify-content: center; }

/* ── 19. Page Hero (inner pages) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: var(--color-white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 2.8rem;
}

.page-hero .tagline { color: var(--color-orange); }
.page-hero p { color: #b0b8c8; max-width: 600px; margin: 0 auto; }

.page-hero-inner {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}

.page-hero-inner .hero-text { flex: 1.1; }
.page-hero-inner .hero-text h1 { font-size: 2.8rem; }
.page-hero-inner .hero-visual { flex: 0.9; }

/* ── 20. Specs Grid (anyware.html) ───────────────────────── */
.specs {
  background: var(--color-white);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.spec-item {
  background: var(--color-bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  border-left: 4px solid var(--color-orange);
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.3rem;
  font-family: var(--font-emphasis);
}

.spec-value {
  font-family: var(--font-emphasis);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
}

/* ── 21. About Page Sections ─────────────────────────────── */
.company-story { background: var(--color-white); }
.company-story .col-text h2 { margin-bottom: 1rem; }
.company-story .col-text p  { color: #555; }

.product-portfolio { background: var(--color-bg); }
.product-portfolio .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  border-top: 4px solid var(--color-orange);
  transition: transform var(--transition);
}

.portfolio-card:hover { transform: translateY(-4px); }

.portfolio-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.portfolio-card p {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-emphasis);
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 0.4rem;
}

.contact-info-section { background: var(--color-white); }

.contact-info-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.contact-card svg {
  margin: 0 auto 1rem;
  color: var(--color-orange);
}

.contact-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-card p  { font-size: 0.9rem; color: #555; margin: 0; }
.contact-card a  { color: var(--color-blue); }
.contact-card a:hover { color: var(--color-orange); }

/* ── 22. Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--color-black);
  color: #aaa;
}

.footer-main {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #888;
  margin-bottom: 1.25rem;
}

.footer-brand .social-links a {
  background: rgba(255,255,255,0.07);
  color: #888;
}

.footer-brand .social-links a:hover {
  background: var(--color-orange);
  color: white;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #888;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-orange); }

.footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.85;
  color: #888;
}

.footer-col address a { color: #888; }
.footer-col address a:hover { color: var(--color-orange); }

.footer-bottom {
  background: #0a0a0a;
  text-align: center;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid #1a1a1a;
}

/* ── 23. Responsive: 1024px (tablet landscape) ───────────── */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero-text h1 { font-size: 2.5rem; }

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

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

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

/* ── 24. Responsive: 767px (tablet portrait / mobile) ───── */
@media (max-width: 767px) {
  :root { --section-pad: 50px 0; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  /* Navigation */
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1rem;
    gap: 0;
    border-top: 2px solid var(--color-orange);
  }

  .nav-list.active { display: flex; }

  .nav-list > li > a {
    padding: 0.7rem 0.85rem;
    border-radius: 6px;
    font-size: 0.95rem;
  }

  .has-dropdown > a::after { content: ' ▾'; }
  .has-dropdown.open > a::after { content: ' ▴'; }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    border-radius: 6px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    margin-top: 0.25rem;
  }

  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .dropdown-mega {
    display: flex;
    flex-direction: column;
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-orange);
    min-width: 0;
    padding: 0.25rem 0;
  }
  .mega-col:first-child { border-right: none; border-bottom: 1px solid #f0f0f0; }

  .main-nav {
    flex-wrap: wrap;
    position: relative;
  }

  /* Layouts */
  .two-col,
  .two-col.reverse,
  .hero-inner,
  .page-hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-visual { display: none; }

  .four-col,
  .three-col,
  .two-col-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand { grid-column: auto; }

  .hero { padding: 4rem 0 3rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-hero h1 { font-size: 2rem; }
  .page-hero-inner .hero-text h1 { font-size: 2rem; }
  .page-hero-inner { flex-direction: column; text-align: center; }

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

  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}

/* ── 25. Scroll Animations ───────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(28px);
}

.animate-in.visible {
  animation: fadeInUp 0.55s ease forwards;
}

/* Stagger children inside animated containers */
.animate-in.visible:nth-child(2) { animation-delay: 0.1s; }
.animate-in.visible:nth-child(3) { animation-delay: 0.2s; }
.animate-in.visible:nth-child(4) { animation-delay: 0.3s; }
.animate-in.visible:nth-child(5) { animation-delay: 0.4s; }
.animate-in.visible:nth-child(6) { animation-delay: 0.5s; }

/* ── 26. Responsive: 480px (small phones) ────────────────── */
@media (max-width: 480px) {
  h2 { font-size: 1.5rem; }

  .btn { padding: 0.65rem 1.5rem; font-size: 0.875rem; }
  .card { padding: 1.25rem; }
  .section { padding: 40px 0; }

  .logo { font-size: 1.4rem; }

  .hero-text h1 { font-size: 1.75rem; }

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

  .top-bar { display: none; } /* hide top bar on very small screens */
}

/* ============================================================
   Sticky Left Sidebar – Contact Us / WhatsApp / Messenger
   (matches kasernet.com mystickyelements layout)
   ============================================================ */
.sticky-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;
}
.sticky-sidebar.collapsed .ss-item:not(.ss-minimize) { display: none; }

/* Each icon button in the bar */
.ss-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.ss-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width var(--transition);
}
/* Minimize button */
.ss-minimize .ss-icon { background: #000; color: #fff; }
/* Contact Us */
.ss-contact .ss-icon  { background: var(--color-orange); color: #fff; }
/* WhatsApp */
.ss-whatsapp .ss-icon { background: #26d367; color: #fff; }
/* Messenger */
.ss-messenger .ss-icon{ background: #007ff7; color: #fff; }

.ss-label {
  background: inherit;
  color: #fff;
  font-family: var(--font-emphasis);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 0.85rem 0 0;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, padding 0.3s ease;
  line-height: 48px;
  height: 48px;
}
.ss-item:hover .ss-label {
  max-width: 140px;
  padding: 0 0.85rem 0 0;
}

/* Contact form panel slides in from left */
.ctp-panel {
  position: fixed;
  left: -400px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 0 12px 12px 0;
  box-shadow: 6px 0 28px rgba(0,0,0,0.16);
  padding: 2rem 1.75rem;
  z-index: 9099;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
}
.ctp-panel.open { left: 48px; }

.ctp-panel .ctp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}
.ctp-panel .ctp-close:hover { color: var(--color-dark); }
.ctp-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
}
.ctp-panel .ctp-sub {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.5rem;
}
.ctp-group { margin-bottom: 1rem; }
.ctp-group label {
  display: block;
  font-family: var(--font-emphasis);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}
.ctp-group input,
.ctp-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-dark);
  background: #fafafa;
  transition: border-color var(--transition);
}
.ctp-group input:focus,
.ctp-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  background: #fff;
}
.ctp-group textarea { resize: vertical; min-height: 90px; }
.ctp-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-card);
  font-family: var(--font-emphasis);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 0.5rem;
}
.ctp-submit:hover { background: #d45a20; }

/* ── Chat With Us window (Messenger-style popup) ─────────── */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 1.75rem;
  z-index: 9200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.chat-bubble {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-blue);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-emphasis);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(1,112,193,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background var(--transition);
  user-select: none;
  white-space: nowrap;
  border: none;
}
.chat-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(1,112,193,0.45);
  background: var(--color-blue-light);
}
.chat-bubble svg { flex-shrink: 0; }
.chat-window {
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-win-header {
  background: var(--color-blue);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.chat-agent {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-emphasis);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.chat-agent-info strong { display: block; font-family: var(--font-emphasis); font-size: 0.9rem; }
.chat-agent-info span   { font-size: 0.75rem; opacity: 0.8; }
.chat-close {
  background: none; border: none; color: #fff;
  font-size: 1.25rem; cursor: pointer; opacity: 0.75; line-height: 1; padding: 0;
}
.chat-close:hover { opacity: 1; }
.chat-messages {
  padding: 1.1rem; min-height: 130px; background: #f7f9fc;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.chat-msg {
  background: #fff;
  border-radius: 14px 14px 14px 2px;
  padding: 0.7rem 0.95rem;
  font-size: 0.875rem; color: var(--color-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  max-width: 88%; line-height: 1.5;
}
.chat-msg.user-msg {
  background: var(--color-blue); color: #fff;
  border-radius: 14px 14px 2px 14px; align-self: flex-end;
}
.chat-input-row { display: flex; border-top: 1px solid #eee; background: #fff; }
.chat-input-row input {
  flex: 1; border: none; padding: 0.85rem 1rem;
  font-family: var(--font-body); font-size: 0.875rem;
  background: transparent; outline: none; color: var(--color-dark);
}
.chat-input-row button {
  background: var(--color-blue); color: #fff; border: none;
  padding: 0 1.1rem; cursor: pointer; font-size: 1rem;
  transition: background var(--transition);
}
.chat-input-row button:hover { background: var(--color-blue-light); }

/* Mobile adjustments for widgets */
@media (max-width: 480px) {
  .ss-item { display: flex !important; }
  .ctp-panel {
    width: 100vw;
    max-height: 85vh;
    border-radius: 0 0 16px 16px;
    top: auto; bottom: 0; left: -100vw; transform: none;
  }
  .ctp-panel.open { left: 0; }
  .chat-window { width: calc(100vw - 2rem); }
  .chat-widget { right: 1rem; bottom: 1rem; }
}

/* ── Nav action buttons: LOGIN + START NOW ─────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1.5rem;
  flex-shrink: 0;
}
.btn-nav-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-family: var(--font-emphasis);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-nav-login:hover { background: var(--color-white); color: var(--color-dark); }
.btn-nav-start {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-orange);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-family: var(--font-emphasis);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-nav-start:hover { background: #d45a20; border-color: #d45a20; }

@media (max-width: 767px) {
  .nav-actions { display: none; }
}
