/* ============================================
   WEBBLOOM COMPONENT SYSTEM
   ============================================
   Shared, reusable CSS classes for all templates.
   Prefix: .wb-

   All components are responsive by default.
   Templates should use these classes instead of
   inventing per-page CSS for common layouts.

   Breakpoints:
   - Desktop: > 1024px
   - Tablet:  768px – 1024px
   - Mobile:  < 768px
   ============================================ */


/* ── LAYOUT: Sections ── */

.wb-section {
  padding: var(--wb-section-pad, 5em) 1.5em;
  position: relative;
  overflow: hidden;
}

.wb-section-sm { padding: 2.5em 1.5em; }
.wb-section-lg { padding: 7em 1.5em; }

.wb-inner {
  max-width: var(--wb-inner-max, 1100px);
  margin: 0 auto;
  width: 100%;
}

.wb-narrow {
  max-width: var(--wb-narrow-max, 800px);
  margin: 0 auto;
  width: 100%;
}

.wb-wide {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Break out of page builder wrapper constraints */
.wb-full-width {
  max-width: none;
  padding: 0;
  margin: 0;
}
.wb-full-width .content-block {
  max-width: none;
  padding: 0;
  margin: 0;
}


/* ── LAYOUT: Hero ── */

.wb-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--wb-dark);
  color: var(--wb-white);
  position: relative;
  padding: 6em 1.5em;
}

.wb-hero-sm { min-height: 40vh; padding: 4em 1.5em; }
.wb-hero-lg { min-height: 85vh; }

/* Background overlay for hero images — navy tint (brand colour) so the photo reads
   as "behind the brand" rather than a flat black darken. */
.wb-hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.65) 0%,
    rgba(32, 80, 144, 0.55) 100%
  );
  z-index: 1;
}
.wb-hero-overlay > * { position: relative; z-index: 2; }

.wb-hero h1,
.wb-hero .wb-h1 {
  font-family: var(--wb-font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--wb-white);
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wb-hero .wb-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--wb-white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.92;
}


/* ── LAYOUT: Grids ── */

.wb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}

.wb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.wb-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
}

/* Grid gap variants */
.wb-gap-sm { gap: 1em; }
.wb-gap-md { gap: 2em; }
.wb-gap-lg { gap: 3em; }
.wb-gap-xl { gap: 4em; }


/* ── LAYOUT: Feature Row (image + text) ── */

.wb-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5em;
  align-items: center;
  padding: 2.5em 0;
}

/* Flip image/text order */
.wb-feature-row.wb-flip .wb-feature-image { order: 2; }
.wb-feature-row.wb-flip .wb-feature-text  { order: 1; }

/* Wide-image variant — image takes ~60% of the row instead of 50%, and the image
   itself is taller (5:4 instead of 4:3) so each block reads as a visual showcase.
   Used on the "What we build" page. */
.cc-row-wide .wb-feature-row {
  grid-template-columns: 1.5fr 1fr;
  gap: 3em;
}
.cc-row-wide .wb-feature-image {
  aspect-ratio: 5 / 4;
}
@media (max-width: 900px) {
  .cc-row-wide .wb-feature-row { grid-template-columns: 1fr; }
  .cc-row-wide .wb-feature-image { aspect-ratio: 4 / 3; }
}

.wb-feature-image {
  position: relative;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

/* Offset cyan frame — industrial-style accent behind the photo */
.wb-feature-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--wb-secondary);
  border-radius: var(--wb-radius-md);
  transform: translate(1.1em, 1.1em);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
}

.wb-feature-row.wb-flip .wb-feature-image::before {
  transform: translate(-1.1em, 1.1em);
}

.wb-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--wb-radius-md);
  display: block;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.10);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s ease;
}

/* Hover: photo shifts into the frame, frame retreats slightly. */
.wb-feature-row:hover .wb-feature-image::before {
  transform: translate(0.5em, 0.5em);
}
.wb-feature-row.wb-flip:hover .wb-feature-image::before {
  transform: translate(-0.5em, 0.5em);
}
.wb-feature-row:hover .wb-feature-image img {
  transform: translate(-0.3em, -0.3em);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.20);
}
.wb-feature-row.wb-flip:hover .wb-feature-image img {
  transform: translate(0.3em, -0.3em);
}

/* Numbered eyebrow above each block — gives the section a rhythm */
.wb-feature-meta {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 1.1em;
}
.wb-feature-num {
  font-family: var(--wb-font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--wb-secondary);
  padding: 0.35em 0.85em;
  background: rgba(0, 144, 192, 0.10);
  border-radius: 999px;
  line-height: 1;
}
.wb-feature-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-text-light);
}

