/* ========================================
   SASKATOON BANKING LTD.
   Master Stylesheet — Retro Analog Mood
   ======================================== */

/* --- CSS VARIABLES --- */
:root {
  /* Palette */
  --color-primary: #2C3E50;
  --color-secondary: #16A085;
  --color-accent: #E67E22;
  --color-bg: #F4F6F7;
  --color-surface: #FFFFFF;
  --color-text: #1A252F;
  --color-text-light: #5D6D7E;

  /* Derived */
  --color-primary-rgb: 44, 62, 80;
  --color-secondary-rgb: 22, 160, 133;
  --color-accent-rgb: 230, 126, 34;
  --color-primary-dark: #1a2a38;
  --color-primary-light: rgba(44, 62, 80, 0.06);
  --color-secondary-light: rgba(22, 160, 133, 0.08);
  --color-accent-light: rgba(230, 126, 34, 0.1);
  --color-bg-tint: #edf0f2;
  --color-warm-shadow: rgba(62, 45, 30, 0.12);

  /* Typography */
  --font-heading: Rockwell, 'Courier Bold', 'Courier New', serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --section-padding: 60px;
  --grid-gap: 20px;
  --container-max: 1100px;
  --container-narrow: 720px;
  --container-prose: 800px;

  /* Border Radius — Retro Analog interpretation of Pill */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-section: 12px;

  /* Shadows — Colored */
  --shadow-card: 0 4px 20px rgba(44, 62, 80, 0.15);
  --shadow-card-hover: 0 8px 32px rgba(44, 62, 80, 0.22);
  --shadow-button: 0 3px 12px rgba(44, 62, 80, 0.18);
  --shadow-nav: 0 2px 12px rgba(44, 62, 80, 0.1);

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- DIAGONAL STRIPE TEXTURE OVERLAY --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(26, 37, 47, 0.018) 15px,
    rgba(26, 37, 47, 0.018) 16px
  );
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 10001;
  transition: width 0.1s linear;
  opacity: 0;
}

#scroll-progress.visible {
  opacity: 1;
}

#scroll-progress.pulse {
  animation: progressPulse 0.6s ease;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- PAGE TRANSITION OVERLAY --- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#page-transition.hidden {
  opacity: 0;
}

#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* --- TYPOGRAPHY SCALE (Monospace Technical) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; /* changed from 600 to 700 per heading style spec */
  color: var(--color-primary);
}

h3 {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h4 {
  font-size: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1rem;
  max-width: 72ch;
}

small,
.caption,
.label-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

strong {
  font-weight: 700;
}

/* --- ACCENT UNDERLINE HEADINGS --- */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 0.75rem;
  border-radius: 2px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.left h2 {
  text-align: left;
}

.section-heading.left h2::after {
  margin-left: 0;
}

/* Decorative accent bar (alternate usage) */
.accent-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* --- UTILITY BAR (Top Row Navigation) --- */
.utility-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.utility-bar.hidden {
  transform: translateY(-100%);
}

.utility-bar a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  transition: color var(--transition-base);
}

.utility-bar a:hover {
  color: #fff;
}

.utility-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.utility-left span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.utility-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.utility-right a {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

/* --- MAIN NAVIGATION (Second Row) --- */
.main-nav {
  background: var(--color-surface);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-nav);
  transition: box-shadow var(--transition-base);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav-login-btn {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-pill);
  color: var(--color-secondary) !important;
  transition: all var(--transition-base);
}

.nav-login-btn:hover {
  background: var(--color-secondary);
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- HERO — STACKED FULL-BLEED BANDS --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-band-top {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
}

.hero-band-top .label-mono {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.hero-band-middle {
  background: var(--color-surface);
  padding: 4rem 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: radial-gradient(ellipse at center top, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 60%);
}

.hero-band-middle h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: var(--container-narrow);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.hero-subtitle {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-band-bottom {
  background: var(--color-secondary);
  color: #fff;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.hero-band-bottom a {
  color: #fff;
  text-decoration: underline;
}

/* Geometric decoration — hero */
.hero-band-middle::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(var(--color-accent-rgb), 0.1);
  border-radius: 50%;
  top: 10%;
  right: 8%;
  pointer-events: none;
  z-index: 0;
}

.hero-band-middle::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.08);
  transform: rotate(45deg);
  bottom: 15%;
  left: 5%;
  pointer-events: none;
  z-index: 0;
}

/* Hexagonal motif (geometric precision) */
.hero-band-middle .hero-inner {
  position: relative;
  z-index: 1;
}

/* --- SIMPLE HERO (for legal/login pages) --- */
.hero-simple {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-simple h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-simple p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto;
}

