/* ============================================================
   CARIBBEAN CHEMICALS GUYANA — MAIN STYLESHEET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Shared design tokens (colors, fonts, spacing) live in theme.css,
   loaded before this file. */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
  overflow-x: hidden;
}

::selection {
  background: var(--blue-mid);
  color: #fff;
}

.container,
.site-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── UTILITIES ── */
.section {
  padding: var(--section-padding) 0;
}
.bg-light {
  background: var(--off-white);
}
.bg-blue {
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue-mid) 100%);
}
.mt-1 {
  margin-top: 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

/* Section headings: one shared style, two colours.
   .section-heading (navy) for light backgrounds,
   .section-heading-white for dark backgrounds or imagery. */
.section-heading,
.section-heading-white {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.section-heading {
  color: var(--navy);
}
.section-heading-white {
  color: var(--white);
}

.section-sub {
  color: var(--text);
  max-width: 520px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--block-gap);
}
.section-header.light .section-label {
  color: var(--white);
}
.section-header.light {
  color: rgba(255, 255, 255, 0.8);
}
.section-header.light .section-sub {
  color: rgba(255, 255, 255, 0.65);
}

.section-cta {
  text-align: center;
  margin-top: var(--block-gap);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Arrow added to every button by script.js; turns diagonal on hover */
.btn-arrow {
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 0.3rem;
  border-radius: 50%;
  font-size: 1rem;
  background: var(--white);
  color: var(--navy);
  transition: transform 0.25s ease;
}
.btn:has(> .btn-arrow) {
  padding-right: 0.3rem;
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: rotate(-45deg);
}
/* Buttons that turn white or sit on white get a navy circle instead */
.btn-light .btn-arrow,
.btn-outline:hover .btn-arrow {
  background: var(--navy);
  color: var(--white);
}
.btn-light:hover .btn-arrow {
  background: var(--white);
  color: var(--navy);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 18px rgba(44, 60, 137, 0.38);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 8px 32px rgba(24, 37, 102, 0.48);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 18px rgba(24, 37, 102, 0.32);
}
.btn-navy:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(24, 37, 102, 0.48);
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition:
    gap var(--transition),
    color var(--transition);
}
.text-link:hover {
  color: var(--navy);
  gap: 0.7rem;
}

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s var(--ease-out),
    visibility 0.5s;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  height: 70px;
  object-fit: contain;
  margin-bottom: 2.2rem;
  animation: loaderLogoIn 0.65s var(--ease-out) both;
}
@keyframes loaderLogoIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loader-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 2px;
  animation: loaderProgress 0.9s var(--ease-out) 0.1s forwards;
}
@keyframes loaderProgress {
  to {
    width: 100%;
  }
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9998;
}
.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-mid), var(--green-light));
  transition: width 0.1s linear;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  padding: 7px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.top-bar-phone,