.wb-feature-text h2,
.wb-feature-text h3 {
  font-family: var(--wb-font-heading);
  margin: 0 0 0.55em;
  position: relative;
}

/* Cyan underline accent on the heading */
.wb-feature-text h3::after {
  content: "";
  display: block;
  width: 2.5em;
  height: 2px;
  background: var(--wb-secondary);
  margin-top: 0.6em;
  transform-origin: left;
  transform: scaleX(0.6);
  transition: transform 0.5s ease;
}
.wb-feature-row:hover .wb-feature-text h3::after {
  transform: scaleX(1);
}

.wb-feature-text p {
  color: var(--wb-text-light);
  line-height: 1.7;
}


/* ── LAYOUT: Container Showcase (rotating photos + use-case chips) ── */

.cc-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4em;
  align-items: center;
  padding: 2.5em 0;
}

.cc-showcase-images {
  position: relative;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.cc-showcase-images::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--wb-secondary);
  border-radius: var(--wb-radius-md);
  transform: translate(1.1em, 1.1em);
  z-index: -1;
}
.cc-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--wb-radius-md);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.10);
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  transform: scale(1.02);
}
.cc-showcase-img.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.cc-showcase-text h2 em {
  font-style: normal;
  color: var(--wb-secondary);
}

/* Rotating spotlight — single big use-case word at a time */
.cc-spotlight {
  margin-top: 1.8em;
}
.cc-spotlight-prefix {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-text-light);
  margin-bottom: 0.4em;
}
.cc-spotlight-words {
  display: grid;
  font-family: var(--wb-font-heading);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cc-spotlight-word {
  grid-column: 1;
  grid-row: 1;
  color: var(--wb-secondary);
  opacity: 0;
  transform: translateY(0.45em) scale(0.94);
  transform-origin: left center;
  transition: opacity 0.55s ease,
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.cc-spotlight-word.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .cc-spotlight-word { transition: opacity 0.2s linear; transform: none; }
  .cc-spotlight-word.is-active { transform: none; }
}
.cc-spotlight-more {
  font-style: italic;
  color: var(--wb-text-light);
  margin-top: 0.6em;
}


/* ── Marquee strip — endless use-case ticker on navy ── */
.cc-marquee {
  overflow: hidden;
  background: var(--wb-primary);
  padding: 1.4em 0;
  position: relative;
}
.cc-marquee::before,
.cc-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8em;
  z-index: 1;
  pointer-events: none;
}
.cc-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--wb-primary), rgba(32, 80, 144, 0));
}
.cc-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--wb-primary), rgba(32, 80, 144, 0));
}
.cc-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5em;
  white-space: nowrap;
  animation: cc-marquee-scroll 42s linear infinite;
  will-change: transform;
}
.cc-marquee-item {
  font-family: var(--wb-font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wb-white);
  flex-shrink: 0;
}
.cc-marquee-dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--wb-secondary);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0, 144, 192, 0.18);
}
@keyframes cc-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cc-marquee-track { animation: none; }
}
/* Footer marquee variant — above the copyright, font 20% smaller than the original. */
.cc-marquee.cc-marquee-footer {
  padding: 1em 0;
}
.cc-marquee.cc-marquee-footer .cc-marquee-item {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}
/* On narrow phones the 8em edge-fades would swallow ~70% of the viewport;
   tighten them so most of the marquee remains readable. */
@media (max-width: 600px) {
  .cc-marquee::before,
  .cc-marquee::after {
    width: 3em;
  }
}


