﻿/* =========================================================
   Jimmy's Cypress â€” Site Stylesheet
   Bootstrap 5 companion styles
   ========================================================= */

:root {
  --green: #063D2F;
  --navlink: #313131;
  --green-deep: #063D2F;
  --green-footer: #14402f;
  --green-soft: #0b5743;
  --cream: #e6e9d8;
  --yellow: #FEC713;
  --yellow-dark: #E3B00E;
  --body-gray: #6E705C;
  --heading: #063D2F;
  --line: #e2e6e2;
  --card-bg: rgba(6, 61, 47, 0.05);
  --red: #EB292C;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: "DM Sans", "Segoe UI", Arial, sans-serif;
}



* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--body-gray);
  background: #fff; 
  line-height: 1.75;
  /* clip (not hidden): guards against stray x-overflow without creating a
     scroll container, so the sticky nav keeps working */
  overflow-x: clip;
}
p{ font-size:18px!important;
	color:#6E705C;
	font-weight: normal;
	line-height: normal;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 600;
  line-height:normal;
}



.colorsYel{color: var(--yellow);}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-soft); }

.text-link { text-decoration: underline; color:#063D2F; font-weight: 700; }
.text-link:hover { color: var(--green-soft); }
 
img { max-width: 100%; }

.section-pad { padding: 100px 0; }

/* =========== Buttons =========== */
.btn { border-radius: 999px; font-weight: 600; }

.btn-quote {
  background: var(--yellow);
  color: #1d1d1b;
  border: none;
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-quote:hover { background: var(--yellow-dark); color: #1d1d1b; transform: translateY(-1px); }

.btn-green {
  background: var(--green);
  color: #fff;  
  border: none;
  border-radius: 999px;
  padding: .65rem 1.6rem;
  font-weight:600;
  transition: background .2s, transform .2s;
}
.btn-green:hover { background: var(--green-soft); color: #fff; transform: translateY(-1px); }

.btn-outline-green {
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: .6rem 1.5rem;
  font-weight: 600;
}
.btn-outline-green:hover { background: var(--green); color: #fff; }

.btn-remove {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .35rem .9rem;
}
.btn-remove:hover { background: #c22222; color: #fff; }

.chev::after { content: "\00a0\00bb"; font-weight: 700; }

/* One consistent CTA size site-wide (hero, nav, sections, forms, banner) */
.btn-quote, .btn-green, .btn-outline-green, .btn-outline-yellow {
  font-size:16px;
  padding: 14px 24px;
  line-height: 1.4;
  font-weight:500;
}
.btn-outline-green, .btn-outline-yellow {
  padding-top: calc(.7rem - 1px);
  padding-bottom: calc(.7rem - 1px);
}

/* =========== Header =========== */
.top-logo-strip {
  background: var(--cream);
  padding: .9rem 0;
  text-align: center;
}
.top-logo-strip img { height: 74px; }

.contact-strip {
  background: var(--green);
  color: var(--yellow);
  font-size: .9rem;
  padding: .45rem 0;
}
.contact-strip a { color: var(--yellow); text-decoration: underline; font-weight: 500; }
.contact-strip a:hover { color: #fff; }
.contact-strip .icon { margin-right: .4rem; }

/* Bootstrap navbar (navbar-light bg-white sticky-top shadow-sm) supplies
   background, shadow, and stickiness â€” only brand styling lives here.
   #site-header generates no box (display: contents) so the sticky navbar's
   containing block is the page, letting it stick for the whole scroll. */
#site-header { display: contents; }
.main-nav { z-index: 1030; }
.main-nav > .container {  }
.main-nav .navbar-brand { flex-shrink: 0; }
.main-nav .navbar-brand img { height: 52px; }
.main-nav .navbar-nav .nav-link {
  --pad-x: .85rem;
  color: var(--navlink);
  font-weight:600;
  font-size: 18px;
  padding: 1.40rem var(--pad-x);
  white-space: nowrap;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--green); }
.main-nav .dropdown-menu {
  border: none;   
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: .5rem 0;
}

/* Chevron arrows on dropdown nav items (replaces Bootstrap's caret) */
.main-nav .dropdown-toggle::after {
  content: "";
  border: none;
  display: inline-block;
  width: .52em; height: .52em;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  margin-left: .45em;
  vertical-align: .2em;
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.main-nav .dropdown-toggle.show::after { transform: rotate(-135deg) translateY(-.15em); }

/* Desktop: open dropdowns on hover (collapsed drawer keeps click toggle) */
@media (min-width: 1200px) {
  .main-nav .nav-item.dropdown .dropdown-menu { margin-top: 0; }
  .main-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    animation: jcDropdown .25s ease;
  }
  .main-nav .nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(-135deg) translateY(-.15em);
  }
}
.main-nav .dropdown-item { font-weight: 500; font-size:16px; padding: .5rem 1.25rem; color: var(--heading); }
.main-nav .dropdown-item:hover { background: var(--cream); color: var(--green); }

.cart-badge {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* =========== Page hero banner =========== */
.page-hero {
  position: relative;
  background: linear-gradient(rgba(20,58,44,.88), rgba(20,58,44,.88)), url("../assets/sld2.png") center/cover;
  color: #fff;
  text-align: center;
  padding: 4.5rem 1rem 4rem;
}
.page-hero h1 { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .75rem; }
.breadcrumb-line { font-size: .85rem; color: #cfe0d6; }
.breadcrumb-line a { color: #9fd6b8; }
.breadcrumb-line a:hover { color: #fff; }
.breadcrumb-line .dot { color: var(--yellow); margin: 0 .5rem; font-size: .6rem; vertical-align: middle; }

/* =========== Home hero slider =========== */
.hero-slider .carousel-item {
  height: min(65vh, 630px);
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slider .carousel-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,74,52,.82) 0%, rgba(23,74,52,.45) 26%, rgba(23,74,52,.12) 48%, rgba(23,74,52,0) 62%);
}
.hero-caption {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-caption h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 18ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 18px rgba(10,30,20,.35);
}
.hero-slider .carousel-indicators {
  justify-content: flex-start;
  margin-left: 0;
  margin-bottom: 1.6rem;
  padding-left: calc(max((100% - 1320px) / 2, 1rem) + .75rem);
  z-index: 3;
}

/* Mobile: hero matches the slide image's aspect ratio (1440x633) so the
   full image is visible with no cropping; caption scales down to fit */
@media (max-width: 767.98px) {
  .hero-slider .carousel-item {
    height: auto;
    min-height: 0;
    aspect-ratio: 1440 / 633;
  }
  .hero-caption h1 {
    font-size: .95rem;
    line-height: 1.25;
    max-width: 30ch;
    margin-bottom: .45rem;
  }
  .hero-caption .btn {
    font-size: .68rem;
    padding: .42rem .85rem;
    /* .hero-caption is a flex column aligned to flex-start, so the button
       needs its own alignment to sit on the right. The tagline above it is
       unaffected and stays left. */
    align-self: flex-end;
  }
  .hero-slider .carousel-indicators {
    justify-content: flex-start;
    /* align with the caption/button left edge (.container padding) */
    padding-left: calc(.75rem - 5px);
    margin-bottom: .5rem;
  }
  .hero-slider .carousel-indicators [data-bs-target] { width: 5px; height: 5px; margin: 0 5px; }
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: #fff;
  opacity: .95;
  margin: 0 7px;
  position: relative;
  cursor: pointer;
}
/* enlarged invisible hit target so the small dots stay easy to click */
.hero-slider .carousel-indicators [data-bs-target]::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
}
.hero-slider .carousel-indicators .active {
  background: #fff;
  outline: 1.5px solid #fff;
  outline-offset: 3.5px;
}
.pmore p{ line-height:160%!important}

/* =========== Section headings =========== */
 
.section-title {
  font-weight: 600;
  font-size: clamp(1.6rem, 2.7vw, 34px);
}
.section-title .accent { color: var(--yellow); }

/* =========== Cards (categories / products) =========== */
.cat-card, .prod-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: .9rem;
  height: 100%;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
  display: block;
}
.cat-card:hover, .prod-card:hover { box-shadow: 0 14px 32px rgba(20,50,38,.14); transform: translateY(-4px);  border: 1px solid var(--green); background-color:#fff }
.cat-card img, .prod-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.cat-card .cat-name { color: var(--heading); font-weight: 600; padding: .9rem 0 .3rem; line-height: normal }
.prod-card { background: var(--card-bg); text-align: left; border: 1px solid rgba(6, 61, 47, 0.3); }
.prod-card .prod-name { color: var(--heading); font-weight: 600; font-size: .92rem; padding: .8rem .3rem .2rem; line-height: 1.4; }

/* "Explore Our Lumber Products" â€” dark green band with bordered cards */
.lumber-section { background: var(--green-footer); }
.lumber-section .section-title { color: #fff; }
.lumber-card {
  display: block;
  height: 100%;
  background:#235649;
  border: 1px solid #4C8173;
  border-radius:20px;
  padding:10px;
  text-align: center;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.lumber-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius:15px;
  transition: transform .45s ease;
}
.lumber-card .label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  color: #fff;
  font-weight: bold;
  font-size:16px;
  line-height: 1.35;
  padding: .45rem .25rem .3rem;
}
.lumber-card:hover {
  transform: translateY(-4px);
  border-color:#4C8173;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.lumber-card:hover img { transform: scale(1.03); }

.home-cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.home-cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.home-cat-card:hover img { transform: scale(1.05); }
.home-cat-card .label {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(10,30,20,.15), rgba(10,30,20,.75));
  color: #fff; font-weight: 600; font-size: .95rem;
  display: flex; align-items: flex-end; justify-content: center;
  text-align: center; padding: 1rem;
}

/* =========== Product detail =========== */
.pd-title { font-size: clamp(1.35rem, 2vw, 36px); font-weight:600; }
.pd-main-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.pd-thumbs { display: flex; gap:10px; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.pd-thumbs img {
  width:105px; height:105px; object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.pd-thumbs img.active, .pd-thumbs img:hover { border-color: var(--green); }

.badge-sale-note {
  display: inline-block;
  background: #EBFFE2;
  color: #276E00;
  border-radius: 8px;
  padding:8px 16px;
  font-size:16px;
  font-weight:700;
}
.badge-off { background: var(--red); color: #fff; border-radius: 6px; font-weight: 700; font-size: .8rem; padding: .25rem .5rem; }
.price-old { color: #9aa5a0; text-decoration: line-through;  font-size:26px;   }
.price-new { color: var(--red); font-size:26px; font-weight: 700; }
.price-unit { color: var(--body-gray); font-size: 18px; }

.qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: #fff;
}
.qty-group button {
  width: 28px; height: 44px;
  border: none;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}
.qty-group button:hover { background: var(--green-soft); }
.qty-group input {
  width: 60px;
  border: none; font-size: 18px;
  text-align: center;
  font-weight: 600;
  color: var(--heading);
  background: transparent;
}
.qty-group input:focus { outline: none; }

/* =========== Tables =========== */
.table-jc { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.table-jc table { margin: 0; }
.table-jc thead th {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  padding: 1rem 1.4rem;
  white-space: nowrap;
}
/* body: no horizontal rules (striping separates rows), thin column dividers */
.table-jc .table tbody > tr > * {
  border-bottom: 0;
  box-shadow: none;
  background-color: transparent;
}
.table-jc .table thead > tr > * {
  border-bottom: 0;
  box-shadow: none;
  background-color: var(--green);
}
.table-jc tbody td {
  padding:8px 12px;
  vertical-align: middle;
  color: var(--body-gray);
  font-size: .95rem;
}
.table-jc tbody td + td,
.table-jc tbody th + td { border-left: 1px solid #e2e7e2; }
.table-jc tbody tr:nth-child(even) { background: #edf1ec; }
.table-jc .item-name { color: var(--heading); font-weight: 500; }

.totals-row td { font-size:16px; padding: .55rem 1rem; color: #6E705C!important; }
.totals-label { color: var(--heading); font-weight: 600; }

/* Totals block: lives inside the table's bordered wrapper, below the table itself.
   sticky left keeps it in view while the table is slid horizontally on mobile */
.totals-box {
  background: #fff;
  padding: .8rem 1.4rem 1rem;
  position: sticky;
  left: 0;
}
.totals-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .3rem 0;
  font-size: 16px;
}
/* FAQ answer content (client-provided markup) */
.accordion-body .imageContainer { display: inline-block; margin: 0 1rem 1rem 0; text-align: center; vertical-align: top; }
.accordion-body .imageContainer img { max-width: 220px; border-radius: var(--radius-sm); }
.accordion-body .imageContainer p { margin: .35rem 0 0; }
.accordion-body .clear { clear: both; }

.accordion-body  ul li{ line-height: normal; padding:5px 0 }

.totals-text { color: var(--heading); }
.totals-value { color: var(--heading); font-weight: 700; text-align: right; white-space: nowrap; }
.totals-note { color: var(--body-gray); font-weight: 400; font-size: .9rem; }

/* Standalone totals panel (request-quote): own bordered rounded box,
   thin separators between lines */
.totals-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: .3rem 1.5rem;
}
.totals-panel .totals-line { padding: .75rem 0; }
.totals-panel .totals-line + .totals-line { border-top: 1px solid #eef0ee; }
.discount-red { color: var(--red) !important; }
.min-order-note { color: var(--heading); font-weight: 600; font-size: .9rem; }

/* Responsive tables: columns keep their desktop look at every width;
   on small screens the table keeps its natural width and the user
   slides it horizontally (.table-scroll provides overflow-x: auto) */
@media (max-width: 767.98px) {
  .table-cards table { min-width: 640px; }
  .table-cards .item-name { white-space: nowrap; }
  .table-cards tbody td { white-space: nowrap; }
}

/* =========== Forms =========== */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  margin-bottom: 1.75rem;
}
.form-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-label { color: var(--heading); font-weight: 500; font-size:14px; margin-bottom: .35rem; }
.req { color: var(--red); font-weight: 700; margin-left: 2px; }
.form-control, .form-select {
  border: 1px solid #e3e7e3;
  border-radius: var(--radius-sm);
  padding:1rem 1rem;
  font-size:16px;
  color: #888888; font-weight: 400;
}
/* All form fields site-wide: text and placeholder in #888888, regular weight */
.form-control, .form-select, select, textarea { color: #888888; font-weight: 400; }
.form-control::placeholder,
textarea::placeholder,
input::placeholder { color: #888888; opacity: 1; }
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 .2rem rgba(36,66,56,.12);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--red); }
.copy-billing { font-weight: 600; font-size: .85rem; color: var(--heading); cursor: pointer; text-decoration: underline; }

/* =========== Quote confirmation =========== */
.quote-chip {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 8px;
  padding: .6rem 1.15rem;
}
.addr-card {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
 background: rgba(190, 190, 190, 0.1);
	color: #6E705C;
  height: 100%;
  font-size: .98rem;
}
.addr-card .k-head { color: var(--heading); font-weight:800; margin-bottom: .3rem; }
.addr-card .row-line { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; }
.addr-card .k { color:var(--heading); }
.addr-card .v { color: var(--heading); font-weight: 700; text-align: right; }
.ship-note {
  border: none;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  font-size:16px; font-weight: 600;
  color:var(--heading);
  margin-top: 1.75rem;
}
.terms-box { font-size:18px; line-height: 1.7; color: #6E705C; }
.terms-box strong { color: var(--heading); }

.pin-input {
  width: 56px; height: 56px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid #e3e7e3;
  border-radius: var(--radius-sm);
}
.pin-input:focus { outline: 2px solid var(--green); border-color: var(--green); }

.pay-tabs .nav-link {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 600;
  font-size: .88rem;
  color: var(--heading);
  background: #e7ebe6;
  margin-right: .4rem;
  padding: .55rem 1.2rem;
}
.pay-tabs .nav-link.active { background: var(--green); color: #fff; }

/* E-check image â€” replica of the original site check (500x226, absolute fields) */
.check-image {
  margin: 10px 0 0;
  position: relative;
  height: 226px;
  width: 500px;
  min-width: 500px;
  background: url("../assets/bluesaftey_lrg.jpg") no-repeat 0 0 / 500px 226px, #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #1c1c1c;
}
.check-image .check-input {
  position: absolute;
  font-size: 10.5px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 1px 3px;
  height: 18px;
  border: 1px solid #7d97ad;
  border-radius: 2px;
  background: #fff;
  color: #1c1c1c;
}
.check-image .check-input:focus { outline: 2px solid var(--green); border-color: var(--green); }

/* =========== Customer photos gallery =========== */
.gallery-wrap { background: var(--card-bg); border-radius: var(--radius-lg); padding: 1.5rem; }
/* Scrollable thumbnail viewport (2 rows visible) with slim custom scrollbar */
.gallery-thumbs-scroll {
  overflow-y: auto;
  padding-right: .55rem;
  scrollbar-gutter: stable;
  /* Firefox fallback */
  scrollbar-width: thin;
  scrollbar-color: var(--green) #e3e8e3;
}
.gallery-thumbs-scroll::-webkit-scrollbar { width: 10px; }
.gallery-thumbs-scroll::-webkit-scrollbar-track {
  background: #e3e8e3;
  border-radius: 8px;
}
.gallery-thumbs-scroll::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 8px;
}
.gallery-thumbs-scroll::-webkit-scrollbar-thumb:hover { background: var(--green-soft); }
.gallery-thumbs-scroll::-webkit-scrollbar-button:single-button {
  display: block;
  height: 14px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 6px;
}
.gallery-thumbs-scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 5 L5 1 L9 5' fill='none' stroke='%23244238' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.gallery-thumbs-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1 L5 5 L9 1' fill='none' stroke='%23244238' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .7rem;
}
.gallery-thumbs img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .2s;
}
.gallery-thumbs img.active { border-color: var(--green); }
.gallery-pager { display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 1.2rem 0; }
.gallery-pager button {
  min-width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--body-gray);
  font-size: .85rem;
  font-weight: 600;
}
.gallery-pager button.active, .gallery-pager button:hover { background: var(--green); color: #fff; border-color: var(--green); }

.gallery-main { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 9.5; max-height: 520px; object-fit: cover; display: block; }
.gallery-main .date-chip, .gallery-main .fullview-chip {
  position: absolute; top: 14px;
  background: #fff; color: var(--heading);
  font-weight: 600; font-size: .82rem;
  border-radius: 999px;
  padding: .35rem .9rem;
  border: none;
}
.gallery-main .date-chip { left: 14px; }
.gallery-main .fullview-chip {
  right: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.fullview-chip .fullview-icon { width: 16px; height: 16px; flex-shrink: 0; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-caption h4 { font-weight: 700; margin-top: 1.2rem; }
.gal-comment {
  font-style: italic;
  color: var(--body-gray);
  font-size: .95rem;
  line-height: 1.7; 
  margin-bottom: 1rem;
}
.gallery-caption .sent-by { font-size: .9rem; }
.gallery-caption .sent-by strong { color: var(--heading); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 15, 12, .8);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 760px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-inner img { width: 100%; display: block; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-weight: 700;
}
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(15,25,20,.72);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 1.1rem 1.5rem;
}
.lightbox-caption h5 { color: #fff; font-weight: 700; }
.lightbox-caption p { color: rgba(255,255,255,0.67); font-weight:600; }
.lightbox-caption p span{ color: rgba(255,255,255,0.67); font-weight:300!important; }
.lightbox-caption a { color: #fff; font-weight: 600; }

/* =========== FAQ =========== */
.faq-cat-pill {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: .9rem 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-weight: 600;
  color: var(--heading);
  font-size: .9rem;
}
.accordion-jc .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: .7rem;
  overflow: hidden;
}
.accordion-jc .accordion-button {
  font-weight: 600;
  color: var(--heading);
  font-size: .92rem;
  background: #fff;
  box-shadow: none;
}
.accordion-jc .accordion-button:not(.collapsed) { color: var(--green); background: #fff; }
.accordion-jc .accordion-body { font-size: .9rem; color: var(--body-gray); padding-top: 0; }

/* =========== Info cards (ordering steps) =========== */
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  height: 100%;
  background: #fff;
}
.info-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }

.tip-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
}
.tip-box h4 { font-size: 1.15rem; font-weight: 700; }

/* =========== Tech spec panels (Why Cypress) =========== */
.spec-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  height: 100%;
  font-size: .93rem;
}
.spec-panel h5 { font-size: .98rem; font-weight: 700; margin: .9rem 0 .3rem; }
.spec-panel ul { padding-left: 1.1rem; margin-bottom: .4rem; }

/* =========== Portrait cards =========== */
.portrait-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.portrait-card img { width: 100%; display: block; }
/* Percentage insets keep the tag over the same spot of the photo at any card size */
.portrait-card .name-tag {
  position: absolute;
  left: 3.6%; right: 3.6%; top: 80.3%; bottom: 1.4%;
/*  background: #47494a;*/
 background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(20px);
/* Note: backdrop-filter has minimal browser support */
border-radius: 15px;

  color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size:14px;
  font-weight:500;
  line-height: 1.35;
  padding: .2rem .45rem;
}
.portrait-card .name-tag small { display: block; font-weight: 400; font-size:10px; line-height: 1.3; color: #e4e7e4; }
@media (max-width: 767.98px) {
  /* The three-line couple card overflowed the tag box at 375px and "Cypress" was
     clipped by the card's overflow:hidden. Raise the tag and shrink the second
     line - the design sets `small` to 10px here, larger than its own .62rem
     parent, which is what pushed it over. */
  .portrait-card .name-tag { top: 74%; font-size: .62rem; border-radius: 9px; }
  .portrait-card .name-tag small { font-size: .58rem; }
}

/* =========== Home extras =========== */
/* Why Choose Cypress collage â€” 2x2 staggered images with center badge */
.why-collage { position: relative; }
.why-collage img { transition: transform .45s ease; padding:.4rem }
.why-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border:20px solid #fff;
/*  box-shadow: 0 10px 26px rgba(15,40,30,.25);*/
  transition: transform .3s ease, background .3s ease;
  z-index: 2;
}
.why-collage:hover .why-badge {
  background: var(--green-soft);
  transform: translate(-50%, -50%) scale(1.08);
}
@media (max-width: 575.98px) {
  .why-badge { width:130px; height:130px; font-size: 1.15rem; border-width:20px; }
	.why-collage img { transition: transform .45s ease; padding:0rem }
}

/* Welcome section (home) */
.welcome-sub {
  font-size: clamp(1.6rem, 2.7vw, 34px);
  font-weight:600;
  line-height: 1.25;
}
.order-now-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem;
  font-size: .92rem;
}
.brochure-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .3s ease, transform .3s ease;
}
.brochure-card:hover { box-shadow: 0 12px 28px rgba(20,50,38,.10); transform: translateY(-4px); }
.brochure-card .brochure-book {
/*  width: 82px;*/
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.video-card { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; }
.video-card img { width: 100%; object-fit: cover; }
.video-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 44px;
  background: #ff0000;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.video-card .play::after {
  content: "";
  border-left: 16px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.footer-cta { margin-bottom: 3.5rem; }

.reclaimed-banner {
 background: linear-gradient(90deg, rgba(29,74,62,.97) 0%, rgba(29,74,62,.9) 50%, rgba(29,74,62,.6) 100%), url("../assets/bg.png") right center/cover no-repeat;
  border-radius: 22px;
  color: #fff;
  border: solid #FEC714 1px;
  padding: 3.2rem 3.5rem;
}
.reclaimed-banner .small-label { color: var(--yellow); font-size:26px; font-weight:normal; margin-bottom: .55rem; }
.reclaimed-banner h3 { color: #fff; font-size: 40px; /*font-size: clamp(1.5rem, 3vw, 40px); */font-weight: normal; margin: 0; letter-spacing: .01em; }
.btn-outline-yellow {
  border: 1px solid var(--yellow);
  color: var(--yellow)!important;
  background:#063D2F;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn-outline-yellow:hover { background: var(--yellow); color: #1d1d1b!important; transform: translateY(-2px); }

/* =========== Footer =========== */
.ftrabt{margin:2.7rem 0  0 0 }
.site-footer {
  background: var(--green-footer);
  color: #c7d4cd;
  padding: 4rem 0 0;
  font-size: .92rem;
}
.site-footer h6 {
  color: #9fb0a8;
  font-size: .8rem;
  font-weight: 700; 
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1.1rem;
}
.site-footer a { color: #dfe8e3; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.footer-contact-card {
  background:#1D4A3E;
  border-radius: var(--radius-lg);
  padding: 1.6rem 2rem;
  margin-top: 3rem;
}
.footer-contact-card .label { color: #fff; font-weight:700; font-size:15px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem;
  padding: 1.3rem 0;
  font-size: .88rem;
}
.footer-social {
  width: 38px; height: 38px;
  background: #fff;
  color: var(--green) !important;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
}
.footer-policy a { color: #dfe8e3; margin-left: 1.2rem; }
.footer-policy a:first-child { margin-left: 0; }
.footer-policy .sep { color: #6d857a; margin-left: 1.2rem; }

/* =========== Toast =========== */
.jc-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .85rem 1.3rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 3000;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.jc-toast.show { opacity: 1; transform: translateY(0); }

/* =========== Contact page =========== */

/* "Get in Touch" header block (contact page) */
.git-title {
  text-transform: uppercase;
  /* clamp() with a minimum above its maximum resolves to the minimum, so this
     is a flat 4.1rem (65.6px) at every width - which is how the design renders
     it, and is deliberate. Kept exactly as the design ships it. */
  font-size: clamp(4.1rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 1.1rem;
}
.git-lead { max-width: 24ch; }
.git-social {
  width: 34px; height: 34px;
  background: var(--green);
  color: #fff !important;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: transform .25s ease, background .25s ease;
}
.git-social:hover { background: var(--green-soft); transform: translateY(-2px); }
.git-row { margin-bottom: 1.4rem; }
.git-label { font-size: .82rem; color: #8b968f; margin-bottom: .25rem; }
.git-value { color: var(--heading); font-weight: 500; font-size: .95rem; line-height: 1.6; }
.contact-photo { border-radius: 24px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.map-embed { border-radius: var(--radius-lg); width: 100%; height: 360px; border: 0; display: block; }
.upload-box {
  border: 2px dashed #cfcfca;
  border-radius: 14px;
  padding: 1.5rem 1.9rem;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.upload-box:hover, .upload-box.dragover { border-color: var(--green); background: #f7faf7; }
.upload-box .upload-icon { font-size: 1.8rem; color: #8a8578; flex-shrink: 0; }
.upload-box .upload-title { color: var(--heading); font-weight: 700; font-size: .98rem; line-height: 1.4; }
.upload-box .upload-sub { color: var(--body-gray); font-size: .92rem; line-height: 1.5; }
.captcha-mock {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  border-radius: 4px;
  padding: .7rem 1.1rem;
  font-size: .85rem;
  color: #444;
}
.captcha-mock .box { width: 22px; height: 22px; border: 2px solid #bbb; border-radius: 3px; background: #fff; cursor: pointer; }
.captcha-mock .box.checked { background: var(--green); border-color: var(--green); position: relative; }
.captcha-mock .box.checked::after { content: "\2713"; color: #fff; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; }

/* =========== Responsive =========== */
/* Nav tiers: 18px roomy â‰¥1400 â†’ 18px compact 1250â€“1399 â†’ 16px 1200â€“1249
   â†’ hamburger drawer <1200 (navbar-expand-xl) */
@media (max-width: 1399.98px) {
  .main-nav .navbar-nav .nav-link { --pad-x: .45rem; }
}
@media (max-width: 1249.98px) {
  .main-nav .navbar-nav .nav-link { --pad-x: .4rem; padding-top: 1rem; padding-bottom: 1rem; font-size: 16px; }
}
@media (max-width: 1199.98px) {
  /* collapsed drawer */
  .main-nav .navbar-nav .nav-link { font-size: 18px; padding: .6rem .75rem; }
  .main-nav .btn-quote {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: .5rem .75rem .75rem;
  }
}
@media (max-width: 1199.98px) {
  /* g-5 rows (-24px gutters) overhang the lg container's 12px padding */
  .row.g-5 { --bs-gutter-x: 2rem; }
}
@media (max-width: 991.98px) {
		.ftrabt{margin:0rem 0  0 0 }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .reclaimed-banner { padding: 2.4rem 2rem; }
  .footer-contact-card .col-contact { margin-bottom: 1rem; }
}
@media (max-width: 767.98px) {
	.ftrabt{margin:0rem 0  0 0 }
  .section-pad { padding: 60px 0; }
  /* g-5 gutters (-24px row margins) overhang the 12px container padding on
     small screens; columns stack here anyway, so narrow the x-gutter */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .main-nav .btn-quote { align-self: flex-start; }
  .page-hero { padding: 3rem 1rem 2.6rem; }
  .top-logo-strip img { height: 58px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .pd-thumbs img { width: 72px; height: 72px; }
  .form-card { padding: 1.3rem 1.1rem 1.5rem; }
}
@media (max-width: 575.98px) {
		.ftrabt{margin:0rem 0  0 0 }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .reclaimed-banner { padding: 1.8rem 1.4rem; }
  .reclaimed-banner .btn {
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: .78rem;
  }
  .footer-policy a { margin-left: .6rem; }
  .table-scroll { overflow-x: auto; }
}
.table-scroll { overflow-x: auto; }

/* =========================================================
   Animations â€” subtle, fast, professional
   ========================================================= */

@keyframes jcFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes jcFadeScale {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}
@keyframes jcDropdown {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 1. Page load: hero + page banners + product image ---- */
.hero-slider .carousel-item.active .hero-caption h1 { animation: jcFadeUp .6s ease both; }
.hero-slider .carousel-item.active .hero-caption .btn { animation: jcFadeUp .6s ease .18s both; }
.page-hero h1 { animation: jcFadeUp .6s ease both; }
.page-hero .breadcrumb-line { animation: jcFadeUp .6s ease .15s both; }
.pd-main-img { animation: jcFadeScale .7s ease both; }
.top-logo-strip img { animation: jcFadeScale .6s ease both; }

/* ---- 2. Scroll reveal (elements tagged by JS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---- 3./4. Cards + image zoom ---- */
.cat-card, .prod-card, .info-card, .spec-panel, .faq-cat-pill, .video-card,
.portrait-card, .gallery-main, .tip-box, .addr-card {
  transition: box-shadow .3s ease, transform .3s ease;
}
.info-card:hover, .spec-panel:hover, .faq-cat-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20,50,38,.10);
}
.cat-card, .prod-card, .home-cat-card, .portrait-card, .video-card, .gallery-main { overflow: hidden; }
.cat-card img, .prod-card img, .portrait-card img, .video-card img,
.gallery-main img, .pd-thumbs img, .contact-photo {
  transition: transform .45s ease, border-color .2s ease, filter .45s ease;
}
.cat-card:hover img, .prod-card:hover img, .portrait-card:hover img,
.video-card:hover img, .gallery-main:hover img, .contact-photo:hover {
  transform: scale(1.03);
}

/* ---- 5. Buttons ---- */
.btn-quote, .btn-green, .btn-outline-green, .btn-remove {
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-quote:hover, .btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,50,38,.18);
}
.btn-outline-green:hover { transform: translateY(-2px); }
.btn-remove:hover { transform: translateY(-1px); }
.btn .btn-arr { display: inline-block; font-size: .9em; margin-left: .35rem; vertical-align: baseline; transition: transform .25s ease; }
.btn:hover .btn-arr { transform: translateX(3px); }

/* ---- 6. Navigation underline ---- */
@media (min-width: 1200px) {
  .main-nav .nav-link { position: relative; }
  /* underline lives on ::after for plain links, ::before for dropdown
     toggles (their ::after is the chevron arrow) */
  .main-nav .nav-link:not(.dropdown-toggle)::after,
  .main-nav .dropdown-toggle::before {
    content: "";
    position: absolute;
    left: var(--pad-x, .85rem); right: var(--pad-x, .85rem); bottom: .78rem;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
  }
  .main-nav .nav-link:not(.dropdown-toggle):hover::after,
  .main-nav .nav-link:not(.dropdown-toggle).active::after,
  .main-nav .dropdown-toggle:hover::before,
  .main-nav .dropdown-toggle.active::before,
  .main-nav .nav-item.dropdown:hover > .dropdown-toggle::before { transform: scaleX(1); }
}
.main-nav .dropdown-menu.show { animation: jcDropdown .25s ease; }
.main-nav .dropdown-item { transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.main-nav .dropdown-item:hover { padding-left: 1.45rem; }

/* ---- 7. Icons / small controls ---- */
.footer-social { transition: transform .25s ease, background .25s ease, color .25s ease; }
.footer-social:hover { transform: translateY(-2px) scale(1.06); }
.gallery-nav, .lightbox-close, .fullview-chip { transition: transform .2s ease, background .2s ease; }
.gallery-nav:hover, .lightbox-close:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-close:hover, .fullview-chip:hover { transform: scale(1.06); }
.gallery-nav.prev:hover, .gallery-nav.next:hover { transform: translateY(-50%) scale(1.08); }
.qty-group button { transition: background .2s ease, transform .15s ease; }
.qty-group button:active { transform: scale(.92); }
.gallery-thumbs img { transition: border-color .2s ease, transform .3s ease; }
.gallery-thumbs img:hover { transform: scale(1.04); }
.gallery-pager button { transition: background .2s ease, color .2s ease, border-color .2s ease; }
.site-footer ul a { transition: color .2s ease, padding-left .2s ease; }
.site-footer ul a:hover { padding-left: 4px; }
.text-link { transition: color .2s ease; }

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* file:// fallback for YouTube embeds â€” thumbnail that links out */
.video-fallback { display: block; width: 100%; height: 100%; }
.video-fallback img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Creative motion layer â€” reveal variants + hover effects
   ========================================================= */

/* Scroll-reveal flavors (base .reveal defined above) */
.reveal {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1),
              filter .7s ease;
}
.reveal.r-left  { transform: translateX(-46px); }
.reveal.r-right { transform: translateX(46px); }
.reveal.r-zoom  { transform: translateY(26px) scale(.93); }
.reveal.r-blur  { transform: translateY(16px); filter: blur(8px); }
.reveal.in      { opacity: 1; transform: none; filter: none; }

/* Center badge pops in after its collage reveals */
.reveal.in .why-badge { animation: badgePop .55s cubic-bezier(.34,1.4,.64,1) .4s both; }
@keyframes badgePop {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1);  opacity: 1; }
}

/* Diagonal light sweep across card images on hover */
.lumber-card, .cat-card, .prod-card, .home-cat-card, .gallery-main { position: relative; }
.lumber-card::after, .cat-card::after, .prod-card::after,
.home-cat-card::after, .gallery-main::after {
  content: "";
  position: absolute;
  top: 0; left: -85%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg);
  transition: left .65s ease;
  pointer-events: none;
  z-index: 2;
}
.lumber-card:hover::after, .cat-card:hover::after, .prod-card:hover::after,
.home-cat-card:hover::after, .gallery-main:hover::after { left: 135%; }

/* Shine sweep on solid buttons (skip the nav button â€” its badge would be clipped) */
.btn-green:not(:has(.cart-badge)) {
  position: relative;
  overflow: hidden;
}
.btn-green:not(:has(.cart-badge))::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
  pointer-events: none;
}
.btn-green:not(:has(.cart-badge)):hover::before { left: 130%; }

/* Richer image hovers */
.cat-card:hover img, .prod-card:hover img, .lumber-card:hover img,
.home-cat-card:hover img { filter: saturate(1.15) brightness(1.03); }
.gallery-thumbs img:hover { filter: brightness(1.1); }
.why-collage img:hover { transform: scale(1.04); filter: saturate(1.12); }
.portrait-card:hover img { transform: scale(1.05); }

/* Table + accordion micro-interactions */
.table-jc tbody tr { transition: background-color .25s ease; }
.table-jc tbody tr:hover { background-color: #eef4ec; }
.accordion-jc .accordion-item { transition: border-color .25s ease, box-shadow .25s ease; }
.accordion-jc .accordion-item:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(6,61,47,.08); }
.faq-cat-pill { transition: background .25s ease, color .25s ease, transform .3s ease, box-shadow .3s ease; }
.faq-cat-pill:hover { background: var(--green); color: #fff; }

/* Form focus lift */
.form-control, .form-select { transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease; }
.form-control:focus, .form-select:focus { transform: translateY(-1px); }

/* Reduced motion: variants collapse to instant visibility */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.r-left, .reveal.r-right, .reveal.r-zoom, .reveal.r-blur {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  .lumber-card::after, .cat-card::after, .prod-card::after,
  .home-cat-card::after, .gallery-main::after, .btn-green::before { display: none !important; }
}

/* =========== Customer photos auto-scroll carousel =========== */
.photo-marquee {
  overflow: hidden;
  position: relative;
  padding: .25rem 0;
}
/* soft fade at both edges */
.photo-marquee::before,
.photo-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
/*
.photo-marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.photo-marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
*/

.photo-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: photoMarquee 38s linear infinite;
  will-change: transform;
}
.photo-marquee:hover .photo-track { animation-play-state: paused; }
.photo-set {
  display: flex;
  gap:30px;
  flex-shrink: 0;
}
.photo-set a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.photo-set img {
  width:300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .45s ease;
}
.photo-set a:hover img { transform: scale(1.05); filter: saturate(1.12); }
/* track = set + gap + set; shifting one set-width + one gap loops seamlessly */
@keyframes photoMarquee {
  to { transform: translateX(calc(-50% - 12px)); }
}
@media (max-width: 767.98px) {
  .photo-set img { width: 210px; }
  .photo-marquee::before, .photo-marquee::after { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-track { animation: none; }
}

/* image counter chip on the gallery viewer */
.count-chip {
  position: absolute;
  top: 14px;
  left: 14px; 
  background:#fff;
  color:var(--heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 999px;
  padding: .3rem .85rem;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(2px);
}
/* in the lightbox the caption bar covers the bottom â€” keep the counter top, beside the close button */
#lbCount { bottom: auto; top: 20px; left:14px; }

/* Mobile: columns stack, so directional reveals collapse to a simple rise
   (also prevents pre-reveal X-offsets from widening the page) */
@media (max-width: 991.98px) {
  .reveal.r-left, .reveal.r-right { transform: translateY(24px); }
}
/* long URLs (e.g. the Douglas Fir note) must wrap on small screens */
#catNote a, .text-link { overflow-wrap: anywhere; }

/* =========================================================
   WebForms overrides
   ========================================================= */
/* the footer-bottom bar now closes the footer, as the design intends */
.site-footer h6 a { color: #9fb0a8; }
.site-footer h6 a:hover { color: var(--yellow); }

/* The design's page-hero points at a mockup asset that does not exist in this
   app. Repoint it at one of the site's own photos. The overlay sits at 88%
   opacity, so the 620px source is not visible as blur. */
.page-hero {
  background: linear-gradient(rgba(20,58,44,.88), rgba(20,58,44,.88)), url("../images/home2.jpg") center/cover;
}
.page-hero .breadcrumb-line a { color: #9fd6b8; }
.page-hero .breadcrumb-line .dot { color: var(--yellow); margin: 0 .5rem; font-size: .6rem; vertical-align: middle; }

/* Family portraits are small originals (91-130px wide) - never scale them up. */
.who-portrait { text-align: center; }
.who-portrait img { max-width: 100%; width: auto; height: auto; border-radius: var(--radius-md); }
.who-portrait p { font-size: .85rem; margin-top: .6rem; margin-bottom: 0; }

/* =========================================================
   Customer Photos gallery
   The markup comes from Controls/CustomerPhotos.ascx and from templates
   inside js/cust-photos.js, so the ids and class names below are fixed -
   this section only restyles what those already emit.
   ========================================================= */

/* #previewPane uses class="container", which collides with Bootstrap's
   grid container. Neutralise it before anything else. */
#previewPane .container {
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .7rem;
}
@media (min-width: 768px) { #previewPane .container { grid-template-columns: repeat(7, 1fr); } }

#previewPane img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color .2s;
  display: block;
  /* placeholder tint so a thumbnail still downloading reads as a loading tile
     rather than a half-drawn photo */
  background: #e7ebe7;
}
#previewPane a:hover img { border-color: var(--green); }

/* pager: rendered as <a> elements, styled like the design's pager buttons */
#previewPane .pager { display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 1.2rem 0; flex-wrap: wrap; }
#previewPane .pager a {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--body-gray);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
#previewPane .pager a:hover,
#previewPane .pager a.active { background: var(--green); color: #fff; border-color: var(--green); }

/* the large photo */
#viewPane { position: relative; margin-top: 1.5rem; }
#selectedPhoto { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #eef1ee; }
#selectedPhoto img { width: 100% !important; height: auto; display: block; }

/* caption block */
#photoDescription h2 { font-size: 1.15rem; font-weight: 700; margin-top: 1.2rem; }
#photoDescription .sentBy { font-size: .9rem; margin-bottom: .5rem; }
#photoDescription .comment { font-style: italic; color: var(--body-gray); font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
#photoDescription #related h3 { font-size: .92rem; font-weight: 700; color: var(--heading); margin-bottom: .35rem; }
#photoDescription #related a { text-decoration: underline; font-weight: 500; }

/* "[view large photo]" - styled as the design's Full View chip.
   Shape only: the colours and placement live in the corner-chip rule further
   down, which supersedes anything set here. */
#photoDescription h2 a.magnify {
  /* No display:none here. The server-rendered link carries an inline
     style="display:none" that cust-photos.js .show()s; the JS-rendered one has
     no inline style, so a rule here would hide it permanently. */
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-left: .5rem;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
}
#popupDescription a.magnify { display: none; }
a.largePhoto { display: none; }

/* --- Full-view panel (the design's lightbox) --- */
#popup {
  display: none;               /* jQuery fadeIn() restores this to block */
  position: fixed; inset: 0;
  background: rgba(10, 15, 12, .8);
  z-index: 2000;
  padding: 4rem 1rem 2rem;
  overflow-y: auto;
}
#popup .popup-panel {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
/* !important defeats the inline width:740px that cust-photos.js sets on the
   popup image - a leftover from the old fixed-width layout. */
#popup .popup-panel img { width: 100% !important; height: auto; display: block; }
#popup div.close { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
#popup div.close a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--heading);
  font-size: 1rem; font-weight: 700;
  text-decoration: none;
}
#popup div.close a:hover { background: var(--yellow); }
/* The caption sits underneath the photo rather than over it. The mockup pins
   it to the bottom of the image, but its sample caption is four short lines;
   the real ones carry the customer's comment and a row of related products, so
   as an overlay they hid a large part of the lower photo. Flowing it below the
   image is the only arrangement that never covers the picture, whatever the
   caption's length. The prev/next arrows and the count chip are positioned
   against the image wrapper (see CustomerPhotos.aspx), so they stay on the
   photo. */
#popupDescription {
  position: static;
  background: rgba(15,25,20,.92);
  color: #fff;
  padding: 1.1rem 1.5rem;
}
#popupDescription h2 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .3rem; }
#popupDescription .sentBy,
#popupDescription .comment { color: #e6efe9; font-size: .85rem; margin-bottom: .35rem; }
#popupDescription #related h3 { color: #fff; font-size: .85rem; font-weight: 700; margin: .4rem 0 .2rem; }
#popupDescription #related a { color: #ffd76a; font-weight: 600; }

/* jqModal "Working..." panel */
.jqmWindow {
  display: none; position: fixed; top: 50%; left: 50%;
  padding: 1rem 1.4rem; margin-left: -140px; width: 280px;
  background: #fff; color: var(--heading);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center;
  font-weight: 600;
  z-index: 3000;
}
.jqmOverlay { background-color: #0b1a14; }

/* --- gallery pager: one pager, arrows, windowed numbers --- */
/* the control renders the pager twice; the design shows one, under the thumbs */
#previewPane > div.pager:first-child { display: none; }

#previewPane .pager .pager-arrow {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}
#previewPane .pager .pager-arrow:hover { background: var(--green); color: #fff; border-color: var(--green); }
#previewPane .pager .pager-arrow.disabled { opacity: .35; pointer-events: none; }
#previewPane .pager .pager-gap { color: var(--body-gray); padding: 0 .15rem; user-select: none; }

/* --- thumbnail strip: two rows, with the design's slim scrollbar --- */
#previewPane .container {
  overflow-y: auto;
  padding-right: .55rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--green) #e3e8e3;
}
#previewPane .container::-webkit-scrollbar { width: 10px; }
#previewPane .container::-webkit-scrollbar-track { background: #e3e8e3; border-radius: 8px; }
#previewPane .container::-webkit-scrollbar-thumb { background: var(--green); border-radius: 8px; }
#previewPane .container::-webkit-scrollbar-thumb:hover { background: var(--green-soft); }

/* --- selected thumbnail + arrows on the big photo --- */
#previewPane .container img.active { border-color: var(--green); }

#selectedPhoto .gallery-nav {
  position: absolute; top: 50%;
  margin-top: -23px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 2;
}
#selectedPhoto .gallery-nav:hover { background: var(--green); color: #fff; }
#selectedPhoto .gallery-nav.prev { left: 16px; }
#selectedPhoto .gallery-nav.next { right: 16px; }
#selectedPhoto .gallery-nav.disabled { opacity: .35; pointer-events: none; }

/* "[view large photo]" sits on the top-right corner of the big image */
#photoDescription h2 a.magnify {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  background: #fff;
  color: var(--heading);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
#photoDescription h2 a.magnify:hover { background: var(--green); color: #fff; }
/* expand glyph on the Full View chip, added in CSS so both the server-rendered
   and the JS-rendered copies of the link stay identical */
#photoDescription h2 a.magnify::after {
  content: "\f065";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: .45rem;
  font-size: .8em;
}
/* Category cards: three of the six category photos are small originals
   (240-294px wide). Cap the card so those are never blown up much beyond
   their native size - replacing those source images is the real fix. */
.cat-card { max-width: 330px; margin-left: auto; margin-right: auto; }

/* =========================================================
   Product detail (ViewProduct / CategoryProduct)
   image-popup.js toggles .hide/.show/.discounted/.noJS/.yesJS and jCarouselLite
   measures the filmstrip, so those rules are carried over from the old
   stylesheet rather than reinvented.
   ========================================================= */

/* --- utility classes the scripts toggle (were in site.css) --- */
.hide { display: none; }
span.show { display: inline; }
span.discounted { text-decoration: line-through; color: var(--body-gray); }
.price { color: var(--red); font-weight: 700; font-size: 1.15rem; }
a.largePhoto { display: none; }

/* --- left column: main photo --- */
#viewPane { position: relative; text-align: center; }
#viewPane > img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
#viewPane > img.hot { opacity: .85; cursor: pointer; }
#viewPane #magnify {
  display: none;
  position: absolute; top: 12px; right: 12px;
  background: #fff;
  color: var(--heading);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
#viewPane #magnify img { width: 14px; height: 14px; vertical-align: -2px; }

/* --- filmstrip: geometry kept close to the original so jCarouselLite still
       measures correctly; only the skin changed --- */
#filmStrip { position: relative; clear: both; margin-top: 1rem; padding: 0 22px; }
#productleft #previewPane { position: relative; overflow: auto; }
#productleft #previewPane ul { position: relative; list-style-type: none; margin: 0; padding: 0; }
#productleft #previewPane ul li { overflow: hidden; float: left; margin: 0; padding: 0; width: 100px; }
#productleft #previewPane img {
  width: auto; max-width: 92px; margin: 0;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}
/* the design marks the picked thumbnail, same treatment as its hover state
   (.pd-thumbs img.active, .pd-thumbs img:hover) */
#productleft #previewPane img:hover,
#productleft #previewPane img.active { border-color: var(--green); }
#productleft input.prev, #productleft input.next {
  width: 30px; height: 30px;
  position: absolute; top: 50%; margin-top: -15px;
  z-index: 98;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}
#productleft input.prev { left: 0; background-image: url('images/round-button-prev.png'); }
#productleft input.next { right: 0; background-image: url('images/round-button-next.png'); }

/* --- right column --- */
/* The design has no panel here: a green .badge-sale-note pill on its own, with
   the "We've taken NN% off" line below it in red carrying a .badge-off chip.
   Both classes are the design's and are defined above; this block previously
   drew a pink bordered card, which is what made it look wrong. */
#discount { margin-bottom: 1.25rem; }
#discount h2 { margin: 0 0 .75rem; }

#productdesc .pd-description { margin-bottom: 1.25rem; }

#productquote { background: var(--card-bg); border-radius: var(--radius-lg); padding: 1.5rem; }
#productquote label { color: var(--heading); font-weight: 700; margin-right: .35rem; }
#productquote .pd-specs { line-height: 2.1; }
#productquote .pd-select { display: inline-block; width: auto; max-width: 100%; min-width: 260px; margin: .25rem .35rem .25rem 0; vertical-align: middle; }
/* the Grade / Configuration <select>s are emitted as raw html by the control */
#productquote .yesJS select {
  display: inline-block;
  min-width: 260px;
  max-width: 100%;
  margin: .25rem 0;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--heading);
  font-family: var(--font-main);
  font-size: .92rem;
}
#productquote .pd-addrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
/* Mobile: the row wraps and Add to Quote drops onto a line of its own, so auto
   side margins centre it there. The label / stepper / unit line above keeps its
   left alignment. */
@media (max-width: 767.98px) {
  #productquote .pd-addrow .btn { margin-left: auto; margin-right: auto; }
}
/* Only the width. The box - border, radius, padding, background - belongs to
   .qty-group now that the stepper wraps this input; declaring it here as well
   drew a second box inside the first. The design's .qty-group input rule
   handles the rest, and this selector is only more specific so the width can
   stay wider than the design's 60px: this field takes 5 digits. */
#productquote .pd-qty {
  width: 80px;
  font-family: var(--font-main);
}
#productquote .uom { color: var(--body-gray); }
#productquote span[style*="color:Red"], #productquote .pd-addrow span { color: var(--red); }

/* =========================================================
   Materials List (Get a Quote)
   The cart is an asp:GridView, which renders its header as <tr><th> without a
   <thead>, so the table rules target .cart directly rather than .table-jc.
   ========================================================= */
/* The design already styles .min-order-note above (heading colour, 600, .9rem).
   This block used to redeclare it in the muted body colour and won on order,
   quietly cancelling the design's own rule - only the spacing is kept. */
.min-order-note { margin-bottom: .75rem; }
.empty-cart { background: var(--card-bg); border-radius: var(--radius-lg); padding: 2rem; }
.empty-cart p:last-child { margin-bottom: 0; }

.materials-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
table.cart { width: 100%; margin: 0; border-collapse: collapse; }
table.cart th {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: .85rem 1rem;
  border: none;
  white-space: nowrap;
}
table.cart td {
  padding: .85rem 1rem;
  /* both edges: border-collapse merges the shared ones into a single rule
     between rows, and the bottom one closes the last row off from the totals */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .93rem;
}
table.cart tr.cartalt td { background: rgba(6, 61, 47, .035); }
/* Same as .pd-qty above: the stepper draws the box, this only sets the width. */
table.cart .cart-qty {
  width: 74px;
  font-family: var(--font-main);
}

/* totals panel */
table.discountfooter {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.discountfooter td { padding: .7rem 1rem; font-size: .93rem; }
table.discountfooter tr + tr td { border-top: 1px solid var(--line); }
table.discountfooter b { color: var(--heading); }

.cart-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  /* the design spreads this row; the utility classes on the element itself
     set justify-content, this is only the fallback for anything still centring */
  justify-content: space-between;
  margin-top: 1.5rem;
}
/* asp:Button renders <input type="submit">, so give it the pill treatment */
.cart-buttons .btn { border-radius: 999px; }

/* validation + feedback messages */
.error { color: var(--red); font-weight: 600; }
/* required-field marker - the design's .req, under the class the legacy markup
   already uses. Both Request Quote and Contact rely on this. */
.required { color: var(--red); font-weight: 700; margin-left: 2px; }

/* Inline validation message, sat under its field by validation-highlight.js.
   Replaces the two page-level ValidationSummary blocks the forms used to show. */
.field-error {
  display: block;
  color: var(--red);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.4;
  margin-top: .3rem;
}

/* The GridView declares column alignment as align="left|right|center" on both
   th and td. Bootstrap Reboot's `th { text-align: -webkit-match-parent }` is an
   author rule and so beats that presentational attribute, which knocked the
   headers out of line with their cells. Honour the attribute explicitly. */
table.cart th[align="left"],   table.cart td[align="left"]   { text-align: left; }
table.cart th[align="right"],  table.cart td[align="right"]  { text-align: right; }
table.cart th[align="center"], table.cart td[align="center"] { text-align: center; }
/* No th:last-child rule here. The Materials List's last header is blank (the
   remove column), so it never needed one - and RequestQuote's cart has no
   remove column, where the same rule pushed the right-aligned Total header out
   of line with its figures. The align="..." rules above already do the job. */

/* =========================================================
   Contact form
   asp:TextBox renders size="n" (the Columns property), which browsers honour
   over a percentage width, so the fields need explicit widths.
   ========================================================= */
.get-in-touch .git-lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
.get-in-touch .git-value { color: var(--heading); line-height: 2; }
.get-in-touch .git-value img { vertical-align: -3px; }

/* Form-card titles. The mockup marks these up as h3; Request Quote and Contact
   use h2, because that is the level the original pages had - so both levels are
   listed rather than changing the headings. */
.form-card h2,
.form-card h3 { font-size: 26px; font-weight: 700; margin-bottom: 1.25rem; text-transform: capitalize; }

/* capitalize is presentation only, so the underlying text is untouched - but it
   would also reach a parenthetical note sitting inside the heading, e.g.
   "(if same, please enter "same" in street blank)". Leave those as written. */
.form-card h2 .fw-normal,
.form-card h3 .fw-normal,
.form-card .subtext { text-transform: none; }

/* The muted note that sits beside a form-card title, e.g. "(Customer must
   unload truck)" next to Delivery Destination. !important because the page-
   scoped rules that used to colour it still load after this file. */
.subtext { color: #6E705C !important; font-size: 14px !important; font-weight: normal !important; margin: 0 0 0 15px; }

/* Product detail: the sale badge and the prices drop to weight 500.
   The badge already matches on colour, size and padding, so only the weight is
   restated. The prices are a different story: this page renders them with the
   classes image-popup.js toggles (.price for the new one, span.discounted for
   the struck-through old one), NOT the design's .price-new/.price-old - so the
   design's values are applied to the classes that actually exist here. */
.badge-sale-note { font-weight: 500; }
.price { color: var(--red); font-size: 26px; font-weight: 500; }
span.discounted { color: #9aa5a0; font-size: 26px; }

/* Number inputs keep no spinner - the arrows would sit inside the quantity
   stepper's own - / + buttons. */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.form-card .form-control,
.form-card .form-select { width: 100%; }
.form-card .field-city { flex: 1 1 200px; width: auto; }
.form-card .field-state { flex: 0 0 110px; width: auto; }
.form-card .field-zip { flex: 0 0 130px; width: auto; }
.form-card .field-referral { max-width: 420px; }
.form-card textarea.form-control { width: 100% !important; min-height: 150px; }

/* Checkbox rows use Bootstrap's own .form-check / .form-check-input /
   .form-check-label, exactly as the design does - no custom rules needed.
   The classes are put on the generated <input> and <label> in code-behind,
   because asp:CheckBox puts CssClass on a wrapper span instead. */

#buttons { margin-top: 1.5rem; }
.firstWord { color: var(--yellow); }

.container-narrow { max-width: 1080px; }

/* =========================================================
   Status pages (ThankYou / 404NotFound / AcceptQuoteComplete /
   CardPaymentComplete). Consolidated here from four near-identical
   page-scoped blocks. Two selector shapes are both in use:
   #content.status-card   - the class sits ON the #content wrapper
   #content .status-card  - the card is a child of #content
   ========================================================= */
#content.status-card,
#content .status-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  font-size: 1.05rem;
}
#content .status-card { max-width: 720px; margin: 0 auto; }
#content.status-card a,
#content .status-card a { text-decoration: underline; font-weight: 500; }
#content.status-card p:last-child,
#content .status-card p:last-child { margin-bottom: 0; }
#content .status-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .9rem; }
#content .status-bad h2 { color: var(--red); }
@media (max-width: 575.98px) {
  #content.status-card,
  #content .status-card { padding: 1.4rem 1.2rem; }
}

/* =========================================================
   Krantz logo in the navbar + the home-page reclaimed-wood CTA
   The design's .reclaimed-banner points at ../assets/bg.png, a mockup path that
   does not exist in this app - repoint it at the copy under style/images.
   ========================================================= */
.reclaimed-banner {
  background: linear-gradient(90deg, rgba(29,74,62,.97) 0%, rgba(29,74,62,.9) 50%, rgba(29,74,62,.6) 100%),
              url("images/bg.png") right center/cover no-repeat;
}
/* In the design the CTA lives INSIDE the footer, so it sits on the footer's own
   dark green. Here it stays in the page (so it can be home-page only) and the
   band supplies that same background, making it continuous with the footer. */
.home-cta-band { background: var(--green-footer); padding-top: 4rem; }
.home-cta-band .footer-cta { margin-bottom: 0; }

/* krlogo.png is 2000x1000; the navbar shows it small, so cap it and let the
   height rule do the sizing rather than scaling a huge bitmap every paint */
.main-nav .navbar-brand img { height: 52px; width: auto; }
@media (max-width: 1199.98px) { .main-nav .navbar-brand img { height: 42px; } }

/* --- hero prev/next arrows ---------------------------------------------
   Bootstrap's defaults are full-height 15%-wide hit zones at 50% opacity.
   Override to circular buttons in the bottom-right, matching the round nav
   buttons on the customer-photos gallery. Bottom-right keeps them off the
   left-aligned caption and away from the indicator dots. */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  top: auto;
  bottom: 1.35rem;
  left: auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--heading);
  opacity: 1;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: background .2s ease, color .2s ease, transform .2s ease;
  z-index: 4;
}
/* left and right, vertically centred - the conventional carousel placement */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.hero-slider .carousel-control-prev { left: 0; right: auto; }
.hero-slider .carousel-control-next { right: 0; left: auto; }

/* The caption is a .container, so how close its text sits to the viewport edge
   depends on the container width at that breakpoint - near a breakpoint the
   margin shrinks and the left arrow lands on the headline. From 1240px up the
   container's own margin already clears the arrow zone, so the caption keeps the
   design's alignment: headline, button and indicator dots all start on the
   container edge. Below that the margin is too small, so inset the caption. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .hero-slider .hero-caption { padding-left: 3.4rem; padding-right: 3.4rem; }
}
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: #fff;
  color: var(--green);
  /* keep the -50% centring; only add the lift on top of it */
  transform: translateY(-50%) scale(1.06);
}
.hero-slider .carousel-control-prev:focus-visible,
.hero-slider .carousel-control-next:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* On narrow screens the caption runs close to the edges, so a centred left
   arrow would sit on top of the headline. Touch devices swipe the carousel
   natively and the dots stay available, so the arrows step aside there. */
@media (max-width: 767.98px) {
  .hero-slider .carousel-control-prev,
  .hero-slider .carousel-control-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .carousel-control-prev:hover,
  .hero-slider .carousel-control-next:hover { transform: translateY(-50%); }
}

/* --- footer contact card: the design sets the values in white, not the muted
   footer body colour, and the email is not underlined ------------------- */
.site-footer .footer-contact-card .col-contact > div { color: #fff; }
.site-footer .footer-contact-card .col-contact a { color: #fff; text-decoration: none; }
.site-footer .footer-contact-card .col-contact a:hover { text-decoration: underline; }

/* --- Footer bottom row: centre the Facebook icon --------------------------
   The row is justify-content:space-between with three items, so the two gaps
   are always equal - but the icon only lands on the row's centre line when the
   blocks either side are the same width. The copyright block is 290px; the
   policy block was 396px, pushing the icon 54px left of centre. Shrinking the
   policy type is the only lever in play, so it is sized to match 290px.
   Single-line widths only: below 992px the row wraps and the question is moot. */
@media (min-width: 992px) {
  .footer-policy a,
  .footer-policy .sep { font-size: 9.3px; }
}

/* --- Footer blurb ---------------------------------------------------------
   font-size and color need !important: p{font-size:18px!important} near the top
   of this file, and the element's own inline color, would otherwise win. */
.ftrabt {
    font-size: 16px !important;
    color: #fff !important;
    line-height: 150%;
    font-weight: normal;
    text-transform: capitalize;
}



/* --- Edge gutter for the header rows and the hero arrows ------------------
   Both header rows are .container-fluid, which leaves only Bootstrap's 12px
   between the viewport edge and the logo / Get a Quote button, and the hero
   arrows sat at 0. One gutter drives all three, so the phone number lines up
   with the logo, the email with the Get a Quote button, and the arrows with
   both. */
/* Phones keep Bootstrap's 12px: any wider and the phone number + email in the
   contact strip no longer fit on one line at 375px. */
:root { --edge-gutter: .75rem; }
@media (min-width: 768px) { :root { --edge-gutter: 1.5rem; } }

.contact-strip > .container-fluid,
.main-nav > .container-fluid {
  padding-left: var(--edge-gutter);
  padding-right: var(--edge-gutter);
}
.hero-slider .carousel-control-prev { left: var(--edge-gutter); }
.hero-slider .carousel-control-next { right: var(--edge-gutter); }

/* Moving the arrows in by the gutter moves them toward the headline, so the
   caption has to move in by the same amount to keep its clearance.
   768-1399px: the existing 3.4rem inset was measured against arrows at 0. */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .hero-slider .hero-caption {
    padding-left: calc(3.4rem + var(--edge-gutter));
    padding-right: calc(3.4rem + var(--edge-gutter));
  }
}
/* 1400px+: the caption normally needs no inset, because the container's own
   margin clears the arrow - but just above 1400 that margin is only ~40px. This
   insets the caption only while the margin is too small, and falls to 0 from
   ~1490px up so wide screens keep the design's alignment. The 61px was
   measured, not derived: it holds the headline ~16px clear of the arrow. */
@media (min-width: 1400px) {
  .hero-slider .hero-caption {
    padding-left: max(0px, calc(var(--edge-gutter) + 61px - (100vw - 1320px) / 2));
    padding-right: max(0px, calc(var(--edge-gutter) + 61px - (100vw - 1320px) / 2));
  }
}

/* --- Full-view lightbox caption on small screens -------------------------
   The caption flows below the photo at every width now (see #popupDescription
   above); on a phone it only needs tighter padding. */
@media (max-width: 767.98px) {
  #popupDescription {
    padding: .9rem 1.1rem;
  }
}

/* --- Header logos --------------------------------------------------------
   The Jimmy's Cypress mark is the primary brand and runs at 104px - exactly
   twice the 52px Krantz mark in the nav below it. Held at 104 rather than the
   148 originally asked for because jclogo.png is only 300x99: at 148 it was
   upscaled 1.49x and went soft. Raise this once a larger export exists -
   ~900x297 would carry 148px cleanly.
   "Since 1997" is part of the artwork, so there is no text to size here. */
.top-logo-strip img { height: 104px; }
@media (max-width: 991.98px) {
  .top-logo-strip img { height: 86px; }
}
@media (max-width: 575.98px) {
  /* 84 = twice the 42px Krantz mark at this width; 70 left it only 1.67x */
  .top-logo-strip img { height: 84px; }
}

/* "A division of" above the Krantz mark. The brand becomes a two-row stack,
   so it needs its own flex context - the navbar-brand default is inline. */
.main-nav .ksw-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;   /* centre "A division of" over the mark, not flush left */
  line-height: 1;
}
.main-nav .ksw-brand .ksw-kicker {
  font-size: .62rem;
  font-weight: 500;
  color: var(--body-gray);
  margin-bottom: 3px;
  white-space: nowrap;
  /* Spread by letter-spacing, not justification, so the words keep their normal
     gaps. The trailing space CSS adds after the last letter is pulled back with
     the negative margin, so the visible text ends flush with the mark. */
  align-self: stretch;
  letter-spacing: .365em;
  margin-right: -.365em;
}

/* Below 1200px the Krantz mark is 42px tall / 84px wide, so the kicker needs
   less letter-spacing to match it. This has to sit after the base .ksw-kicker
   rule above: same specificity, so source order decides. */
@media (max-width: 1199.98px) {
  .main-nav .ksw-brand .ksw-kicker { letter-spacing: .197em; margin-right: -.197em; }
}

/* --- Sticky header -------------------------------------------------------
   The logo strip, contact strip and nav stick together so the Jimmy's Cypress
   mark stays on screen. The nav no longer sticks on its own - one sticky
   wrapper avoids having to give each child a top offset that would then need
   maintaining per breakpoint. */
/* fixed, not sticky: a sticky header stays in the layout flow, so growing it
   back on scroll-up shoved the page content down - that was the jerk. Fixed
   takes it out of flow and .site-sticky-spacer (sized by sticky-header.js to
   the header's full height) holds the space, so content never moves. */
.site-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: #fff; }
.site-sticky .main-nav { position: static; }
/* Only the collapsed drawer needs this. Applying it at all widths turned the
   desktop nav row into a scroll container and drew a scrollbar across it. */
@media (max-width: 1199.98px) {
  .site-sticky .navbar-collapse { max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* Compacted once scrolled: the logo shrinks and the contact strip steps
   aside, so the header costs roughly a third less height while both marks
   stay visible. */
.site-sticky .top-logo-strip,
.site-sticky .top-logo-strip img,
.site-sticky .contact-strip {
  transition: height .2s ease, padding .2s ease, opacity .2s ease;
}
.site-sticky.is-scrolled .top-logo-strip { padding: .3rem 0; }
.site-sticky.is-scrolled .contact-strip { display: none; }
/* Both marks shrink together, so Jimmy's stays twice the Krantz mark when
   compacted - shrinking only Jimmy's left it the smaller of the two. */
.site-sticky.is-scrolled .top-logo-strip img { height: 64px; }
.site-sticky.is-scrolled .main-nav .navbar-brand img { height: 32px; }
/* The kicker stays visible when compact; its letter-spacing is retuned to the
   smaller mark so it still ends flush instead of overhanging. */
.site-sticky.is-scrolled .main-nav .ksw-brand .ksw-kicker {
  font-size: .5rem;
  letter-spacing: .158em;
  margin-right: -.158em;
}
@media (max-width: 991.98px) {
  .site-sticky.is-scrolled .top-logo-strip img { height: 56px; }
  .site-sticky.is-scrolled .main-nav .navbar-brand img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-sticky .top-logo-strip,
  .site-sticky .top-logo-strip img,
  .site-sticky .contact-strip { transition: none; }
}