.top-bar-hours {
  display: flex;
  align-items: center;
  gap: 7px;
}
.top-bar-phone ion-icon,
.top-bar-hours ion-icon {
  font-size: 14px;
}
.top-bar-social {
  display: flex;
  gap: 14px;
}
.top-bar-social ion-icon {
  font-size: 1rem
}
.top-bar-social a {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.top-bar-social a:hover {
  color: var(--white);
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 36px rgba(24, 37, 102, 0.13);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  height: 80px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
.hamburger {
  flex-shrink: 0;
}

/* The wide logo plus the menu button must fit on phones */
@media (max-width: 768px) {
  .logo-icon {
    height: 56px;
  }
}
@media (max-width: 400px) {
  .logo-icon {
    height: 46px;
  }
}

/* ── NAV ── */
.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-link ion-icon {
  font-size: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0.5rem 0.88rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  position: relative;
  transition:
    color var(--transition),
    background var(--transition);
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.nav-link.active {
  color: var(--blue);
}

.nav-link.nav-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}

.nav-link.nav-cta:hover {
  background: var(--blue);
  color: var(--white);
}

.has-dropdown {
  position: relative;
}
.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 8px;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 182px;
  z-index: 300;
  overflow: hidden;
  animation: dropdownIn 0.22s var(--ease-out);
}
@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.62rem 1.1rem;
  font-size: 0.83rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition:
    background var(--transition),
    color var(--transition),
    padding-left var(--transition);
}
.dropdown li a:hover {
  background: var(--blue-pale);
  color: var(--blue);
  padding-left: 1.6rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* ── HERO ── */
.hero {
  --header-h: 126px; /* top bar + header that sit above the hero */
  position: relative;
  /* Always exactly one screen (header + hero = 100vh) on every screen size */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* The video is stretched to the hero's exact size (object-fit: fill) so the
   whole frame always shows; the height squeezes to fit instead of cropping. */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  will-change: transform;
}

/* On portrait screens stretching a 16:9 video would warp the flag badly,
   so fall back to cropping there. */
@media (max-aspect-ratio: 1/1) {
  .hero-video {
    object-fit: cover;
    object-position: center top;
  }
}
@media (max-width: 768px) {
  .hero {
    --header-h: 120px;
  }
}

/* Animated film grain */
.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-4%, -8%);
  }
  20% {
    transform: translate(-12%, 4%);
  }
  30% {
    transform: translate(6%, -20%);
  }
  40% {
    transform: translate(-4%, 20%);
  }
  50% {
    transform: translate(-12%, 8%);
  }
  60% {
    transform: translate(12%, 0);
  }
  70% {
    transform: translate(0, 12%);
  }
  80% {
    transform: translate(3%, 28%);
  }
  90% {
    transform: translate(-8%, 8%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(8, 15, 72, 0.45) 0%,
      rgba(8, 15, 72, 0) 55%
    ),
    linear-gradient(
    108deg,
    rgba(8, 15, 72, 0.425) 0%,
    rgba(18, 30, 96, 0.308) 50%,
    rgba(8, 15, 72, 0.11) 100%
  );
  z-index: 2;
}

.hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8rem clamp(1.25rem, 4.2vw, 5rem) 0;
}

/* Hero entrance — triggered by body.page-loaded */
.hero-eyebrow,
.hero-heading,
.hero-btns {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
body.page-loaded .hero-eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}
body.page-loaded .hero-heading {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
body.page-loaded .hero-btns {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-light);
  margin-bottom: 1.1rem;
}

.hero-heading {
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(3rem, 4vw, 8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: clamp(1rem, 2.2vw, 2.6rem);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-scroll {
  position: absolute;
  bottom: 4.5rem;
  right: clamp(1.25rem, 4.2vw, 5rem);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.page-loaded .hero-scroll {
  opacity: 1;
  transition-delay: 1.1s;
}

.hero-scroll span {
  display: block;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 13px;
  position: relative;
}
.hero-scroll span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 9px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 26px;
    opacity: 0;
  }
}

/* ── DIAGONAL SECTION CUTS ── */
.angled-bottom {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), 0 100%);
  padding-bottom: calc(96px + 54px);
  margin-bottom: -54px;
  z-index: 1;
}

.angled-top {
  position: relative;
  clip-path: polygon(0 54px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(96px + 54px);
  margin-top: -54px;
  z-index: 1;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--navy);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ticker {
  display: flex;
  width: max-content;
  animation: tickerRoll 30s linear infinite;
}
.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  white-space: nowrap;
  padding: 0 2.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker-item::before {
  content: "◆";
  margin-right: 2.5rem;
  color: var(--green);
  font-size: 0.48rem;
  vertical-align: middle;
}
@keyframes tickerRoll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── BRAND STRIP ── */
.brand-strip {
  background: var(--off-white);
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brandRoll 28s linear infinite;
}
.brand-track:hover {
  animation-play-state: paused;
}
@keyframes brandRoll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 150px;
  height: 56px;
  margin: 0 2rem;
}
.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.brand-item:hover img {
  opacity: 1;
}

.brand-name {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--blue-pale);
  border-radius: var(--radius);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.brand-item:hover .brand-name {
  opacity: 1;
}

