/* Site developed and built by sitethreesixty.com */

/* ================= TRADE LANE — CRITICAL CSS =================
 * Everything needed for first paint above the fold on the 15
 * trade landing pages (hero -> service-also-trades -> booking-
 * showcase -> cta-section -> s360-faq -> explore-more).
 *
 * Built from the trade source (css/critical.css + global.css +
 * components/crg-banner.css), trimmed per TRADE-LANE-PLAN.md's
 * trim rule: coverage UNION interaction-states UNION media
 * queries UNION JS-toggled classes. Zero lines copied from Lane
 * A's home-critical.css / inner-critical.css.
 *
 * Colour: every raw value replaced with a css/tokens.css token
 * per BRIEF-LANE-B-T1-FOUNDATION.md's substitution table.
 * Transparency on TEXT removed entirely (full-strength token).
 * Transparency on backgrounds/borders/overlays/shadows kept,
 * expressed as color-mix().
 *
 * Load as: <link rel="stylesheet" href="trade/css/critical.css">
 * https://www.sitethreesixty.com
 * ================================================================ */

/* ========== THEME BASE ========== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--line-height-normal);
  color: var(--graphite);
  background-color: var(--chalk);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  color: var(--graphite);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-lg);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-xl);
  }
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--torch-deep);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--torch);
  outline-offset: 2px;
}

::selection {
  background-color: var(--torch-deep);
  color: var(--chalk);
}

/* ========== LAYOUT ========== */

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Section title — used above-fold in the booking-showcase section
   (inline-styled on the page, class supplies the base). */
.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--graphite);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

/* ========== NAVIGATION ========== */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--graphite);
  border-bottom: 1px solid var(--slate);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.logo-wrap {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 180px;
  pointer-events: none;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
}

.logo-text-teal {
  color: var(--torch-deep);
}

.logo-text-green {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

/* Desktop Navigation */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--chalk);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.nav-link:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-link-accent {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-link-accent:hover {
  color: var(--torch-deep);
}

/* CTA Button in Nav */
.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--torch-deep);
  color: var(--chalk);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-lg);
  transition: var(--transition-colors);
}

.nav-cta:hover {
  background: var(--torch-deepest);
  color: var(--chalk);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu — hidden by default, JS toggles .active */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--slate);
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-link {
  color: var(--chalk);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.mobile-link:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.mobile-link-accent {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.mobile-cta {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--torch-deep);
  color: var(--chalk);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 0.5rem;
}

/* Desktop Home Icon */
.nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--chalk);
  transition: var(--transition-colors);
}

.nav-home:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-home svg {
  stroke: currentColor;
}

/* Desktop Dropdown Menu — hidden by default, JS toggles .active */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--chalk);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: var(--transition-colors);
}

.nav-dropdown-btn:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-dropdown-btn svg {
  stroke: currentColor;
}

.nav-dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown.active .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 0.5rem 0;
  background: var(--chalk);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
}

.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--graphite);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: var(--transition-colors);
}

.nav-dropdown-link:hover {
  background: var(--chalk);
  color: var(--torch-deep);
}

.nav-dropdown-link-accent {
  color: var(--torch-deep);
}

.nav-dropdown-link-accent:hover {
  color: var(--torch-deepest);
}

/* Mobile Navigation Container */
.nav-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

.nav-home-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--chalk);
  transition: var(--transition-colors);
}

.nav-home-mobile:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-home-mobile svg {
  stroke: currentColor;
}

/* Login Icon Link */
.nav-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  color: var(--chalk);
  text-decoration: none;
  transition: var(--transition-colors);
}

.nav-login:hover {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.nav-login svg {
  stroke: currentColor;
}

.nav-login-text {
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Section Headers */
.mobile-section-header {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-light); /* muted label on the Graphite mobile drawer — dark ground */
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--slate);
}

.mobile-section-header:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* MODULE:START crg-banner
   360 Charter Rate Guarantee sticky banner. CRITICAL, not deferred —
   see BRIEF-LANE-B-T1-FOUNDATION.md "CORRECTION — crg-banner.css goes
   in critical.css" (TRADE-LANE-PLAN.md gate L16). Hidden by default
   (translateY(-100%)), sits directly under the fixed nav, JS reveals
   it on scroll via #crgBanner / .is-revealed / .is-hidden. Deferring
   this causes a layout shift on every trade page. */

.crg-banner {
  background: var(--torch-deep); /* CTA-style fill, chalk text on it */
  text-align: center;
  position: sticky;
  top: 60px;
  z-index: var(--z-crg-banner);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.crg-banner-link {
  display: block;
  padding: 0.375rem 1rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

.crg-banner-link:hover {
  text-decoration: underline;
}

.crg-banner-count {
  font-weight: var(--weight-bold);
}

.page-charter-rate .crg-banner {
  display: none;
}

.crg-banner.is-revealed {
  transform: none;
}

.crg-banner.is-hidden {
  transform: translateY(-100%);
}
/* MODULE:END crg-banner */

/* ========== HERO ========== */

.hero {
  background: var(--graphite);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  min-height: 50px;
}

@media (min-width: 768px) {
  .waves {
    height: 80px;
    min-height: 80px;
  }
}

.hero-grid {
  position: relative;
}

.hero-content {
  max-width: 42rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 6rem 0;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--chalk);
}

.hero-break {
  display: none;
}

@media (min-width: 1200px) {
  .hero-break {
    display: block;
  }
}

.hero-title em {
  font-style: italic;
  color: var(--torch);
}

.hero-title .hero-highlight {
  color: var(--torch);
  font-weight: 700;
  font-style: normal;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--chalk); /* was rgba(chalk, 0.9) — transparency on text removed */
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: var(--text-xl);
  font-weight: 600;
}

