@charset "UTF-8";

/* ==================================================
   HOMEPAGE.CSS
   Nick's Building Supply Homepage Styles
   Organized, de-duplicated, and safer to maintain
   ================================================== */

/* ==================================================
   1. THEME VARIABLES
   ================================================== */
:root {
  --nicks-blue: #0b3d6d;
  --nicks-link-blue: #007bff;
  --nicks-maroon: #6b1f2b;
  --nicks-maroon-dark: #541821;
  --nicks-red: #b00000;
  --nicks-teal: #2ca5b3;
  --nicks-teal-alt: #2fa4a9;

  --text-dark: #333;
  --text-muted: #555;
  --border-light: #e4e6ea;
  --section-light: #f5f6f8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 6px 18px rgba(0,0,0,.08);
  --shadow-card: 0 10px 26px rgba(0,0,0,.1);
  --shadow-card-hover: 0 14px 30px rgba(0,0,0,.14);
}

/* ==================================================
   2. BASE / ACCESSIBILITY
   ================================================== */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #ff0;
  color: #000;
  font-weight: 700;
  z-index: 1000;
}

/* ==================================================
   3. GENERAL HOMEPAGE LAYOUT
   ================================================== */
.section {
  padding: 2rem 0;
  margin-bottom: 0;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.14rem;
}

.bg-light {
  background: var(--section-light) !important;
}

.number,
.phone-link {
  color: var(--nicks-red);
  font-weight: 700;
}

.phone-link {
  text-decoration: none;
  transition: color .2s ease, text-decoration .2s ease;
}

.phone-link:hover {
  color: #e03e3e;
  text-decoration: underline;
}

/* ==================================================
   4. HERO / MENU OVERRIDES
   ================================================== */
.hero-title {
  letter-spacing: .15em;
  color: #fff;
}

.hero-sub a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
}

/* Top menu homepage tweaks */
nav.navbar .navbar-nav .nav-link,
nav.navbar .dropbtn {
  font-size: 16px !important;
}

nav.navbar .navbar-nav .nav-link {
  padding: 10px 12px !important;
}

nav.navbar .dropdown-content .section-title,
nav.navbar .dropdown-content .section-title-main {
  font-size: 13px !important;
}

nav.navbar .dropdown-content .section-items a,
nav.navbar .dropdown-content .section-items .item > span {
  font-size: .9rem !important;
}

nav.navbar .dropdown-content .section-items img {
  width: 95px !important;
  height: 110px !important;
  object-fit: cover;
}

nav.navbar .dropdown-content .section-items a,
nav.navbar .dropdown-content .section-items .item {
  margin-bottom: .4rem !important;
}

/* ==================================================
   5. BUTTONS
   ================================================== */
.jumbotron .btn-primary {
  background: #fff !important;
  color: var(--nicks-link-blue) !important;
  border: 2px solid var(--nicks-link-blue);
  padding: .5rem 1rem;
  font-size: .93rem;
  line-height: 1.2;
}

.jumbotron .btn-primary:hover {
  background: var(--nicks-link-blue) !important;
  color: #fff !important;
}

/* ==================================================
   6. REUSABLE HOMEPAGE CARDS / IMAGES
   ================================================== */
