:root {
  --primary: #1E5B9A;
  --primary-dark: #00008B;
  --accent: #0f3a66;
  --light-bg: #f4f7fb;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #475569;
  --border: #cbd5e1;
}

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

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--light-bg);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.logo-box img {
  max-height: 68px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.slogan {
  color: var(--primary);
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  text-align: right;
  line-height: 1.3;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: #f8fafc;
}

.lang-switch a.active, .lang-switch a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.lang-switch img {
  width: 22px;
  height: 15px;
  object-fit: cover;
}

/* Navigation */
.navbar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  color: var(--white);
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: rgba(255,255,255,0.16);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-top: 3px solid var(--primary-dark);
  list-style: none;
  z-index: 1001;
}

.nav-menu > li:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 11px 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown li a:hover {
  background: var(--light-bg);
  color: var(--primary-dark);
  padding-left: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 8px 0;
  border-radius: 4px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  background: #0b223d;
}

.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 50, 0.85));
  color: var(--white);
  padding: 35px 20px 22px;
}

.slide-caption h2 {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.slider-controls {
  position: absolute;
  bottom: 18px;
  right: 25px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-btn {
  background: rgba(255,255,255,0.25);
  border: 1px solid var(--white);
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.slider-btn:hover {
  background: var(--primary);
}

/* Main Grid Layout (Sidebar + Content) */
.page-wrapper {
  padding: 32px 0 48px;
}

.main-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 20px;
  border-top: 4px solid var(--primary-dark);
}

.sidebar-card h3 {
  color: var(--primary-dark);
  font-size: 1.05rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-menu {
  list-style: none;
}

.side-menu li {
  margin-bottom: 6px;
}

.side-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.side-menu a.sub-item {
  padding-left: 24px;
  font-size: 0.86rem;
  color: var(--muted);
}

.side-menu a:hover, .side-menu a.active {
  background: #e8f0fa;
  color: var(--primary-dark);
  font-weight: 600;
}

.cta-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: var(--white) !important;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.catalog-badge img {
  width: 22px;
  height: 24px;
}

/* Content Card */
.content-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 28px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.content-header h1 {
  color: var(--primary-dark);
  font-size: 1.55rem;
}

.banner-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.content-text p {
  margin-bottom: 14px;
  text-align: justify;
  font-size: 0.96rem;
}

.section-title {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin: 26px 0 12px;
}

.two-col-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  margin: 18px 0;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 0.94rem;
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.gallery-stack img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

/* Application Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.app-box {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
}

.app-box h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.app-box ul {
  list-style: none;
  font-size: 0.89rem;
}

.app-box ul li {
  padding: 3px 0;
}

/* RAL Color Swatches */
.ral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ral-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.ral-color {
  height: 36px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* Cards on Home */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

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

.product-card-body {
  padding: 18px;
}

.product-card-body h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Form Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.alert {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-weight: 500;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Footer */
.footer {
  background: #0d2747;
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #93c5fd;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.footer a {
  color: #e2e8f0;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-address {
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.copyright {
  text-align: center;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .two-col-split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-address {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.open {
    display: flex;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.18);
  }
  .dropdown li a {
    color: var(--white);
    padding-left: 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .slide img {
    height: 260px;
  }
  .slogan {
    display: none;
  }
}