.proof-badges {
  display: flex;
}

.proof-badge {
  width: 2rem;
  height: 2rem;
  background: color-mix(in srgb, var(--torch) 70%, transparent);
  border: 2px solid var(--torch-deep);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-left: -0.5rem;
}

.proof-badge:first-child {
  margin-left: 0;
}

.proof-text {
  color: var(--torch-bright); /* dark-ground small text -> torch-bright, not torch */
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-disclaimer {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: var(--slate-light); /* was rgba(chalk, 0.5) — transparency on text removed, dark ground */
  max-width: 24rem;
  line-height: 1.4;
}

/* Hero Buttons - Critical for LCP */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-green {
  background: var(--torch-deep); /* CTA fill with text on it -> torch-deep, not torch (5.9:1 vs 3.6:1) */
  color: var(--chalk);
  border-color: var(--torch-deep);
  position: relative;
  overflow: hidden;
}

.btn-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--chalk) 25%, transparent), transparent);
  animation: btn-shimmer 2.8s 1.2s ease-in-out 1;
  pointer-events: none;
}

@keyframes btn-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.btn-green:hover {
  background: var(--torch-deepest);
  border-color: var(--torch-deepest);
  color: var(--chalk);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--torch) 35%, transparent);
}

.btn-green:hover::after {
  animation: none;
}

.btn-ghost {
  background: color-mix(in srgb, var(--chalk) 10%, transparent);
  color: var(--chalk);
  border-color: color-mix(in srgb, var(--chalk) 20%, transparent);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--chalk) 20%, transparent);
  color: var(--chalk);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--chalk) 10%, transparent);
}

/* Above-fold reveal - Prevent flash of invisible content */
.hero .reveal-fade-up {
  opacity: 1;
  transform: none;
}

/* Wave Animation */
.waves use:nth-child(1) {
  animation: moveWaveRight 48s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -2s;
}

.waves use:nth-child(2) {
  animation: moveWaveLeft 68s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -3s;
}

.waves use:nth-child(3) {
  animation: moveWaveRight 88s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -4s;
}

.waves use:nth-child(4) {
  animation: moveWaveLeft 136s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  animation-delay: -5s;
}

@keyframes moveWaveRight {
  0% {
    transform: translateX(-90px);
  }
  100% {
    transform: translateX(85px);
  }
}

@keyframes moveWaveLeft {
  0% {
    transform: translateX(85px);
  }
  100% {
    transform: translateX(-90px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .waves use {
    animation: none;
  }
}

/* Service Landing Pages — narrower centered hero (all 15 trade pages
   carry body class page-service) */
.page-service .hero {
  min-height: auto;
}

.page-service .hero .container {
  text-align: center;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

@media (min-width: 768px) {
  .page-service .hero .container {
    padding: 5rem 1rem 7rem;
  }
}

/* Locale content switching — prevent FOUC (US/UK article variants) */
.locale-content-us { display: none; }
.locale-us .locale-content-uk { display: none; }
.locale-us .locale-content-us { display: block; }
span.locale-content-us { display: none; }
.locale-us span.locale-content-uk { display: none; }
.locale-us span.locale-content-us { display: inline; }

/* Speed Test Button — used in the inline CTA within the article body */
.btn-speed {
  position: relative;
  background: var(--torch-deep); /* CTA fill with text on it -> torch-deep, not torch (5.9:1 vs 3.6:1) */
  color: var(--chalk);
  border-color: transparent;
  font-weight: 700;
  overflow: hidden;
  z-index: 0;
}

.btn-speed:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--torch-deepest);
  color: var(--chalk);
}

.btn-speed::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(transparent 70%, var(--chalk) 100%);
  animation: spin-border 1.5s 2s linear infinite, chase-fade-in 0.6s 2s forwards;
  opacity: 0;
  z-index: -2;
  pointer-events: none;
}

.btn-speed::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--torch-deep);
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s;
}

.btn-speed:hover::after {
  background: var(--torch-deepest);
}

@keyframes spin-border {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes chase-fade-in {
  to { opacity: 1; }
}

/* Skip Link — WCAG 2.1 Level A. Visible on focus, so its colours
   are critical, not deferred. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: var(--z-skip-link);
  padding: 0.75rem 1.5rem;
  background: var(--torch-deep);
  color: var(--chalk);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  z-index: var(--z-skip-link);
}

/* Prevent modal flash before deferred service.css loads
   (booking-showcase modal + any other .info-modal instance) */
.info-modal {
  opacity: 0;
  visibility: hidden;
}

/* https://sitethreesixty.com */
