/* ============================================================
   Fontanero — modern design layer (2026)
   A clean, contemporary plumbing/trades look over the existing
   markup. Loaded LAST so it wins. Keeps the layout simple.
   Accent: strong blue #1d4ed8 + orange #f97316.
   ============================================================ */

:root {
  --bg: #ffffff;
  --text: #16202e;              /* headings / strong text */
  --body: #4b5563;              /* body copy */
  --muted: #6b7280;
  --faint: #9aa3b0;
  --line: #e9ecf1;
  --line-strong: #d9dee6;
  --wash: #f4f7fb;              /* subtle blue-tinted wash */
  --accent: #1d4ed8;            /* strong blue */
  --accent-ink: #1e3a8a;        /* deep blue */
  --accent-2: #f97316;          /* orange pop */
  --ink: #0f1726;               /* dark footer / scrims */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 20px rgba(16,24,40,.07);
  --shadow-hover: 0 16px 38px rgba(16,24,40,.14);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Open Sans", sans-serif;
}

/* ---------- base ---------- */
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; transition: color .15s ease; }
a:hover, a:focus { color: var(--accent); text-decoration: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.container { max-width: var(--maxw); }

/* ---------- header ---------- */
.header-top { padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.header-connection p { color: var(--muted); font-size: 13.5px; }
.header-top strong { color: var(--text); }
.social a { color: var(--faint); font-size: .95rem; transition: color .15s ease; }
.social a:hover { color: var(--accent); }

/* ---------- nav ---------- */
.main-nav {
  border-top: 1px solid var(--line) !important;
  border-radius: 0;
}
.main-nav li { margin: 10px 26px 10px 0; }
.main-nav li a {
  display: inline-block !important;
  position: relative;
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  padding: 14px 0;
  border-top: 0 !important;
}
.main-nav li a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav li:hover > a,
.main-nav li.active > a,
.main-nav li > a:hover,
.main-nav li > a:focus {
  color: var(--accent);
  background: transparent;
  border-top: 0 !important;
}
.main-nav li:hover > a::after,
.main-nav li.active > a::after { transform: scaleX(1); }

/* dropdown -> clean white card instead of the solid yellow block */
.main-nav .dropdown-menu {
  background: #fff;
  min-width: 230px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 34px rgba(16,24,40,.16);
  border: 1px solid var(--line);
  padding: 8px 0;
  margin-top: 8px !important;
}
.main-nav .dropdown-menu li a {
  color: var(--body);
  display: block;
  padding: 7px 22px;
  font-weight: 500;
}
.main-nav .dropdown-menu li a::after { display: none; }
.main-nav .dropdown-menu li a:hover {
  color: var(--accent);
  background: var(--wash);
}

/* search field */
#header-right input[type=search]:focus {
  background: var(--wash);
  border-radius: 999px;
  padding: 0 14px;
}

/* ---------- buttons (pill) ---------- */
.btn, a.btn, input[type=submit].btn {
  background: var(--accent);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 9px 26px;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(29,78,216,.24);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus, a.btn:hover, input[type=submit].btn:hover {
  background: var(--accent-2);
  color: #fff !important;
  border-color: var(--accent-2) !important;
  box-shadow: 0 10px 22px rgba(249,115,22,.30);
  transform: translateY(-1px);
}

/* ---------- banner / hero carousel ---------- */
.banner-section .carousel-item { position: relative; }
.banner-section .carousel-item img { width: 100%; object-fit: cover; }
.banner-section .carousel-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,38,.10) 0%, rgba(15,23,38,.30) 45%, rgba(15,23,38,.72) 100%);
  pointer-events: none;
}
.carousel-caption { z-index: 3; }
.carousel-caption h1 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -.015em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.carousel-caption p { color: rgba(255,255,255,.92); }
.carousel-indicators .active { background: var(--accent-2); border-color: var(--accent-2); }

/* ---------- welcome section ---------- */
.welcome-thumb img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.welcome-content h3 { text-transform: uppercase; margin-bottom: .6em; }
.welcome-content p { color: var(--body); }

/* ---------- service tabs (index) ---------- */
.tablist { border-color: var(--line); }
.service-section li:first-child { color: var(--text); font-weight: 700; }
.service-section li { border-color: var(--line-strong); }
.service-section li a {
  color: var(--muted);
  font-size: 1.05rem;
  transition: color .15s ease, border-color .15s ease;
}
.service-section li a:hover,
.service-section .active a,
.service-section .active a:focus,
.service-section .active a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: transparent;
}

