:root {
  --bs-primary: #233755;
  --bs-primary-rgb: 35, 55, 85;
  --bs-body-font-family: "DM Sans", system-ui, sans-serif;
  --bs-font-sans-serif: "DM Sans", system-ui, sans-serif;
  --bs-body-color: #233755;
  --bs-heading-color: #233755;
  --bs-border-radius: 1rem;
  --bs-border-radius-lg: 1.5rem;
  --bs-border-radius-pill: 50rem;
  --bs-link-color: #233755;
  --bs-link-hover-color: #1a2a40;
}

/* BS 5.3 hardcodes btn colors — re-map to brand primary */
.btn-primary {
  --bs-btn-bg: #233755;
  --bs-btn-border-color: #233755;
  --bs-btn-hover-bg: #1a2a40;
  --bs-btn-hover-border-color: #1a2a40;
  --bs-btn-active-bg: #152233;
  --bs-btn-active-border-color: #152233;
  --bs-btn-disabled-bg: #233755;
  --bs-btn-disabled-border-color: #233755;
}

.btn-outline-primary {
  --bs-btn-color: #233755;
  --bs-btn-border-color: #233755;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #233755;
  --bs-btn-hover-border-color: #233755;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1a2a40;
  --bs-btn-active-border-color: #1a2a40;
  --bs-btn-disabled-color: #233755;
  --bs-btn-disabled-border-color: #233755;
}

body {
  font-family: var(--bs-body-font-family);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Playfair Display", Georgia, serif;
}

.font-petrona,
.navbar,
.navbar .nav-link,
.navbar-brand,
.heading-italic,
.btn {
  font-family: "Petrona", Georgia, serif;
}

.heading-italic {
  font-style: italic;
}

/* Page banner (reusable) */
.page-banner {
  --page-banner-bg: url("../img/page-banner.png");
  min-height: 70vh;
  background-color: #f3f1ea;
  background-image: var(--page-banner-bg);
  background-size: cover;
  background-position: center;
}

.page-banner .navbar .nav-link {
  color: var(--bs-primary);
  font-weight: 500;
}

.page-banner .navbar .nav-link.active,
.page-banner .navbar .nav-link:hover {
  color: #fff;
  background-color: var(--bs-primary);
}

.page-banner-title {
  min-height: 220px;
}

/* Who We Work With */
.who-we-work-audience-label {
  font-family: "Playfair Display", Georgia, serif;
}

