/* ==========================================
   COMMON HERO HEADER FOR SUBPAGES
   ========================================== */
.page-hero {
  height: 40vh;
  min-height: 300px;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-text-light);
  padding-top: 80px; /* Offset for sticky header */
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 19, 48, 0.7), rgba(7, 19, 48, 0.9));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================
   1. HOME PAGE (index.html)
   ========================================== */
/* Hero Section */
.hero-home {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-text-light);
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(7, 19, 48, 0.85) 0%, rgba(7, 19, 48, 0.5) 50%, rgba(7, 19, 48, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tagline {
  color: var(--color-accent-gold);
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1.25rem;
  color: #E2E8F0;
  margin-bottom: var(--spacing-xl);
  max-width: 650px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  .hero-desc { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; }
}

/* Home Section Layout */
.home-section {
  padding: var(--spacing-xxl) 0;
}

.bg-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
}

.bg-dark .section-title {
  color: var(--color-text-light);
}

/* Grid layout for features / benefits */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Featured Products Section */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

@media (max-width: 992px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* CTA Home section banner */
.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: var(--spacing-xxl) 0;
  color: var(--color-text-light);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 19, 48, 0.8);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.cta-banner-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  color: #E2E8F0;
}

/* ==========================================
   2. ABOUT PAGE (about.html)
   ========================================== */
.about-split {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: center;
  padding: var(--spacing-xxl) 0;
}

.about-split-content {
  flex: 1;
}

.about-split-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--color-bg-light);
}

.about-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-split-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-accent-gold);
  border-radius: var(--border-radius-lg);
  transform: translate(15px, 15px);
  z-index: -1;
}

@media (max-width: 992px) {
  .about-split {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
}

/* Value Chain Flow */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.chain-item {
  background-color: var(--color-bg-white);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.chain-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-accent-gold);
  color: var(--color-primary-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.chain-icon {
  width: 50px;
  height: 50px;
  fill: var(--color-accent-teal);
  margin: var(--spacing-md) auto;
}

.chain-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.chain-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 992px) {
  .chain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

@media (max-width: 576px) {
  .chain-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   3. PRODUCTS PAGE (products.html)
   ========================================== */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xxl) 0;
}

/* Sidebar filter */
.filter-sidebar {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-section {
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-bg-light);
  padding-bottom: var(--spacing-lg);
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-title-sub {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Style for category tab button in sidebar */
.filter-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-btn:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent-teal);
}

.filter-btn.active {
  background-color: rgba(31, 142, 156, 0.1);
  color: var(--color-accent-teal);
  font-weight: 600;
}

.filter-btn-count {
  font-size: 0.8rem;
  background-color: #E2E8F0;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  color: var(--color-text-muted);
}

.filter-btn.active .filter-btn-count {
  background-color: var(--color-accent-teal);
  color: var(--color-text-light);
}

/* Search input */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #D2D6DC;
  font-size: 0.9rem;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
}

/* Grid listing */
.products-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.no-products-msg {
  display: none;
  text-align: center;
  padding: var(--spacing-xxl) 0;
  color: var(--color-text-muted);
}

/* Hide animation class */
.product-card.hidden {
  display: none !important;
}