/* ---------- service cards (image + overlay title, hover reveal) ---------- */
.service-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.service-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-thumb { position: relative; margin: 0; overflow: hidden; }
.service-thumb img {
  width: 100%;
  height: 232px;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.service-item:hover .service-thumb img { transform: scale(1.06); }
/* permanent bottom scrim so the white title is always readable */
.service-item::before {
  background: linear-gradient(to top, rgba(15,23,38,.90) 0%, rgba(15,23,38,.35) 42%, rgba(15,23,38,0) 72%);
  opacity: 1;
  pointer-events: none;
}
/* blue overlay fades in on hover (paints above the scrim, below the text) */
.service-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(29,78,216,.92), rgba(37,99,235,.80));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service-item:hover .service-thumb::after { opacity: 1; }
.service-description h3 {
  color: #fff;
  border-left: 4px solid var(--accent-2);
  padding-left: .5em;
}
.service-item:hover .service-description h3 { border-left-color: #fff; }
.service-description p { color: #fff; }
/* the "Read More" reveal button on the service listing page */
.residential-plumb .service-description a,
.commercial-plumb .service-description a {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
}
.residential-plumb .service-item:hover .service-description a:hover,
.commercial-plumb .service-item:hover .service-description a:hover {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

/* ---------- service activity ---------- */
.service-activity { border-top: 1px solid var(--line); }
.activity-head h2 { color: var(--text); font-weight: 600; }
.activity-head h2 span { color: var(--accent-2); }
.activity-icon i {
  background: var(--accent);
  color: #fff;
  width: 58px; height: 58px;
  line-height: 58px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(29,78,216,.28);
  transition: background .2s ease;
}
.activity-list:hover .activity-icon i { background: var(--accent-2); box-shadow: 0 8px 20px rgba(249,115,22,.30); }
.activity-details h4 { color: var(--text); font-size: 1.06rem; margin-bottom: .35em; }
.activity-details p { color: var(--body); }

/* ---------- quote section (bg photo + white text) ---------- */
.quote-section { position: relative; }
.quote-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(30,58,138,.86), rgba(29,78,216,.72));
  pointer-events: none;
}
.quote-section .container { position: relative; z-index: 2; }
.quote h2 { color: #fff; }
.quote p { color: rgba(255,255,255,.92); }
.quote a.btn { background: #fff; color: var(--accent) !important; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.quote a.btn:hover { background: var(--accent-2); color: #fff !important; }

/* ---------- clients carousel ---------- */
.our-clients-carousel h2 { color: var(--text); font-weight: 600; }
.client-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.client-logo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.client-logo img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .68;
  transition: filter .2s ease, opacity .2s ease;
}
.client-logo:hover img { filter: none; opacity: 1; }
#our-client-thumb .item { padding: 4px; }

/* ---------- breadcrumb / page header ---------- */
.breadcrumb-area {
  background: linear-gradient(120deg, var(--accent-ink) 0%, var(--accent) 100%);
}
.page-title h2 { color: #fff; }
.breadcrumb a, .breadcrumb > .active { color: rgba(255,255,255,.92); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-area .breadcrumb > li + li:before { color: rgba(255,255,255,.6); }

/* ---------- inner pages: readable dark-on-light body ---------- */
.history h3, .company-focus h3, .company-mision h3, .company-vision h3,
.residential-plumb h2, .commercial-plumb h2, .map-head h2,
.main-contact-form h4, .contact-us h4 { color: var(--text); }
.history p, .company-focus p, .single-details p, .main-contact-form p { color: var(--body); }
.history-details img, .company-mision img, .company-vision img, .single-details img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.company-focus, .commercial-plumb { border-color: var(--line); }

/* ---------- contact form + map ---------- */
.main-contact-form input[type=text],
.main-contact-form input[type=email],
.main-contact-form input[type=tel],
.main-contact-form textarea,
#full-name, #email {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.main-contact-form input:focus,
.main-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,.14);
}
.main-contact-form input[type=submit] { border: 0; }
.contact-us a { color: var(--muted); }
.contact-us a:hover { color: var(--accent); }
.contact-us span { color: var(--text); }
.form-section { border-color: var(--line); }
.map-canvas {
  background: var(--wash);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.map-canvas a { color: var(--accent); font-weight: 600; }
.map-canvas a:hover { color: var(--accent-2); }

/* ---------- footer: polished full-bleed dark ---------- */
.content-wrapper > .container:last-child {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-top: 56px;
  background: var(--ink);
}
.content-wrapper > .container:last-child > .row {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.footer-top {
  border-color: rgba(255,255,255,.09);
  padding: 4.5em 0;
}
.footer-top h4 { color: #fff; }
.footer-top p, .footer-top address { color: #9aa6b6; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .92; }
.news .date { color: var(--accent-2); font-weight: 600; }
.news p { color: #9aa6b6; }
.responsability li a { color: #9aa6b6; }
.responsability li a:hover { color: #fff; }
.responsability ul li::before { color: var(--accent-2); }
.contact-us address, .footer-top .contact-us a { color: #9aa6b6; }
.footer-top .contact-us a:hover { color: #fff; }
.footer-top .contact-us span { color: #fff; }
.footer { padding-bottom: 3.2em; padding-top: 1.6em; }
.footer .copyright p { color: #8b93a0; margin: 0; }
.copyright a { color: #cdd4de; }
.copyright a:hover { color: var(--accent-2); }
.footer-social a { color: #9aa6b6; }
.footer-social a:hover { color: #fff; }

/* ---------- restore multi-column grids ----------
   The markup places .col-md-* columns directly inside wrappers that lack a
   Bootstrap .row. BS5 dropped column floats, so those columns stacked one per
   row. Make each wrapper a flex row so the intended 2/3-column grids return. */
@media (min-width: 768px) {
  .main-nav.navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
}
.tab-content .tab-pane.active,
.activity-list-items,
.residential-plumb,
.commercial-plumb,
.company-focus,
.form-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.residential-plumb > h2,
.commercial-plumb > h2 { flex: 0 0 100%; width: 100%; }
.tab-content .tab-pane > [class*="col-"],
.activity-list-items > [class*="col-"],
.residential-plumb > [class*="col-"],
.commercial-plumb > [class*="col-"],
.company-focus > [class*="col-"],
.form-section > [class*="col-"] {
  padding-left: 14px;
  padding-right: 14px;
  margin-bottom: 28px;
}

/* ---------- cleanup: hide the legacy (unused) offcanvas sidebar ---------- */
.offcanvas-menu { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
  .service-thumb img { height: 200px; }
  .carousel-caption h1 { font-size: 1.4rem; }
  .content-wrapper > .container:last-child { margin-top: 36px; }
}
