/* ==========================================================================
   Ozcoast Logistics — Homepage closing CTA, "Particle Tide" treatment
   Self-contained & scoped to .tide-cta so it can never affect the plain
   .pre-footer-cta section still used on the other ~27 pages of the site -
   this is a homepage-only signature moment, not a site-wide component.
   Loads after css/style.css and reuses its design tokens (colors, fonts,
   button/radius scale) throughout, so this reads as an Ozcoast section
   with a shader in it, not a foreign template dropped onto the page.
   See js/particle-tide-cta.js for the shader itself.
   ========================================================================== */
.tide-cta {
  position: relative;
  isolation: isolate; /* keeps the shader (z-index 0) and content (z-index 10) from leaking into the page's stacking context */
  overflow: hidden;
  background: #064358; /* logo's dark navy ("--ocean" in hero2.css) - also the no-JS / WebGPU-unavailable fallback, matching the shader's own SolidColor base so there's no flash of a different colour while it loads */
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* Section rhythm: matches the site's standard .section padding (100px)
     rather than the old -80px footer-overlap hack, so there's clean,
     consistent breathing room above (freight routes) and below (footer)
     instead of the shader bleeding into either neighbour. */
  padding: clamp(88px, 13vw, 148px) 0;
}

.tide-cta-shaderbg { position: absolute; inset: 0; z-index: 0; }
.tide-cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.tide-cta-copy {
  position: relative;
  z-index: 10;
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  text-align: center;
}

.tide-cta-copy h2 {
  /* Explicit color + font-family, not inherited from .tide-cta: style.css's
     global h1-h6 rule sets both directly on the element, and an explicit
     rule on an element always beats an inherited value regardless of
     specificity (learned the hard way on the "our-network" page). Using
     the site's own heading token/weight (Outfit 800) instead of a foreign
     display serif keeps this feeling like an Ozcoast heading, just bigger. */
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.tide-cta-copy h2 .tide-accent { color: var(--accent); }

.tide-cta-copy p {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-white-muted);
  text-wrap: balance;
}

.tide-cta-buttons {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
@media (min-width: 560px) {
  .tide-cta-buttons { flex-direction: row; }
}

/* Buttons reuse the site's own .btn-accent / .btn-ghost visual language
   (same radius token, heading font, weight, padding, hover motion) as
   scoped classes rather than the shared classes themselves, so the other
   ~27 pages using .btn-accent/.btn-ghost are never touched by this file. */
.tide-cta-primary,
.tide-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  width: 100%;
}
@media (min-width: 560px) {
  .tide-cta-primary, .tide-cta-secondary { width: auto; }
}
.tide-cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-white);
  font-weight: 700;
}
.tide-cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.25);
}
.tide-cta-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tide-cta-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-white);
  font-weight: 600;
}
.tide-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.tide-cta-secondary:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 639px) {
  .tide-cta { padding: 72px 0; }
  .tide-cta-copy h2 { font-size: 2.15rem; line-height: 1.15; }
  .tide-cta-copy p { font-size: 1rem; margin-top: 14px; }
  .tide-cta-buttons { margin-top: 28px; }
}

/* ---------- load reveal ---------- */
.tide-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: tide-reveal-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes tide-reveal-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tide-reveal { animation: none; opacity: 1; transform: none; }
}
