/* ============================================================
   COMPONENTS.CSS — Header · Footer · Trust Bar · Hero ·
   Why Cards · Products · About · Contact
   Annu Enterprise
   ============================================================ */

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(16,31,24,0.96);
  padding: 0.7rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

/* Force solid header on inner pages */
.site-header.solid {
  background: rgba(16,31,24,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /* Slight drop-shadow so logo pops on dark header */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.45));
}

.site-header.scrolled .logo-img {
  height: 40px;
}

.logo-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--brass-light);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav > a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
}

.main-nav > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.3s ease;
}

.main-nav > a:hover::after { width: 100%; }
.main-nav > a:hover { color: var(--brass-light); }
.main-nav > a.active { color: var(--brass-light); }
.main-nav > a.active::after { width: 100%; }

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

.dropdown-toggle {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
}

.dropdown-toggle:hover { color: var(--brass-light); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 320px;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Invisible bridge so hover isn't lost when moving mouse down */
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  display: block;
}

.dropdown-panel a:hover {
  background: var(--paper);
  color: var(--brass);
}

.dropdown-panel .view-all {
  grid-column: 1 / -1;
  color: var(--brass);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  border-top: 1px solid var(--paper-2);
  padding-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 900px) {
  .logo-img {
    height: 38px;
  }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; max-width: 340px;
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .main-nav > a {
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(201,151,43,0.12);
    font-size: 1rem;
  }

  .dropdown-panel::before { display: none; }

  .main-nav > a::after { display: none; }

  .dropdown-toggle {
    color: var(--white);
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(201,151,43,0.12);
    font-size: 1rem;
    justify-content: space-between;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    display: none;
    grid-template-columns: 1fr;
    margin: 0.4rem 0 0.8rem 1rem;
    padding: 0;
    min-width: unset;
  }

  .nav-dropdown.open .dropdown-panel { display: grid; }

  .dropdown-panel a {
    color: var(--paper);
    opacity: 0.8;
    padding: 0.55rem 0.4rem;
    font-size: 0.88rem;
  }

  .dropdown-panel .view-all {
    color: var(--brass-light);
    border-top: 1px solid rgba(201,151,43,0.2);
  }

  .hamburger { display: block; }

  .nav-catalog-btn { margin-top: 1.4rem; }
}

/* ============ NAV OVERLAY (mobile) ============ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.nav-overlay.show { display: block; }

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--ink-2);
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  padding: 1.3rem 0;
  overflow: hidden;
}

.trust-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: scrollLeft 26s linear infinite;
}

.trust-track:hover { animation-play-state: paused; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trust-item img {
  height: 34px;
  width: auto;
  filter: grayscale(0.15) brightness(1.05);
  border-radius: 3px;
  background: #fff;
  padding: 2px;
}

.trust-item i { color: var(--brass); }

/* ============ HERO (Homepage) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.1); /* Made image much more visible */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,31,24,0.4) 0%, rgba(16,31,24,0.7) 60%, rgba(16,31,24,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 6rem;
  padding-bottom: 5rem; /* Prevents overlap with absolute scroll element */
}

.hero-content .eyebrow {
  color: var(--brass-light);
  margin-bottom: 1.3rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  line-height: 1.06;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s ease forwards 0.25s;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 540px;
  color: #D8DED5;
  margin-bottom: 2.3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.55s;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.85s;
}

.hero-scroll {
  margin-top: 4rem;
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

@media (max-height: 700px), (max-width: 900px) {
  .hero-scroll { display: none; }
}

.hero-scroll .line {
  width: 1px;
  height: 34px;
  background: var(--brass-light);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ============ WHY / CERTIFICATION CARDS ============ */
.why-section { background: var(--paper); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem;
  position: relative;
  box-shadow: var(--shadow);
  border-top: 3px dashed var(--brass);
}

.why-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  position: absolute;
  top: -13px;
  left: 2rem;
  background: var(--white);
  padding: 0 0.6rem;
}

.why-icon {
  font-size: 2.1rem;
  color: var(--brass);
  margin-bottom: 1.2rem;
}

.why-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.why-card p { font-size: 0.95rem; color: var(--steel); }

.why-card .cert-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.why-card .cert-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============ PRODUCTS SECTION (homepage) ============ */
.products-section {
  background: var(--ink);
  color: var(--paper);
}

.products-section .section-lead { color: #B9C2B9; }
.products-section .eyebrow { color: var(--brass-light); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201,151,43,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
  border-color: var(--brass);
}

.product-code {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(16,31,24,0.75);
  color: var(--brass-light);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--paper);
}

.product-desc {
  font-size: 0.88rem;
  color: #AEB8AC;
  margin-bottom: 1rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.product-link i { transition: transform 0.3s; }
.product-link:hover i { transform: translateX(5px); }
.product-link:hover { color: var(--brass-light); }

/* Range Chips */
.range-block {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(201,151,43,0.25);
  padding-top: 2.5rem;
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.range-head h4 { color: var(--paper); font-size: 1.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #CBD3C8;
  border: 1px solid rgba(201,151,43,0.35);
  padding: 0.55rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.chip:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

/* ============ ABOUT SECTION ============ */
.about-section { background: var(--paper); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--steel);
  font-size: 1rem;
}

/* Timeline */
.timeline {
  margin-top: 2rem;
  border-left: 2px solid var(--brass);
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brass);
}

.timeline-item .t-year {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.timeline-item h4 {
  font-size: 1rem;
  margin-top: 0.2rem;
  color: var(--ink);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============ CONTACT SECTION ============ */
.contact-section {
  background: var(--ink);
  color: var(--paper);
}

.contact-section .eyebrow { color: var(--brass-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.form-group { position: relative; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(242,238,225,0.3);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.1rem;
  transition: border-color 0.3s ease;
}

.form-group textarea { resize: vertical; min-height: 100px; }

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(242,238,225,0.35);
}

.form-note {
  font-size: 0.82rem;
  color: #A9B3A7;
  margin-top: -0.3rem;
}

.toast {
  margin-top: 0.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(201,151,43,0.12);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  font-size: 0.88rem;
  display: none;
}

.toast.show { display: block; }

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-block i {
  color: var(--brass);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  width: 22px;
}

.info-block h4 {
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.info-block p,
.info-block a {
  color: #B9C2B9;
  font-size: 0.92rem;
  text-decoration: none;
}

.info-block a:hover { color: var(--brass-light); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201,151,43,0.3);
  margin-top: 0.5rem;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

.social-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201,151,43,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-light);
  transition: all 0.25s ease;
}

.social-row a:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

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

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink-2);
  color: #B9C2B9;
  padding: 3.5rem 0 1.8rem;
  border-top: 1px solid rgba(201,151,43,0.25);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(201,151,43,0.15);
}

.footer-brand .logo-text { color: var(--paper); }

.footer-tagline {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  max-width: 260px;
  color: #8F998C;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #B9C2B9;
  text-decoration: none;
  margin-bottom: 0.6rem;
}

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

.footer-copy {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #8F998C;
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 1.8rem; }
}