/* ── H2 cyan underline draw on scroll-into-view ── */
.cc-h2-line {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5em;
}
.cc-h2-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.6em;
  height: 3px;
  background: var(--wb-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cc-h2-line.is-revealed::after {
  transform: scaleX(1);
}


/* ── Gallery sub-heading (when a category page splits into multiple galleries) ── */
.cc-gallery-heading {
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5em 0 1em;
  text-align: center;
  color: var(--wb-text);
}
.cc-gallery-heading::after {
  content: "";
  display: block;
  width: 2.5em;
  height: 3px;
  background: var(--wb-secondary);
  margin: 0.5em auto 0;
}


/* ── Contact form card — solid white block lifting the form off the section ── */
.cc-contact-card {
  background: #fff;
  border-radius: var(--wb-radius-md);
  padding: 2em 2em 1.5em;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  border-left: 4px solid var(--wb-secondary);
}
@media (max-width: 767px) {
  .cc-contact-card { padding: 1.5em; }
}


/* ── Contact "What happens next" numbered steps ── */
.cc-next-steps {
  margin: 1em 0 0;
  padding-left: 1.3em;
  line-height: 1.7;
}
.cc-next-steps li {
  margin-bottom: 0.7em;
}
.cc-next-steps li::marker {
  font-weight: 700;
  color: var(--wb-secondary);
}


/* ── Bright cyan CTA (homepage bottom — friendly close, separates from dark footer) ── */
.cta-block.cc-cta-bright {
  background: var(--wb-secondary);
  border-bottom: 10px solid #fff;
  position: relative;
  overflow: hidden;
}
/* Suppress the inherited radial after-decoration; reuse ::before for the aurora sweep. */
.cta-block.cc-cta-bright::after { display: none; }
.cta-block.cc-cta-bright::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 50%;
  height: 200%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%);
  animation: cc-aurora 10s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes cc-aurora {
  0%   { transform: translateX(-30%); }
  100% { transform: translateX(420%); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-block.cc-cta-bright::before { animation: none; opacity: 0; }
}
.cta-block.cc-cta-bright .cta-title { color: var(--wb-white); }
.cta-block.cc-cta-bright .cta-text { color: rgba(255, 255, 255, 0.94); }
.cta-block.cc-cta-bright .cta-action .wb-btn {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.18);
}
.cta-block.cc-cta-bright .cta-action .wb-btn:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  transform: translateY(-2px);
}
.cc-cta-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}
/* Ghost button — transparent on cyan, white border + text. */
.wb-btn.cc-btn-ghost {
  background: transparent;
  color: var(--wb-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.wb-btn.cc-btn-ghost:hover {
  background: var(--wb-white);
  color: var(--wb-secondary);
  border-color: var(--wb-white);
}


/* ── Section eyebrow (small caps tag above a section heading) ── */
.cc-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-secondary);
  margin-bottom: 0.9em;
}


/* ── Image-led project tiles (Recent work) ── */
.cc-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin: 2.5em 0 0;
  text-align: left;
  perspective: 1200px;
}
.cc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wb-white);
  border-radius: var(--wb-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.45s ease;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}
.cc-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
.cc-tile.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.45s ease;
}
.cc-tile-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cc-tile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15, 23, 42, 0.30) 0%,
    rgba(15, 23, 42, 0) 50%);
  opacity: 0.7;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.cc-tile:hover .cc-tile-image::after { opacity: 0.95; }

.cc-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cc-tile:hover .cc-tile-image img { transform: scale(1.08); }

.cc-tile-body {
  padding: 1.4em 1.6em 1.7em;
}
.cc-tile-body h3 {
  font-family: var(--wb-font-heading);
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 0.45em;
  color: var(--wb-text);
}
.cc-tile-body p {
  color: var(--wb-text-light);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1em;
}
.cc-tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wb-secondary);
  transition: gap 0.35s ease;
}
.cc-tile-arrow i {
  transition: transform 0.35s ease;
}
.cc-tile:hover .cc-tile-arrow { gap: 0.95em; }
.cc-tile:hover .cc-tile-arrow i { transform: translateX(2px); }

@media (max-width: 900px) {
  .cc-tile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cc-tile-grid { grid-template-columns: 1fr; }
}


/* ── Fixed brand watermark — applied to sections from "Considered space" down ──
   Higher specificity than .wb-light / .wb-white whose `background:` shorthand
   would otherwise reset background-image to none. */
.wb-section.cc-watermark {
  background-image: url('/images/logo-watermark.png');
  background-attachment: fixed;
  background-position: center center;
  background-size: 70vh auto;
  background-repeat: no-repeat;
}
/* iOS Safari ignores background-attachment: fixed; anchor to the section instead. */
@supports (-webkit-touch-callout: none) {
  .wb-section.cc-watermark {
    background-attachment: scroll;
    background-size: 60vw auto;
  }
}


/* ── LAYOUT: Inspiration block (homepage interstitial, dark) ── */

.cc-inspiration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5em;
  align-items: start;
}

.cc-inspiration-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wb-secondary);
  margin-bottom: 0.9em;
}
.cc-inspiration-text h2 {
  color: var(--wb-white);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.55em;
}
.cc-inspiration-text h2 em {
  font-style: normal;
  color: var(--wb-secondary);
}
.cc-inspiration-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.8em;
}
.cc-inspiration-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.cc-inspiration-points li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.cc-inspiration-points i {
  color: var(--wb-secondary);
  width: 1.3em;
  text-align: center;
}

/* Form on dark background */
.cc-inspiration-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--wb-radius-md);
  padding: 2em 2em 1.6em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.wb-form.cc-inspiration-form label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.wb-form.cc-inspiration-form input,
