/* =====================================================================
AK811 Site Development — custom.css
-----------------------------------

Version: v2.4.0 — HERO FIX (Correct Layer Targeting)
Date: 2026-04-13

Canon Rules:
• Layout is source of truth
• Style actual DOM, not assumptions
• Do not fight the carousel system
• Target correct layer (background vs content)

Authoritative Canon Owner: Meg Askey
===================================================================== */


/* =========================================================
BASE
========================================================= */

body {
  background-color: #f9f9f9;
  color: #2b2b2b;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: #5FAF3B;
}

a:hover {
  color: #4E9D2D;
  text-decoration: none;
}


/* =========================================================
SECTION 1 — TOP ROW (LOGOS)
========================================================= */

#sp-top-row {
  background-color: #222222;
  padding: 0.5rem 0;
  border-bottom: 2px solid #BDCC2A;
}

#sp-top-row .container-inner {
  max-width: 100% !important;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

#sp-top-row .row {
  display: flex;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

#sp-top1,
#sp-top2 {
  flex: 1;
  display: flex;
  align-items: center;
}

#sp-top1 {
  justify-content: flex-start;
}

#sp-top2 {
  justify-content: flex-end;
}

#sp-top1 img {
  max-height: 62px;
  width: auto;
  display: block;
}

#sp-top2 img {
  max-height: 68px;
  width: auto;
  display: block;
}

.topbar-social {
  display: none !important;
}


/* =========================================================
SECTION 2 — HEADER ROW (MENU)
========================================================= */

#sp-header-row {
  background-color: #222222;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#sp-title .sp-module {
  width: 100%;
}


/* =========================================================
JOOMLA MENU MODULE
========================================================= */

#sp-title ul.nav,
#sp-title ul.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;

  list-style: none;
  margin: 0;
  padding: 0;
}

#sp-title ul li {
  position: relative;
}

#sp-title ul li a {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 400; /* FIXED — less bold */
  padding: 0.5rem 0.4rem;
  display: block;
  white-space: nowrap;
}

#sp-title ul li a:hover {
  color: #BDCC2A !important;
}


/* =========================================================
DROPDOWNS
========================================================= */

#sp-title ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222222;
  display: none;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
}

#sp-title ul li:hover > ul {
  display: block;
}

#sp-title ul li ul li a {
  padding: 0.4rem 1rem;
}


/* =========================================================
CLEAN CARET SYSTEM
========================================================= */

@media (min-width: 992px) {

  #sp-title ul li:has(ul) > a {
    position: relative;
    padding-right: 16px;
  }

  #sp-title ul li:has(ul) > a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff;
  }

  #sp-title ul li:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
}


/* =========================================================
MOBILE MENU
========================================================= */

.offcanvas-inner .menu-toggler,
.offcanvas-inner .menu-parent > a::before {
  display: none !important;
}

.burger-icon span {
  background-color: #ffffff !important;
}


/* =========================================================
HERO
========================================================= */

.hero-slide {
  height: 475px;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption h1 {
  font-size: 4.5rem;
  color: #ffffff;
}

/* =========================================================
HERO — MODERN IMAGE TREATMENT (REFINED)
========================================================= */

.slide-overlay {
  position: absolute;
  inset: 0;

  /* lighter, more natural gradient */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.30) 100%
  );

  /* subtle enhancement, not heavy filtering */
  backdrop-filter: saturate(110%) contrast(105%);
}

/* slight image lift to counter overlay */
.hero-slide img {
  filter: brightness(1.05) contrast(1.05);
}

/* =========================================================
HERO — LOGO FIX (CORRECT LAYER)
========================================================= */

/* ONLY affect foreground content, not background */
.hero-slide:last-child .carousel-caption img {
  max-height: 140px;
  width: auto;
  height: auto;
  display: inline-block;
}

/* =========================================================
INTRO STATEMENT — POLISHED
========================================================= */

#intro-statement {
  background-color: #f9f9f9;
  padding: 3rem 0 2.25rem;
  text-align: center;
}

