/* ==========================================================================
   BlueSphere Exports — site stylesheet
   Palette: cream #F5F2EB · deep teal #0A2E3B · teal #10707A · ink #0E1E24
   ========================================================================== */

:root {
  --cream: #F5F2EB;
  --cream-alt: #EDEAE1;
  --img-bg: #E8E3D8;
  --ink: #0E1E24;
  --deep: #0A2E3B;
  --deeper: #062028;
  --teal: #10707A;
  --teal-bright: #2E9BA6;
  --muted: #3A4C53;
  --faint: #7C8D92;
  --light: #EDF1EF;
  --light-muted: #C3D3D4;
  --accent-light: #8FBFC4;
  --green-dot: #6FCF97;
  --hairline: rgba(14, 30, 36, 0.12);
  --hairline-strong: rgba(14, 30, 36, 0.22);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --pad-x: clamp(18px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--deep); }

img { max-width: 100%; display: block; }

::selection { background: #C9DED8; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.overflow-guard { max-width: 100%; overflow-x: hidden; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--deep);
  color: var(--light);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--light); }

a:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Shared type helpers */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(31px, 5.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .bar {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2E9BA6 0%, #10707A 45%, #0A2E3B 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  display: block;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-loc {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5E7078;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 2.4vw, 28px);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.site-nav > a { color: var(--muted); white-space: nowrap; }
.site-nav > a:hover { color: var(--deep); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--deep);
  color: var(--cream) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto;
}
.nav-cta:hover { background: var(--teal); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dot);
  display: block;
  flex: none;
}

@media (max-width: 780px) {
  .site-nav { flex: 1 1 100%; justify-content: flex-start; gap: 10px 16px; font-size: 13px; }
  .brand-loc { font-size: 9px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,46,59,0.96) 0%, rgba(10,46,59,0.86) 48%, rgba(10,46,59,0.42) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: clamp(80px, 12vw, 132px);
  padding-bottom: clamp(68px, 10vw, 108px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-light);
  display: block;
  flex: none;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 7.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 26px 0 0;
  max-width: 19ch;
  text-wrap: pretty;
}

.hero-sub {
  font-size: clamp(15.5px, 2.1vw, 18.5px);
  line-height: 1.6;
  color: var(--light-muted);
  max-width: 52ch;
  margin: 26px 0 0;
  font-weight: 300;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Buttons */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--deep);
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.btn-solid:hover { background: var(--teal-bright); color: var(--deeper); }

.btn-solid .arrow {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(237, 241, 239, 0.34);
  color: var(--light);
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
}
.btn-outline:hover {
  border-color: var(--light);
  background: rgba(237, 241, 239, 0.08);
  color: var(--light);
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.marquee {
  background: var(--ink);
  color: #9FB4B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: bsdrift 42s linear infinite;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee-group {
  display: flex;
  gap: 52px;
  padding: 14px 26px;
}

.marquee-group .sep { color: #3E5257; }

@keyframes bsdrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Products
   ========================================================================== */
.products {
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: 24px;
}

.products-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(14, 30, 36, 0.14);
}

.products-head p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  min-width: 0;
  margin-top: 1px;
}

/* Fixed column counts with fill-the-row rules for the enquiry card, so a
   partly-filled last row never leaves a dead gap, whatever the product count. */
@media (min-width: 660px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* odd position = lands in column 1; stretch across both columns */
  .product-grid > .enquiry-card:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1020px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid > .enquiry-card:nth-child(odd) { grid-column: auto; }
  /* 3n+1 lands in column 1 → span all three; 3n+2 lands in column 2 → span two */
  .product-grid > .enquiry-card:nth-child(3n+1) { grid-column: 1 / -1; }
  .product-grid > .enquiry-card:nth-child(3n+2) { grid-column: 2 / -1; }
}

.product-card {
  background: var(--cream);
  box-shadow: 0 0 0 0.5px var(--hairline-strong);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px) 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.card-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--deep);
  color: var(--light);
  padding: 5px 11px;
  border-radius: 999px;
}

.card-tag--alt { background: var(--teal); }

