/* Shared styles for the inner pages (About, Products, Product, Collections, Gallery, Catalogue, Contact) */

main { min-height: 60vh; }
.inner-page main { padding-top: 76px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }
.form-error { background: #fef2f2; color: var(--primary-hover); border: 1px solid #fecaca; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-top: 14px; }
.modal-intro { font-size: 0.92rem; color: #64748b; margin-bottom: 20px; }

/* ---- Page hero ---- */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--dark) center / cover no-repeat;
  padding: 72px 0 64px;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 15, 23, 0.9) 0%, rgba(11, 15, 23, 0.55) 100%);
}
.page-hero h1 { color: #fff; font-size: 2.8rem; letter-spacing: -0.02em; margin: 6px 0 12px; }
.page-hero p { max-width: 620px; color: #d1d5db; font-size: 1.05rem; }
.breadcrumbs { font-size: 0.85rem; color: #cbd5e1; margin-bottom: 10px; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: 0.6; }

.page-section { padding: 64px 0; }
.page-section.alt { background: var(--bg-surface); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; box-shadow: 0 4px 14px rgba(211, 18, 42, 0.3); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--dark); border: 1px solid var(--border-light); padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Product listing ---- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar .filter-tabs { margin-bottom: 0; flex-wrap: wrap; }
.search-box { position: relative; min-width: 240px; }
.search-box input { width: 100%; padding: 11px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-full); font: inherit; font-size: 0.92rem; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.result-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); grid-column: 1 / -1; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition-normal), box-shadow var(--transition-normal); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-img { aspect-ratio: 4 / 3; background: var(--bg-surface-alt); overflow: hidden; display: block; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.pcard h3 { font-size: 1.15rem; }
.pcard h3 a:hover { color: var(--primary); }
.pcard p { font-size: 0.88rem; color: var(--text-muted); }
.pcard-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.pcard-actions a, .pcard-actions button { flex: 1; text-align: center; justify-content: center; padding: 10px 14px; font-size: 0.85rem; border-radius: var(--radius-sm); font-weight: 600; }
.pcard-actions .view { border: 1px solid var(--border-light); }
.pcard-actions .view:hover { border-color: var(--primary); color: var(--primary); }
.pcard-actions .enq { background: var(--primary); color: #fff; }
.pcard-actions .enq:hover { background: var(--primary-hover); }

/* ---- Product detail ---- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.detail-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface-alt); box-shadow: var(--shadow-md); }
.detail-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-info h1 { font-size: 2.2rem; margin: 6px 0 14px; }
.detail-info .lead { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.detail-info .prod-specs-table { margin-bottom: 20px; }
.detail-info .prod-features-pills { margin-bottom: 26px; }

/* ---- Collections ---- */
.collection-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border-light); scroll-margin-top: 90px; }
.collection-block:last-child { border-bottom: none; }
.collection-block:nth-child(even) .collection-media { order: 2; }
.collection-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3 / 2; }
.collection-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-text h2 { font-size: 2rem; margin-bottom: 6px; }
.collection-text .tagline { color: var(--primary); font-weight: 600; margin-bottom: 14px; }
.collection-text p { color: var(--text-muted); margin-bottom: 18px; }
.collection-text .prod-features-pills { margin-bottom: 20px; }
.mini-products { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.mini-products a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 6px 14px 6px 6px; font-size: 0.85rem; font-weight: 500; background: #fff; }
.mini-products a:hover { border-color: var(--primary); color: var(--primary); }
.mini-products img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* ---- About ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.split h2 { font-size: 2.1rem; margin-bottom: 14px; }
.split p { color: var(--text-muted); margin-bottom: 14px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat strong { display: block; font-family: 'Outfit', sans-serif; font-size: 1.8rem; color: var(--primary); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin-top: 32px; }
.step { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 26px 22px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary); opacity: 0.35; }
.step h3 { font-size: 1.1rem; margin: 6px 0; }
.step p { font-size: 0.9rem; color: var(--text-muted); }
.cta-band { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; border-radius: var(--radius-xl); padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.8rem; }
.cta-band p { color: #cbd5e1; margin-top: 6px; }

/* ---- Gallery ---- */
.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-weight: 600; font-size: 0.9rem; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
dialog.lightbox { border: none; background: transparent; max-width: 94vw; max-height: 94vh; padding: 0; margin: auto; overflow: visible; }
dialog.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: var(--radius-md); }
dialog.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 10px; font-weight: 500; }
dialog.lightbox .lb-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--dark); font-size: 1.1rem; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; }
.contact-card h2, .form-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list strong { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.contact-list a:hover { color: var(--primary); }
.form-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.map-frame { margin-top: 24px; border-radius: var(--radius-md); overflow: hidden; border: 0; width: 100%; height: 240px; }

/* ---- Catalogue ---- */
.cat-controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cat-controls select { padding: 11px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font: inherit; min-width: 240px; }
.catalogue-doc { background: #fff; }
.cat-cover { text-align: center; padding: 56px 20px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); margin-bottom: 32px; background: var(--bg-surface); }
.cat-cover img { height: 70px; width: auto; margin: 0 auto 24px; }
.cat-cover h2 { font-size: 2.2rem; }
.cat-cover p { color: var(--text-muted); margin-top: 8px; }
.cat-group h3 { font-size: 1.4rem; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin: 32px 0 18px; }
.cat-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border-light); break-inside: avoid; }
.cat-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.cat-item h4 { font-size: 1.1rem; }
.cat-item .sku { font-size: 0.78rem; color: var(--primary); font-weight: 700; letter-spacing: 0.05em; }
.cat-item p { font-size: 0.9rem; color: var(--text-muted); margin: 6px 0; }
.cat-item ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.82rem; }
.cat-item li::before { content: '✓ '; color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}
@media (max-width: 900px) {
  .detail-grid, .split, .collection-block, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .collection-block:nth-child(even) .collection-media { order: 0; }
  .page-hero h1 { font-size: 2.1rem; }
  .cat-item { grid-template-columns: 140px 1fr; }
}
@media (max-width: 768px) {
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; background: transparent; }
  .nav-arrow { display: none; }
  .header-actions .btn-enquire { display: none; }
}
@media (max-width: 560px) {
  .pgrid, .steps, .stats-row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .cta-band { padding: 30px 24px; }
  .contact-card, .form-card { padding: 22px; }
  .cat-item { grid-template-columns: 1fr; }
}

