/* ======================================================
   _style-components.css  (R3 / Oakland v1.5)
   Purpose: Layout + structural components (nav, services,
            gallery helpers, footer)
   ====================================================== */

/* Hero offset so it clears the fixed nav */
.hero-top {
  margin: 0;
  padding-top: 64px; /* trimmed down from 80 */
}

.hero-img {
  width: 100%;
  display: block;
}


/* ---------- NAV STRUCTURE & BEHAVIOR ---------- */

/* Base nav item padding + transition */
#main-nav .w3-bar-item,
#main-nav .w3-button {
  padding-top: 16px;
  padding-bottom: 16px;
  transition:
    padding 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Smaller state when scrolled */
#main-nav.nav-small .w3-bar-item,
#main-nav.nav-small .w3-button {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Optional: tweak shadow so it feels "tighter" when scrolled */
#main-nav.nav-large {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#main-nav.nav-small {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Nav background follows theme */
#main-nav {
  background-color: var(--bg) !important;
  color: var(--text);
}

/* Plain text-style nav buttons */
#main-nav .w3-button {
  background-color: transparent !important;
  color: var(--text) !important;
  box-shadow: none;
}

/* Kill the permanent grey on the Services dropdown trigger */
#main-nav .w3-dropdown-hover > .w3-button,
#main-nav .w3-dropdown-hover > .w3-button:hover,
#main-nav .w3-dropdown-hover > .w3-button:focus {
  background-color: transparent !important;
}

/* Subtle hover for all nav items */
#main-nav .w3-button:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown panel styling */
#main-nav .w3-dropdown-content {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

#main-nav .w3-dropdown-content .w3-button {
  background-color: transparent !important;
  color: var(--text) !important;
}

/* Dark theme dropdown */
.dark-theme #main-nav .w3-dropdown-content {
  background-color: #222 !important;
}

.dark-theme #main-nav .w3-dropdown-content .w3-button {
  color: #eee !important;
}

.dark-theme #main-nav .w3-dropdown-content .w3-button:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ---------- SERVICE CARDS ---------- */

/* Services grid – make cards equal height */
.service-grid > .w3-third > .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Service cards layout & hover */
.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 0 0 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Service images */
.service-img {
  width: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
}

/* Title & text spacing inside cards */
.service-title {
  margin: 6px 16px 8px;
}

.service-text {
  margin: 0 16px 16px;
}

/* Actions area – keeps buttons aligned across cards */
.service-actions {
  margin-top: auto;
  padding: 0 16px;
}

/* Tighten generic card h3 spacing when used */
.card h3 {
  margin-top: 10px;
  margin-bottom: 6px;
}

/* ---------- FAQ item spacing + styling ---------- */
.faq-item {
  background: #ffffff;
  color: #333;
  margin: 10px 0;         /* 🔥 Adds breathing room */
  padding: 14px 18px;
  border-radius: 10px;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover state */
.faq-item:hover {
  background: #f1f1f1;
}

/* Dark mode adjustments */
.dark-theme .faq-item {
  background: #292929;
  color: #eee;
}

.dark-theme .faq-item:hover {
  background: #333;
}

/* FAQ buttons: breathing room between items */
.faq-item {
  margin: 6px 0;              /* <-- space between questions */
  border-radius: 9999px;      /* nice pill shape */
  padding: 12px 18px;         /* a little comfy padding */
}

/* Optional: hover that works with btn--brand */
.faq-item:hover {
  filter: brightness(1.05);
}

/* Dark mode: slightly softer hover so it doesn't glow */
.dark-theme .faq-item:hover {
  filter: brightness(1.03);
}



/* ---------- GALLERY HELPERS ---------- */

/* Row wrapper for gallery sections:
   <div class="w3-row-padding w3-center w3-margin-top gallery-row"> */
.gallery-row .w3-half > .w3-card,
.gallery-row .w3-third > .w3-card {
  max-width: 420px;
  margin: 0 auto;
}

/* Picture wrapper for 350x250-ish images */
.img-card-350 {
  display: block;
  max-width: 350px;
  margin: 0 auto;
  padding: 12px 12px 16px;
}

.img-card-350 img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ---------- FOOTER LAYOUT & BADGES ---------- */

.site-footer {
  background: var(--brand);
}

/* Main footer row */
.footer-main {
  padding: 16px 0 32px;
  align-items: flex-start;
}

/* Left-column text spacing */
.footer-left .footer-line {
  margin: 0.5em 0;
}

/* Right column: desktop right-align + subtle divider */
.right-footer-col {
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 32px;
}

/* "Get a Quote" button */
.quote-btn {
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
  padding: 10px 26px;
}

.quote-btn:hover {
  opacity: 0.9;
}

.quote-btn-wrap {
  margin-bottom: 20px;
  text-align: right;
}

/* Certification badges */
.badge-wrap img {
  max-width: 250px;
  margin: 10px 0;
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.badge-wrap img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .footer-left,
  .right-footer-col,
  .quote-btn-wrap {
    text-align: center;
  }

  .right-footer-col {
    border-left: none;
    padding-left: 0;
    margin-top: 16px;
  }

  .badge-wrap img {
    max-width: 220px;
  }
}

/* ========== cross services ========== */
.other-services-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.other-services-note a {
  font-weight: 500;
}