/* --- SECTION STYLES --- */
.section {
  padding: var(--section-padding) 2rem;
  position: relative;
}

.section--white {
  background: var(--color-surface);
}

.section--tint {
  background: var(--color-bg-tint);
}

.section--primary {
  background: var(--color-primary);
  color: #fff;
}

.section--primary h2 {
  color: #fff;
}

.section--primary h2::after {
  background: var(--color-accent);
}

.section--primary p {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark {
  background: var(--color-primary-dark);
  color: #fff;
}

.section--dark h2 {
  color: #fff;
}

.section--dark h2::after {
  background: var(--color-accent);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--prose {
  max-width: var(--container-prose);
}

/* Geometric precision — subtle triangle tessellation background */
.section--tint {
  background-image:
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 40px,
      rgba(var(--color-primary-rgb), 0.02) 40px,
      rgba(var(--color-primary-rgb), 0.02) 41px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent,
      transparent 40px,
      rgba(var(--color-primary-rgb), 0.02) 40px,
      rgba(var(--color-primary-rgb), 0.02) 41px
    );
  background-color: var(--color-bg-tint);
}

/* Geometric shapes on sections */
.section--decorated {
  overflow: hidden;
}

.section--decorated::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(var(--color-accent-rgb), 0.08);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  pointer-events: none;
  z-index: 0;
}

.section--decorated::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(var(--color-primary-rgb), 0.06);
  transform: rotate(45deg);
  bottom: 12%;
  left: 4%;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* --- ZIGZAG TRIANGLE DIVIDERS --- */
.section--zigzag-bottom {
  padding-bottom: calc(var(--section-padding) + 30px);
}

.section--zigzag-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 2;
}

.section--white.section--zigzag-bottom::after {
  background:
    linear-gradient(135deg, var(--color-surface) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--color-surface) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--tint.section--zigzag-bottom::after {
  background:
    linear-gradient(135deg, var(--color-bg-tint) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--color-bg-tint) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--primary.section--zigzag-bottom::after {
  background:
    linear-gradient(135deg, var(--color-primary) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--color-primary) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--dark.section--zigzag-bottom::after {
  background:
    linear-gradient(135deg, var(--color-primary-dark) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--color-primary-dark) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--zigzag-top {
  padding-top: calc(var(--section-padding) + 30px);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-button);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-card-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: #cf6e17;
  border-color: #cf6e17;
  color: #fff;
}

/* Subtle CTA — small, muted */
.btn--subtle {
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: none;
}

.btn--subtle:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Hero CTA sizing */
.btn--hero {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Full-width button */
.btn--full {
  width: 100%;
}

/* White button (for dark sections) */
.btn--white {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-surface);
}

.btn--white:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
}

/* --- CARDS --- */
.card {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(var(--color-primary-rgb), 0.03) 100%);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Geometric precision — card corner triangle */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-top: 24px solid var(--color-accent);
  opacity: 0.2;
  pointer-events: none;
}

.card--centered {
  text-align: center;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- GRID LAYOUTS --- */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --- STAT CARDS (Big Number Cards) --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

/* --- TESTIMONIALS (Side-by-side with avatar) --- */
.testimonial {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 2rem 0;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.testimonial-avatar--primary {
  background: var(--color-primary);
}

.testimonial-avatar--secondary {
  background: var(--color-secondary);
}

.testimonial-avatar--accent {
  background: var(--color-accent);
}

.testimonial-content {
  flex: 1;
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Inline testimonial (without card wrapper) */
.testimonial--inline {
  background: transparent;
  box-shadow: none;
  padding: 1.5rem 0;
  max-width: 700px;
  margin: 2rem auto;
}

/* --- DARK CONTRAST FORM --- */
.form-card {
  background: var(--color-primary);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.form-card label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="password"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
  outline: none;
  margin-bottom: 1.25rem;
}

.form-card textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
}

.form-card select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232C3E50' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.2);
}

.form-card .btn--accent {
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

/* Checkbox styling */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-checkbox span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Password toggle wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3.5rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(calc(-50% - 0.6rem));
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 0.25rem;
}

.password-toggle:hover {
  color: var(--color-accent);
}

/* --- TABLES --- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.92rem;
}

thead {
  background: var(--color-primary);
  color: #fff;
}

thead th {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
}

tbody tr:nth-child(even) {
  background: rgba(var(--color-primary-rgb), 0.02);
}

tbody tr:hover {
  background: rgba(var(--color-accent-rgb), 0.04);
}

tbody td {
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
}

/* --- IMAGE PLACEHOLDERS (Pattern Fill Panels) --- */
.img-placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
}

/* Herringbone */
.img-placeholder--herringbone {
  background-color: rgba(var(--color-primary-rgb), 0.04);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(var(--color-primary-rgb), 0.08) 0px,
      rgba(var(--color-primary-rgb), 0.08) 2px,
      transparent 2px,
      transparent 10px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(var(--color-primary-rgb), 0.08) 0px,
      rgba(var(--color-primary-rgb), 0.08) 2px,
      transparent 2px,
      transparent 10px
    );
}