@media (max-width: 992px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   4. SUSTAINABILITY PAGE (sustainability.html)
   ========================================== */
.sustainability-commitment {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
  padding: var(--spacing-xxl) 0;
}

.commitment-row {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: center;
}

.commitment-row:nth-child(even) {
  flex-direction: row-reverse;
}

.commitment-content {
  flex: 1.2;
}

.commitment-image {
  flex: 0.8;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .commitment-row, .commitment-row:nth-child(even) {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}

/* ==========================================
   5. QUALITY ASSURANCE PAGE (quality.html)
   ========================================== */
.timeline-process {
  position: relative;
  max-width: 800px;
  margin: var(--spacing-xxl) auto;
  padding: 0 var(--spacing-md);
}

.timeline-process::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(31, 142, 156, 0.2);
}

.timeline-step {
  position: relative;
  margin-bottom: var(--spacing-xxl);
  width: 50%;
}

.timeline-step:nth-child(odd) {
  left: 0;
  padding-right: var(--spacing-xxl);
  text-align: right;
}

.timeline-step:nth-child(even) {
  left: 50%;
  padding-left: var(--spacing-xxl);
  text-align: left;
}

.timeline-step-badge {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-accent-teal);
  color: var(--color-text-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.timeline-step:nth-child(odd) .timeline-step-badge {
  right: -20px;
}

.timeline-step:nth-child(even) .timeline-step-badge {
  left: -20px;
}

.timeline-step-card {
  background-color: var(--color-bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-step-title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary-dark);
}

.timeline-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .timeline-process::before {
    left: 20px;
  }
  
  .timeline-step {
    width: 100%;
    margin-bottom: var(--spacing-xl);
  }
  
  .timeline-step:nth-child(odd), .timeline-step:nth-child(even) {
    left: 0;
    padding-left: var(--spacing-xxl);
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-step:nth-child(odd) .timeline-step-badge,
  .timeline-step:nth-child(even) .timeline-step-badge {
    left: 0;
  }
}

/* ==========================================
   6. CONTACT PAGE (contact.html)
   ========================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xxl);
  padding: var(--spacing-xxl) 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-card-item {
  background-color: var(--color-bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--spacing-md);
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(31, 142, 156, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent-teal);
}

.contact-card-title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.contact-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Map Embed */
.map-embed {
  margin-top: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 300px;
  border: 1px solid #E2E8F0;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-wrapper {
  background-color: var(--color-bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

.contact-direct-link { color: var(--color-primary-light); font-weight: 650; }
.contact-direct-link:hover { color: var(--color-accent-teal); }
.about-split-image img[src*="brand-lobster"] { object-position: center 18%; }


/* ==========================================
   EXPANDED CANADIAN SEAFOOD CATALOGUE
   ========================================== */
.portfolio-intro { background: #f4f8f9; border-bottom: 1px solid #e3ecef; }
.portfolio-intro-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 36px; align-items: center; padding: 42px 0; }
.portfolio-intro h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin-bottom: 14px; }
.portfolio-intro p { color: var(--color-text-muted); }
.portfolio-note { background: #fff; border: 1px solid #dce7ea; border-left: 4px solid var(--color-accent-gold); border-radius: var(--border-radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.portfolio-note strong { display: block; margin-bottom: 8px; color: var(--color-primary-dark); }
.portfolio-note p { font-size: .92rem; margin: 0; }
.product-meta em { text-transform: none; font-weight: 500; color: #6b7f87; }
.product-link.product-detail-btn { border: 0; background: transparent; padding: 0; font-family: inherit; cursor: pointer; text-align: right; }
.catalogue-source-band { background: linear-gradient(135deg, #0a2433, #0d5261); padding: 44px 0; color: #fff; }
.catalogue-source-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.catalogue-source-inner > div { max-width: 820px; }
.catalogue-source-inner h2 { color: #fff; margin-bottom: 12px; }
.catalogue-source-inner p { color: #c9d9de; margin: 0; }
.catalogue-source-inner .section-subtitle { color: var(--color-accent-gold); }

body.modal-open { overflow: hidden; }
.product-modal { position: fixed; inset: 0; background: rgba(4,15,23,.78); z-index: 15000; display: none; padding: 34px 18px; overflow-y: auto; backdrop-filter: blur(6px); }
.product-modal.open { display: block; }
.product-modal-dialog { width: min(1080px, 100%); margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.product-modal-close { position: absolute; top: 16px; right: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(7,29,43,.8); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.product-modal-hero { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 360px; background: #f4f8f9; }
.product-modal-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.product-modal-heading { padding: 48px 50px 38px; align-self: center; }
.product-modal-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0; }
.product-modal-heading p { color: var(--color-text-muted); }
.product-modal-kicker { color: var(--color-accent-teal); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: .85rem; }
.product-modal-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.product-scientific { margin-bottom: 18px; }
.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #dfe8eb; border-top: 1px solid #dfe8eb; border-bottom: 1px solid #dfe8eb; }
.product-detail-panel { background: #fff; padding: 28px 34px; }
.product-detail-panel h3 { font-size: 1rem; color: var(--color-accent-teal); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.product-detail-panel p, .product-detail-panel li { color: var(--color-text-muted); font-size: .94rem; }
.product-detail-panel ul { padding-left: 18px; margin: 0; }
.product-detail-panel li { margin-bottom: 5px; }
.product-detail-wide { grid-column: 1 / -1; }
.product-modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 28px 34px; background: #f8fafb; }
.product-modal-footer > div { display: flex; flex-direction: column; gap: 7px; max-width: 720px; }
.product-modal-footer small { color: #71828a; line-height: 1.5; }
.product-source-link { color: var(--color-accent-teal); font-weight: 700; }
.product-source-note { color: #52656d; font-weight: 700; }

@media (max-width: 820px) {
  .portfolio-intro-grid { grid-template-columns: 1fr; }
  .catalogue-source-inner { flex-direction: column; align-items: flex-start; }
  .product-modal-hero { grid-template-columns: 1fr; }
  .product-modal-image { min-height: 260px; max-height: 360px; }
  .product-modal-heading { padding: 32px 26px; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-detail-wide { grid-column: auto; }
  .product-modal-footer { flex-direction: column; align-items: stretch; }
  .product-modal-footer .btn { width: 100%; }
}

/* Official Seafood from Canada species media + expanded product detail */
.product-image.is-official {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}
.product-card:hover .product-image.is-official {
  transform: scale(1.035);
}
.product-modal-image.is-official {
  object-fit: contain;
  background: #fff;
  padding: 24px;
}
.official-media-note {
  display: inline-flex;
  margin-top: 12px;
  font-size: .78rem;
  color: #6a7c84;
  border-top: 1px solid #dfe7ea;
  padding-top: 10px;
}
.product-story-section {
  padding: 34px 50px;
  background: linear-gradient(135deg, #f7fafb 0%, #edf5f6 100%);
  border-top: 1px solid #e0e9ec;
}
.product-story-kicker {
  display: block;
  color: var(--color-accent-teal);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  font-size: .78rem;
  margin-bottom: 10px;
}
.product-story-section p {
  margin: 0;
  color: #40545d;
  font-size: 1rem;
  line-height: 1.75;
}
.product-source-link {
  font-weight: 700;
}
@media (max-width: 768px) {
  .product-story-section { padding: 26px; }
  .product-modal-image.is-official { padding: 14px; }
}

/* 2026-08-25 catalog cleanup: single-column intro after removal of supply-status note */
.portfolio-intro-grid { grid-template-columns: 1fr !important; }