/* ---- Print (catalogue → Save as PDF) ---- */
@media print {
  .site-header, .site-footer, .page-hero, .cat-controls, .floating-whatsapp, .toast-container, .cta-band { display: none !important; }
  .inner-page main { padding-top: 0; }
  .page-section { padding: 0; }
  .container { max-width: none; padding: 0; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cat-cover { page-break-after: always; }
}

/* Collapse the nav into the hamburger menu earlier than main.css does (768px) */
.nav-link { white-space: nowrap; }
@media (max-width: 1024px) {
  .nav-menu { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 16px; transform: translateX(-100%); transition: transform var(--transition-normal); overflow-y: auto; }
  .nav-menu.open { transform: translateX(0); }
  .mobile-toggle { display: flex; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; background: transparent; }
  .nav-arrow { display: none; }
  .header-actions .btn-enquire { display: none; }
}

/* backdrop-filter makes the header the containing block for the fixed mobile menu, collapsing it */
@media (max-width: 1024px) {
  .site-header, .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}

/* Home: the About block stayed two-column on phones and pushed the page wider than the screen */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { order: 0; }
  .section-title { font-size: 1.7rem; }
}

/* Portrait catalogue cover on the home banner */
.catalogue-img-preview { width: 112px; height: 153px; transform: perspective(600px) rotateY(-10deg); }

/* Page banners: keep the text side dark for contrast but let the photo show on the right */
.page-hero { background-position: center 65%; }
.page-hero::before { background: linear-gradient(90deg, rgba(11, 15, 23, 0.88) 0%, rgba(11, 15, 23, 0.6) 45%, rgba(11, 15, 23, 0.15) 100%); }

/* ---- Accessibility ---- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role='link']:focus-visible, .gallery-item:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px;
}
.hero-bg img { transition: opacity 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Contact map ---- */
.map-actions { margin-top: 18px; }