/* Control width for readability */
#intro-statement .container {
  max-width: 900px;
  margin: 0 auto;
}

/* Headline */
#intro-statement h2 {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
  color: #2b2b2b;
  margin-bottom: 1.25rem;
}

/* Controlled horizontal rule */
.intro-rule {
  width: 160px;
  height: 2px;
  border: none;
  background-color: #BDCC2A;
  margin: 0 auto;
}

/* =========================================================
ROLE CARDS — NATURAL / INTEGRATED
========================================================= */

#role-cards {
  position: relative;
  padding: 3.25rem 0;
  background: url("https://cdn.pelicancorp.com/images/AK811/26-ak811-cardbg-grass.jpg") center bottom / cover no-repeat;
}

/* warm overlay — slightly lighter now */
#role-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(242, 240, 232, 0.78);
}

#role-cards .container {
  position: relative;
  z-index: 2;
}

/* spacing — still Bootstrap safe */
#role-cards .row {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

#role-cards .row > div {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ✨ THE REAL CHANGE — softer “cards” */
.role-card {
  padding: 1.2rem 0.5rem 1.3rem;
  height: 100%;

  /* remove box feeling */
  background: transparent;
  border: none;
  box-shadow: none;
}

/* subtle structure instead of box */
.role-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background-color: #BDCC2A;
  margin-bottom: 0.75rem;
}

/* titles */
.role-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
}

/* body */
.role-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 1rem;
  max-width: 320px;
}

/* button — keep understated */
.btn-role {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background-color: #5FAF3B;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-role:hover {
  background-color: #4E9D2D;
}

/* =========================================================
UTILITY COLOR LEGEND — CLEAN BAND (ENHANCED)
========================================================= */

#utility-colors {
  padding: 3.75rem 0 4rem;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* content */
.utility-legend-block {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* title */
.legend-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.75rem;
}

/* layout */
.legend-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* item */
.legend-list li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #222;
}

/* dot */
.legend-list .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

/* colors */
.dot.electric { background: #e2231a; }
.dot.telecom { background: #ff7a00; }
.dot.gas { background: #ffd400; }
.dot.sewer { background: #009a44; }
.dot.water { background: #0077c8; }
.dot.excavation { background: #d9d6cf; }

/* =========================================================
ABOUT PAGE
========================================================= */

.ak-about h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #2b2b2b;
}

.ak-about p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.1rem;
  max-width: 640px; /* 👈 KEY: readability control */
}

.ak-about h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #5FAF3B;
}

.ak-link {
  color: #5FAF3B;
  font-weight: 500;
  text-decoration: none;
}

.ak-link:hover {
  color: #4E9D2D;
  text-decoration: underline;
}

.ak-about-image img {
  max-width: 100%;
  height: auto;
}

.ak-side-nav a.active {
  color: #5FAF3B;
  font-weight: 600;
}

/* =========================================================
FOOTER
========================================================= */

.ak-footer {
  background: #1f1f1f;
  color: #e5e5e5;
  font-size: 0.95rem;
}

/* Improve column spacing */
.ak-footer .row {
  --bs-gutter-x: 2rem;
}

.ak-footer p {
  margin-bottom: 0.6rem;
}

/* Titles */
.footer-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  position: relative;
}

.footer-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #8dc63f; /* AK green accent */
  margin-top: 6px;
}

/* Links */
.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a,
.footer-link {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-link:hover {
  color: #8dc63f;
}

/* Muted text */
.footer-muted {
  color: #b5b5b5;
  font-style: italic;
}

/* Social */
.footer-social {
  display: inline-block;
  margin-top: 8px;
  color: #8dc63f;
  text-decoration: none;
}

/* Logo control */
.ak-footer img {
  max-width: 160px;
  height: auto;
}

.footer-logo-sm {
  max-width: 140px;
}

/* Bottom bar */
.ak-footer-bottom {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Emergency text */
.footer-emergency {
  font-weight: 600;
  color: #ffffff;
}