/* =========================================================
   Light Lounge — Homepage styles
   Tokens → base → layout → components → sections → responsive
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --purple: #581CAF;
  --purple-dark: #3F1280;
  --purple-light: #7C3AED;
  --navy: #35355B;
  --lav: #FBF2FF;
  --lav-deep: #F6E6FE;
  --amber: #FBBF24;
  --ink: #424141;
  --white: #ffffff;

  --border-soft: #e4d9f3;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --container: 1200px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-nav: 0 10px 40px -12px rgba(53, 53, 91, .35);
  --shadow-img: 0 30px 60px -30px rgba(53, 53, 91, .5);
  --shadow-card: 0 20px 40px -28px rgba(88, 28, 175, .5);

  --gap: 1.25rem;
  --section-pad: clamp(3.5rem, 8vw, 7.5rem);
  /* 56px → 120px (desktop cap) */
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--purple);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  margin-block: var(--section-pad);
}

.section--lav {
  background: var(--lav);
  margin-block: 0;
  padding-block: var(--section-pad);
}

.section--clip {
  overflow: hidden;
}

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn__dot {
  width: .5rem;
  height: .5rem;
  border-radius: var(--radius-pill);
  background: currentColor;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.icon-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b6b78;
}

.eyebrow::before {
  content: "";
  height: 1px;
  width: 34px;
  background: currentColor;
  opacity: .5;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  height: 1px;
  width: 34px;
  background: currentColor;
  opacity: .5;
}

/* ---------- Section headings ---------- */
.section-title {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin-top: 1rem;
}

.section-sub {
  margin-top: .75rem;
  color: rgba(66, 65, 65, .8);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-head__actions {
  display: flex;
  gap: .75rem;
}

.center {
  text-align: center;
}

/* ---------- Rich text (WYSIWYG / SCF output, no classes) ----------
   Wrap any WYSIWYG field in <div class="rich-text">…</div>.
   Editors output bare tags; styling targets the tags directly.
   - "Heading 2" button  -> <h2>  (section title)
   - normal text         -> <p>   (body copy)
   - "Bold" button       -> <strong> (brand-purple highlight, e.g. the accent line)
*/
.rich-text {
  color: rgba(66, 65, 65, .9);
}

.rich-text>* {
  margin: 0;
}

.rich-text>*+* {
  margin-top: 1rem;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  font-family: var(--font-display);
  color: var(--purple);
  line-height: 1.12;
  font-weight: 500;
}

.rich-text h1,
.rich-text h2 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
}

/* Compact variant for tighter columns (e.g. About) */
.rich-text--compact h1,
.rich-text--compact h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.rich-text h3 {
  font-size: 1.25rem;
}

.rich-text h4 {
  font-size: 1.0625rem;
}

.rich-text a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text a:hover {
  color: var(--purple-dark);
}

.rich-text strong,
.rich-text b {
  color: var(--purple);
  font-weight: 500;
}

.rich-text em,
.rich-text i {
  font-style: italic;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.25rem;
  max-width: 38rem;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li+li {
  margin-top: .5rem;
}

.rich-text blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 1rem;
  color: var(--ink);
}

.rich-text img {
  border-radius: var(--radius);
}

/* When the section is centered (e.g. Projects head), keep copy centered */
.center .rich-text p,
.center .rich-text ul,
.center .rich-text ol {
  margin-inline: auto;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-nav);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex: none;
}

.brand__logo {
  width: auto;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
}

.brand__name b {
  font-weight: 600;
  color: var(--navy);
}

.brand__name span {
  color: var(--ink);
}

.nav {
  display: none;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 15px;
}

.nav-link {
  color: var(--ink);
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--purple);
}

.nav-link--active {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 600;
  color: var(--purple);
}

/* WordPress menu output (wp_nav_menu) — styled to match the design above.
   Desktop nav uses .nav-list with default menu-item / current-menu-item classes. */
.nav-list .menu-item {
  display: inline-flex;
  align-items: center;
}

.nav-list .menu-item>a {
  color: var(--ink);
  transition: color .2s ease;
}

.nav-list .menu-item>a:hover {
  color: var(--purple);
}

.nav-list .current-menu-item>a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 600;
  color: var(--purple);
}

