/* FENCING PRODUCTS
   Full stylesheet for fencing products section
   -------------------------------------------------- */

/* Section shell */
.section--fencing-products{
  background:#fff;
  padding-top:20px;
  padding-bottom:22px;
}

/* Space between product groups (15px) */
.fprod{ padding:10px 0; }
.fprod + .fprod{ margin-top:15px; }

/* Reset default figure margin */
.section--fencing-products figure{ margin:0; }

/* ==================================================
   ALTERNATING LAYOUT (ZIG-ZAG) — FIXED
   Use explicit grid areas so items never drop rows
   ================================================== */
.fprod .fp-grid{
  display:grid;
  gap:14px;
  grid-template-columns: 5fr 7fr;         /* odd: left 5 / right 7 */
  grid-template-areas: "left right";      /* explicit slots */
  align-items:start;
}

/* even rows: swap areas and proportions */
.fprod:nth-of-type(even) .fp-grid{
  grid-template-columns: 7fr 5fr;
  grid-template-areas: "right left";
}
.fprod .fp-left  { grid-area:left; }
.fprod .fp-right { grid-area:right; }

/* Mobile: single column stacks naturally */
@media (max-width:980px){
  .fprod .fp-grid,
  .fprod:nth-of-type(even) .fp-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "left"
      "right";
  }
}

/* ==================================================
   LEFT COLUMN
   ================================================== */
.fprod .fp-left .card{ border-radius:12px; }

.fprod .fp-head{ text-align:left; margin:0 0 10px; }
.fprod .fp-title{
  margin:0 0 4px; color:var(--green-700);
  font-weight:900; font-size: clamp(20px, 2vw + 12px, 28px);
}
.fprod .fp-sub{
  margin:0 0 8px; color:#5b6b78; font-size:14.5px;
}
.fprod .fp-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:12px; background:#e9f2ec;
  border:1px solid #dfece4; color:#0f3d20; font-weight:800; font-size:12.8px;
}
.fprod .fp-badge .dot{ font-size:18px; line-height:0; }

/* Hero image card */
.fprod .fp-hero{
  margin:0;
  overflow:hidden;
  padding:0;
  position:relative;
  border-radius:12px;
  /* scroll-parallax + hover scale via CSS vars */
  --fp-hero-ty: 0px;
  --fp-hero-scale: 1;
  transform: translateZ(0);
}
.fprod .fp-hero img{
  display:block; width:100%; height:auto; object-fit:cover; aspect-ratio:16/10;
  transform: translateY(var(--fp-hero-ty)) scale(var(--fp-hero-scale));
  transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .3s ease;
  will-change: transform;
}
.fprod .fp-hero:hover{
  --fp-hero-scale: 1.10; /* +10% on hover */
}
@media (prefers-reduced-motion:reduce){
  .fprod .fp-hero img{ transition:none; }
}

