/*
  sections.css — homepage-specific blocks not covered by products.css:
  why-us, testimonials, brands, contact block, spec tabs, quick-view modal.
*/

/* ── Why us ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-visual { position: relative; }
.why-img { width: 100%; aspect-ratio: 1; background: var(--steel); border-radius: var(--radius-lg); border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; }
.why-float-card { position: absolute; background: var(--green); color: var(--white); padding: 16px 20px; border-radius: var(--radius-md); font-family: var(--font-head); font-weight: 800; box-shadow: 0 12px 40px rgba(46,125,50,.35); }
.why-float-card.a { top: -20px; right: -20px; font-size: 14px; }
.why-float-card.b { bottom: -20px; left: -20px; font-size: 13px; }
.why-float-card .num { font-size: 32px; line-height: 1; display: block; }
.why-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-icon { width: 48px; height: 48px; flex-shrink: 0; background: rgba(46,125,50,.14); border: 1px solid rgba(46,125,50,.3); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--green-light); }
.why-item h4 { font-family: var(--font-head); font-size: 18px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.why-item p { font-size: 14px; line-height: 1.7; }

/* ── Spec tabs (homepage comparison table) ── */
.spec-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.spec-tab { padding: 12px 20px; background: transparent; border: none; color: var(--muted); font-family: var(--font-head); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.spec-tab.active { color: var(--green); border-bottom-color: var(--green); }
.spec-table td:last-child { color: var(--green); font-weight: 700; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.testi-stars { color: var(--green); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; background: var(--charcoal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--green-light); flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: 14px; }
.testi-role { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ── Brands strip ── */
.brands { background: var(--soft); padding: 60px 0; }
.brands-title { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 40px; }
.brands-row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.brand-logo { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 28px; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; transition: all var(--dur-fast) var(--ease); }
.brand-logo:hover { color: var(--ink); border-color: var(--green); }

/* ── Contact section ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info h3 { font-family: var(--font-head); font-size: 32px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; color: var(--white); }
.contact-info > p { margin-bottom: 36px; }
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; flex-shrink: 0; background: rgba(46,125,50,.14); border: 1px solid rgba(46,125,50,.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--green-light); }
.info-item h5 { font-size: 13px; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; color: var(--white); }
.info-item p { font-size: 14px; line-height: 1.5; margin: 0; }
.contact-form-card { background: var(--steel); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 40px; }
.contact-form-card h3 { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-transform: uppercase; margin-bottom: 28px; color: var(--white); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 48px; aspect-ratio: 21/7; background: var(--soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ── Quick-view / product modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; animation: modalIn var(--dur-mid) var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--soft); border: none; color: var(--ink); width: 36px; height: 36px; border-radius: 8px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal h2 { font-family: var(--font-head); font-size: 26px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.modal-price { font-family: var(--font-head); font-size: 34px; color: var(--green); font-weight: 800; margin-bottom: 20px; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.modal-spec { background: var(--soft); padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); }
.modal-spec .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.modal-spec .value { font-weight: 600; font-size: 14px; }

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; }
}