.who-we-work-step {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Our Purpose */
.our-purpose {
  background-color: #fff;
  background-image: url("../img/our-purpose-circles.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.our-purpose-frame {
  position: relative;
}

/* Why Choose */
.why-choose-card {
  background-color: var(--bs-primary);
  background-image: url("../img/blue-circle-bg.png");
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.why-choose-feature-icon {
  width: auto;
  height: auto;
}

.why-choose-features li:last-child {
  margin-bottom: 0 !important;
}

/* Standard Shower Door Range */
.standard-range-features li:last-child {
  margin-bottom: 0 !important;
}

.standard-range-check {
  color: #aeb6c2;
}

/* Simple Installation */
.simple-installation {
  background-color: #f7f7f8;
}

.simple-installation-card {
  --bs-border-radius: 0.375rem;
  border-radius: 0.375rem !important;
  position: relative;
}

.simple-installation-card-body {
  padding-left: 3rem;
}

.simple-installation-card-body::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background-color: #c9c6b6;
  border-radius: 1px;
}

.simple-installation-card:last-child {
  margin-bottom: 0 !important;
}

/* Homepage hero — layout Bootstrap cannot fully express */
.home-hero {
  --home-hero-bg: url("../img/home-hero.png");
  min-height: min(92vh, 900px);
  background-image: var(--home-hero-bg);
  background-size: cover;
  background-position: center;
}

.home-hero .navbar {
  font-family: "Petrona", Georgia, serif;
}

.home-hero .navbar .nav-link {
  color: var(--bs-primary);
  font-weight: 500;
}

.home-hero .navbar .nav-link.active,
.home-hero .navbar .nav-link:hover {
  color: #fff;
  background-color: var(--bs-primary);
}

.home-hero .navbar-brand {
  line-height: 1;
  text-decoration: none;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.home-hero-video-frame {
  min-height: 360px;
}

.home-hero-video-thumb {
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-hero-video-caption {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  padding-top: 4rem !important;
  z-index: 1;
}

.btn-play {
  width: 4.5rem;
  height: 4.5rem;
  border: 0;
  z-index: 2;
}

.btn-play-inner {
  width: 2.25rem;
  height: 2.25rem;
  background-color: #f3eee6;
}

.btn-play iconify-icon {
  font-size: 1.35rem;
  margin-left: 0.1rem;
}

/* Reusable CTA banner */
.cta-banner {
  background-color: var(--bs-primary);
  background-image: url("../img/blue-grid-bg.png");
  background-size: cover;
  background-position: center;
}

.btn-cta-light {
  --bs-btn-color: #233755;
  --bs-btn-bg: #e8dfd2;
  --bs-btn-border-color: #e8dfd2;
  --bs-btn-hover-color: #233755;
  --bs-btn-hover-bg: #ddd2c2;
  --bs-btn-hover-border-color: #ddd2c2;
  --bs-btn-active-color: #233755;
  --bs-btn-active-bg: #d4c8b5;
  --bs-btn-active-border-color: #d4c8b5;
  font-family: "Petrona", Georgia, serif;
}

/* Video carousel (Slick) */
.video-carousel-thumb {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background-color: #d9dde3;
}

.video-carousel-play {
  width: 3.5rem;
  height: 3.5rem;
  pointer-events: none;
}

.video-carousel-play iconify-icon {
  margin-left: 0.15rem;
}

.video-carousel .slick-dots {
  bottom: -2.5rem;
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
}

.video-carousel .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.video-carousel .slick-dots li button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
}

.video-carousel .slick-dots li button:before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: #c5cad3;
  opacity: 1;
  left: 0;
  top: 0;
}

.video-carousel .slick-dots li.slick-active button:before {
  background-color: var(--bs-primary);
}

/* Products carousel (Slick) */
.products-collection {
  background-color: #fff;
}

.product-card {
  background-color: #f3f4f6;
  overflow: hidden;
}

.product-card-image {
  overflow: hidden;
  border-radius: var(--bs-border-radius);
}

.product-card-thumb {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background-color: #d9dde3;
  border-radius: var(--bs-border-radius);
}

.product-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

.product-card-overlay {
  z-index: 1;
  color: #fff;
}

.product-card-overlay .product-card-title,
.product-card-overlay .product-card-desc {
  color: #fff;
}

.product-card-title {
  letter-spacing: 0.04em;
}

.product-card-desc {
  font-size: 0.8rem;
  line-height: 1.45;
}

.product-color-label {
  font-size: 0.6rem;
}

.product-color-swatch {
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background-color: #e1e4ea;
}

.product-size-box {
  border: 1px solid #e1e4ea;
}

.products-carousel .slick-dots {
  bottom: -2.5rem;
  position: relative;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
}

.products-carousel .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.products-carousel .slick-dots li button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
}

.products-carousel .slick-dots li button:before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background-color: #c5cad3;
  opacity: 1;
  left: 0;
  top: 0;
}

.products-carousel .slick-dots li.slick-active button:before {
  background-color: var(--bs-primary);
}

/* Products installation steps */
.products-installation {
  background-color: #f7f7f8;
}

.products-installation-steps {
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}

.products-installation-step {
  border-right: 1px solid var(--bs-border-color);
}

.products-installation-steps > .col:last-child .products-installation-step {
  border-right: 0;
}

.products-installation-icon {
  max-height: 4.5rem;
  width: auto;
}

