/* =============================================================
   Capture Technologies — thermalcaisson.com
   Self-authored theme. No third-party theme code.
   Brand palette reproduced from the previous site design.
   ============================================================= */

:root {
  --green:      #5dc09c;
  --green-dark: #44b089;
  --teal:       #32c5d2;
  --blue:       #57bfe1;
  --dark:       #2f353b;
  --dark-2:     #41515b;
  --muted:      #7f8c97;
  --grey-bg:    #f7f7f7;
  --line:       #e7e7e7;
  --white:      #ffffff;
  --header-h:          110px;   /* tall by default */
  --header-h-scrolled:  80px;   /* shrinks to this once scrolled */
  font-size: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark-2);
  line-height: 1.6;
  background: var(--white);
  padding-top: var(--header-h);
  /* Sticky footer: on short pages (e.g. Contact) this keeps the footer at the
     bottom of the viewport instead of leaving white space below it. With
     box-sizing:border-box the header's padding-top is included in 100vh, so
     this adds no scroll on pages that already fill the screen. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.u-uppercase { text-transform: uppercase; }
.u-center { text-align: center; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.row > [class*="col-"] {
  padding: 0 15px;
}

/* Mobile-first: columns are full width and stack by default. Keep the width
   declarations at single-class specificity so the >=768px overrides below win
   (a compound `.row > [class^="col-"]` selector would outrank `.col-7`). */
.col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { width: 100%; }

@media (min-width: 768px) {
  .col-3  { width: 25%; }
  .col-4  { width: 33.3333%; }
  .col-5  { width: 41.6667%; }
  .col-6  { width: 50%; }
  .col-7  { width: 58.3333%; }
  .col-8  { width: 66.6667%; }
}
@media (max-width: 767px) {
  /* center stacked feature/media columns on mobile */
  .row { text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--grey  { background: var(--grey-bg); }
.section--white { background: var(--white); }

/* ---------- Section titles ---------- */
.title-block { margin-bottom: 30px; }
/* Section titles look identical regardless of their semantic level (h1/h2/h3),
   so heading order can be correct for SEO/a11y without changing the design. */
.title-block h1,
.title-block h2,
.title-block h3 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 1.17rem;   /* locks the look the section titles already had as h3 */
}
.title-center { text-align: center; }
.title-center .title-bar {
  width: 40px; height: 3px; margin: 14px auto 0;
  background: var(--teal);
}
.title-left .title-bar {
  width: 40px; height: 3px; margin-top: 12px;
  background: var(--blue);
}
.title-bar.is-teal { background: var(--teal); }
.title-bar.is-blue { background: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 0;            /* square, matches original */
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1.4;
}
.btn-theme {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-theme:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: box-shadow .25s, height .25s;
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand img { max-height: 64px; width: auto; display: block; transition: max-height .25s; }
.site-header.is-scrolled .brand img { max-height: 48px; }

.main-nav ul {
  list-style: none;
  display: flex;
  margin: 0; padding: 0;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 6px 16px;
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .95rem;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--green); }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: var(--dark);
  margin: 5px 0;
  transition: .25s;
}

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;   /* follows the header's current height */
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;          /* fallback fill behind slices */
  opacity: 0;
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }

/* Image plane split into three vertical strips. Each strip is a window onto a
   single cover-scaled copy of the slide image (carried in the --img custom
   property), so the photo keeps its real aspect ratio at every width — no
   stretching. The strips wipe in over the dark hero background. */
.hero-img { position: absolute; inset: 0; overflow: hidden; }
.hero-img .slit {
  position: absolute; top: 0; bottom: 0; width: calc(100% / 3 + 1px);
  overflow: hidden;
}
.hero-img .slit:nth-child(1) { left: 0; }
.hero-img .slit:nth-child(2) { left: calc(100% / 3); }
.hero-img .slit:nth-child(3) { left: calc(200% / 3); }
.hero-img .slit::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 300%;
  background-image: var(--img);        /* set inline per slide; use ROOT-RELATIVE
                                          /assets/... paths — a url() in --img
                                          resolves against THIS stylesheet's
                                          location, not the HTML document */
  background-size: cover;              /* cover computed over the full hero */
  background-position: center;
}
.hero-img .slit:nth-child(1)::before { left: 0;     }
.hero-img .slit:nth-child(2)::before { left: -100%; }
.hero-img .slit:nth-child(3)::before { left: -200%; }

/* Directional wipe — varied per slide (cycles every 4th), staggered across the
   three strips. @keyframes (NOT transition) so the at-load slide animates in
   Firefox even though it is in view at page load. */
