/* ==========================================================================
   SKYOCEANENTERPRISES — INNER PRODUCTS PAGE STYLESHEET
   File: assets/css/products-page.css
   WordPress: will become page-products.php styles / template-parts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Section 1 — Products Hero (Full-width bg image with dark navy overlay)
   -------------------------------------------------------------------------- */
.products-hero-section {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 90px;
  background-color: var(--color-navy);
  overflow: hidden;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65);
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(22, 138, 173, 0.72) 50%,
    rgba(13, 27, 42, 0.94) 100%
  );
}

.products-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.products-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.products-hero-label::before,
.products-hero-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

.products-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 18px;
}

.products-hero-rule {
  width: 54px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin: 0 auto 22px;
}

.products-hero-desc {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 auto 34px;
  max-width: 680px;
}

.btn-products-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-ocean);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(22, 138, 173, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-products-hero svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.btn-products-hero:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-products-hero:hover svg {
  transform: translateY(3px);
  stroke: var(--color-navy);
}

/* --------------------------------------------------------------------------
   2. Section 2 — Products Introduction (Light Blue Background)
   -------------------------------------------------------------------------- */
.section-products-intro {
  background-color: #EBF5F8;
  padding: 85px 0;
  text-align: center;
  position: relative;
}

.products-intro-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.products-intro-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.products-intro-rule {
  width: 50px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.products-intro-text {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(13, 27, 42, 0.82);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Section 3 & 4 — Product Categories with Filter & Search (Deep Navy)
   -------------------------------------------------------------------------- */
.section-categories-catalog {
  background-color: var(--color-navy);
  padding: 95px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Filter & Search Bar */
.catalog-toolbar {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search Bar Input */
.catalog-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.catalog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2.2;
  fill: none;
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 13px 44px 13px 48px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.catalog-search-input:focus {
  border-color: var(--color-ocean);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(22, 138, 173, 0.25);
}

.catalog-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
}

.catalog-search-clear.is-active {
  display: flex;
}

.catalog-search-clear svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.catalog-search-clear:hover {
  color: var(--color-white);
}

/* Category Filter Buttons */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-filter-btn:hover {
  border-color: var(--color-ocean);
  color: var(--color-white);
  background-color: rgba(22, 138, 173, 0.15);
}

.cat-filter-btn.active {
  background-color: var(--color-ocean);
  border-color: var(--color-ocean);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(22, 138, 173, 0.35);
}

/* Product Categories Grid (4 columns desktop) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Category Card */
.catalog-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.catalog-card.is-hidden {
  display: none !important;
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 138, 173, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
}

.catalog-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.06);
}

.catalog-card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
  margin: 0 0 10px;
}

.catalog-card-rule {
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

.catalog-card-desc {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 22px;
  flex-grow: 1;
}

/* Explore Button */
.btn-catalog-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-ocean);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  margin-top: auto;
}

.btn-catalog-explore svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.catalog-card:hover .btn-catalog-explore {
  background-color: #12728f;
}

.catalog-card:hover .btn-catalog-explore svg {
  transform: translateX(3px);
  stroke: var(--color-gold);
}

/* Empty State */
.catalog-empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.8);
}

.catalog-empty-state.is-visible {
  display: block;
}

.catalog-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  stroke: var(--color-gold);
  stroke-width: 2;
  fill: none;
}

.catalog-empty-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.catalog-empty-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-ocean);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   4. Section 5 — Final CTA (Ocean Blue Background)
   -------------------------------------------------------------------------- */
.section-products-cta {
  background-color: var(--color-ocean);
  padding: 85px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-cta-inner {
  max-width: 820px;
  margin: 0 auto;
}

.products-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 16px;
}

.products-cta-rule {
  width: 54px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin: 0 auto 22px;
}

.products-cta-desc {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 36px;
}

.btn-products-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 38px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.22);
}

.btn-products-contact svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.btn-products-contact:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.35);
}

.btn-products-contact:hover svg {
  transform: translateX(4px);
  stroke: var(--color-gold);
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-hero-section {
    min-height: auto;
    padding: 85px 0 65px;
  }

  .section-products-intro,
  .section-categories-catalog,
  .section-products-cta {
    padding: 72px 0 80px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .btn-products-contact,
  .btn-products-hero {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .products-hero-section h1 {
    font-size: 2rem;
  }
  .catalog-card-body {
    padding: 20px 16px;
  }
}

@media (max-width: 375px) {
  .products-hero-section h1 {
    font-size: 1.75rem;
  }
  .catalog-card-body {
    padding: 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card,
  .catalog-card-img,
  .btn-catalog-explore,
  .btn-products-contact,
  .btn-products-hero {
    transform: none !important;
    transition: none !important;
  }
}

