/* =========================================================
   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: 480px;
}
 
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
 
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.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-caption p {
  margin: 8px 0 0;
  max-width: 420px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.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 {
    position: relative;
    width: 100%;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: hidden;
    background: var(--primary-dark);
  }

  /* Active slide drives stage height; inactive stay out of flow */
  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
  }

  .hero-slide.is-active,
  .hero-slide.active {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

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

  .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) {
  .section--tight {
    padding: 32px 0;
  }

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

  .commit-card {
    padding: 18px 16px;
  }

  .commit-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .commit-card h3 {
    font-size: 15px;
  }

  .commit-card p {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* ----- 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 16px;
  display: flex;
  flex-direction: column;
}

.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;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.spec-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spec-row--single {
  justify-content: flex-end;
}

.btn-outline.btn-home {
  padding: 6px 12px;
  font-size: 12px;
  min-width: auto;
}

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

.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;
  }

  .head-row--see-all {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 0;
    flex-direction: unset;
    margin-bottom: 24px;
  }

  .head-row--see-all > div {
    grid-column: 1;
    min-width: 0;
  }

  .head-row--see-all > .btn-home--see-all {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    border-radius: 4px;
    border-width: 1.5px;
    gap: 6px;
    min-height: 32px;
    box-shadow: 0 1px 0 rgba(14, 42, 107, 0.04);
  }

  .head-row--see-all > .btn-home--see-all i {
    font-size: 10px;
    transform: translateY(0.5px);
  }

  .head-row--see-all .eyebrow {
    margin-bottom: 8px;
  }

  .head-row--see-all .home-section-title {
    margin-bottom: 8px;
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .head-row--see-all .section-desc {
    font-size: 13px;
    line-height: 1.45;
    max-width: 100%;
  }
}

/* ----- 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 {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  margin: 0;
  padding: 0;
}

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

.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;
  }

  .home-news-card {
    border-radius: 10px;
  }

  .home-news-card .news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .home-news-card .news-body {
    padding: 14px 16px 16px;
  }

  .home-news-card .news-body h3 {
    font-size: 15px;
    margin: 6px 0 8px;
  }

  .home-news-card .news-body p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .home-news-card .read-more {
    font-size: 12px;
  }
}

/* ----- 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: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.4);
  padding: 12px 18px 12px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cta-call:hover {
  color: #fff;
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cta-call svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  flex: none;
  padding: 10px;
  box-sizing: content-box;
  background: rgba(245, 166, 35, 0.16);
  border-radius: 50%;
}

.cta-call-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.cta-call-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

@media (max-width: 720px) {
  .cta-panel {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    padding: 22px 18px 20px;
    text-align: center;
  }

  .cta-panel > div:first-child {
    width: 100%;
  }

  .cta-badge {
    margin-bottom: 10px;
    padding: 5px 10px;
    font-size: 10.5px;
  }

  .cta-panel h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 8px;
  }

  .cta-panel p {
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 28em;
    margin: 0 auto;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-call {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px 14px 12px;
    gap: 14px;
  }

  .cta-call svg {
    width: 24px;
    height: 24px;
    padding: 11px;
  }

  .cta-call-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .cta-call-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .cta-panel {
    padding: 18px 14px 16px;
    gap: 14px;
  }

  .cta-panel h2 {
    font-size: 18px;
  }

  .cta-call-number {
    font-size: 20px;
  }
}

/* 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);
}