.js .hero-slide.is-active .slit { animation: .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-slide.is-active .slit:nth-child(2) { animation-delay: .12s; }
.js .hero-slide.is-active .slit:nth-child(3) { animation-delay: .24s; }
.js .hero-slide:nth-child(4n+1).is-active .slit { animation-name: slit-up;    }
.js .hero-slide:nth-child(4n+2).is-active .slit { animation-name: slit-down;  }
.js .hero-slide:nth-child(4n+3).is-active .slit { animation-name: slit-right; }
.js .hero-slide:nth-child(4n+4).is-active .slit { animation-name: slit-left;  }
@keyframes slit-up    { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slit-down  { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slit-left  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slit-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* Prev/next arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; border: 0; cursor: pointer; z-index: 4;
  background: rgba(0,0,0,.28); color: #fff; font-size: 2rem; line-height: 1;
}
.hero-arrow:hover { background: rgba(0,0,0,.5); }
.hero-prev { left: 0; }
.hero-next { right: 0; }
@media (max-width: 767px) { .hero-arrow { width: 38px; height: 52px; font-size: 1.5rem; } }
.hero-caption {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;                                   /* identical whether div/h1/h3 */
  width: 90%; max-width: 760px;
  z-index: 3;                                  /* above slices + arrows base */
  text-align: center;
  color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  line-height: 1.15;
  padding: 30px 24px;
}
/* Soft translucent dark OVAL behind the text (the .roundshadow essence). */
.hero-caption::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  width: 150%; height: 240%; max-width: 1100px;
  background: radial-gradient(ellipse at center,
              rgba(0,0,0,.62) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,0) 70%);
  border-radius: 600px;
}

/* Per-slide text entrance, retriggered via the JS reflow on .is-active.
   Each keyframe bakes in translate(-50%,-50%) so centering survives. */
.js .hero-slide.is-active .hero-caption { animation: cap-bounce-in .9s .2s both; }
.js .hero-slide:nth-child(2).is-active .hero-caption { animation-name: cap-fade-up; }
.js .hero-slide:nth-child(3).is-active .hero-caption { animation-name: cap-zoom-in; }
.js .hero-slide:nth-child(4).is-active .hero-caption { animation-name: cap-fade-up; }
@keyframes cap-bounce-in {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes cap-fade-up {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 26px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes cap-zoom-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Static single-slide hero (contact + future inner pages): caption fades up,
   no bounce; it's slide 1 so it would otherwise use cap-bounce-in. */
.page-contact .hero--static .hero-slide.is-active .hero-caption {
  animation-name: cap-fade-up;
}
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 10px;
  z-index: 2;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent;
  padding: 0; cursor: pointer; opacity: .7;
}
.hero-dots button.is-active { background: #fff; opacity: 1; }
@media (max-width: 767px) { .hero { height: 360px; } }

/* ---------- Feature block ----------
   Faithful reproduction of the original .c-content-feature-5: the photo is
   pinned top-right (position:absolute) and the white text card sits in normal
   flow (position:relative; z-index:1) overlapping the photo's lower-left corner.
   Title top-left with blue bar; button bottom-left. Below 768px every desktop
   rule is gated out, so content stacks in normal flow (title -> text -> button
   -> photo) with no overlap. */
.feature .feature-text { margin-bottom: 0; }   /* button sits flush against the card (matches original) */
.feature .feature-text p {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-2);
  margin: 0;
}
.feature .feature-photo {
  display: block;
  margin-top: 26px;
  width: 60%;
  height: auto;
}
@media (max-width: 767px) {
  /* Centered, static stack on mobile. */
  .feature .feature-photo { margin: 26px auto 0; }
}

@media (min-width: 768px) {
  /* Positioning context; reserves the vertical space the absolute photo would
     otherwise collapse (photo ~255px tall + card lift). */
  .feature {
    position: relative;
    min-height: 347px;
  }
  .feature .title-block { position: relative; z-index: 2; }

  /* Photo: pinned top-right, 60% of the column (~381px), height auto. */
  .feature .feature-photo {
    position: absolute;
    top: 0;
    right: 65px;
    width: 60%;
    margin: 0;
    z-index: 0;
  }

  /* White card: normal flow, 40% wide, lifted onto the photo's lower-left
     corner. The soft shadow reads it as an intentional layer, not a clash. */
  .feature .feature-text {
    position: relative;
    z-index: 1;
    width: 40%;
    background: var(--white);
    padding: 25px;
    margin: 60px 0 0;   /* no gap: button touches the card (matches original) */
    box-shadow: 0 6px 22px rgba(47, 53, 59, .12);
  }

  /* Button: normal flow, bottom-left, above the photo. */
  .feature .btn-theme { position: relative; z-index: 2; }
}

/* ---------- Mission panel ----------
   The original used a (mis-used) accordion to render a solid-colour panel; this
   is a plain static block: brand-green background, white heading + bullets. */
.mission { background: var(--green); padding: 22px 26px; }
.mission-title {
  color: #fff;
  font-size: 1.15rem; font-weight: 700;
  margin: 0 0 6px;
}
.mission ul { list-style: none; margin: 0; padding: 0; }
.mission li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 1.05rem;
  color: #fff;
}
.mission li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
}

