/* ============================================================
   PRIME BUILDING MATERIALS — Global Stylesheet
   prime3.com rebuild | SEO-optimized, WordPress-ready
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #1B3A6B;
  --navy-dark:  #122a52;
  --navy-light: #2a4f8f;
  --gold:       #C9952A;
  --gold-dark:  #a8791e;
  --gold-light: #e0ab3a;
  --banner:     #C1572B;
  --white:      #ffffff;
  --off-white:  #F8F8F8;
  --light-gray: #F2F2F2;
  --mid-gray:   #DDDDDD;
  --text-gray:  #555555;
  --text-dark:  #1A1A2E;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.22s ease;
  --max-width:  1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }
.bg-navy     { background: var(--navy); }
.bg-light    { background: var(--light-gray); }
.bg-white    { background: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; color: var(--text-gray); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  margin-bottom: 16px;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ── Announcement Banner ── */
.announcement-bar {
  background: var(--banner);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}
.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  margin-left: 4px;
}
.announcement-bar a:hover { opacity: 0.85; }

/* ── Header / Nav ── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 0 var(--mid-gray);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-oval {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px;
}
.logo-oval span.logo-prime {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-oval span.logo-sub {
  font-size: 0.32rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.1rem; color: var(--navy); }
.logo-text small { font-size: 0.7rem; font-weight: 500; color: var(--gold); letter-spacing: 0.05em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--light-gray); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 999;
  border: 1px solid var(--mid-gray);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--light-gray); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: #0a0f20;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8,15,40,0.75) 0%, rgba(8,15,40,0.42) 45%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .highlight { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,18,45,0.72) 0%, rgba(8,18,45,0.55) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; position: relative; font-size: clamp(2rem,4vw,3rem); }
.page-hero h1 .highlight { color: var(--gold); }
.page-hero p  { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 620px; margin: 0 auto; position: relative; }
.page-hero .breadcrumb { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  padding: 28px 0;
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--navy);
}
.trust-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.trust-item p  { font-size: 0.85rem; margin: 0; }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--navy);
  padding: 36px 24px;
  text-align: center;
}
.stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.12); }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label  { font-size: 0.9rem; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid-gray);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.product-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-img .card-icon {
  width: 64px;
  height: 64px;
  color: rgba(255,255,255,0.5);
}
.product-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.product-card-body p  { font-size: 0.9rem; flex: 1; }
.product-card-body .btn { margin-top: 16px; align-self: flex-start; }

/* ── Feature Sections ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-content {}
.feature-content h2 { color: var(--navy); margin-bottom: 16px; }
.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  background: linear-gradient(135deg, #1B3A6B, #243f75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--light-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }

/* ── Brand Logos ── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  transition: all var(--transition);
}
.brand-card:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.brand-card small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--text-gray); margin-top: 4px; }

/* ── Locations ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy); }
.location-card h4 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.location-card address { font-style: normal; font-size: 0.9rem; color: var(--text-gray); margin-bottom: 12px; line-height: 1.6; }
.location-card a.phone { color: var(--navy); font-weight: 600; font-size: 0.95rem; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── Quote Section ── */
.quote-section {
  background: var(--light-gray);
  padding: 64px 0;
}
.quote-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.quote-box h2 { color: var(--navy); margin-bottom: 12px; }
.quote-box .big-phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 20px 0 8px;
  display: block;
}

/* ── Form ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Blog Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mid-gray);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-card p  { font-size: 0.88rem; }
.blog-card .read-more { color: var(--navy); font-weight: 600; font-size: 0.88rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }
.blog-card .read-more:hover { color: var(--gold); }

/* ── Table of specs ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-size: 0.9rem; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--mid-gray); font-size: 0.9rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: var(--off-white); }

/* ── Footer ── */
.site-footer {
  background: #0e1f3d;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-locations h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-location-item { margin-bottom: 14px; }
.footer-location-item strong { color: var(--white); font-size: 0.85rem; display: block; margin-bottom: 2px; }
.footer-location-item span { font-size: 0.8rem; display: block; line-height: 1.5; }
.footer-location-item a { color: var(--gold); font-size: 0.82rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

/* Mobile menu hidden by default on all screen sizes */
.mobile-menu { display: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature-split { gap: 40px; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 888;
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
  }
  .mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
    background: none;
    border: none;
    padding: 8px;
  }
  .hero { min-height: 480px; }
  .hero-content { padding: 60px 0; }
  .trust-bar-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.reverse { direction: ltr; }
  .quote-box { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-banner { padding: 48px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
}
