/*
Theme Name: Rogers Construction Supplies
Theme URI: https://example.com/
Author: Codex
Description: Responsive WordPress theme recreated from supplied Rogers Construction Supplies PSD designs.
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.6
Text Domain: rogers-construction
*/

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("assets/fonts/Aileron/Aileron-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("assets/fonts/Aileron/Aileron-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("assets/fonts/Aileron/Aileron-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #bf9650;
  --gold-ref: #c09a50;
  --gold-dark: #a67f3c;
  --ink: #191919;
  --muted: #666;
  --line: #dedede;
  --soft: #f4f4f4;
  --footer: #151515;
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", "Aileron", "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
}

body > * {
  max-width: 100vw;
}

.topbar,
.site-header,
main,
.site-footer,
section {
  max-width: 100%;
  overflow-x: clip;
}

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  max-width: 100%;
}

.topbar {
  background: #fff;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  pointer-events: none;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  min-height: 57px;
  align-items: center;
  width: min(855px, 100%);
  margin-right: 0;
  padding-right: max(62px, calc((100vw - var(--container)) / 2));
  padding-left: 92px;
  background: var(--gold-ref);
  border-bottom-left-radius: 36px;
  font-weight: 400;
  pointer-events: auto;
}

.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.top-location::before {
  content: "●";
  font-size: 15px;
  line-height: 1;
}

.top-phone::before {
  content: "|  ▯";
  opacity: .85;
  margin-right: 10px;
}

.top-phone::after {
  content: "";
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  z-index: 20;
}

.header-inner {
  min-height: 156px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  min-width: 0;
}

.brand {
  margin-top: 18px;
}

.brand img {
  width: 326px;
  max-width: 43vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.55vw, 52px);
  font-size: 18px;
  font-weight: 400;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-top: 82px;
}

.main-nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  border-bottom: 2px solid transparent;
  padding: 0 0 9px;
  white-space: nowrap;
  line-height: 40px;
  height: 51px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .is-active,
.home .nav-home-link,
.page-template-page-about .nav-about-link,
.page-template-page-products .nav-products-link,
.page-template-page-product-detail .nav-products-link,
.page-template-page-product-inquiry .nav-products-link,
.page-template-page-contact .nav-contact-link {
  border-color: var(--gold);
}

.search-pill {
  position: relative;
  width: 228px;
  max-width: 100%;
  height: 40px;
  border: 1px solid #d8c59d;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 7px 0 17px;
  color: #999;
  font-size: 18px;
  background: #fff;
}

.search-pill input[type="search"] {
  position: static !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  background: transparent;
  color: #777;
  outline: 0;
}

.search-pill button {
  flex: 0 0 auto;
  border: 0;
  margin-left: 6px;
  background: var(--gold-ref);
  color: #fff;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.nav-dropdown {
  position: relative;
  height: 51px;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #222;
  transform: translateY(1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 292px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  z-index: 50;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  border: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.25;
}

.nav-dropdown-menu a:hover {
  background: #f6f6f6;
  color: var(--gold-dark);
}

.hero-home {
  position: relative;
  min-height: 520px;
  background: url("assets/images/home-hero.jpg") center top/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-start;
  padding-top: 66px;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.78) 30%, rgba(0,0,0,.18) 49%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}