/* ── SCROLL REVEAL ── */
.reveal-child {
  opacity: 0;
  transform: translateY(54px);
  transition:
    opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
    transform 0.8s var(--ease-out) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── AT A GLANCE ── */
.glance {
  background:
    radial-gradient(
      ellipse at 88% 12%,
      rgba(44, 60, 137, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 12% 88%,
      rgba(44, 60, 137, 0.05) 0%,
      transparent 50%
    ),
    var(--white);
}
.glance-banner {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--block-gap);
}
.glance-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.glance-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 37, 102, 0.45) 0%,
    rgba(24, 37, 102, 0.25) 45%,
    rgba(24, 37, 102, 0.55) 100%
  );
}
.glance-banner-content {
  position: relative;
  z-index: 1;
}
.glance-banner-content.section-header {
  margin-bottom: 0;
}

.glance-body {
  max-width: 800px;
  margin: 0 auto var(--block-gap);
  text-align: center;
}
.glance-sub {
  max-width: 800px;
  width: 100%;
  margin-bottom: 0;
}

.glance-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.glance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  aspect-ratio: 1 / 1;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--surface-alt);
  transition: transform 0.5s var(--ease-out);
}
.glance-card:hover {
  transform: translateY(-6px);
}
.glance-card-accent {
  background: var(--yellow-light);
}
.glance-card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background var(--transition);
}
.glance-card-arrow:hover,
.glance-card-arrow:focus-visible {
  background: var(--blue-light);
}
.glance-card-arrow ion-icon {
  transform: rotate(-45deg);
  transition: transform var(--transition);
}
.glance-card-arrow:hover ion-icon,
.glance-card-arrow:focus-visible ion-icon {
  transform: rotate(0deg);
}
.glance-card-figure {
  display: block;
  padding-right: 2.75rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.glance-card-copy {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.glance-card-accent .glance-card-copy {
  color: var(--navy);
}
.glance-card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}
.glance-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.glance-card-photo:hover img {
  transform: scale(1.05);
}

.glance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: var(--block-gap);
  padding-top: var(--block-gap);
  border-top: 1px solid var(--border);
}
.glance-stat {
  text-align: center;
}
.glance-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.glance-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── OUR APPROACH ── */
.product-dev {
  background: var(--white);
}
.product-dev-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-dev-text p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.product-dev-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product-dev-img-main,
.product-dev-img-secondary {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.6s var(--ease-out);
}
.product-dev-img-secondary {
  margin-top: 3.5rem;
}
.product-dev-img-main:hover,
.product-dev-img-secondary:hover {
  transform: scale(1.02);
}

/* ── OUR PROCESS ── */
.process {
  background: var(--navy);
}
.process-head {
  display: grid;
  /* same columns and gap as .process-body so the intro lines up with the steps */
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: var(--block-gap);
}
.process-head .section-heading-white {
  margin-bottom: 0;
}
.process-head-sub {
  justify-self: start;
  max-width: 360px;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.process-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.process-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.process-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 20px;
}
.process-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.process-photo:hover img {
  transform: scale(1.05);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.process-step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: 1.25rem;
  align-items: start;
}
.process-step-num {
  grid-row: 1 / span 2;
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 7vw, 4.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow-light);
}
.process-step-title {
  grid-column: 2;
  margin: 0.35rem 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}
.process-step-copy {
  grid-column: 2;
  max-width: 360px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.dev-journey-cta-text {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.dev-journey-cta-link {
  font-size: 1rem;
}

/* ── GUIDES ── */

#guides {
  padding-top: 0;
  margin-top: 4rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}
.guide-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.guide-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
}
.guide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.guide-card:hover .guide-img img {
  transform: scale(1.1);
}

.guide-card h3 {
  padding: 0.9rem 0.85rem 0.35rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.guide-link {
  display: inline-block;
  padding: 0 1rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.guide-link:hover {
  color: var(--navy);
}

/* ── PRODUCTS (featured) ── */
.products {
  background: var(--navy);
}
.products-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: var(--block-gap);
}
.products-head .section-heading-white {
  margin-bottom: 0;
}
.products-head-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 400px;
  justify-self: end;
  padding-bottom: 0.4rem;
}
.products-head-link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--white);
  padding-bottom: 2px;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  transition: opacity var(--transition);
}
.products-head-link:hover {
  opacity: 0.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--blue);
  border-radius: 24px;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
}

