/* ==========================================================================
   Sapphire Uniforms — supplemental styles
   Brand: Navy #0B1E3F  •  Accent Orange #FB7A38  •  Outfit + Inter
   ========================================================================== */

:root {
  --sapphire-navy: #0B1E3F;
  --sapphire-accent: #FB7A38;
  --sapphire-surface: #FAFBFC;
  --sapphire-border: #E6EAF0;
  --sapphire-shadow: 0 18px 40px rgba(11, 30, 63, 0.10);
  --sapphire-shadow-sm: 0 6px 18px rgba(11, 30, 63, 0.08);
}

/* ---- Eyebrow / kicker label (uppercase orange pill) --------------------- */
.eyebrow,
.is-style-eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sapphire-accent) !important;
  background: rgba(251, 122, 56, 0.10);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem !important;
}

/* ---- Section rhythm ----------------------------------------------------- */
.sapphire-section {
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

/* ---- Cards -------------------------------------------------------------- */
.sapphire-card {
  background: #fff;
  border: 1px solid var(--sapphire-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sapphire-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.sapphire-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sapphire-shadow);
}
.sapphire-card .wp-block-image { margin: 0; }
.sapphire-card .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.sapphire-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.sapphire-card-body h3,
.sapphire-card-body h4 { margin: 0.2rem 0 0.5rem; }

/* Numbered step badge */
.sapphire-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sapphire-accent);
  color: #fff !important;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ---- Buttons ------------------------------------------------------------ */
.wp-block-button.is-style-whatsapp .wp-block-button__link {
  background: var(--sapphire-whatsapp, #25D366) !important;
  color: #fff !important;
}
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background: #1fb457 !important; }

.wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--sapphire-accent) !important;
  color: #fff !important;
}
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #e96a2a !important; }

.wp-block-button.is-style-outline-light .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ---- Hero cover tweaks -------------------------------------------------- */
.sapphire-hero { min-height: clamp(460px, 60vh, 620px); }
.sapphire-hero h1 { color: #fff !important; }
.sapphire-hero p { color: rgba(255, 255, 255, 0.88) !important; }
.sapphire-hero .eyebrow { color: #fff !important; background: rgba(251, 122, 56, 0.9); }

/* ---- Header ------------------------------------------------------------- */
.wp-block-template-part.site-header,
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sapphire-border);
}
.wp-block-navigation a { color: var(--sapphire-navy); font-weight: 500; }
.wp-block-navigation a:hover { color: var(--sapphire-accent); }
.wp-block-navigation .wp-block-navigation-item__content { text-decoration: none; }

/* ---- Utility bar (top contact strip) ----------------------------------- */
.sapphire-topbar {
  background: var(--sapphire-navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.sapphire-topbar a { color: rgba(255,255,255,0.85) !important; }
.sapphire-topbar a:hover { color: #fff !important; }

/* ---- Footer ------------------------------------------------------------- */
.sapphire-footer { background: var(--sapphire-navy); color: rgba(255,255,255,0.75); }
.sapphire-footer h2, .sapphire-footer h3, .sapphire-footer h4 { color: #fff !important; }
.sapphire-footer a { color: rgba(255,255,255,0.75) !important; }
.sapphire-footer a:hover { color: var(--sapphire-accent) !important; }
.sapphire-footer ul { list-style: none; padding: 0; margin: 0; }
.sapphire-footer li { margin-bottom: 0.5rem; }

/* ---- Client logo strip -------------------------------------------------- */
.sapphire-logos img {
  max-height: 54px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.25s ease;
}
.sapphire-logos img:hover { filter: none; opacity: 1; }

/* ---- Stats -------------------------------------------------------------- */
.sapphire-stat .wp-block-heading { color: var(--sapphire-accent) !important; margin-bottom: 0.2rem; }

/* ---- FAQ (details/summary via list) ------------------------------------- */
.sapphire-faq details {
  border: 1px solid var(--sapphire-border);
  border-radius: 10px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.9rem;
  background: #fff;
}
.sapphire-faq summary {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: var(--sapphire-navy);
  cursor: pointer;
  padding: 0.6rem 0;
  list-style: none;
}
.sapphire-faq summary::-webkit-details-marker { display: none; }
.sapphire-faq summary::after { content: "+"; float: right; color: var(--sapphire-accent); font-size: 1.4rem; line-height: 1; }
.sapphire-faq details[open] summary::after { content: "\2013"; }

/* ---- Responsive columns fallback --------------------------------------- */
@media (max-width: 781px) {
  .sapphire-hero { text-align: center; }
}

/* ==========================================================================
   Filterable portfolio (home products + catalogue)
   ========================================================================== */
.sf-portfolio { max-width: 1200px; margin: 0 auto; }

.sf-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.sf-filter-btn {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sapphire-navy);
  background: #fff;
  border: 1px solid var(--sapphire-border);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sf-filter-btn:hover { border-color: var(--sapphire-accent); color: var(--sapphire-accent); }
.sf-filter-btn.active {
  background: var(--sapphire-navy);
  border-color: var(--sapphire-navy);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.portfolio-item.hide { display: none; }

.portfolio-img-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--sapphire-shadow-sm);
  background: #eef1f5;
}
.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.portfolio-item:hover .portfolio-img-wrapper img { transform: scale(1.06); }

.item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(11,30,63,0.94) 0%, rgba(11,30,63,0.55) 52%, rgba(11,30,63,0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.portfolio-item:hover .item-overlay { opacity: 1; }
.item-meta {
  padding: 1.4rem;
  transform: translateY(14px);
  transition: transform 0.35s ease;
}
.portfolio-item:hover .item-meta { transform: translateY(0); }
.item-tag {
  display: inline-block;
  background: var(--sapphire-accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}
.item-meta h3 {
  color: #fff !important;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0.1rem 0 0.4rem;
}
.item-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}
.item-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.item-wa-btn:hover { background: #1fb457; }

/* Touch devices: reveal the overlay so info + WhatsApp button are reachable */
@media (hover: none) {
  .item-overlay { opacity: 1; }
  .item-meta { transform: none; }
}

@media (max-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 782px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .portfolio-grid { grid-template-columns: 1fr; } }