.hero-copy {
  width: min(440px, 100%);
  margin-left: max(24px, calc((100vw - var(--container)) / 2));
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(37px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.button::after {
  content: ">";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--gold);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.trust-strip {
  background: #f5f5f5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 700;
  color: #555;
}

.trust-icon,
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section-tight {
  padding: 54px 0;
}

.section-title {
  text-align: center;
  margin: 0 auto 54px;
  max-width: 620px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(29px, 3.3vw, 38px);
  line-height: 1.2;
}

.section-title h2 span,
.gold {
  color: var(--gold);
}

.dots {
  color: var(--gold);
  letter-spacing: 6px;
  font-weight: 700;
}

.cards-four,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 54px;
}

.cards-four {
  max-width: 1200px;
  margin-inline: auto;
  gap: 54px;
}

.category-card,
.product-card {
  text-align: center;
  min-width: 0;
}

.category-card {
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.category-card img,
.product-card img {
  background: #fff;
  width: 100%;
  object-fit: cover;
}

.category-card img {
  aspect-ratio: 258 / 202;
  border: 0;
  border-radius: 0;
}

.product-card img {
  aspect-ratio: 1 / 1;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
}

.category-card h3,
.product-card h3 {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.category-card h3 {
  background: var(--gold-ref);
  color: #fff;
  margin: 0;
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 0;
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  padding: 8px 10px;
}

.home-product-wrap {
  position: relative;
  max-width: 1160px;
  margin-inline: auto;
}

.home-products {
  gap: 52px;
}

.home-products .product-card img {
  border-radius: 14px;
  aspect-ratio: 258 / 258;
}

.home-products .product-card span {
  display: block;
  margin-top: 16px;
  color: #111;
  font-size: 14px;
  line-height: 1.25;
}

.home-products .product-card h3 {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}

.carousel-arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  color: #000;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.carousel-prev {
  left: -42px;
}

.carousel-next {
  right: -42px;
}

.feature-image {
  border-radius: 0 44px 44px 0;
  overflow: hidden;
  width: min(1195px, calc(100% - 48px));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.lead h2 {
  margin: 0 0 18px;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.15;
}

.lead p {
  color: #4f4f4f;
}

.help-card {
  position: relative;
}

.help-card .callout {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: min(470px, 92%);
  background: #38332b;
  color: #fff;
  padding: 24px 32px;
  border-radius: 8px;
}

.callout h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
}

.feature {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: start;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: #555;
}

.page-banner {
  min-height: 150px;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  background: #222 center/cover no-repeat;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}

.page-banner > div {
  position: relative;
}

.page-banner h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.15;
}

.banner-about { background-image: url("assets/images/banner-about-clean.jpg"); }
.banner-products { background-image: url("assets/images/banner-products-clean.jpg"); }
.banner-inquiry { background-image: url("assets/images/banner-inquiry-clean.jpg"); }
.banner-contact { background-image: url("assets/images/banner-contact-clean.jpg"); }

.two-column-copy {
  display: grid;
  grid-template-columns: minmax(0, 570px) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.rounded-media {
  border-radius: 10px;
  overflow: hidden;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px;
  align-items: center;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.team-card:last-child {
  border-right: 0;
}

.team-card img {
  border-radius: 8px;
  border: 1px solid var(--line);
}

.team-card h3 {
  color: var(--gold);
  margin: 0;
  line-height: 1.15;
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-list .feature {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 24px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.category-sidebar {
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  overflow: hidden;
}

.category-sidebar h2 {
  margin: 0;
  padding: 16px 24px;
  color: #fff;
  background: var(--gold-dark);
  font-size: 18px;
}

.category-sidebar a {
  display: block;
  padding: 14px 24px;
  border-top: 1px solid #e6e6e6;
  color: #666;
  font-size: 14px;
}

.category-sidebar a:first-of-type {
  color: var(--ink);
  font-weight: 700;
}

.products-grid {
  gap: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.product-visual {
  display: grid;
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  gap: 18px;
}

.thumbs {
  display: grid;
  gap: 18px;
  align-content: start;
}

.thumbs img,
.main-product-image {
  border: 1px solid #d7d7d7;
  border-radius: 8px;
}

.product-copy h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.18;
}

.product-copy dl {
  margin: 0 0 26px;
  color: #555;
}

.product-copy dt,
.product-copy dd {
  display: inline;
  margin: 0;
}

.product-copy dt {
  color: var(--gold);
  font-weight: 700;
}

.product-copy dd::after {
  content: "";
  display: block;
  margin-bottom: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: span 2;
}

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

input,
textarea {
  width: 100%;
  border: 0;
  background: #f4f4f4;
  border-radius: 3px;
  min-height: 42px;
  padding: 0 14px;
  font: inherit;
}

label {
  display: block;
  min-width: 0;
}

textarea {
  min-height: 156px;
  padding-top: 14px;
  resize: vertical;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.inquiry-card {
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

.inquiry-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.map img {
  width: 100%;
}

.search-results-list {
  display: grid;
  gap: 18px;
}

.search-result-card {
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
}

.search-result-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result-card p,
.empty-results {
  color: #555;
}

.site-footer {
  background: var(--footer);
  color: #e8e8e8;
}

.footer-main {
  padding: 62px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 260px);
  gap: 36px;
}

.footer-logo img {
  width: 260px;
}

.site-footer h2 {
  color: var(--gold);
  font-size: 22px;
  margin: 0 0 18px;
}

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

.footer-list li,
.quick-list li {
  margin-bottom: 8px;
  color: #cfcfcf;
  font-size: 13px;
}

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

.copyright {
  border-top: 1px solid var(--gold-dark);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #bbb;
  font-size: 12px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    background: var(--gold-ref);
  }

  .topbar .container,
  .header-inner,
  .main-nav {
    flex-wrap: wrap;
  }

  .topbar .container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    padding-inline: 0;
    border-radius: 0;
    justify-content: center;
  }

  .header-inner {
    padding: 18px 0;
    gap: 18px;
    min-height: auto;
  }

  .brand {
    margin-top: 0;
  }

  .main-nav {
    width: 100%;
    gap: 18px;
    margin-top: 0;
  }

  .main-nav a {
    padding: 4px 0;
  }

  .search-pill {
    width: min(100%, 260px);
  }

  .trust-grid,
  .cards-four,
  .products-grid,
  .features,
  .team-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .two-column-copy,
  .product-layout,
  .detail-layout,
  .inquiry-layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    display: none;
  }

  .team-card {
    border-right: 0;
  }

  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar .container {
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 8px 0;
  }

  .brand img {
    max-width: 230px;
  }

  .main-nav,
  .trust-grid,
  .cards-four,
  .products-grid,
  .features,
  .team-grid,
  .footer-main,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .main-nav a {
    white-space: normal;
  }

  .search-pill {
    width: 100%;
  }

  .hero-home {
    min-height: 430px;
    background-position: 58% center;
  }

  .section {
    padding: 48px 0;
  }

  .trust-item {
    min-height: 88px;
    justify-content: flex-start;
  }

  .help-card .callout {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .feature,
  .team-card,
  .product-visual {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .footer-list {
    columns: 1;
  }

  .copyright {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 18px 0;
  }

  .carousel-arrow {
    display: none;
  }
}