/* Missing image fallback */
.fprod .fp-hero.noimg{
  background:linear-gradient(135deg,#eaf2ee 0,#f7faf8 100%);
  min-height:260px;
}
.fprod .fp-hero figcaption{
  position:absolute; top:10px; right:10px;
  padding:6px 10px; border-radius:999px;
  background:rgba(12,47,27,.9); color:#e7f5ee; font-weight:900; font-size:12px;
  border:1px solid rgba(255,255,255,.18);
}

/* Service Includes */
.fprod .fp-service{ padding:12px; }
.fprod .mini-title{ margin:0 0 8px; font-weight:900; color:#0f172a; font-size:14.5px; }
.fprod .bullets{ list-style:none; padding:0; margin:0 0 10px; display:grid; gap:8px; }
.fprod .bullets.two{ grid-template-columns:1fr 1fr; gap:8px 16px; }
@media (max-width:720px){ .fprod .bullets.two{ grid-template-columns:1fr; } }
.fprod .bullets li{ padding-left:18px; position:relative; color:#5b6b78; font-size:13.5px; }
.fprod .bullets li:before{
  content:""; position:absolute; left:0; top:.55em;
  width:7px; height:7px; border-radius:999px; background:#23a455;
}

/* Warranty pill */
.fprod .fp-warranty{
  display:flex; align-items:center; gap:10px;
  margin-top:8px; padding:10px; border-radius:10px;
  background:#eef7f0; border:1px solid #dfece4;
}
.fprod .fp-warranty .ico{
  width:32px; height:32px; display:grid; place-items:center;
  background:#e7f5ee; color:var(--green-700); border-radius:8px;
  border:1px solid #cfe9dc;
}
.fprod .fp-warranty .ico svg{ width:18px; height:18px; }
.fprod .fp-warranty .w-title{ font-weight:900; font-size:13px; color:#0f172a; }
.fprod .fp-warranty .w-sub{ color:#5b6b78; font-size:12.5px; }

/* ==================================================
   ACTIONS — two buttons (GREEN + ORANGE)
   ================================================== */
.fprod .fp-actions{
  margin-top:10px; display:flex; gap:10px; flex-wrap:wrap;
}
.fprod .fp-actions a{
  text-decoration:none !important;   /* no underline */
}

/* shared button base (slightly smaller) */
.fprod .fp-actions .btn{
  position:relative; overflow:hidden;          /* needed for shine overlay */
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800; font-size:14px;
  border:1px solid transparent;
  color:#fff;
  transition: transform .08s ease, filter .15s ease, box-shadow .18s ease;
}
.fprod .fp-actions .btn svg{ width:18px; height:18px; fill:currentColor; }

/* GREEN — Get Free Consultation */
.fprod .fp-actions .btn--primary{
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color:#166534;
  box-shadow:
    0 10px 18px rgba(22,163,74,.22),
    inset 0 -2px 0 rgba(0,0,0,.10);
}
.fprod .fp-actions .btn--primary:hover{
  filter:brightness(.98);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(34,197,94,.18),      /* green glow */
    0 14px 28px rgba(22,163,74,.32),
    inset 0 -2px 0 rgba(0,0,0,.10);
}

/* ORANGE — Call Now */
.fprod .fp-actions .btn--outline{
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  border-color:#c2410c;
  box-shadow:
    0 10px 18px rgba(234,88,12,.28),
    inset 0 -2px 0 rgba(0,0,0,.10);
}
.fprod .fp-actions .btn--outline:hover{
  filter:brightness(.98);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(249,115,22,.18),     /* orange glow */
    0 14px 28px rgba(234,88,12,.36),
    inset 0 -2px 0 rgba(0,0,0,.10);
}

/* Hover-only SHINE SWEEP for BOTH buttons */
.fprod .fp-actions .btn::before{
  content:""; pointer-events:none;
  position:absolute; inset:-2px;
  transform: translateX(-120%);
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,.75) 50%,
    rgba(255,255,255,0) 70%
  );
  mix-blend-mode:screen; opacity:.95;
}
.fprod .fp-actions .btn:hover::before{
  animation: fp-btn-shine 1.1s ease;
}

/* Shine animation for buttons */
@keyframes fp-btn-shine{
  to { transform: translateX(120%); }
}

/* ==================================================
   RIGHT COLUMN
   ================================================== */
.fprod .fp-right .mini-title{ margin-top:0; }
.fprod .materials{ display:grid; gap:10px; }
.fprod .mat{ padding:10px; border-radius:12px; }
.fprod .mat-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px;
}
.fprod .mat-head h4{ margin:0; font-size:14px; font-weight:900; color:#0f172a; }
.fprod .mat-head .tag{
  padding:5px 8px; border-radius:999px; background:#e9f2ec; color:#0f3d20;
  border:1px solid #dfece4; font-weight:800; font-size:11.5px; white-space:nowrap;
}
.fprod .mat-body{ display:grid; gap:10px; grid-template-columns:1fr 1fr; }
@media (max-width:720px){ .fprod .mat-body{ grid-template-columns:1fr; } }
.fprod .tick{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.fprod .tick li{ padding-left:18px; position:relative; color:#5b6b78; font-size:13px; }
.fprod .tick li:before{
  content:""; position:absolute; left:0; top:.55em;
  width:8px; height:8px; border-radius:2px; background:#23a455;
}

/* Process */
.fprod .fp-process{ padding:12px; margin-top:10px; border-radius:12px; }
.fprod .steps{
  counter-reset: step; list-style:none; margin:6px 0 0; padding:0;
  display:grid; gap:8px;
}
.fprod .steps li{
  display:flex; align-items:flex-start; gap:10px;
  color:#0f172a; font-size:13.5px;
}
.fprod .steps li:before{
  counter-increment: step;
  content: counter(step);
  width:22px; height:22px; border-radius:999px;
  display:grid; place-items:center;
  background:var(--green-600, #15803d); color:#e7f5ee; font-weight:900; font-size:12px;
}
.fprod .steps span{ color:#5b6b78; }

/* Testimonial */
.fprod .fp-testimonial{ padding:12px; margin-top:10px; border-radius:12px; }
.fprod .fp-testimonial .stars{ display:flex; gap:4px; margin-bottom:8px; }
.fprod .fp-testimonial .stars svg{ width:14px; height:14px; }
.fprod .fp-testimonial blockquote{ margin:0 0 6px; color:#0f172a; font-weight:600; font-size:14px; }
.fprod .fp-testimonial .byline{ color:#64748b; font-size:12.5px; }

/* ==================================================
   GLOBAL CARD: subtle default shadows + continuous shine + hover polish
   ================================================== */
.fprod .card{
  position:relative;
  overflow:hidden;
  background-clip: padding-box;

  /* Subtle default shadows */
  box-shadow:
    0 6px 14px rgba(15,23,42,.06),
    0 1px 2px rgba(15,23,42,.05);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

/* glossy sweep (continuous) */
.fprod .card::after{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none;
  mix-blend-mode:screen;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,.7) 50%,
    rgba(255,255,255,0) 80%
  );
  transform: translateX(-160%);
  animation: card-shine 3.6s ease-in-out infinite;
  opacity:.28; /* soft so it doesn't overpower the shadows */
}

/* subtle glitter for depth */
.fprod .card::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 38%, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 78%, rgba(255,255,255,.15) 50%, transparent 51%);
  background-repeat:no-repeat;
  opacity:.30;
}

/* hover: slight green + tiny scale + stronger shadow */
.fprod .card:hover{
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 18px 42px rgba(15,23,42,.10),
    0 4px 12px rgba(15,23,42,.07);
  background-color:#f6fbf8;      /* pale green */
  border-color:#cfe9dc;          /* if a border exists */
}

@keyframes card-shine{
  to { transform: translateX(160%); }
}