/* ---------- Member logos ---------- */
.members { text-align: center; }
.members .member { padding: 15px 0; }
.members img { display: inline-block; }

/* ---------- Dotted content list ---------- */
.list-dot { list-style: none; margin: 0; padding: 0; }
.list-dot li {
  position: relative;
  padding: 14px 0 14px 28px;
  font-size: 1.05rem;
  border-bottom: 1px dotted #cfd6da;
}
.list-dot li:last-child { border-bottom: 0; }
.list-dot li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
}
.list-dot li p { margin: 0; }

/* ---------- Pricing comparison ---------- */
.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: 1px solid var(--line);
}
.pricing .col {
  flex: 1 1 0; min-width: 220px;
  border-left: 1px solid var(--line);
}
.pricing .col:first-child { border-left: 0; }
.pricing .col.is-labels { background: var(--grey-bg); }
.pricing .col.is-highlight { box-shadow: 0 0 0 2px var(--green) inset; }
.pricing .cell {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.pricing .col .cell:first-child { border-top: 0; }
.pricing .cell.head {
  font-size: 1.25rem; font-weight: 700; color: var(--dark);
  min-height: 64px; display: flex; align-items: center;
}
.pricing .col.is-highlight .cell.head { color: var(--green-dark); }
.pricing .cell.price {
  text-align: center; padding: 22px 18px;
  background: var(--grey-bg);
}
.pricing .cell.price .dollar { font-size: 1.25rem; vertical-align: top; }
.pricing .cell.price .amount { font-size: 2rem; font-weight: 700; color: var(--dark); }
.pricing .is-labels .cell { font-weight: 700; color: var(--dark-2); }
.pricing-note { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Contact ---------- */
.gmap { position: relative; padding-bottom: 70%; height: 0; overflow: hidden; }
.gmap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

.contact-form .form-field { margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #d4dadd;
  border-radius: 0;
  background: #fff;
  color: var(--dark-2);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(93,192,156,.2);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info p { font-size: 1.05rem; }

.form-alert { padding: 12px 16px; margin-bottom: 16px; border-radius: 2px; font-weight: 600; }
.form-alert.is-ok  { background: #e7f6ef; color: #2c7a59; border: 1px solid #b6e3cf; }
.form-alert.is-err { background: #fdecec; color: #b23b3b; border: 1px solid #f3c4c4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #c3c9ce;
  padding: 22px 0;
  font-size: .9rem;
  margin-top: auto;   /* push to viewport bottom on short pages (sticky footer) */
}
.site-footer a { color: #fff; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: 0; cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
  z-index: 900;
  border-radius: 2px;
}
.to-top.is-visible { display: flex; }
.to-top:hover { background: var(--green-dark); }

/* ---------- Reveal animation ----------
   Content is hidden only when JS is active (html.js), so the page is fully
   visible if scripts fail to load.

   Reveal uses CSS @keyframes, NOT transitions. A keyframe animation plays from
   its own 0% frame the moment .is-in is added, so it does not depend on the
   hidden state having been painted first. A transition DOES depend on that, and
   Firefox can add .is-in before painting the hidden frame for elements already
   on screen at load -- which silently skips the transition and makes it snap
   into place. @keyframes sidesteps that race entirely (verified: under a class
   added before first paint, transitionstart never fires but animationstart
   does, in both Firefox and Chromium). */
.js .reveal { opacity: 0; }
.js .reveal.is-in        { animation: reveal-in .7s ease both; }
.js .reveal--left.is-in  { animation-name: reveal-in-left; }
.js .reveal--right.is-in { animation-name: reveal-in-right; }
@keyframes reveal-in       { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes reveal-in-left  { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes reveal-in-right { from { opacity: 0; transform: translateX(22px);  } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.is-in,
  .js .reveal--left.is-in,
  .js .reveal--right.is-in { animation: none; }

  /* New hero motion: instant swap, slices and captions fully visible.
     !important so the per-slide direction rules (which add :nth-child
     specificity) can't re-enable a wipe here. */
  .js .hero-slide.is-active .slit,
  .js .hero-slide.is-active .hero-caption,
  .js .page-contact .hero--static .hero-slide.is-active .hero-caption { animation: none !important; }
  .hero-slide.is-active .slit { clip-path: none !important; transform: none; }
  .hero-slide.is-active .hero-caption { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---------- Helpers ---------- */
.text-lg { font-size: 1.12rem; }