/* Purple star before the active item (replaces the inline SVG). */
.nav-list .current-menu-item>a::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg width='19' height='10' viewBox='0 0 19 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.9937 0.00280304H10.2322C9.87721 -0.0100966 9.52219 0.0221519 9.17351 0.08665C8.82483 0.151148 8.48248 0.254345 8.15282 0.39624C7.82316 0.538136 7.51251 0.712282 7.22089 0.918675C6.92926 1.12507 6.663 1.36371 6.41575 1.62815C5.37604 2.65367 0 10 0 10H10.1118C10.695 9.9226 11.2402 9.73556 11.7538 9.43887C12.2673 9.14218 12.6984 8.75519 13.0534 8.2779C14.2135 6.66545 19 0.00925299 19 0.00925299L18.9937 0.00280304Z' fill='%23581CAF'/%3E%3C/svg%3E%0A") no-repeat center / contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.mobile-menu {
  margin-top: .5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px rgba(53, 53, 91, .4);
  padding: 1rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__link {
  display: block;
  padding: .75rem .5rem;
  color: var(--ink);
}

.mobile-menu__link:hover {
  color: var(--purple);
}

.mobile-menu__link--active {
  font-weight: 600;
  color: var(--purple);
}

.mobile-menu .btn {
  margin-top: .5rem;
}

/* WordPress menu output for the mobile drawer. */
.mobile-menu-list .menu-item>a {
  display: block;
  padding: .75rem .5rem;
  color: var(--ink);
}

.mobile-menu-list .menu-item>a:hover {
  color: var(--purple);
}

.mobile-menu-list .current-menu-item>a {
  font-weight: 600;
  color: var(--purple);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13, 9, 23, .55) 0%, rgba(13, 9, 23, .35) 38%, rgba(13, 9, 23, .85) 100%),
    #0d0917 var(--hero-bg, url("../images/hero-chandelier.webp")) center 30% / cover no-repeat;
}

.hero__inner {
  padding: 7rem 1rem 5rem;
  max-width: var(--container);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Variant: actions placed below the hero text instead of above the title */
.hero__actions--below {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.hero__title {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.hero__text {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, .8);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__media {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-img);
}

.about__body .rich-text {
  margin-top: 1rem;
}

.about__actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- Products ---------- */
.products__head {
  margin-bottom: 2.5rem;
}

.product-slide {
  height: auto;
}

.product-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lav);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card__img,
.product-card:focus-within .product-card__img {
  transform: scale(1.06);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .1));
  opacity: 0;
  transition: opacity .4s ease;
}

.product-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity .4s ease;
  background: rgba(53, 53, 91, 0.8);
}

/* Reveal body + overlay on hover/focus for every card */
.product-card:hover .product-card__overlay,
.product-card:focus-within .product-card__overlay,
.product-card:hover .product-card__body,
.product-card:focus-within .product-card__body {
  opacity: 1;
}

.product-card__title {
  font-size: 1.25rem;
  letter-spacing: .04em;
}

.product-card__text {
  margin-top: .5rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .8);
}

.product-card__link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
}

.product-card__link .icon-btn {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.product-card__link .icon-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.product-card__link .icon-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Solutions ---------- */
.solutions__head {
  margin-bottom: 3rem;
}

.solutions__grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  /* 2px transparent-ish border keeps width constant so hover doesn't shift layout */
  border: 2px solid rgba(88, 28, 175, .1);
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Highlight on hover (and keep --active available if set explicitly) */
.feature-card:hover,
.feature-card--active {
  border-color: rgba(88, 28, 175, .7);
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--lav);
  color: var(--navy);
  transition: color .2s ease;
}

.feature-card:hover .feature-card__icon,
.feature-card--active .feature-card__icon {
  color: var(--purple);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--navy);
  transition: color .2s ease;
}

.feature-card:hover .feature-card__title,
.feature-card--active .feature-card__title {
  color: var(--purple);
}

.feature-card__text {
  margin-top: .25rem;
  font-size: .875rem;
  color: rgba(66, 65, 65, .7);
}

/* ---------- Projects ---------- */
.projects__head {
  margin-bottom: 3rem;
}

