/* Interior Living landing page (products/interior.html) */

  /* ---------- Hunter Douglas + Lutron slider gallery ---------- */
  .brand-slider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }
  .brand-slide {
    position: relative;
    overflow: hidden;
    flex: 0 0 300px;
    aspect-ratio: 4/5;
    border-radius: 8px;
    scroll-snap-align: start;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1);
  }
  .brand-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }
  .brand-slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 22px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent 75%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .brand-slide:hover .brand-slide-caption { opacity: 1; transform: translateY(0); }
  .brand-slide-caption .brand-tag {
    display: inline-block;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--white); background: rgba(46,126,234,0.9);
    padding: 4px 10px; border-radius: 16px; margin-bottom: 8px;
  }
  .brand-slide-caption h4 { color: var(--white); font-size: 0.98rem; margin: 0 0 2px; font-style: italic; font-weight: 400; }
  .brand-slide-caption .brand-product { color: rgba(255,255,255,0.78); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .brand-slider::-webkit-scrollbar { height: 6px; }
  .brand-slider::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .brand-slider-nav { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
  .brand-slider-nav button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .brand-slider-nav button:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
  .brand-slider-nav svg { width: 18px; height: 18px; }
  
    /* ---------- Sticky section jump-nav ---------- */
  .section-nav {
    position: sticky;
    top: 69px;
    z-index: 90;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
  }
  .section-nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .section-nav-inner::-webkit-scrollbar { display: none; }
  .section-nav-link {
    flex: 0 0 auto;
    padding: 15px 18px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .section-nav-link:hover { color: var(--ink); }
  .section-nav-link.active { color: var(--blue-bright); border-color: var(--blue-bright); }
  #featured, #core-systems, #gallery, #wand, #motorization, #drapery, #other-brands, #quote {
    scroll-margin-top: 128px;
  }
  @media (max-width: 760px) {
    .section-nav { top: 63px; }
    #featured, #core-systems, #gallery, #wand, #motorization, #drapery, #other-brands, #quote {
      scroll-margin-top: 118px;
    }
  }

  /* ---------- Core systems: best-use tags ---------- */
  .use-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--blue-bright);
    padding: 5px 11px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  /* ---------- Core systems: comparison table ---------- */
  .compare-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  /* Mobile-only nudge — these tables are wider than any phone screen
     (min-width:760px below), so on small screens there's no visual cue
     that more columns exist off to the right unless we add one. */
  .table-scroll-hint {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue);
  }
  .table-scroll-hint svg {
    width: 16px;
    height: 16px;
    animation: table-scroll-nudge 1.3s ease-in-out infinite;
  }
  @keyframes table-scroll-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
  }
  @media (max-width: 820px) {
    .table-scroll-hint { display: flex; }
    .compare-table-wrap::after {
      content: "";
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 30px;
      background: linear-gradient(90deg, rgba(255,255,255,0), var(--white));
      pointer-events: none;
      border-radius: 0 8px 8px 0;
    }
  }
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
  }
  .compare-table th, .compare-table td {
    padding: 18px 20px;
    text-align: left;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--line);
  }
  .compare-table thead th {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--ink);
    background: var(--paper-deep);
    white-space: nowrap;
  }
  .compare-table .compare-row-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
    white-space: nowrap;
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 1;
  }
  .compare-table thead th.compare-row-label { background: var(--paper-deep); }
  .compare-photo-row td, .compare-photo-row th.compare-row-label {
    background: var(--white) !important;
    padding: 20px 20px 4px;
    vertical-align: bottom;
  }
  .compare-photo {
    width: 100%;
    min-width: 130px;
    aspect-ratio: 4/3;
    box-sizing: border-box;
    border: 1.5px dashed var(--line);
    border-radius: 6px;
    background: var(--paper-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: var(--charcoal-soft);
  }
  .compare-photo svg { width: 26px; height: 26px; opacity: 0.45; flex-shrink: 0; }
  .compare-photo span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
  }
  /* Once a real photo replaces the icon/label, it should sit centered and
     fully visible inside the fixed box — never cropped or stretched, so
     every column stays the same size regardless of the photo's own ratio. */
  .compare-photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 3px;
    flex-shrink: 0;
  }
  .compare-table tbody tr:nth-child(even) td,
  .compare-table tbody tr:nth-child(even) th.compare-row-label { background: var(--paper); }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
  .compare-table td { color: var(--charcoal-soft); }
  .compare-row-highlight td, .compare-row-highlight th.compare-row-label {
    background: var(--sky-pale) !important;
    color: var(--ink);
    font-weight: 500;
  }
  @media (max-width: 620px) {
    .compare-table th, .compare-table td { padding: 14px 16px; font-size: 0.82rem; }
  }

  /* ---------- Wand section image labels ---------- */
  .media-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--charcoal-soft);
    font-weight: 600;
    margin-top: 12px;
  }

  /* ---------- In the Field: scrollable filmstrip (append more anytime) ---------- */
  .portfolio-filmstrip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }
  .portfolio-filmstrip .p-item {
    flex: 0 0 320px;
    width: auto;
    aspect-ratio: 4/3;
    scroll-snap-align: start;
  }
  .portfolio-filmstrip::-webkit-scrollbar { height: 6px; }
  .portfolio-filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .filmstrip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .filmstrip-head span.hint { font-size: 0.74rem; color: var(--charcoal-soft); }

  /* ---------- Wand: photo placeholders — swap in real <img> tags anytime ---------- */
  .photo-slot {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1.5px dashed var(--line);
    border-radius: 6px;
    background: var(--paper-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--charcoal-soft);
    padding: 16px;
  }
  .photo-slot svg { width: 30px; height: 30px; opacity: 0.4; flex-shrink: 0; }
  .photo-slot span {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6;
    text-align: center;
  }
  .photo-slot img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
  }
  .wand-filmstrip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }
  .wand-filmstrip .photo-slot { flex: 0 0 180px; aspect-ratio: 4/3; scroll-snap-align: start; }
  .wand-filmstrip::-webkit-scrollbar { height: 6px; }
  .wand-filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

  /* ---------- Wand: buzzword highlights (photo + icon tiles) ----------
     All five tiles share one card treatment — same border, same square
     media box — so the two real-photo tiles and the three icon tiles read
     as one consistent set instead of mismatched sizes floating in a row. */
  .wand-highlights {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .wand-highlights-media {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }
  .wand-highlights-media .wand-highlight {
    flex: 0 1 220px;
    max-width: 220px;
  }
  /* Stats row mirrors the finish swatches below — small circle + plain
     label, no card, no drama. Keeps it a quiet footnote under the two
     real photos instead of competing with them. */
  .wand-highlights-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
  }
  .wand-highlights-stats .wand-highlight {
    flex: 0 0 auto;
    padding: 0;
    background: none;
    border: none;
    gap: 10px;
  }
  .wand-highlights-stats .wand-highlight:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }
  .wand-highlights-stats .wand-highlight-stat {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(16, 22, 31, 0.1), inset 0 -4px 8px rgba(0,0,0,0.08), inset 0 3px 6px rgba(255,255,255,0.25);
    padding: 0;
  }
  .wand-highlights-stats .wand-highlight-stat::before { display: none; }
  .wand-highlights-stats .wand-highlight-stat span {
    font-size: 0.6rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
  }
  .wand-highlights-stats .wand-highlight-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
  }
  .wand-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .wand-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(16, 22, 31, 0.08);
    border-color: rgba(16, 22, 31, 0.16);
  }
  .wand-highlight-media {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: var(--paper-deep);
  }
  .wand-highlight-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .wand-highlight-stat {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(155deg, var(--sky-pale) 0%, var(--paper-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
  }
  .wand-highlight-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(46,126,234,0.16), transparent 60%);
  }
  .wand-highlight-stat span {
    position: relative;
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--blue);
    text-align: center;
  }
  .wand-highlight-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .wand-highlight-note {
    font-size: 0.7rem;
    color: var(--charcoal-soft);
    line-height: 1.4;
    margin-top: -8px;
  }
  @media (max-width: 480px) {
    .wand-highlights-media .wand-highlight { flex-basis: 100%; max-width: 260px; }
  }

  /* ---------- Wand: available finishes ---------- */
  .wand-finishes-head {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: 1.3rem;
    margin: 0 0 24px;
  }
  .wand-finish-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
  }
  .wand-finish {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .wand-finish-swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(16, 22, 31, 0.1), inset 0 -4px 8px rgba(0,0,0,0.08), inset 0 3px 6px rgba(255,255,255,0.25);
  }
  .wand-finish-swatch.finish-white { background: #FFFFFF; border-color: rgba(13,13,15,0.2); }
  .wand-finish-swatch.finish-silver { background: linear-gradient(155deg, #C7C7C1, #98988F); }
  .wand-finish-swatch.finish-black { background: linear-gradient(155deg, #2B2B2E, #0F0F11); }
  .wand-finish-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
  }
  @media (max-width: 480px) {
    .wand-finish-grid { gap: 24px; }
    .wand-finish-swatch { width: 48px; height: 48px; }
  }

  /* ---------- Motorization showcase: bento-style, always-on captions ---------- */
  .moto-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 230px);
    gap: 28px;
  }
  .moto-tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background:
      radial-gradient(circle at 30% 20%, rgba(46,126,234,0.3), transparent 55%),
      linear-gradient(150deg, var(--navy-soft), var(--navy-deep) 130%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  }
  .moto-tile:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18); }
  .moto-tile.alt {
    background:
      radial-gradient(circle at 70% 80%, rgba(46,126,234,0.18), transparent 60%),
      linear-gradient(150deg, var(--paper-deep), var(--charcoal-soft) 160%);
  }
  .moto-tile img, .moto-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }
  .moto-tile .video-slot {
    position: absolute;
    inset: 10px;
    z-index: 0;
    border: 1.5px dashed rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
  }
  .moto-tile .video-slot svg { width: 34px; height: 34px; opacity: 0.75; }
  .moto-hero .video-slot svg { width: 46px; height: 46px; }
  .moto-tile .video-slot span {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
  }
  .moto-hero { grid-column: 1 / 3; grid-row: 1 / 3; }

  /* ---------- Custom Drapery: designer-style showcase ---------- */
  .drapery-hero {
    width: 100%;
    aspect-ratio: 2/1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(7, 27, 51, 0.1);
  }
  .drapery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  @media (max-width: 620px) {
    .drapery-hero { aspect-ratio: 4/3; }
  }
  .moto-tile-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 22px 26px;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 10%, rgba(0,0,0,0.15) 60%, transparent 100%);
  }
  .moto-hero .moto-tile-caption { padding: 30px 34px; }
  .moto-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(46,126,234,0.9);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  .moto-tile-caption h4 { color: var(--white); font-size: 1rem; margin: 0 0 2px; font-style: italic; font-weight: 400; }
  .moto-hero .moto-tile-caption h4 { font-size: 1.5rem; }
  .moto-tile-caption span { color: rgba(255,255,255,0.78); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .moto-lede { max-width: 620px; margin: -40px 0 44px; font-size: 1rem; }
  @media (max-width: 960px) {
    .moto-showcase { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 200px); }
    .moto-hero { grid-column: 1 / 3; grid-row: 1 / 2; }
  }
  @media (max-width: 620px) {
    .moto-showcase { grid-template-columns: 1fr; grid-template-rows: repeat(5, 220px); gap: 20px; }
    .moto-hero { grid-column: 1; grid-row: 1; }
  }

  /* ---------- Hunter Douglas + Lutron slider gallery ---------- */
  .brand-slider {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }
  .brand-slide {
    position: relative;
    overflow: hidden;
    flex: 0 0 300px;
    aspect-ratio: 4/5;
    border-radius: 8px;
    scroll-snap-align: start;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1);
  }
  .brand-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
  }
  .brand-slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 22px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent 75%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .brand-slide:hover .brand-slide-caption { opacity: 1; transform: translateY(0); }
  .brand-slide-caption .brand-tag {
    display: inline-block;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--white); background: rgba(46,126,234,0.9);
    padding: 4px 10px; border-radius: 16px; margin-bottom: 8px;
  }
  .brand-slide-caption h4 { color: var(--white); font-size: 0.98rem; margin: 0 0 2px; font-style: italic; font-weight: 400; }
  .brand-slide-caption .brand-product { color: rgba(255,255,255,0.78); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .brand-slider::-webkit-scrollbar { height: 6px; }
  .brand-slider::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .brand-slider-nav { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
  .brand-slider-nav button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .brand-slider-nav button:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
  .brand-slider-nav svg { width: 18px; height: 18px; }
