/* ============================================================
   BRAND CSS — Pocatello Concrete Leveling
   Bright & High-Contrast: white bg, bold red/yellow CTAs
   ============================================================ */

:root {
  --brand-red:      #D62828;
  --brand-red-dark: #A01E1E;
  --brand-yellow:   #F7B731;
  --brand-dark:     #1A1A1A;
  --brand-gray:     #4A4A4A;
  --brand-light:    #F5F5F5;
  --brand-white:    #FFFFFF;
  --brand-border:   #E0E0E0;
  --brand-font-head: 'Oswald', sans-serif;
  --brand-font-body: 'Source Sans 3', sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--brand-font-body);
  color: var(--brand-dark);
  background: var(--brand-white);
  font-size: 1.05rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--brand-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Top Bar ──────────────────────────────────────────────── */
#top-bar {
  background: var(--brand-dark);
  color: #ccc;
  font-size: 0.85rem;
  padding: 6px 0;
}

#top-bar a { color: var(--brand-yellow); text-decoration: none; }
#top-bar a:hover { text-decoration: underline; }

/* ── Header / Nav ─────────────────────────────────────────── */
#main-header {
  background: var(--brand-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 1030;
}

#main-header .navbar-brand {
  font-family: var(--brand-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

#main-header .navbar-brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}

#main-header .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-family: var(--brand-font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

#main-header .nav-link:hover,
#main-header .nav-link.active {
  color: var(--brand-yellow) !important;
}