.project-slide {
  width: min(860px, 90vw);
  height: auto;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .2) 50%, transparent);
}

.project-card__body {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  text-align: left;
}

.project-card__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.project-card__meta {
  margin-top: .25rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
}

.project-card__link {
  margin-top: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, .4);
}

.project-card__link:hover {
  text-decoration-color: #fff;
}

.projects__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

/* ---------- Gallery ---------- */
.gallery__head {
  margin-bottom: 2.5rem;
}

/* Full-bleed grid with minor gaps (matches the design) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
  /* padding-inline: clamp(1.25rem, 3vw, 2.5rem); */
  padding: 0 .5rem;
}

.gallery__item {
  /* border-radius: var(--radius); */
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* On small screens the two wide tiles span both columns */
.gallery__item--a,
.gallery__item--f {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

/* ---------- Testimonials ---------- */
.testimonials__head {
  margin-bottom: 2.5rem;
}

.testimonial-slide {
  height: auto;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  width: 100%;
  margin: 0;
}

.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(88, 28, 175, .1);
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 600;
  flex: none;
}

/* Photo avatar (from the CMS) */
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex: none;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
}

.stars {
  display: flex;
  gap: .125rem;
  color: var(--amber);
}

.stars svg {
  width: 15px;
  height: 15px;
}

.testimonial-card__quote {
  margin-top: 1rem;
  color: rgba(66, 65, 65, .85);
}

/* Progress-bar pagination (matches the design) */
.testimonials-pagination.swiper-pagination-progressbar {
  position: relative;
  width: min(440px, 80%);
  height: 4px;
  margin: 2.5rem auto 0;
  background: #e3d8f4;
  border-radius: 999px;
  overflow: hidden;
}

.testimonials-pagination .swiper-pagination-progressbar-fill {
  background: var(--purple);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .75);
}

.site-footer .container {
  padding-block: 4rem;
}

.footer__grid {
  display: grid;
  gap: 3rem;
}

.footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
}

.footer__logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.footer__name span {
  color: rgba(255, 255, 255, .7);
}

.footer__about {
  margin-top: 1.25rem;
  max-width: 20rem;
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: .75rem;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, .1);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .875rem;
}

.footer__link {
  transition: color .2s ease;
}

.footer__link:hover {
  color: #fff;
}

.footer__text {
  font-size: .875rem;
  font-style: normal;
}