/* Products feature cards */
.products-features {
  background-color: #f7f7f8;
}

.product-feature-card {
  background-color: #fff;
}

.product-feature-icon {
  display: block;
  height: auto;
  max-height: 2.75rem;
  width: auto;
  max-width: none;
}

/* Contact section */
.contact-products-card {
  background-color: var(--bs-primary);
  background-image: url("../img/blue-circle-bg.png");
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.text-accent-gold {
  color: #b08d57;
}

.contact-reason-icon {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #b08d57;
}

.contact-reasons-divider {
  height: 1px;
  background-color: #e1e4ea;
}

.contact-reasons-diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background-color: #c9c6b6;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Contact Form 7 */
.nb-cf7-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #cfd3db;
  padding-bottom: 0.35rem;
  margin-bottom: 0;
  width: 100%;
}

.nb-cf7-field--textarea {
  align-items: flex-start;
  padding-top: 0.25rem;
}

.nb-cf7-icon {
  color: var(--bs-primary);
  display: inline-flex;
  flex-shrink: 0;
}

.nb-cf7-field .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  width: 100%;
}

.nb-cf7-field input.wpcf7-form-control,
.nb-cf7-field textarea.wpcf7-form-control,
.nb-cf7-field select.wpcf7-form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.35rem 0;
  width: 100%;
  color: var(--bs-primary);
}

.nb-cf7-field textarea.wpcf7-form-control {
  min-height: 5rem;
  resize: vertical;
}

.nb-cf7-field select.wpcf7-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23233755' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
}

.nb-cf7-field input.wpcf7-form-control:focus,
.nb-cf7-field textarea.wpcf7-form-control:focus,
.nb-cf7-field select.wpcf7-form-control:focus {
  outline: none;
  box-shadow: none;
}

.nb-cf7-upload-label {
  color: var(--bs-primary);
  font-size: 0.95rem;
}

.nb-cf7-mfile .codedropz-upload-wrapper,
.nb-cf7-mfile .cd-upload-btn,
.nb-cf7-mfile .dnd-upload-status {
  border-radius: 0.75rem;
}

.nb-cf7-submit .wpcf7-submit {
  font-family: "Petrona", Georgia, serif;
}

/* Site footer */
.site-footer-separator {
  height: auto;
  object-fit: cover;
  object-position: center;
}

.site-footer-link:hover {
  color: var(--bs-primary) !important;
}

.site-footer-col.border-end,
.site-footer-col.border-lg-end,
.site-footer-col.border-md-end {
  position: relative;
}

.products-intro-diamond-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  margin-left: -11px;
  background: url("../img/diamond-end.webp") no-repeat center center;
  z-index: 1;
}

/* diamonds on border */
.border,
.border-start,
.border-end,
.border-bottom,
.border-top {
    position: relative;
}
.diamond-start:after,
.diamond-top:after,
.diamond-bottom:after,
.diamond-end:after,
.diamond-start:before,
.diamond-top:before,
.diamond-bottom:before,
.diamond-end:before {
    position: absolute;
    width: 22px;
    height: 22px;
    background: url('../img/diamond-end.webp') no-repeat center center;
    content: '';
    display: none;
}
.border-bottom.diamond-end:after {
    right: -11px;
    bottom: -11px;
    display: block;
}
.border-top.diamond-end:after {
    right: -11px;
    top: -11px;
    display: block;
}
.border-top.diamond-start:after {
    left: -11px;
    top: -11px;
    display: block;
}
.border-start.diamond-top:before,
.border-bottom.diamond-start:before {
    left: -11px;
    bottom: -11px;
    display: block;
}
.border-start.diamond-bottom:after {
    left: -11px;
    top: -11px;
    display: block;
}
.border-end.diamond-top:before {
    right: -11px;
    top: -11px;
    display: block;
}
.border-end.diamond-bottom:after {
    right: -11px;
    bottom: -11px;
    display: block;
}
