/* ============================================
   NOVEIVA — Homepage Text & Layout Fixes
   ============================================ */

/* ── 1. ANNOUNCEMENT BAR — text center karo ── */
.announcement-bar {
  text-align: center;
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .announcement-bar {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    white-space: normal;
    text-align: center;
    line-height: 1.6;
  }
}

/* ── 2. LOGO — perfectly aligned ── */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  letter-spacing: 0.18em;
}

/* ── 3. HERO — all text properly positioned ── */
.hero {
  overflow: hidden;
  position: relative;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 40px);
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-content {
  max-width: 560px;
  padding-right: 20px;
}
.hero-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  word-break: break-word;
}
.hero > .container > .hero-content > p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
  color: var(--charcoal-mid);
  max-width: 420px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero scroll indicator — centered bottom */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ── 4. SECTION HEADINGS — consistent spacing ── */
.section-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0;
}
.section-divider {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 14px auto 0;
  display: block;
}
.section-divider.left {
  margin-left: 0;
  margin-right: auto;
}

/* ── 5. CATEGORY CARDS — text legible ── */
.cat-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.cat-card-info h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cat-card-info span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: block;
  line-height: 1;
}

/* ── 6. PRODUCT CARDS — text overflow fix ── */
.product-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.product-cat {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  line-height: 1;
}
.product-info {
  padding: 14px 14px 16px;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}
.price-original {
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: line-through;
  line-height: 1;
}
.product-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  flex-wrap: nowrap;
}
.star {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--gold);
}
.star-count {
  font-size: 0.7rem;
  color: var(--gray);
  margin-left: 3px;
  white-space: nowrap;
}

/* ── 7. PROMO BANNER — text centered & readable ── */
.banner {
  padding: 72px 0;
}
.banner-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 14px;
  line-height: 1.2;
}
.banner h2 em {
  font-style: italic;
  color: var(--gold);
}
.banner p {
  color: rgba(250,250,247,0.65);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── 8. USP STRIP — icons & text aligned ── */
.usp-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.usp-item {
  padding: 8px 12px;
}
.usp-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  line-height: 1;
  display: block;
}
.usp-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
  line-height: 1.3;
}
.usp-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .usp-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── 9. TESTIMONIALS — quote text balanced ── */
.testimonial-card {
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal-mid);
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--gold-light);
  font-family: var(--font-serif);
  position: absolute;
  top: -12px;
  left: -4px;
  line-height: 1;
  pointer-events: none;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}
.testimonial-role {
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 10. NEWSLETTER SECTION — input aligned ── */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  align-items: stretch;
}
.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.newsletter-input:focus {
  border-color: var(--gold);
}
.newsletter-input::placeholder {
  color: var(--gray-light);
}
@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-input, .newsletter-form .btn {
    width: 100%;
  }
}

/* ── 11. FOOTER — column text spacing ── */
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  line-height: 1;
}
.footer-col ul li {
  margin-bottom: 9px;
  line-height: 1;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(250,250,247,0.6);
  transition: color 0.15s;
  line-height: 1.4;
}
.footer-col ul li a:hover {
  color: var(--gold);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250,250,247,0.6);
  line-height: 1.8;
  max-width: 260px;
  margin-top: 14px;
}
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(250,250,247,0.35);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 12. SECTION HEADERS with View All button ── */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── 13. PRODUCTS GRID responsive fix ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-name { font-size: 0.8rem; }
  .product-info { padding: 10px 10px 12px; }
}

/* ── 14. CATEGORIES GRID responsive fix ── */
@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-card-info h3 { font-size: 1.1rem; }
}

/* ── 15. Overall section padding on mobile ── */
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .container { padding: 0 16px; }
  .hero-content { padding-right: 0; max-width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .banner { padding: 52px 0; }
}

/* The desktop hero's full-screen container was leaving a large empty band on phones. */
@media (max-width: 768px) {
  .hero { min-height:0; height:auto; padding:20px 0 42px; }
  .hero .container { min-height:0; padding:20px 16px 34px; }
  .hero-content { width:100%; max-width:100%; padding-right:0; }
  .hero-scroll { bottom:8px; }
}