.footer__title--mt {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.footer__divider {
  margin-block: 2rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.footer__copy {
  text-align: center;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------- About page: Direction (Vision / Mission) ---------- */
.direction__head {
  margin-bottom: 3rem;
}

.vm-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.vm-card {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vm-card__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 56%;
  object-fit: cover;
  border-bottom-left-radius: 80px;
}

.vm-card__icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: #fff;
}

.vm-card__icon svg {
  width: 40px;
  height: 40px;
}

.vm-card__title {
  font-size: 1.5rem;
}

.vm-card__text {
  margin-top: .75rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
}

/* ---------- About page: Values ---------- */
.value-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

.value-card {
  background: #fff;
  /* 2px transparent-ish border keeps width constant so hover doesn't shift layout */
  border: 2px solid rgba(88, 28, 175, .1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Highlight on hover (and keep --active available if set explicitly) */
.value-card:hover,
.value-card--active {
  border-color: rgba(88, 28, 175, .7);
  box-shadow: var(--shadow-card);
}

.value-card__icon {
  color: var(--navy);
  display: inline-flex;
  transition: color .2s ease;
}

.value-card__icon svg {
  width: 34px;
  height: 34px;
}

.value-card:hover .value-card__icon,
.value-card--active .value-card__icon {
  color: var(--purple);
}

.value-card__title {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--navy);
  transition: color .2s ease;
}

.value-card:hover .value-card__title,
.value-card--active .value-card__title {
  color: var(--purple);
}

/* ---------- Products page: filter tabs + grid ---------- */
.range__head {
  margin-bottom: 2rem;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.product-tab {
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
  background: #f2eef8;
  border-radius: var(--radius-sm);
  padding: .7rem 1.25rem;
  transition: background-color .2s ease, color .2s ease;
}

.product-tab:not(.product-tab--active):hover {
  background: #e7dff5;
}

.product-tab--active {
  background: var(--purple);
  color: #fff;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.product-tile {
  background: #fff;
  /* 2px transparent-ish border keeps width constant so hover doesn't shift layout */
  border: 2px solid rgba(88, 28, 175, .08);
  border-radius: var(--radius);
  padding: .85rem;
  /* Height fits image + name snugly (no empty gap); on hover the image shrinks
     to make room for the detail list, keeping total height constant. */
  height: 318px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* display:flex above overrides the [hidden] attribute used by the filter — restore it */
.product-tile[hidden] {
  display: none;
}

/* Highlight on hover (purple border + lavender surface) */
.product-tile:hover {
  border-color: rgba(88, 28, 175, .6);
  background: var(--lav);
  box-shadow: var(--shadow-card);
}

/* Image shrinks on hover to make room for the hidden detail */
.product-tile__img {
  width: 100%;
  height: 220px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: height .35s ease;
}

.product-tile:hover .product-tile__img {
  height: 149px;
}

/* Body (name) and list (detail) cross-fade in the same space */
.product-tile__content {
  position: relative;
  flex: 1 1 auto;
}

.product-tile__body,
.product-tile__list {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: .9rem .5rem .4rem;
  transition: opacity .25s ease;
}

.product-tile__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--navy);
}

.product-tile__sub {
  margin-top: .3rem;
  font-size: .875rem;
  color: rgba(66, 65, 65, .7);
}

.product-tile__list {
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.product-tile__list li {
  font-size: .9rem;
  color: rgba(66, 65, 65, .85);
}

.product-tile:hover .product-tile__body {
  opacity: 0;
}

.product-tile:hover .product-tile__list {
  opacity: 1;
}

.product-empty {
  text-align: center;
  color: rgba(66, 65, 65, .7);
  padding: 2.5rem 0;
}

.product-empty[hidden] {
  display: none;
}

/* ---------- Solution page ---------- */
.section--navy {
  background: var(--navy);
  color: #fff;
  margin-block: 0;
  padding-block: var(--section-pad);
}

.section--navy .section-title {
  color: #fff;
}

.section--navy .eyebrow {
  color: rgba(255, 255, 255, .65);
}

/* Tabbed solution panels */
.solution-tabs .product-tab {
  text-transform: none;
  font-size: .9rem;
}

.solution-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.solution-panel[hidden] {
  display: none;
}

.solution-panel__media {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-img);
}

.solution-panel__title {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.solution-panel__lead {
  margin-top: .75rem;
  color: rgba(66, 65, 65, .9);
}

.solution-checklist {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.solution-checklist li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
}

.solution-check {
  flex: none;
  width: 20px;
  height: 20px;
}

.solution-panel__accent {
  margin-top: 1.25rem;
  color: var(--purple);
  font-weight: 500;
  max-width: 34rem;
}

/* Our Lighting Approach */
.approach__head {
  margin-bottom: 3rem;
}

.approach__lead {
  margin: .75rem auto 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, .75);
}

.approach__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.approach-item {
  text-align: center;
  max-width: 300px;
}

.approach-badge {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--navy);
}

.approach-badge svg {
  width: 30px;
  height: 30px;
}

.approach-item__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: #fff;
}

.approach-item__text {
  margin-top: .5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.approach__divider {
  display: none;
}

/* ---------- Gallery page ---------- */
/* Tighter section rhythm to match the gallery design (~130px between sections) */
.page-gallery .section {
  margin-block: clamp(2.25rem, 4.5vw, 4rem);
}

/* ---------- Gallery page: featured "video" ---------- */
.feature-video {
  position: relative;
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-img);
}

.feature-video__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .85);
  color: var(--purple);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.feature-video__play:hover {
  background: #fff;
  transform: scale(1.06);
}

.feature-video__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

/* ---------- Gallery page: detail masonry ---------- */
.detail-gallery__head {
  margin-bottom: 2.5rem;
}

/* Deterministic masonry: 3 independent columns (tall image in the middle column) */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-gallery__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 0;
}

.detail-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .5s ease;
}

.detail-gallery .is-tall img {
  aspect-ratio: 3 / 4;
}

