/* =========================================================
   Cool Touch — Inner Pages Modern Redesign
   Works with body.home-page.ct-page + home-modern.css
   ========================================================= */

.ct-page .banner,
.ct-page .banner-section {
  display: none !important;
}

/* ---------- Page hero ---------- */
.ct-page-hero {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0e1014;
  color: #fff;
  padding: calc(var(--ct-header-h, 120px) + 48px) 0 56px;
}

.ct-page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ct-page-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.05) brightness(0.78);
}

.ct-page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.45) 48%, rgba(8, 10, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.35) 0%, rgba(8, 10, 14, 0.55) 55%, rgba(8, 10, 14, 0.88) 100%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(132, 204, 22, 0.14), transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.ct-page-hero .container {
  position: relative;
  z-index: 2;
}

.ct-page-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 14px;
}

/* Gradient accent word — matches home testimonials title */
.ct-grad {
  background: linear-gradient(105deg, #facc15 0%, #84cc16 45%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-page-hero h1 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: #fff;
  max-width: 14ch;
}

.ct-page-hero h1 .ct-grad {
  display: inline;
}

.ct-page-hero-lead {
  max-width: 42ch;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.ct-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.ct-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.ct-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
  margin-left: 2px;
}

.ct-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s ease;
}

.ct-breadcrumb a:hover {
  color: #fff;
}

.ct-breadcrumb .active {
  color: #facc15;
}

/* Hide legacy page header / breadcrumb when modern hero is present */
.ct-page .page-header,
.ct-page .page-header-item {
  display: none !important;
}

/* ---------- Shared section rhythm ---------- */
.ct-page .padding-tb {
  padding: 96px 0;
}

.ct-page-section-head {
  margin-bottom: 40px;
}

.ct-page-section-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-muted);
  margin-bottom: 12px;
}

.ct-page-section-head h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ct-ink);
  margin: 0 0 12px;
}

.ct-page-section-head h2 .ct-grad {
  display: inline;
}

.ct-about-pillars .ct-page-section-head h2 {
  color: #fff;
}

.ct-page-section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--ct-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   ABOUT
   ========================================================= */
.ct-about-story {
  background:
    linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.ct-about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.ct-about-story-copy h1,
.ct-about-story-copy .ct-about-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ct-muted);
  margin: 0 0 14px;
  font-family: inherit;
}

.ct-about-story-copy h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ct-ink);
  margin: 0 0 20px;
}

.ct-about-story-copy h2 .ct-line {
  display: block;
}

.ct-about-story-copy > p {
  color: var(--ct-muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 48ch;
}

.ct-about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-about-stats li {
  min-width: 100px;
}

.ct-about-stats strong {
  display: block;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ct-ink);
  line-height: 1;
  margin-bottom: 6px;
}

.ct-about-stats span {
  font-size: 13px;
  color: var(--ct-muted);
}

.ct-about-video {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ct-shadow);
  background: #0e1014;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  width: 100%;
}

/* Beat .home-page .ct-img-reveal video { height: auto } so the clip fills the frame */
.home-page .ct-about-video.ct-img-reveal video,
.ct-about-video video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none;
  opacity: 1;
}

.ct-about-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

/* Mission / Vision / Values */
.ct-about-pillars {
  background: #0e1014;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ct-about-pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 10% 0%, rgba(132, 204, 22, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(250, 204, 21, 0.07), transparent 60%);
}

.ct-about-pillars .container {
  position: relative;
  z-index: 1;
}

.ct-about-pillars .ct-page-section-head .eyebrow,
.ct-about-pillars .ct-page-section-head p {
  color: rgba(255, 255, 255, 0.55);
}

.ct-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ct-pillar {
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ct-ease), background 0.35s ease, border-color 0.35s ease;
}

.ct-pillar:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.ct-pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-pillar-icon img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ct-pillar h3 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 12px;
}

.ct-pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
  text-align: left !important;
}

/* =========================================================
   PRODUCTS — Our Videos bento gallery
   ========================================================= */
.ct-product-videos {
  background: #f3f4f6;
}

.ct-video-head {
  margin-bottom: 28px;
}

.ct-video-head h2 {
  margin-bottom: 10px;
}

.ct-video-head p {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: #9ca3af;
}