.card-block {
  height: 100%;
  margin-bottom: 1.79rem;
  padding: 1.29rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: .71rem;
  box-shadow: 0 .43rem 1rem rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 .88rem 1.63rem rgba(0,0,0,.12);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.placeholder {
  height: 15rem;
  background: #eef1f4;
  border: 1px dashed #bbb;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.thumbnail_align .thumbnail {
  max-width: 6.43rem;
  height: auto;
  display: inline-block;
}

.product-badge {
  color: #750b1c;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ==================================================
   7. SHOP BY CATEGORY
   ================================================== */
.shop-category-heading {
  margin: 3rem 0 1.25rem;
  padding: 0 1rem .5rem;
  border-bottom: 1px solid #ddd;
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.shop-category-grid + .shop-category-heading {
  margin-top: 4rem;
}

.shop-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

.shop-category-card {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}

.shop-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.shop-category-image {
  width: 100%;
  aspect-ratio: 8 / 12.25;
  background: #eef1f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-category-placeholder {
  color: #777;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.shop-category-content {
  padding: .85rem 1rem 1.1rem;
  text-align: center;
}

.shop-category-content h3 {
  margin-bottom: .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-category-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ==================================================
   8. CUSTOM THIN / INFO SECTIONS
   ================================================== */
.custom-thin-section {
  margin: 1rem 0;
  padding: 2.5rem 0 2.86rem;
  background: var(--nicks-blue);
  color: #fff;
}

.custom-thin-section h2 {
  margin-bottom: .71rem;
  font-size: 1.86rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.custom-thin-section p {
  margin-bottom: .75rem;
  font-size: 1.14rem;
  opacity: .95;
}

.custom-thin-section .btn {
  padding: .71rem 1.75rem;
  border: 2px solid #fff;
  border-radius: 2.86rem;
  font-size: 1.14rem;
  transition: .25s ease;
}

.custom-thin-section .btn:hover {
  background: #fff;
  color: var(--nicks-blue);
}

.custom-info-section {
  padding: 2rem 0;
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.custom-info-section p {
  margin-bottom: .5rem;
}

.custom-info-section b {
  font-weight: 700;
}

/* ==================================================
   9. RESOURCE IMAGE BOX
   ================================================== */
.resource-image-box {
  width: 100%;
  aspect-ratio: 6 / 4.653;
  overflow: hidden;
  background: #fff;
  border-radius: .43rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==================================================
   10. TESTIMONIALS
   ================================================== */
.testimonial-card {
  margin-bottom: 1.43rem;
  padding: 1.43rem 1.57rem;
  background: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: .75rem;
  box-shadow: 0 .43rem 1.13rem rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 1.07rem;
  line-height: 1.6;
  transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.75rem rgba(0,0,0,.12);
}

.testimonial-card p {
  margin-bottom: .86rem;
}

.testimonial-author {
  margin-top: .71rem;
  color: var(--nicks-red);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

/* ==================================================
   11. PRECISION SECTION
   ================================================== */
.precision-section {
  background: #f6f6f6;
}

.precision-card {
  padding: 28px;
  background: var(--nicks-maroon);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.precision-kicker {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .8;
}

.precision-headline {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
}

.precision-statement {
  font-size: 20px;
  line-height: 1.4;
  opacity: .95;
}

.precision-body {
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
}

.precision-proof {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.proof-item {
  height: 100%;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 14px;
}

.proof-title {
  font-weight: 650;
}

.proof-text {
  margin-top: 4px;
  color: #fff;
  font-size: 14px;
}

/* ==================================================
   12. SPECIALS SECTION
   ================================================== */
.specials-banner {
  overflow: hidden;
  border-radius: 10px;
}

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

@media (max-width: 991.98px) {
  .specials-strip {
    padding: 40px 0;
    background: #fff;
  }
}

@media (min-width: 992px) {
  .specials-strip {
    padding: 20px 0;
    background: var(--nicks-teal);
  }

  .specials-container,
  .specials-col {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .specials-img {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }
}

/* ==================================================
   13. TRUST STRIP
   ================================================== */
.trust-strip {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.trust-strip h2 {
  margin-bottom: 1rem !important;
  font-size: .85rem !important;
}

.trust-card {
  height: 100%;
  padding: 4px 6px;
  background: transparent;
}

.trust-img {
  max-height: 70px;
  width: auto;
  display: inline-block;
  margin-bottom: 10px;
  opacity: .9;
}

.trust-label {
  margin-top: 6px;
  margin-bottom: 0;
  color: #2d2d2d;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
}

.trust-link,
.trust-label a {
  color: #2d2d2d;
  text-decoration: none;
}

.trust-label a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .trust-card {
    border-right: 1px solid rgba(0,0,0,.08);
  }

  .trust-card.last {
    border-right: 0;
  }
}

/* ==================================================
   14. CUSTOM / REPLACEMENT DOORS PROMO
   ================================================== */
.door-promo-section {
  padding: 26px 0;
  background: var(--nicks-maroon);
}

.door-promo-heading {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}

.door-promo-card {
  height: 100%;
  padding: 18px 16px;
  background: #f8f6f3;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.door-promo-card h3 {
  margin-bottom: 6px;
  color: var(--nicks-maroon);
  font-size: 1.3rem;
  font-weight: 700;
}

.door-promo-card p {
  margin-bottom: 14px;
  color: #444;
  font-size: .95rem;
}

.door-promo-btn {
  padding: 8px 16px;
  background-color: var(--nicks-maroon) !important;
  border-color: var(--nicks-maroon) !important;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  transition: all .2s ease;
}

.door-promo-btn:hover,
.door-promo-btn:focus {
  background-color: var(--nicks-maroon-dark) !important;
  border-color: var(--nicks-maroon-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .door-promo-card:first-child {
    border-right: 2px solid rgba(0,0,0,.08);
  }
}

/* ==================================================
   15. MONTHLY FEATURE / FEATURE COLLECTIONS
   ================================================== */
.feature-collections {
  margin: 1rem 0;
  padding: 2.5rem 0 2.86rem;
  background: var(--nicks-teal-alt);
  color: #fff;
}

.feature-row {
  min-height: 250px;
}

.feature-center-text {
  padding: 1rem 2rem;
}

.feature-title {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .5px;
}

.feature-heading {
  margin-bottom: .5rem;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.feature-subtext {
  margin-bottom: .75rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

.feature-small {
  font-size: 1rem;
  line-height: 1.3;
}

.feature-link {
  width: 100%;
  display: inline-block;
}

.feature-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feature-img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  display: block;
}

.feature-collections a:hover img {
  transform: scale(1.03);
  transition: .3s ease;
}

@media (min-width: 992px) {
  .feature-row {
    justify-content: space-between;
  }

  .feature-center-text {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .feature-title {
    margin-bottom: .75rem;
  }

  .feature-center-text {
    padding: .5rem 1rem;
  }

  .feature-img {
    height: 180px;
  }
}

/* ==================================================
   16. FEEDBACK SECTION
   ================================================== */
.feedback-card {
  border: 2px solid var(--border-light);
}

.feedback-card-premium {
  min-height: 410px;
  overflow: hidden;
  background: linear-gradient(rgba(20,20,20,.45), rgba(20,20,20,.55));
  background-size: cover;
  background-position: center;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.feedback-card-overlay {
  width: calc(100% - 36px);
  margin: 18px;
  padding: 18px 16px;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-md);
}

.feedback-card-overlay h3 {
  margin-bottom: 8px;
  color: #222;
  font-size: 1.25rem;
  font-weight: 800;
}

.feedback-card-overlay p {
  margin-bottom: 12px;
  color: #444;
}

.feedback-row {
  padding: 18px 22px;
  background: #f8fbff;
  border: 1px solid rgba(0,52,120,.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: left;
}

.feedback-badge {
  padding: 7px 12px;
  background: #003478;
  color: #fff;
  border-radius: var(--radius-pill);
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feedback-copy h3 {
  margin: 0;
  color: #003478;
  font-size: 1.1rem;
  font-weight: 700;
}

.feedback-copy p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: .95rem;
}

.feedback-options,
.feedback-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.feedback-options {
  gap: 15px;
  font-weight: 600;
}

.feedback-options input {
  margin-right: 5px;
}

.feedback-btn {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s ease;
}

.feedback-btn:hover {
  transform: translateY(-2px);
}

.feedback-btn.yes:hover {
  background: #e6f4ea;
  border-color: #28a745;
}

.feedback-btn.no:hover {
  background: #fdecea;
  border-color: #dc3545;
}

.feedback-textarea {
  max-width: 360px;
  min-width: 260px;
  resize: none;
}

#feedbackThanks {
  color: var(--nicks-maroon);
  font-weight: 700;
}

/* ==================================================
   17. ACCESSORIES FIXES
   ================================================== */
#accessories a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer !important;
  opacity: 1 !important;
}

#accessories a.card-link:hover,
#accessories a.card-link:focus,
#accessories a.card-link img {
  opacity: 1 !important;
}

#accessories .card-block {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#accessories a.card-link:hover .card-block,
#accessories a.card-link:focus .card-block {
  background-color: #f8f9fa;
}

/* Bootstrap 5 .placeholder can conflict with custom image placeholders */
#accessories .placeholder {
  background-color: transparent !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

#accessories .placeholder::before,
#accessories .placeholder::after {
  display: none !important;
}

/* ==================================================
   18. FLOATING ACTIONS / BACK TO TOP
   ================================================== */
#floating-actions-right {
  position: fixed;
  right: .71rem;
  bottom: 6.43rem;
  z-index: 9999;
}

#floating-actions-right ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#floating-actions-right ul li {
  margin-bottom: .43rem;
}

#floating-actions-right ul li a.action-btn {
  width: 6.88rem;
  min-height: 4.86rem;
  padding: .43rem .57rem;
  background: var(--nicks-link-blue);
  color: #fff;
  border-radius: .43rem;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .93rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

#floating-actions-right ul li a.action-btn span.icon {
  margin-bottom: .14rem;
  font-size: 1.43rem;
}

#floating-actions-right ul li a.action-btn:hover {
  opacity: .92;
}

#backToTop {
  position: fixed;
  right: 6.07rem;
  bottom: 1.43rem;
  z-index: 10001;
  width: 4.14rem;
  height: 4.14rem;
  display: none;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 .25rem .63rem rgba(0,0,0,.35);
  cursor: pointer;
  font-size: 1.29rem;
  font-weight: 700;
  line-height: 3.86rem;
  text-align: center;
}

#backToTop:hover {
  opacity: .88;
}

/* ==================================================
   19. FOOTER MENU
   ================================================== */
.footer-menu h5 {
  margin-bottom: .53rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: .43rem;
}

.footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: .2s;
}

.footer-links a:hover {
  color: #8b5a2b;
  text-decoration: underline;
}

/* ==================================================
   20. RESPONSIVE ADJUSTMENTS
   ================================================== */
@media (max-width: 1199px) {
  .shop-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .shop-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }

  .testimonial-card {
    margin-bottom: 1.79rem;
  }

  .custom-thin-section {
    padding: 2rem 0;
  }

  .custom-thin-section h2 {
    font-size: 1.57rem;
  }

  .resource-image-box {
    aspect-ratio: 6 / 5.3;
  }

  .footer-menu .col-sm-6 {
    margin-bottom: 1.43rem;
    text-align: center;
  }

  #backToTop {
    left: 15px !important;
    right: auto !important;
    bottom: 140px !important;
    top: auto !important;
    z-index: 2147483000 !important;
  }

  .feedback-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .feedback-badge,
  .feedback-btn {
    align-self: center;
  }

  .feedback-textarea {
    max-width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 479px) {
  .shop-category-grid {
    grid-template-columns: 1fr;
  }
}
