/* ==========================================================================
   Vergas Materials - Clean, Industrial Aggregate & Landscape Supply Styles
   ========================================================================== */

:root {
  --primary: #1b362d;       /* Deep Northwoods Pine / Quarry Green */
  --primary-dark: #12241e;
  --accent: #c88a2b;        /* Warm Aggregate Amber / Gold */
  --accent-hover: #b0761e;
  --bg-light: #f5f6f7;
  --bg-white: #ffffff;
  --text-dark: #1c2220;
  --text-muted: #525d59;
  --border: #dce1df;
  --radius: 6px;
  --shadow: 0 4px 16px rgba(18, 36, 30, 0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: #d6e0dc;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar .sep {
  margin: 0 8px;
  opacity: 0.45;
}

.top-bar a:hover {
  color: var(--accent);
}

/* Main Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border-bottom: 3px solid var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.6px;
  color: var(--primary);
  line-height: 1.15;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-align: center;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #162b24 0%, #244237 55%, #2f4f43 100%);
  color: #ffffff;
  padding: 72px 0 64px;
  border-bottom: 5px solid var(--accent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin: 0 0 12px 0;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
  margin: 0 0 18px 0;
  max-width: 780px;
  font-weight: 800;
}

.hero-lead {
  font-size: 17px;
  color: #e1e8e5;
  max-width: 680px;
  margin: 0 0 28px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.highlight-item strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 2px;
}

.highlight-item span {
  font-size: 13px;
  color: #c7d3ce;
}

/* Sections General */
.section {
  padding: 68px 0;
}

.section-tag {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-hover);
  margin: 0 0 6px 0;
}

.section h2 {
  font-size: 30px;
  margin: 0 0 12px 0;
  color: var(--primary);
  font-weight: 800;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.section-desc {
  max-width: 480px;
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tab-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(18, 36, 30, 0.12);
}

.card-accent {
  height: 5px;
  background-color: var(--primary);
}

.accent-asphalt { background-color: #2c3539; }
.accent-concrete { background-color: #6b767a; }
.accent-landscaping { background-color: #2e6b4e; }
.accent-grading { background-color: #b57b24; }
.accent-septic { background-color: #2b5b78; }
.accent-riprap { background-color: #5a524c; }

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cat-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
}

.cat-index {
  font-size: 12px;
  font-weight: 700;
  color: #9aa5a1;
}

.product-card h3 {
  font-size: 21px;
  margin: 0 0 10px 0;
  color: var(--primary);
}

.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.spec-list {
  margin: 0 0 20px 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dark);
  flex-grow: 1;
}

.spec-list li {
  margin-bottom: 6px;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.card-link:hover {
  color: var(--accent-hover);
}

/* Gated Volume Price Sheet Section */
.price-gate-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gate-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

.gate-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.caveat-box {
  background-color: #fdf7ec;
  border: 1px solid #ebd2a4;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}

.caveat-box strong {
  color: #87550c;
  display: block;
  margin-bottom: 4px;
}

.caveat-box p {
  margin: 0;
  color: #3a3122;
}

.caveat-box a {
  font-weight: 700;
  text-decoration: underline;
  color: var(--primary);
}

.gate-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-dark);
}

.gate-steps li {
  margin-bottom: 8px;
}

.gate-form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.gate-form-card h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: var(--primary);
}

.gate-subtext {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c5cecb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.caveat-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px 0;
  font-size: 13px;
  color: var(--text-dark);
}

.caveat-checkbox input {
  margin-top: 3px;
}

.gate-status {
  margin-top: 18px;
  padding: 16px;
  background-color: #eef6f2;
  border: 1px solid #b7d7c8;
  border-radius: 4px;
  font-size: 13px;
}

.gate-status strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.gate-status p {
  margin: 0 0 12px 0;
}

/* Services Strip */
.services-section {
  background-color: var(--primary);
  color: #ffffff;
  padding: 56px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
}

.service-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.service-box h3 {
  margin: 0 0 10px 0;
  font-size: 19px;
}

.service-box p {
  margin: 0;
  font-size: 14px;
  color: #d6e0dc;
}

/* Hours & Contact Section */
.info-section {
  background-color: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.info-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.location-block {
  background-color: var(--bg-light);
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin-bottom: 22px;
}

.location-block p {
  margin: 4px 0 8px 0;
  font-size: 15px;
}

.map-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.map-link:hover {
  color: var(--accent-hover);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hours-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.hours-table td:first-child {
  font-weight: 700;
  width: 34%;
}

.hours-table tr.highlight-row td {
  background-color: #fdf8ef;
}

.appt-note {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #9e6714;
}

/* Direct Call / Email Contact Card */
.contact-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px 0;
}

.contact-methods-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-large {
  background-color: var(--bg-light);
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.contact-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value-lg {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  word-break: break-word;
}

.contact-value-lg:hover {
  color: var(--accent-hover);
}

.contact-helper {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.direct-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Confirmed Price Lists Page */
.confirmed-banner {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.confirmed-banner h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: var(--primary);
}

.price-table-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}

.price-table-header {
  background-color: var(--primary);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.price-table-header h2 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.price-table-header span {
  font-size: 12px;
  color: #d6e0dc;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 12px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background-color: #f8f9fa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.price-table tbody tr:hover {
  background-color: #f9fbfa;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #b8c7c1;
  padding: 28px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner strong {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .product-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gate-wrapper,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-bar {
    display: none;
  }
  .main-nav {
    gap: 14px;
    font-size: 13px;
  }
  .hero {
    padding: 48px 0;
  }
  .hero-highlights,
  .product-grid,
  .services-grid,
  .direct-cta-row {
    grid-template-columns: 1fr;
  }
  .info-card,
  .gate-form-card {
    padding: 22px;
  }
}