.detail-gallery .is-wide img {
  aspect-ratio: 16 / 10;
}

.detail-gallery figure:hover img {
  transform: scale(1.05);
}

/* ---------- Contact page ---------- */
.contact-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}

.contact-card {
  background: var(--lav);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.contact-card__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: #fff;
}

.contact-card__icon svg {
  width: 26px;
  height: 26px;
}

.contact-card__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 1.125rem;
}

.contact-card__text {
  margin-top: .5rem;
  color: rgba(66, 65, 65, .7);
}

.contact-card__text a {
  color: inherit;
}

.contact-card__text a:hover {
  color: var(--purple);
}

.map-wrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-img);
}

.map-wrap iframe {
  width: 100%;
  height: clamp(320px, 45vw, 460px);
  border: 0;
  display: block;
}

.contact-form {
  background: #f4f4f6;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
}

.contact-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid #e3e1ec;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9b98a6;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form__actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

/* ---------- Contact form: feedback modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 9, 23, .6);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: 100%;
  max-width: 420px;
}

.modal__content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(53, 53, 91, .5);
}

.modal__content h4 {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 1.25rem;
}

.modal__content p {
  margin: .75rem 0 1.5rem;
  color: rgba(66, 65, 65, .8);
}

.contact-form.is-loading {
  opacity: .6;
  pointer-events: none;
}

/* ---------- Reveal on scroll ----------
   Fail-safe: content is visible by default. The hidden/animated state only
   applies once JS adds `.js` to <html>, so sections are NEVER stuck invisible
   if scripts fail to load (e.g. inside a page builder or with JS disabled). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Swiper brand styling ---------- */
.swiper {
  width: 100%;
}

.swiper-pagination-bullet {
  background: #c9bce0;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--purple);
  width: 26px;
  border-radius: 6px;
}

.products-swiper .swiper-pagination {
  position: relative;
  margin-top: 2rem;
}

.projects-swiper .swiper-slide {
  transition: transform .4s ease, opacity .4s ease;
  opacity: .45;
  transform: scale(.86);
}

.projects-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* Pagination sits inline between the arrows — override Swiper's full-width default */
.projects__controls .swiper-pagination {
  position: relative;
  inset: auto;
  width: auto;
  margin: 0;
}

/* =========================================================
   Responsive — small (>=640px)
   ========================================================= */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-gallery {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ---------- Medium / desktop (>=1024px) ---------- */
@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .solutions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vm-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution-panel {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .approach__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .approach-item {
    flex: 1 1 0;
  }

  .approach__divider {
    display: block;
    flex: 0 0 56px;
    height: 2px;
    background: rgba(124, 58, 237, .55);
    margin-top: 32px;
  }

  /* Bento (12-col): wide top-left + narrow + medium; medium + narrow + wide bottom-right.
     Row heights scale with viewport so images stay well-proportioned at full width. */
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: clamp(220px, 25vw, 360px) clamp(190px, 21vw, 300px);
  }

  .gallery__item {
    aspect-ratio: auto;
    width: 100%;
    margin: 0;
  }

  .gallery__item--a {
    grid-column: 1 / 6;
    grid-row: 1;
  }

  /* span 5 */
  .gallery__item--b {
    grid-column: 6 / 9;
    grid-row: 1;
  }

  /* span 3 */
  .gallery__item--c {
    grid-column: 9 / 13;
    grid-row: 1;
  }

  /* span 4 */
  .gallery__item--d {
    grid-column: 1 / 5;
    grid-row: 2;
  }

  /* span 4 */
  .gallery__item--e {
    grid-column: 5 / 8;
    grid-row: 2;
  }

  /* span 3 */
  .gallery__item--f {
    grid-column: 8 / 13;
    grid-row: 2;
  }

  /* span 5 */

  .footer__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }

  .footer__brand {
    grid-column: span 4;
  }

  .footer__col--links {
    grid-column: span 2;
  }

  .footer__col--product {
    grid-column: span 2;
  }

  .footer__col--explore {
    grid-column: span 1;
  }

  .footer__col--contact {
    grid-column: span 3;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .projects-swiper .swiper-slide {
    transition: none;
  }

  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}