/* Call button in nav */
.btn-call-nav {
  background: var(--brand-yellow);
  color: var(--brand-dark) !important;
  font-family: var(--brand-font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.45rem 1rem !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-call-nav:hover {
  background: #e0a800;
  transform: scale(1.03);
  color: var(--brand-dark) !important;
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #333 100%);
  color: var(--brand-white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--brand-white);
}

.hero-section h1 .accent { color: var(--brand-yellow); }

.hero-section p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-brand-primary {
  background: var(--brand-red);
  border: none;
  color: #fff;
  font-family: var(--brand-font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-brand-primary:hover {
  background: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-brand-cta {
  background: var(--brand-yellow);
  border: none;
  color: var(--brand-dark);
  font-family: var(--brand-font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-brand-cta:hover {
  background: #e0a800;
  color: var(--brand-dark);
  transform: translateY(-1px);
}

/* ── Section Styles ───────────────────────────────────────── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.section-title .accent { color: var(--brand-red); }

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--brand-yellow);
  border: none;
  margin: 0.75rem 0 1.5rem;
}

.section-light { background: var(--brand-light); }
.section-dark  { background: var(--brand-dark); color: #fff; }
.section-red   { background: var(--brand-red);  color: #fff; }

section { padding: 60px 0; }

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
  border: 1px solid var(--brand-border);
  border-top: 4px solid var(--brand-red);
  border-radius: 6px;
  padding: 28px 24px;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: inherit;
}
.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.service-card h3 {
  font-size: 1.3rem;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.service-card p { color: var(--brand-gray); margin: 0; font-size: 0.97rem; }

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--brand-dark);
  color: #fff;
  padding: 20px 0;
}
.trust-item {
  text-align: center;
  padding: 10px;
}
.trust-item .trust-num {
  font-family: var(--brand-font-head);
  font-size: 2rem;
  color: var(--brand-yellow);
  display: block;
  line-height: 1;
}
.trust-item .trust-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* ── Process Steps ────────────────────────────────────────── */
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-family: var(--brand-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 18px;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-left: 4px solid var(--brand-yellow);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  height: 100%;
}
.testimonial-card .stars { color: var(--brand-yellow); font-size: 1.1rem; }
.testimonial-card p { font-style: italic; margin: 10px 0; }
.testimonial-card .reviewer { font-weight: 700; font-size: 0.9rem; color: var(--brand-gray); }

/* ── FAQ ──────────────────────────────────────────────────── */
/* ── Accordion ────────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--brand-border);
  border-radius: 4px !important;
  overflow: hidden;
  margin-bottom: 6px;
}
.accordion-item:last-child { margin-bottom: 0; }

.accordion-button {
  font-family: var(--brand-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 4px !important;
  padding: 14px 18px;
}
.accordion-button:not(.collapsed) {
  background: var(--brand-red);
  color: #fff;
  box-shadow: none;
  border-radius: 4px 4px 0 0 !important;
}
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--brand-border);
}
.accordion-button:hover:not(.collapsed) {
  background: var(--brand-red-dark);
}
.accordion-button:hover.collapsed {
  background: var(--brand-light);
}
.accordion-body {
  background: #fff;
  padding: 16px 18px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--brand-gray);
  border-top: 1px solid var(--brand-border);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-banner p  { color: rgba(255,255,255,0.88); font-size: 1.1rem; }

/* ── Form ─────────────────────────────────────────────────── */
.form-section {
  background: var(--brand-light);
  padding: 60px 0;
}
.form-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 40px;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-gray);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 0.2rem rgba(214,40,40,0.15);
}

/* ── Map ──────────────────────────────────────────────────── */
.map-embed {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */
#main-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 20px;
  font-size: 0.93rem;
}
#main-footer h5 {
  color: var(--brand-yellow);
  font-size: 1rem;
  margin-bottom: 14px;
}
#main-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
#main-footer a:hover { color: var(--brand-yellow); }
#main-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── Service Page Hero ────────────────────────────────────── */
.page-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 50px 0 40px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.page-hero .accent { color: var(--brand-yellow); }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.6); font-size: 0.87rem; }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-divider-color { --bs-breadcrumb-divider-color: rgba(255,255,255,0.4); }

/* ── Content Body (service/pillar pages) ──────────────────── */
.content-body h2 { font-size: 1.7rem; margin-top: 2rem; color: var(--brand-dark); }
.content-body h3 { font-size: 1.3rem; color: var(--brand-red); margin-top: 1.5rem; }
.content-body ul li { margin-bottom: 6px; }
.content-body img {
  max-width: 100%;
  border-radius: 6px;
  margin: 16px 0;
}

/* ── Sticky CTA (mobile) ─────────────────────────────────── */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  display: none;
  background: var(--brand-dark);
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
@media (max-width: 767px) {
  .sticky-cta-mobile { display: flex; gap: 10px; }
  .sticky-cta-mobile a { flex: 1; text-align: center; font-size: 0.9rem; padding: 0.65rem; }
  body { padding-bottom: 68px; }
}

/* ── Utility ──────────────────────────────────────────────── */
.text-red    { color: var(--brand-red) !important; }
.text-yellow { color: var(--brand-yellow) !important; }
.bg-brand-red { background: var(--brand-red) !important; }
.img-placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
  border-radius: 6px;
  min-height: 220px;
  width: 100%;
}

/* ── Footer Social Bar ────────────────────────────────────── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.footer-social-label {
  font-family: var(--brand-font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.footer-social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
  background: var(--brand-yellow);
  color: var(--brand-dark);
  border-color: var(--brand-yellow);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Hide icons with no URL set (handled by site.js) */
.social-icon.social-hidden {
  display: none;
}

/* ── Services Dropdown ────────────────────────────────────── */
#main-header .dropdown-menu {
  background: var(--brand-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--brand-yellow);
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  min-width: 200px;
  margin-top: 0;
}

#main-header .dropdown-item {
  color: rgba(255,255,255,0.82);
  font-family: var(--brand-font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  padding: 9px 18px;
  transition: background 0.15s, color 0.15s;
}

#main-header .dropdown-item:hover,
#main-header .dropdown-item:focus {
  background: rgba(255,255,255,0.08);
  color: var(--brand-yellow);
}

#main-header .dropdown-item.active {
  background: rgba(247,183,49,0.15);
  color: var(--brand-yellow);
}

/* Dropdown toggle arrow color */
#main-header .nav-link.dropdown-toggle::after {
  border-top-color: rgba(255,255,255,0.7);
}
#main-header .nav-link.dropdown-toggle:hover::after {
  border-top-color: var(--brand-yellow);
}

/* Mobile: show dropdown inline */
@media (max-width: 991px) {
  #main-header .dropdown-menu {
    background: rgba(255,255,255,0.05);
    border: none;
    border-left: 3px solid var(--brand-yellow);
    border-radius: 0;
    margin-left: 12px;
    padding: 4px 0;
  }
  #main-header .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}