.wb-form.cc-inspiration-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--wb-white);
  font-family: var(--wb-font-body);
}
.wb-form.cc-inspiration-form input::placeholder,
.wb-form.cc-inspiration-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.wb-form.cc-inspiration-form input:focus,
.wb-form.cc-inspiration-form textarea:focus {
  border-color: var(--wb-secondary);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(0, 144, 192, 0.20);
}
.cc-inspiration-form .form-status {
  margin-top: 1em;
  padding: 0.85em 1em;
  border-radius: var(--wb-radius-sm);
  display: none;
  font-size: 0.95rem;
}
.cc-inspiration-form .form-status.success {
  display: block;
  background: rgba(0, 144, 192, 0.15);
  color: #cdeef9;
  border: 1px solid rgba(0, 144, 192, 0.4);
}
.cc-inspiration-form .form-status.error {
  display: block;
  background: rgba(220, 38, 38, 0.15);
  color: #fecaca;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

@media (max-width: 900px) {
  .cc-inspiration {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }
  .cc-inspiration-form { padding: 1.5em; }
}

@media (max-width: 900px) {
  .cc-showcase { grid-template-columns: 1fr; gap: 2.5em; }
}
@media (max-width: 768px) {
  .cc-showcase { gap: 2em; padding: 1.5em 0; }
  .cc-showcase-images::before { transform: translate(0.5em, 0.5em); }
}


/* ── LAYOUT: Cards ── */

.wb-card {
  background: var(--wb-white);
  border-radius: var(--wb-radius-md);
  padding: 2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wb-card-flat {
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.wb-card-flat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wb-card h3 {
  font-family: var(--wb-font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 0 0 0.5em;
}

.wb-card p {
  color: var(--wb-text-light);
  line-height: 1.6;
  margin: 0;
}

.wb-card-icon {
  font-size: 2rem;
  color: var(--wb-primary);
  margin-bottom: 0.75em;
}


/* ── TYPOGRAPHY ── */

.wb-h1 {
  font-family: var(--wb-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--wb-text);
}

.wb-h2,
h2 {
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.3em;
  color: var(--wb-text);
}

.wb-h3 {
  font-family: var(--wb-font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.3em;
  color: var(--wb-text);
}

.wb-h4 {
  font-family: var(--wb-font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.2em;
  color: var(--wb-text);
}

.wb-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--wb-text-light);
  line-height: 1.6;
  max-width: 700px;
}

.wb-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.7;
  color: var(--wb-text);
}

.wb-text-center { text-align: center; }
.wb-text-left   { text-align: left; }
.wb-text-right  { text-align: right; }

.wb-text-center .wb-subtitle,
.wb-text-center .wb-lead {
  margin-left: auto;
  margin-right: auto;
}


/* ── BUTTONS ── */

.wb-btn {
  display: inline-block;
  padding: 0.8em 2em;
  font-family: var(--wb-font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--wb-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.4;
}

.wb-btn-primary {
  background: var(--wb-primary);
  color: var(--wb-white);
  border-color: var(--wb-primary);
}
.wb-btn-primary:hover {
  background: var(--wb-primary-hover);
  border-color: var(--wb-primary-hover);
  color: var(--wb-white);
}

.wb-btn-secondary {
  background: var(--wb-secondary);
  color: var(--wb-white);
  border-color: var(--wb-secondary);
}
.wb-btn-secondary:hover {
  background: var(--wb-secondary-hover);
  border-color: var(--wb-secondary-hover);
  color: var(--wb-white);
}

.wb-btn-outline {
  background: transparent;
  color: var(--wb-primary);
  border-color: var(--wb-primary);
}
.wb-btn-outline:hover {
  background: var(--wb-primary);
  color: var(--wb-white);
}

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

.wb-btn-lg { padding: 1em 2.5em; font-size: 1.1rem; }
.wb-btn-sm { padding: 0.5em 1.5em; font-size: 0.9rem; }

.wb-btn-group {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}


/* ── SECTION THEMES ── */

.wb-dark {
  background: var(--wb-dark);
  color: var(--wb-white);
}
.wb-dark h1, .wb-dark h2, .wb-dark h3, .wb-dark h4,
.wb-dark .wb-h1, .wb-dark .wb-h2, .wb-dark .wb-h3, .wb-dark .wb-h4 {
  color: var(--wb-white);
}
.wb-dark p, .wb-dark .wb-subtitle {
  color: #b8c0d0;
}

.wb-light {
  background: var(--wb-light);
}

.wb-white {
  background: var(--wb-white);
}

.wb-primary-bg {
  background: var(--wb-primary);
  color: var(--wb-white);
}
.wb-primary-bg h1, .wb-primary-bg h2, .wb-primary-bg h3,
.wb-primary-bg p, .wb-primary-bg .wb-subtitle { color: var(--wb-white); }


/* ── SPACING UTILITIES ── */

.wb-pad-none { padding: 0; }
.wb-pad-sm   { padding: 2em 1.5em; }
.wb-pad-md   { padding: 4em 1.5em; }
.wb-pad-lg   { padding: 6em 1.5em; }
.wb-pad-xl   { padding: 8em 1.5em; }

.wb-mt-0 { margin-top: 0; }
.wb-mb-0 { margin-bottom: 0; }
.wb-mt-1 { margin-top: 1em; }
.wb-mb-1 { margin-bottom: 1em; }
.wb-mt-2 { margin-top: 2em; }
.wb-mb-2 { margin-bottom: 2em; }
.wb-mt-3 { margin-top: 3em; }
.wb-mb-3 { margin-bottom: 3em; }


/* ── ANIMATION HELPERS ── */

/* Scroll-reveal animation classes — handled by IntersectionObserver in main.js */
.wb-fade-in,
.wb-slide-up,
.wb-slide-left,
.wb-slide-right,
.wb-zoom-in      { opacity: 0; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

.wb-slide-up     { transform: translateY(30px); }
.wb-slide-left   { transform: translateX(-30px); }
.wb-slide-right  { transform: translateX(30px); }
.wb-zoom-in      { transform: scale(0.95); }

/* When visible (observer adds .wb-visible) */
.wb-fade-in.wb-visible,
.wb-slide-up.wb-visible,
.wb-slide-left.wb-visible,
.wb-slide-right.wb-visible,
.wb-zoom-in.wb-visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* GSAP marker classes — no CSS needed, used by JS */
/* .wb-stagger  — parent: GSAP staggers children on scroll */
/* .wb-parallax — element: GSAP adds parallax movement */

/* GSAP fallback: if GSAP doesn't load, reveal content after 3s */
.wb-gsap-target { opacity: 0; }
.gsap-fallback .wb-gsap-target,
.no-js .wb-gsap-target { opacity: 1; }


/* ── DIVIDER ── */

.wb-divider {
  width: 60px;
  height: 3px;
  background: var(--wb-primary);
  border: none;
  margin: 1em 0;
}
.wb-text-center .wb-divider {
  margin-left: auto;
  margin-right: auto;
}


/* ── RESPONSIVE VISIBILITY ── */

.wb-hidden-mobile  { }
.wb-hidden-tablet  { }
.wb-hidden-desktop { }
.wb-show-mobile    { display: none; }


/* ── IMAGE UTILITIES ── */

.wb-img-rounded  { border-radius: var(--wb-radius-md); }
.wb-img-circle   { border-radius: 50%; }
.wb-img-cover    { width: 100%; height: 100%; object-fit: cover; }
.wb-img-shadow   { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }


/* ============================================
   RESPONSIVE — TABLET (768px – 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .wb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .wb-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .wb-feature-row {
    gap: 2em;
  }

  .wb-hero { min-height: 55vh; padding: 4em 1.5em; }
  .wb-hero-lg { min-height: 65vh; }

  .wb-hidden-tablet { display: none !important; }
}


/* ============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================ */

@media (max-width: 767px) {
  .wb-grid-2,
  .wb-grid-3,
  .wb-grid-4 {
    grid-template-columns: 1fr;
  }

  .wb-feature-row {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  /* On mobile, always image first regardless of flip */
  .wb-feature-row.wb-flip .wb-feature-image { order: 0; }
  .wb-feature-row.wb-flip .wb-feature-text  { order: 0; }

  /* Drop the offset cyan frame on mobile — it competes with stacked layout */
  .wb-feature-image::before,
  .wb-feature-row.wb-flip .wb-feature-image::before {
    transform: translate(0.5em, 0.5em);
  }
  .wb-feature-row:hover .wb-feature-image img,
  .wb-feature-row.wb-flip:hover .wb-feature-image img {
    transform: none;
  }

  .wb-hero { min-height: 50vh; padding: 3em 1em; }
  .wb-hero-sm { min-height: 30vh; }

  .wb-section { padding: 3em 1em; }
  .wb-section-lg { padding: 4em 1em; }

  .wb-btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .wb-btn-group .wb-btn {
    text-align: center;
  }

  .wb-hidden-mobile { display: none !important; }
  .wb-show-mobile   { display: block; }
}