/* Checkerboard */
.img-placeholder--checkerboard {
  background-color: rgba(var(--color-secondary-rgb), 0.04);
  background-image:
    repeating-conic-gradient(
      rgba(var(--color-secondary-rgb), 0.1) 0% 25%,
      transparent 0% 50%
    );
  background-size: 20px 20px;
}

/* Polka dots */
.img-placeholder--polka {
  background-color: rgba(var(--color-accent-rgb), 0.04);
  background-image:
    radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12) 2px, transparent 2px);
  background-size: 16px 16px;
}

/* Crosshatch */
.img-placeholder--crosshatch {
  background-color: rgba(var(--color-primary-rgb), 0.03);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(var(--color-primary-rgb), 0.06) 0px,
      rgba(var(--color-primary-rgb), 0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(var(--color-primary-rgb), 0.06) 0px,
      rgba(var(--color-primary-rgb), 0.06) 1px,
      transparent 1px,
      transparent 14px
    );
}

/* :nth-of-type variations */
.img-placeholder:nth-of-type(4n+1) {
  background-color: rgba(var(--color-primary-rgb), 0.04);
  background-image: repeating-linear-gradient(45deg, rgba(var(--color-primary-rgb), 0.08) 0px, rgba(var(--color-primary-rgb), 0.08) 2px, transparent 2px, transparent 10px), repeating-linear-gradient(-45deg, rgba(var(--color-primary-rgb), 0.08) 0px, rgba(var(--color-primary-rgb), 0.08) 2px, transparent 2px, transparent 10px);
}

.img-placeholder:nth-of-type(4n+2) {
  background-color: rgba(var(--color-secondary-rgb), 0.04);
  background-image: repeating-conic-gradient(rgba(var(--color-secondary-rgb), 0.1) 0% 25%, transparent 0% 50%);
  background-size: 20px 20px;
}

.img-placeholder:nth-of-type(4n+3) {
  background-color: rgba(var(--color-accent-rgb), 0.04);
  background-image: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12) 2px, transparent 2px);
  background-size: 16px 16px;
}

.img-placeholder:nth-of-type(4n) {
  background-color: rgba(var(--color-primary-rgb), 0.03);
  background-image: repeating-linear-gradient(0deg, rgba(var(--color-primary-rgb), 0.06) 0px, rgba(var(--color-primary-rgb), 0.06) 1px, transparent 1px, transparent 14px), repeating-linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.06) 0px, rgba(var(--color-primary-rgb), 0.06) 1px, transparent 1px, transparent 14px);
}

/* --- COMPARISON TABLE (two columns) --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.comparison-col {
  padding: 2rem;
}

.comparison-col--old {
  background: rgba(var(--color-primary-rgb), 0.04);
}

.comparison-col--new {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
}

.comparison-col h3 {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.comparison-col ul {
  list-style: none;
}

.comparison-col ul li {
  padding: 0.6rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.06);
  line-height: 1.55;
}

.comparison-col--old ul li::before {
  content: '✕ ';
  color: #c0392b;
  font-weight: 700;
}

.comparison-col--new ul li::before {
  content: '✓ ';
  color: var(--color-secondary);
  font-weight: 700;
}

/* --- TABS --- */
.tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.tab-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.06);
}

.tab-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --- PROCESS STEPS --- */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.process-step-number {
  counter-increment: step;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.process-step-content h3 {
  margin-bottom: 0.5rem;
}

.process-step-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- CASE STUDY CARDS --- */
.case-study-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

.case-study-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.case-study-results {
  list-style: none;
  margin-top: 1rem;
}

.case-study-results li {
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--color-text);
}

.case-study-results li::before {
  content: '→ ';
  color: var(--color-accent);
  font-weight: 700;
}

/* --- TEAM CARDS --- */
.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.team-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  text-align: left;
  margin-bottom: 1rem;
}

.team-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  text-align: left;
  margin-top: 1rem;
}

.team-personal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
  text-align: left;
}

/* --- SEARCH BAR --- */
.search-bar {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(var(--color-primary-rgb), 0.15);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card), 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

