/* ============================================================
   GIO ELECTRICAL — Custom Styles
   Stack: Bulma CSS + Custom Properties
   Theme: Professional Navy / White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --navy:       #0d1f3c;
  --navy-light: #1a3560;
  --navy-mid:   #162d52;
  --gold:       #f0a500;
  --gold-light: #f7c048;
  --white:      #ffffff;
  --off-white:  #f5f7fa;
  --text:       #2c3e50;
  --text-light: #5a6a7e;
  --border:     #dce3ed;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(13,31,60,0.10);
  --shadow-lg:  0 8px 40px rgba(13,31,60,0.16);
}

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

a { color: var(--navy-light); }
a:hover { color: var(--gold); }

/* --- Navbar --- */
.navbar {
  background: var(--navy) !important;
  background-color: var(--navy) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  min-height: 68px;
  border: none !important;
}

.navbar-brand .navbar-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.5px;
}

.navbar-brand .navbar-item span.accent {
  color: var(--gold);
}

.navbar-item, .navbar-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active {
  color: var(--gold) !important;
  background: transparent !important;
}

/* --- Dropdown --- */
.navbar-dropdown,
.navbar .navbar-dropdown {
  background-color: var(--navy-mid) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.5rem 0;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* Every item inside dropdown — desktop and mobile */
.navbar-dropdown .navbar-item,
.navbar-dropdown a.navbar-item,
.navbar-menu .navbar-dropdown .navbar-item {
  background-color: transparent !important;
  color: rgba(255,255,255,0.88) !important;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.navbar-dropdown .navbar-item:hover,
.navbar-dropdown a.navbar-item:hover,
.navbar-menu .navbar-dropdown .navbar-item:hover {
  background-color: rgba(255,255,255,0.07) !important;
  color: var(--gold) !important;
}

/* Divider inside dropdown */
.navbar-dropdown hr.navbar-divider {
  background-color: rgba(255,255,255,0.12) !important;
  height: 1px;
  margin: 0.3rem 0;
}

.navbar-burger span {
  background-color: var(--white) !important;
}

/* --- Mobile menu --- */
.navbar-menu,
.navbar-menu.is-active {
  background-color: var(--navy) !important;
  
  padding-bottom: 1rem;
}

/* On mobile Bulma renders dropdown inline — keep it dark */
@media screen and (max-width: 1023px) {
  .navbar-dropdown,
  .navbar .navbar-dropdown {
    background-color: rgba(255,255,255,0.06) !important;
    border-top: 2px solid var(--gold) !important;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0;
  }

  .navbar-item.has-dropdown .navbar-link::after {
    border-color: rgba(255,255,255,0.6) !important;
  }
}

/* Arrow chevron on has-dropdown */
.navbar-link::after {
  border-color: rgba(255,255,255,0.70) !important;
}

.navbar-link:hover::after {
  border-color: var(--gold) !important;
}

/* --- CTA Button --- */
.btn-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius);
  padding: 0.55rem 1.4rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--navy) !important;
}

/* --- Hero --- */
.hero-main {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}

.hero-main .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-main .title em {
  font-style: normal;
  color: var(--gold);
}

.hero-main .subtitle {
  color: rgba(255,255,255,0.80);
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 1rem;
}

/* --- Section utilities --- */
.section-white  { background: var(--white); }
.section-offwhite { background: var(--off-white); }
.section-navy   { background: var(--navy); color: var(--white); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.section-title.is-white { color: var(--white); }

.section-title span.accent { color: var(--gold); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section-subtitle.is-white { color: rgba(255,255,255,0.75); }

.title-rule {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.6rem 0 1.4rem;
}

/* --- Cards --- */
.gio-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
  border-top: 4px solid var(--gold);
  transition: box-shadow 0.2s, transform 0.2s;
}

.gio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.gio-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.gio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.gio-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Service subpage icon card */
.service-card {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}

/* --- Trust bar --- */
.trust-bar {
  background: var(--navy);
  padding: 1rem 0;
  border-top: 3px solid var(--gold);
}

.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-bar .trust-item span.icon-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Industry badges --- */
.industry-tag {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0.2rem;
}

/* --- FAQ / Accordion --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  background: var(--off-white);
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}

.faq-answer {
  padding: 1rem 1.2rem;
  color: var(--text-light);
  display: none;
  border-top: 1px solid var(--border);
}

.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); }
.faq-toggle { transition: transform 0.2s; font-size: 1.4rem; color: var(--gold); font-style: normal; }

/* --- Breadcrumb --- */
.page-breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.page-breadcrumb a { color: var(--navy-light); }
.page-breadcrumb a:hover { color: var(--gold); }
.page-breadcrumb .sep { margin: 0 0.4rem; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px
  );
}

.page-hero .page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-hero .page-title em {
  font-style: normal;
  color: var(--gold);
}

.page-hero .page-intro {
  color: rgba(255,255,255,0.80);
  font-size: 1.08rem;
  margin-top: 0.8rem;
  max-width: 600px;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.80);
  padding: 3.5rem 0 0;
}

.site-footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255,255,255,0.70);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold); }

.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.7rem;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.45); display: inline; }
.footer-bottom a:hover { color: var(--gold); }

/* --- Contact form --- */
.contact-form label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s;
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,31,60,0.08);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
  background: var(--off-white);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,31,60,0.85));
  color: white;
  padding: 2rem 1rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 500;
}

/* --- About stats --- */
.stat-box {
  text-align: center;
  padding: 1.8rem 1rem;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.70);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-main .title { font-size: 2.2rem; }
  .page-hero .page-title { font-size: 2rem; }
  .section-title { font-size: 1.9rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Disable sticky sidebar on mobile — columns stack vertically */
  .sidebar-sticky {
    position: static !important;
    top: auto !important;
  }
}