/* ==========================================================================
   Fahavi Computers - homepage sections (hero lives in fahavi-hero.css)
   ========================================================================== */

/* ------------------------------------------------------------- BRANDS */
/* Full-width white band; content capped inside. */
.fh-brands { background: #fff; border-block: 1px solid var(--fh-border); margin-top: 44px; padding: 34px 0 30px; }
.fh-brands__wrap { max-width: 1660px; margin-inline: auto; padding-inline: clamp(16px, 2.6vw, 44px); }
.fh-brands__title { display: flex; align-items: center; gap: 18px; justify-content: center; margin: 0 0 26px; }
.fh-brands__title span { font-size: 18px; font-weight: 800; color: var(--fh-navy); white-space: nowrap; }
.fh-brands__title::before, .fh-brands__title::after { content: ""; height: 1px; background: var(--fh-border); flex: 1 1 auto; max-width: 300px; }
.fh-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.fh-marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: fh-scroll 55s linear infinite; }
.fh-marquee:hover .fh-marquee__track { animation-play-state: paused; }
@keyframes fh-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fh-brand { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #A6ADBE; text-decoration: none; white-space: nowrap; transition: color .15s; display: inline-flex; align-items: center; }
.fh-brand:hover { color: var(--fh-navy); }
.fh-brand--logo img { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; filter: grayscale(1) opacity(.55); transition: filter .18s ease; }
.fh-brand--logo:hover img { filter: grayscale(0) opacity(1); }
@media (prefers-reduced-motion: reduce) { .fh-marquee__track { animation: none; } .fh-marquee { overflow-x: auto; } }
@media (max-width: 700px) { .fh-brand--logo img { height: 26px; } .fh-marquee__track { gap: 38px; } }

/* --------------------------------------------------------- CATEGORIES */
/* Curated static grid - 10 strong categories, 2 rows of 5 on desktop,
   no scrolling in any direction. Long tail lives on /shop/. */
.fh-wrap--wide { max-width: 1660px; }
/* Tighter homepage section rhythm - the shared .fh-sec padding (46px max)
   stacks between adjacent sections into big white gaps on large screens. */
body.home .fh-sec { padding-block: clamp(20px, 2.2vw, 30px); }
/* The SEO intro directly above acts as this section's lead-in, so the two
   share one breathing space instead of stacking two full section paddings. */
body.home .fh-sec--cats { padding-top: clamp(14px, 1.6vw, 20px); padding-bottom: clamp(10px, 1.2vw, 16px); }
/* Locked to 5 columns on desktop so 10 tiles land as a clean 5x2 - auto-fill
   would pack 8 across on wide screens and strand 2 tiles on the second row. */
.fh-catgrid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 950px) {
  .fh-catgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.fh-cat {
  background: #fff; border: 1px solid var(--fh-border);
  border-radius: 13px; padding: 16px 10px 14px; text-align: center; text-decoration: none;
  transition: box-shadow .16s, border-color .16s, transform .16s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0;
}
.fh-cat:hover { box-shadow: var(--fh-shadow-lg); border-color: #C9D0E8; transform: translateY(-2px); }
.fh-cat__ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 11px; background: #EDEFFB; display: grid; place-items: center; color: var(--fh-navy); transition: background .16s, color .16s; flex: none; }
.fh-cat__ico svg { width: 21px; height: 21px; }
.fh-cat:hover .fh-cat__ico { background: var(--fh-navy); color: #fff; }
.fh-cat__count { font-size: 10.5px; color: var(--fh-muted); margin-top: 3px; }
@media (max-width: 700px) { .fh-cat { padding: 12px 8px 11px; } .fh-catgrid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } .fh-cat__ico { width: 38px; height: 38px; margin-bottom: 8px; } }
.fh-cat b { font-size: 12.5px; font-weight: 700; color: var(--fh-ink); line-height: 1.3; display: block; }

/* ---------------------------------------------------------- CTA BAND */
/* Full-bleed band. Alignment grid: [edge gutter | copy 880 | visual 780 | edge
   gutter] - copy aligns with the 1660px content column, visual runs to the
   right viewport edge. */
/* ---- CTA band v2: light editorial (rebuilt 2026-08-16 to mockup) ---- */
.fh-band--light {
  position: relative; margin: 0; overflow: hidden;
  background:
    radial-gradient(40% 70% at 96% 8%, rgba(37, 99, 235, .07), transparent 70%),
    linear-gradient(115deg, #FFFFFF 0%, #F4F6FB 55%, #EDE9F2 100%);
  color: var(--fh-ink);
  /* dot textures: blue top-right, red bottom-left */
  background-repeat: no-repeat;
}
.fh-band--light::before {
  content: ''; position: absolute; top: 34px; right: 46px; width: 120px; height: 74px;
  background-image: radial-gradient(rgba(43, 69, 171, .38) 1.6px, transparent 2px);
  background-size: 15px 15px; pointer-events: none;
}
.fh-band--light .fh-band__inner::after {
  content: ''; position: absolute; left: 26px; bottom: 84px; width: 70px; height: 70px;
  background-image: radial-gradient(rgba(235, 36, 36, .3) 1.6px, transparent 2px);
  background-size: 15px 15px; pointer-events: none;
}
.fh-band__inner {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(18px, 2.6vw, 44px);
  width: min(100% - clamp(32px, 4vw, 64px), var(--fh-maxw-wide));
  margin-inline: auto;
  padding: clamp(16px, 2vw, 30px) 0 clamp(72px, 7vw, 112px);
}
.fh-band__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #2563EB; margin-bottom: 12px; }
.fh-band__eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: var(--fh-red); }
.fh-band--light h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 800; margin: 0 0 14px; color: var(--fh-ink); line-height: 1.12; letter-spacing: -.022em; }
.fh-band__blue { font-style: normal; color: #4338CA; }
.fh-band__red { font-style: normal; color: var(--fh-red); }
.fh-band--light p { font-size: clamp(13.5px, 1vw, 15.5px); color: var(--fh-muted); margin: 0 0 22px; max-width: 34em; line-height: 1.65; }

.fh-band__tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.fh-band__tile {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--fh-border); border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(16, 24, 64, .05);
  transition: transform .16s ease, box-shadow .16s ease;
}
.fh-band__tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 64, .09); }
@media (prefers-reduced-motion: reduce) { .fh-band__tile, .fh-band__tile:hover { transition: none; transform: none; } }
.fh-band__tileico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.fh-band__tileico svg { width: 18px; height: 18px; }
.fh-band__tileico--navy { background: rgba(23, 41, 130, .08); color: var(--fh-navy); }
.fh-band__tileico--red  { background: rgba(235, 36, 36, .09); color: var(--fh-red); }
.fh-band__tileico--blue { background: rgba(67, 56, 202, .09); color: #4338CA; }
.fh-band__tiletxt { font-size: 11.5px; font-weight: 700; line-height: 1.35; color: var(--fh-ink); }

.fh-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.fh-band__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 14px; font-weight: 800; text-decoration: none; transition: filter .15s, background .15s;
}
.fh-band__btn svg { width: 16px; height: 16px; }
.fh-band__btn--navy { background: var(--fh-navy); color: #fff !important; }
.fh-band__btn--navy:hover { background: var(--fh-navy-dark); }
.fh-band__btn--line { background: #fff; color: var(--fh-ink) !important; border: 1px solid var(--fh-border); }
.fh-band__btn--line:hover { border-color: #22C55E; color: var(--fh-green-deep) !important; }
.fh-band__btn--line svg { color: #22C55E; }

.fh-band__visual { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.fh-band__visual::before {
  content: ''; position: absolute; width: 74%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .14), transparent 65%);
  pointer-events: none;
}
.fh-band__visual::after {
  content: ''; position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: 62%; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16, 24, 64, .22), transparent 68%);
  pointer-events: none;
}
.fh-band__visual img { position: relative; z-index: 1; width: 100%; max-width: 620px; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 22px 34px rgba(16, 24, 64, .16)); }