.ct-video-bento {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-video-bento-row {
  display: grid;
  grid-template-columns: 0.85fr 2.05fr 1.35fr;
  gap: 14px;
  min-height: clamp(200px, 22vw, 280px);
}

.ct-video-bento-row-mirror {
  grid-template-columns: 2.05fr 1.35fr 0.85fr;
}

.ct-bento-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 22px rgba(15, 18, 24, 0.12);
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.ct-bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ct-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.ct-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 42%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.ct-bento-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.ct-bento-card:hover img {
  transform: scale(1.06);
}

.ct-bento-card:focus-visible {
  outline: 2px solid #84cc16;
  outline-offset: 3px;
}

.ct-product-benefits {
  background:
    linear-gradient(135deg, #f7f8fa 0%, #eef1f5 50%, #f7f8fa 100%);
  position: relative;
  overflow: hidden;
}

.ct-product-benefits::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.08), transparent 70%);
  pointer-events: none;
}

.ct-benefits-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ct-benefits-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--ct-shadow-hover);
  background: #fff;
}

.ct-benefits-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ct-benefits-copy h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ct-ink);
  margin: 0 0 16px;
}

.ct-benefits-copy h2 .ct-line {
  display: block;
}

.ct-benefits-copy > p {
  color: var(--ct-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.ct-benefits-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ct-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ct-line);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ct-ink-soft);
  transition: transform 0.3s var(--ct-ease), box-shadow 0.3s ease;
}

.ct-benefits-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(15, 18, 24, 0.06);
}

.ct-benefits-list i {
  color: #65a30d;
  margin-top: 2px;
  flex-shrink: 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.ct-gallery-page {
  background:
    linear-gradient(180deg, #fff 0%, #f6f7f9 100%);
}

.ct-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0e1014;
  aspect-ratio: 4 / 5;
  box-shadow: 0 8px 28px rgba(15, 18, 24, 0.08);
}

.ct-gallery-item:nth-child(2),
.ct-gallery-item:nth-child(5),
.ct-gallery-item:nth-child(8) {
  aspect-ratio: 3 / 4;
}

.ct-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.ct-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ct-ease), filter 0.5s ease;
}

.ct-gallery-item .ct-gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 20, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ct-gallery-item .ct-gallery-hover i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #0e1014;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transform: scale(0.85);
  transition: transform 0.35s var(--ct-ease);
}

.ct-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.ct-gallery-item:hover .ct-gallery-hover {
  opacity: 1;
}

.ct-gallery-item:hover .ct-gallery-hover i {
  transform: scale(1);
}

/* =========================================================
   CONTACT
   ========================================================= */
.ct-contact-page {
  background: #fff;
}

.ct-contact-page .ct-home-contact {
  padding-top: 0;
}

.ct-contact-map {
  padding: 0 0 96px;
  background: #fff;
}

.ct-contact-map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ct-shadow);
  border: 1px solid var(--ct-line);
  background: #f6f7f9;
}

.ct-contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.15) contrast(1.02);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
  .ct-page-hero {
    min-height: 300px;
    padding: calc(88px + 36px) 0 44px;
  }

  .ct-about-story-grid,
  .ct-benefits-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ct-video-bento-row,
  .ct-video-bento-row-mirror {
    grid-template-columns: 1fr 1.4fr;
    min-height: 200px;
  }

  .ct-video-bento-row > .ct-bento-card:last-child,
  .ct-video-bento-row-mirror > .ct-bento-card:first-child {
    grid-column: 1 / -1;
    min-height: 180px;
  }

  .ct-about-video {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }

  .ct-pillars-grid {
    grid-template-columns: 1fr;
  }

  .ct-gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-page .padding-tb {
    padding: 72px 0;
  }
}

@media (max-width: 575px) {
  .ct-page-hero h1 {
    max-width: none;
  }

  .ct-gallery-masonry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ct-gallery-item,
  .ct-gallery-item:nth-child(2),
  .ct-gallery-item:nth-child(5),
  .ct-gallery-item:nth-child(8) {
    aspect-ratio: 4 / 3;
  }

  .ct-contact-map-frame iframe {
    height: 300px;
  }

  .ct-about-stats {
    gap: 20px;
  }

  .ct-video-bento {
    gap: 12px;
  }

  .ct-video-bento-row,
  .ct-video-bento-row-mirror {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .ct-video-bento-row > .ct-bento-card,
  .ct-video-bento-row-mirror > .ct-bento-card,
  .ct-video-bento-row > .ct-bento-card:last-child,
  .ct-video-bento-row-mirror > .ct-bento-card:first-child {
    grid-column: auto;
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .ct-bento-label {
    left: 14px;
    bottom: 12px;
    font-size: 13px;
  }

  .ct-video-head p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-pillar,
  .ct-gallery-item img,
  .ct-benefits-list li,
  .ct-bento-card img {
    transition: none;
  }
}
