/* =========================================================
   Approved home layout — mapped to brand navy/gold
   (mockup structure; colors stay --primary / --accent)
   ========================================================= */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.head-row .section-desc {
  margin-bottom: 0;
}

.section--tight {
  padding: 56px 0;
}

.bg-line {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ----- Hero (cat nav + stage) ----- */
.hero {
  background: var(--primary);
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 480px;
  max-width: 1400px;
  margin: 0 auto;
}

.cat-nav {
  background: var(--primary-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}

.cat-nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 6px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  text-decoration: none;
  color: #e7e7e5;
  border-left: 2px solid transparent;
}

.cat-item:hover,
.cat-item.is-active {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--accent);
  color: #fff;
}

.cat-name {
  font-weight: 600;
  font-size: 14px;
  display: block;
}

.cat-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-top: 2px;
}

.cat-item i,
.cat-item svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.6;
  font-size: 12px;
}

.hero-stage {
  position: relative;
  background: var(--primary-dark);
  min-height: 0;
}

.hero-slide {
  position: relative;
  height: 480px;
  display: none;
  overflow: hidden;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 26, 71, 0.78) 0%, rgba(8, 26, 71, 0) 45%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
}

.hero-caption-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-caption h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 16px;
  z-index: 3;
  pointer-events: none;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(14, 42, 107, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cat-nav {
    display: none;
  }

  .hero-stage {
    height: auto;
  }

  .hero-slide {
    height: min(56vw, 280px);
    min-height: 200px;
  }

  .hero-caption {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .hero-caption h3 {
    font-size: 18px;
  }

  .hero-dots {
    right: 14px;
    bottom: 14px;
  }

  .hero-arrows {
    padding: 0 8px;
  }

  .hero-arrow {
    width: 34px;
    height: 34px;
  }
}

/* ----- Commitment ----- */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.commit-card {
  background: #fff;
  padding: 28px 24px;
  border-top: 3px solid transparent;
  transition: border-color 0.18s ease;
}

.commit-card:hover {
  border-top-color: var(--accent);
}

.commit-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent-dark);
}

.commit-icon svg {
  width: 100%;
  height: 100%;
}

.commit-card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--primary);
}

.commit-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

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

@media (max-width: 520px) {
  .commit-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- About home ----- */
.about-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-home .section-title,
.about-home .about__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--primary);
}

.about-home .about__title span,
.about-home .section-title .text-accent {
  color: var(--accent);
}

.about-photo {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.about-photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .about-home-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }
}

/* ----- Catalog tabs ----- */
.cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 4px;
  margin-right: 22px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .cat-tab {
    font-size: 13px;
    padding: 10px 2px;
    margin-right: 14px;
  }
}

.cat-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.cat-tab.is-active {
  color: var(--primary);
}

.cat-tab.is-active::after {
  transform: scaleX(1);
}

.cat-panel {
  display: none;
}

.cat-panel.is-active {
  display: block;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.home-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

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

.home-product-card .product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f4;
}

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

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

.home-product-card .product-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 10px;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--primary);
}

.spec-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 4px 9px;
  border-radius: 2px;
}

@media (max-width: 960px) {
  .home-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-product-grid {
    grid-template-columns: 1fr;
  }

  .head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Projects overlay ----- */
.home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.home-project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: block;
  text-decoration: none;
}

.home-project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.home-project-card .project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 26, 71, 0.9) 0%, rgba(8, 26, 71, 0.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 1;
}

.home-project-card .project-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.home-project-card .project-overlay h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .home-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-project-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- News ----- */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.home-news-card .news-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.home-news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-card .news-body {
  padding: 18px 20px 22px;
}

.home-news-card .news-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-news-card .news-body h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 8px 0 10px;
  font-family: var(--font-heading);
}

.home-news-card .news-body h3 a {
  text-decoration: none;
  color: var(--primary);
}

.home-news-card .news-body p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}

.home-news-card .read-more {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .home-news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- CTA panel ----- */
.cta-panel {
  background: var(--primary);
  border-radius: 8px;
  padding: 44px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    var(--primary-dark) 10px 20px
  );
}

.cta-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.16);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.cta-panel h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-call {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 18px;
  border-radius: 4px;
}

.cta-call:hover {
  color: #fff;
  border-color: var(--accent);
}

.cta-call svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.cta-call-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-call-number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
}

/* Headings in home sections */
.home-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--primary);
}

.home-section-title .text-accent {
  color: var(--accent);
}

.btn-outline.btn-home {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14px;
}

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