.product-tag {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-name {
  margin: 0.9rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-img {
  position: relative;
  flex: none;
  width: calc(100% + 1.5rem);
  aspect-ratio: 1 / 1;
  margin: auto -0.75rem;
}
.product-img img {
  position: absolute;
  inset: 0.5rem 0;
  width: 100%;
  height: calc(100% - 1rem);
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
}
.product-link ion-icon {
  flex-shrink: 0;
  max-width: 0;
  margin-left: 0;
  font-size: 1.1rem;
  opacity: 0;
  overflow: hidden;
  transition:
    max-width var(--transition),
    margin-left var(--transition),
    opacity var(--transition);
}
.product-link:hover {
  background: var(--white);
  color: var(--navy);
}
.product-link:hover ion-icon {
  max-width: 1.2rem;
  margin-left: 0.5rem;
  opacity: 1;
}
.product-desc {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── TESTIMONIALS (rotating carousel) ── */
.t-carousel {
  --aw: clamp(520px, 66vw, 860px);
}
.t-stage {
  position: relative;
  height: 460px;
  max-width: 100%;
}
.t-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  transform: translate(-50%, -50%);
  transition:
    left 0.7s var(--ease-out),
    width 0.7s var(--ease-out),
    height 0.7s var(--ease-out),
    opacity 0.5s ease,
    box-shadow 0.5s ease;
}
.t-slide[data-o="0"] {
  z-index: 3;
  width: var(--aw);
  height: 420px;
  border: 1px solid var(--border);
  box-shadow:
    0 28px 70px rgba(24, 37, 102, 0.22),
    0 6px 18px rgba(24, 37, 102, 0.1);
}
.t-slide[data-o="1"],
.t-slide[data-o="-1"] {
  z-index: 2;
  width: 100px;
  height: 160px;
  box-shadow: 0 12px 30px rgba(24, 37, 102, 0.2);
  cursor: pointer;
}
.t-slide[data-o="2"],
.t-slide[data-o="-2"] {
  z-index: 1;
  width: 70px;
  height: 112px;
  opacity: 0.75;
  box-shadow: 0 8px 20px rgba(24, 37, 102, 0.18);
  cursor: pointer;
}
.t-slide[data-o="1"] {
  left: calc(50% + var(--aw) / 2 + 60px);
}
.t-slide[data-o="-1"] {
  left: calc(50% - var(--aw) / 2 - 60px);
}
.t-slide[data-o="2"] {
  left: calc(50% + var(--aw) / 2 + 150px);
}
.t-slide[data-o="-2"] {
  left: calc(50% - var(--aw) / 2 - 150px);
}
.t-slide[data-o="hidden"] {
  width: 70px;
  height: 112px;
  opacity: 0;
  pointer-events: none;
}
.t-slide[data-o="1"]:hover,
.t-slide[data-o="-1"]:hover {
  box-shadow: var(--shadow-lg);
}

.t-slide-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  transition: width 0.7s var(--ease-out);
}
.t-slide[data-o="0"] .t-slide-photo {
  width: 42%;
  padding: 0.75rem 0.75rem 0.75rem 0;
}
.t-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t-slide[data-o="0"] .t-slide-photo img {
  border-radius: 16px;
}

.t-slide-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.t-slide[data-o="0"] .t-slide-text {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s ease 0.3s;
}
.t-slide-text blockquote {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: normal;
  color: var(--text);
}
.t-slide-text .testimonial-author strong {
  display: block;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.t-slide-text .testimonial-author span {
  display: block;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}
.t-btn:hover,
.t-btn:focus-visible {
  background: var(--blue-light);
}
.t-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.t-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition:
    width var(--transition),
    background var(--transition);
}
.t-dot.is-active {
  width: 1.75rem;
  background: var(--navy);
}

@media (max-width: 768px) {
  .t-stage {
    height: auto;
  }
  .t-slide[data-o] {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
    opacity: 1;
    display: none;
    cursor: default;
  }
  .t-slide[data-o="0"] {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .t-slide[data-o="0"] .t-slide-photo {
    position: relative;
    order: -1;
    width: 100%;
    height: 240px;
    padding: 0.75rem 0.75rem 0;
  }
  .t-slide[data-o="0"] .t-slide-text {
    position: relative;
    width: 100%;
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .t-slide,
  .t-slide-photo,
  .t-slide-text {
    transition: none;
  }
}

/* ── FOOTER ── */
.footer {
  background: #0b1228;
  color: rgba(255, 255, 255, 0.62);
}
.footer-top {
  padding: 68px 0 48px;
}
.footer-top-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.55rem;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  transition:
    color var(--transition),
    padding-left var(--transition);
}
.footer-col ul li a:hover {
  color: var(--green-light);
  padding-left: 5px;
}

.footer-brand .footer-logo {
  margin-bottom: 1.2rem;
}
.footer-logo-img {
  height: 54px;
  object-fit: contain;
  opacity: 0.88;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-contact-info p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 0.65rem;
}
.footer-contact-info svg,
.footer-contact-info ion-icon {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 14px;
}
.footer-social ion-icon {
  font-size: 18px;
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-whatsapp-link:hover {
  color: var(--green-light);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.newsletter-form input {
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition);
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.newsletter-form input:focus {
  border-color: var(--blue-light);
  background: rgba(255, 255, 255, 0.1);
}
.footer-newsletter p {
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.4rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.32);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--green-light);
}

/* ── TEAM / DISTRIBUTOR TABLES (shared by Team + Distributors pages) ── */
.team-table-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.team-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.team-table th,
.team-table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.team-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.team-table tbody tr:hover {
  background: var(--blue-pale);
}

.team-table td {
  color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .guides-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --block-gap: var(--block-gap-mobile);
  }

  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: var(--white);
    z-index: 199;
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
  }
  .nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    padding: 0.8rem 0.5rem;
    font-size: 0.92rem;
  }
  .nav-link::after {
    display: none;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--blue-light);
    border-radius: 0;
    margin-left: 1rem;
    animation: none;
  }
  .has-dropdown .dropdown {
    display: none;
  }
  .has-dropdown.open .dropdown {
    display: block;
  }

  .hamburger {
    display: flex;
  }

  .product-dev-inner,
  .process-head,
  .process-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-head {
    gap: 1rem;
  }
  .process-head-sub {
    justify-self: start;
  }
  .glance-banner {
    height: 260px;
  }
  .glance-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
  }
  .top-bar-phone,
  .top-bar-hours {
    display: none;
  }

  .angled-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
    padding-bottom: calc(64px + 32px);
    margin-bottom: -32px;
  }

  .angled-top {
    clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(64px + 32px);
    margin-top: -32px;
  }
}

@media (max-width: 580px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .products-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .products-head-sub {
    justify-self: start;
    padding-bottom: 0;
  }
  .products-head-link {
    justify-self: start;
    margin-bottom: 0;
  }
}


.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover {
  background: transparent;
  color: var(--white);
}

@media (max-width: 580px) {
  .hero .hero-content {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  .hero-scroll {
    display: none;
  }
}

/* Hero: keep the text block close to the bottom edge, like the reference */
.hero.angled-bottom {
  padding-bottom: calc(54px + clamp(2rem, 4.2vw, 5rem));
}
@media (max-width: 768px) {
  .hero.angled-bottom {
    padding-bottom: calc(32px + clamp(2rem, 4.2vw, 5rem));
  }
}

@media (max-width: 1000px) {
  .glance-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .glance-card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 560px) {
  .glance-cards {
    grid-template-columns: 1fr;
  }
  .glance-card:last-child {
    grid-column: auto;
    aspect-ratio: 1 / 1;
  }
}