.card-media {
  height: 180px;
  background: var(--img-bg);
  border-radius: 8px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

.card-sub { font-size: 13.5px; color: var(--faint); margin-top: 4px; }

.product-card > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.spec {
  margin: auto 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
  font-size: 13px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.spec dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  align-self: center;
}

.spec dd { margin: 0; color: var(--ink); }

.enquiry-card {
  background: var(--deep);
  color: var(--light);
  box-shadow: 0 0 0 0.5px var(--hairline-strong);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.enquiry-card h3,
.enquiry-card p { max-width: 52ch; }

.enquiry-card .eyebrow { color: var(--accent-light); }

.enquiry-card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  text-wrap: pretty;
}

.enquiry-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--light-muted);
  margin: 16px 0 0;
  text-wrap: pretty;
}

.enquiry-card .btn-solid {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  font-size: 14.5px;
}

.enquiry-card .btn-solid .arrow { font-size: inherit; opacity: 1; }

/* ==========================================================================
   Quality
   ========================================================================== */
.quality {
  background: var(--cream-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 96px;
}

.quality .wrap {
  padding-top: clamp(60px, 9vw, 96px);
  padding-bottom: clamp(60px, 9vw, 96px);
}

.quality h2 { max-width: 24ch; }

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 52px 44px;
  margin-top: 64px;
}

.quality-item { display: flex; flex-direction: column; gap: 12px; }

.quality-num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--teal);
}

.quality-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}

.quality-item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================================
   Logistics
   ========================================================================== */
.logistics {
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(64px, 9vw, 104px);
}

.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.logistics h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.logistics-intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 24px 0 0;
  text-wrap: pretty;
}

.logistics-media {
  margin-top: 34px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--img-bg);
}

.logistics-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps { border-top: 1px solid rgba(14, 30, 36, 0.16); }

.step {
  display: flex;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  min-width: 52px;
  padding-top: 3px;
  flex: none;
}

.step h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 0;
  text-wrap: pretty;
}

.term-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.term-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(14, 30, 36, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--deep);
  color: var(--light);
}

.contact .wrap {
  padding-top: clamp(64px, 9vw, 100px);
  padding-bottom: clamp(64px, 9vw, 100px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact .eyebrow { color: var(--accent-light); }

.contact h2 { max-width: 20ch; }

.contact-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--light-muted);
  margin: 22px 0 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.contact-cards {
  display: grid;
  gap: 1px;
  background: rgba(237, 241, 239, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.contact-card {
  background: var(--deep);
  padding: 24px clamp(20px, 3vw, 28px);
}

.contact-card .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.contact-card .value {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 10px;
  color: var(--light);
  display: block;
}

.contact-card a.value:hover { color: var(--accent-light); }

.contact-card .value.mono {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.contact-card .value.break { word-break: break-all; }

.contact-card address { font-style: normal; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--faint);
  /* extra bottom padding keeps the last row clear of the floating WhatsApp button */
  padding: 28px var(--pad-x) 96px;
}

.site-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #2E9BA6 0%, #10707A 45%, #0A2E3B 100%);
  display: block;
  flex: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: flex-end;
  font-size: 10.5px;
}

.footer-meta .tagline {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta .footer-link {
  color: var(--accent-light);
  font-size: 11.5px;
}
.footer-meta .footer-link:hover { color: var(--light); }

.footer-meta .credit {
  color: #4E6167;
  max-width: 44ch;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1240px;
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-bottom p { margin: 0; }

.footer-bottom .copyright { color: var(--faint); }

.dev-credit { color: #5E7078; }

.dev-credit a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-light);
  font-weight: 500;
  vertical-align: middle;
}

.dev-credit a:hover { color: var(--light); }

.dev-credit svg { display: inline-block; flex: none; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-page {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(64px, 9vw, 104px);
  max-width: 760px;
}

.legal-page h1 { font-size: clamp(34px, 5.5vw, 52px); }

.legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin: 18px 0 0;
}

.legal-page h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 42px 0 0;
}

.legal-page p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
  text-wrap: pretty;
}

/* ==========================================================================
   Floating CTA
   ========================================================================== */
.floating-cta {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--cream);
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(10, 46, 59, 0.35);
}
.floating-cta:hover { background: var(--deep); color: var(--cream); }

.floating-cta .dot { width: 7px; height: 7px; }