.search-bar::before {
  content: '⌕';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--color-text-light);
  pointer-events: none;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.filter-tag {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid rgba(var(--color-primary-rgb), 0.2);
  background: transparent;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* --- LOCATION CARDS --- */
.location-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}

.location-hours table {
  box-shadow: none;
  font-size: 0.88rem;
}

.location-hours table td {
  padding: 0.4rem 0.75rem;
}

/* --- MOSAIC LAYOUT (About page) --- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.mosaic-item--wide {
  grid-column: span 2;
}

.mosaic-item--tall {
  grid-row: span 2;
}

/* --- DISCLOSURES SECTION --- */
.disclosures {
  background: var(--color-bg-tint);
  border-top: 2px solid rgba(var(--color-primary-rgb), 0.1);
  padding: 2.5rem 2rem;
}

.disclosures .container {
  max-width: var(--container-max);
}

.disclosures h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclosures h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.disclosures p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  line-height: 1.65;
  max-width: none;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
  font-family: var(--font-mono);
}

.footer-about p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.65;
  max-width: none;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  line-height: 2;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
  color: #fff;
  transition: opacity var(--transition-base);
}

.footer-links a:hover {
  opacity: 1;
  color: #fff;
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact-icon {
  opacity: 0.6;
  min-width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  flex: 1;
  min-width: 250px;
  max-width: none;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cookie-actions .btn {
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
}

.cookie-actions a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-decoration: underline;
}

/* --- ANIMATIONS (Scale up entrance) --- */
.animate-in {
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.animate-in.visible {
  transform: scale(1);
  opacity: 1;
}

/* Staggered delays for grid children */
.grid .animate-in:nth-child(1) { transition-delay: 0s; }
.grid .animate-in:nth-child(2) { transition-delay: 0.08s; }
.grid .animate-in:nth-child(3) { transition-delay: 0.16s; }
.grid .animate-in:nth-child(4) { transition-delay: 0.24s; }
.grid .animate-in:nth-child(5) { transition-delay: 0.32s; }
.grid .animate-in:nth-child(6) { transition-delay: 0.4s; }

.stats-row .animate-in:nth-child(1) { transition-delay: 0s; }
.stats-row .animate-in:nth-child(2) { transition-delay: 0.1s; }
.stats-row .animate-in:nth-child(3) { transition-delay: 0.2s; }
.stats-row .animate-in:nth-child(4) { transition-delay: 0.3s; }

/* --- LOGIN PAGE --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--color-bg);
  background-image: radial-gradient(
    ellipse at center,
    rgba(var(--color-primary-rgb), 0.06) 0%,
    transparent 70%
  );
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand .nav-logo {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.login-card h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.login-card .form-card {
  padding: 2.5rem 2rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.login-footer a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.login-footer a:hover {
  color: var(--color-accent);
}

.login-security {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- NEWSLETTER / INLINE FORMS --- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
}

/* --- BEST TIMES TABLE --- */
.best-times-table {
  box-shadow: none;
}

.best-times-table td:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* --- VALUE CARDS --- */
.value-card {
  padding: 2rem;
  text-align: left;
}

.value-card .card-title {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* --- RESOURCE CARDS --- */
.resource-card {
  text-align: left;
  padding: 2rem;
}

.resource-card .resource-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.resource-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.resource-card .resource-author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

/* --- MISC UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-540 { max-width: 540px; }
.max-700 { max-width: 700px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-col--new {
    border-left: none;
    border-top: 3px solid var(--color-accent);
  }

  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-item--wide {
    grid-column: span 1;
  }

  .mosaic-item--tall {
    grid-row: span 1;
  }

  .location-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
  }

  .utility-bar {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .utility-left,
  .utility-right {
    justify-content: center;
  }

  .main-nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-card);
    gap: 0.5rem;
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.06);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-band-middle {
    padding: 2.5rem 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-band-middle::before,
  .hero-band-middle::after {
    display: none;
  }

  .testimonial {
    flex-direction: column;
    gap: 1rem;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-btn {
    text-align: center;
  }

  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .section--decorated::before,
  .section--decorated::after {
    display: none;
  }

  .form-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }

  .hero-band-middle h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .card {
    padding: 1.5rem 1.25rem;
  }
}

/* --- PRINT --- */
@media print {
  .utility-bar,
  .main-nav,
  .cookie-banner,
  #scroll-progress,
  #page-transition,
  .footer {
    display: none;
  }

  body::before {
    display: none;
  }

  .section {
    break-inside: avoid;
    padding: 1.5rem 0;
  }
}