/* navy bottom wave: real SVG curves (echo layer + gradient fill + red
   accent stroke that fades in toward the right) */
.fh-band__sweep {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(64px, 7.5vw, 120px);
  pointer-events: none; line-height: 0;
}
.fh-band__sweep svg { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .fh-band__inner { grid-template-columns: 1fr; padding-bottom: clamp(70px, 12vw, 96px); }
  .fh-band__visual { order: 2; }
  .fh-band__visual img { max-width: 400px; }
  .fh-band--light::before { display: none; }
}

/* -------------------------------------------------------- NEWSLETTER */
.fh-news {
  margin: 0 0 26px; background: #E9EEF9;
  padding: clamp(22px, 2.6vw, 34px) 0;
  /* full-bleed band: %-padding on the section itself aligns content to 1660px */
  padding-inline: max(clamp(18px, 2.6vw, 44px), calc((100% - 1660px) / 2));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 36px);
}
.fh-news__visual { position: relative; width: 74px; height: 64px; flex: none; }
.fh-news__env { position: absolute; left: 0; bottom: 0; width: 56px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--fh-navy); box-shadow: 0 6px 18px rgba(16,24,64,.12); }
.fh-news__env svg { width: 26px; height: 26px; }
.fh-news__bell { position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--fh-navy); display: grid; place-items: center; color: #fff; }
.fh-news__bell svg { width: 15px; height: 15px; }
.fh-news__copy h2 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 800; margin: 0 0 6px; color: var(--fh-ink); }
.fh-news__copy p { font-size: 13.5px; color: var(--fh-muted); margin: 0; line-height: 1.5; }
.fh-news__form { min-width: min(430px, 100%); }
.fh-news__row { display: flex; gap: 9px; }
.fh-news__row input[type=email] { flex: 1 1 auto; min-width: 0; padding: 13px 15px; border: 1px solid #C8D0E4; border-radius: 10px; font-size: 14px; background: #fff; font-family: inherit; }
.fh-news__row input[type=email]:focus { outline: 2px solid var(--fh-navy); border-color: transparent; }
.fh-news__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fh-news__row button { flex: none; padding: 13px 24px; border: 0; border-radius: 10px; background: var(--fh-navy); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; }
.fh-news__row button:hover { filter: brightness(1.1); }
.fh-news__row button:disabled { opacity: .7; cursor: wait; }
.fh-news__note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fh-muted); margin: 9px 0 0; }
.fh-news__note svg { width: 13px; height: 13px; color: var(--fh-green-deep); }
.fh-news__msg { font-size: 12.5px; margin: 6px 0 0; min-height: 1em; }
.fh-news__msg.is-ok { color: var(--fh-green-deep); font-weight: 700; }
.fh-news__msg.is-error { color: var(--fh-red); font-weight: 700; }
@media (max-width: 980px) {
  .fh-news { grid-template-columns: auto 1fr; }
  .fh-news__form { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 560px) {
  .fh-news { grid-template-columns: 1fr; text-align: left; }
  .fh-news__visual { display: none; }
  .fh-news__row { flex-direction: column; }
  .fh-news__row button { width: 100%; padding: 13px; }
}

/* ------------------------------------------------------- STORE VISIT */
.fh-visit {
  margin: 0 0 34px; background: #fff; border-block: 1px solid var(--fh-border);
  padding: clamp(16px, 2vw, 24px) 0;
  padding-inline: max(clamp(16px, 2.4vw, 44px), calc((100% - 1660px) / 2));
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); flex-wrap: wrap;
}
.fh-visit__cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.fh-visit__ico { width: 46px; height: 46px; border-radius: 50%; background: #EDF1FC; display: grid; place-items: center; color: var(--fh-navy); flex: none; }
.fh-visit__ico svg { width: 21px; height: 21px; }
.fh-visit__cell b { display: block; font-size: 14.5px; font-weight: 800; color: var(--fh-ink); margin-bottom: 2px; }
.fh-visit__cell span span { display: block; font-size: 12.5px; color: var(--fh-muted); line-height: 1.45; }
.fh-visit__div { width: 1px; height: 40px; background: var(--fh-border); flex: none; }
.fh-visit__btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: #EDF1FC; color: var(--fh-navy); font-weight: 800; font-size: 13.5px;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; white-space: nowrap;
}
.fh-visit__btn svg { width: 16px; height: 16px; }
.fh-visit__btn:hover { background: var(--fh-navy); color: #fff; }
@media (max-width: 860px) {
  .fh-visit__div { display: none; }
  .fh-visit__btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------- REVIEWS */
.fh-reviews { background: #fff; padding: clamp(20px, 2.4vw, 32px) 0 clamp(22px, 2.6vw, 36px); }
.fh-reviews__head { text-align: center; margin-bottom: 14px; }
.fh-reviews__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--fh-navy); margin-bottom: 8px; }
.fh-reviews__eyebrow svg { width: 13px; height: 13px; color: var(--fh-navy); }
.fh-reviews__head h2 { font-size: clamp(1.35rem, 1.9vw, 1.8rem); font-weight: 800; color: var(--fh-ink); margin: 0 0 6px; }
.fh-reviews__head p { font-size: 13.5px; color: var(--fh-muted); margin: 0 0 10px; }
.fh-reviews__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--fh-navy); text-decoration: none; }
.fh-reviews__all:hover { text-decoration: underline; }
.fh-reviews__all svg { width: 14px; height: 14px; }
.fh-reviews__widget { min-height: 120px; }
.fh-reviews__fallback {
  max-width: 560px; margin: 6px auto 0; text-align: center;
  background: #F8F9FC; border: 1px solid var(--fh-border); border-radius: 16px;
  padding: 26px 22px;
}
.fh-reviews__g {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: #fff; border: 1px solid var(--fh-border);
  font-size: 22px; font-weight: 800; color: #4285F4; margin-bottom: 10px;
}
.fh-reviews__fallback p { font-size: 13.5px; color: var(--fh-muted); margin: 0 0 16px; line-height: 1.55; }
.fh-reviews__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fh-reviews__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: 11px; background: var(--fh-navy); color: #fff;
  font-size: 13.5px; font-weight: 800; text-decoration: none;
}
.fh-reviews__btn:hover { filter: brightness(1.1); color: #fff; }
.fh-reviews__btn--ghost { background: #fff; color: var(--fh-navy); border: 1.5px solid var(--fh-navy); }
.fh-reviews__btn--ghost:hover { background: #EFF3FE; color: var(--fh-navy); }

/* ---- Google Reviews v2 (fahavi-reviews.php) ---- */
.fh-reviews__agg { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0 4px; flex-wrap: wrap; }
.fh-reviews__num { font-size: 34px; font-weight: 800; color: var(--fh-ink); line-height: 1; }
.fh-reviews__count { font-size: 14px; color: var(--fh-muted); }
.fh-rev__stars { display: inline-flex; gap: 2px; color: var(--fh-gold); }
.fh-rev__stars svg { width: 16px; height: 16px; }
.fh-reviews__agg .fh-rev__stars svg { width: 20px; height: 20px; }

.fh-reviews__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 18px auto 0; text-align: left;
}
.fh-rev {
  background: #fff; border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-card); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.fh-rev__head { display: flex; align-items: center; gap: 11px; }
.fh-rev__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.fh-rev__avatar--txt { display: grid; place-items: center; background: var(--fh-navy); color: #fff; font-weight: 800; font-size: 16px; }
.fh-rev__who { min-width: 0; flex: 1; }
.fh-rev__name { display: block; font-size: 14px; font-weight: 700; color: var(--fh-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-rev__when { display: block; font-size: 12px; color: var(--fh-muted); margin-top: 1px; }
.fh-rev__g, .fh-reviews__g--lg {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1px solid var(--fh-border);
  color: #4285F4; font-weight: 800; font-size: 13px;
}
.fh-rev__text {
  margin: 0; font-size: 13.5px; line-height: 1.65; color: #3A4152;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.fh-reviews__btns--center { justify-content: center; margin-top: 20px; }

.fh-reviews__split {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 0; margin: 14px auto 0; text-align: left;
  background: #fff; border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius-card); overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 24, 64, .06);
}
.fh-reviews__map { min-height: 290px; }
.fh-reviews__map iframe { width: 100%; height: 100%; min-height: 290px; border: 0; display: block; }
.fh-reviews__cta { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fh-reviews__g--lg { width: 46px; height: 46px; font-size: 22px; margin-bottom: 8px; box-shadow: 0 4px 14px rgba(16, 24, 64, .1); }
.fh-reviews__cta h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--fh-ink); }
.fh-reviews__cta > p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--fh-muted); max-width: 420px; }
.fh-reviews__facts { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--fh-border); display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fh-reviews__facts li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fh-muted); }
.fh-reviews__facts svg { width: 15px; height: 15px; color: var(--fh-navy); flex: none; }

@media (max-width: 860px) {
  .fh-reviews__split { grid-template-columns: 1fr; }
  .fh-reviews__map { min-height: 240px; order: 2; }
}
/* reviews section spans the wide content column like the neighbouring bands */
.fh-reviews .fh-wrap { width: min(100% - clamp(32px, 4vw, 64px), var(--fh-maxw-wide)); max-width: none; }

/* Mobile: hide the Shop-by-category carousel (user request) — categories
   remain reachable via Shop's category pills and the footer links. */
@media (max-width: 760px) { .fh-sec--cats { display: none; } }
