/* ============================================
   GIBB ELECTRIC — Global Stylesheet
   Brand Color: #0181ab
   Font: Outfit (Google Fonts)
   ============================================ */

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

:root {
  --brand:        #0181ab;
  --brand-dark:   #015f80;
  --brand-light:  #e6f4f9;
  --brand-mid:    #cce9f3;
  --text-dark:    #1a1a2e;
  --text-mid:     #444457;
  --text-light:   #777788;
  --bg-white:     #ffffff;
  --bg-light:     #f5f7fa;
  --bg-subtle:    #eef2f6;
  --border:       #dde3ea;
  --shadow-sm:    0 2px 8px rgba(1,129,171,0.08);
  --shadow-md:    0 6px 24px rgba(1,129,171,0.12);
  --shadow-lg:    0 16px 48px rgba(1,129,171,0.16);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-mid); }
a  { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-dark); }

/* ── UTILITY ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-brand  { color: var(--brand); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--brand-light);
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--brand);
  background: var(--brand-light);
}
.navbar-links .btn-primary {
  padding: 9px 20px;
  font-size: 0.88rem;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid var(--bg-subtle); }
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul a {
  display: block;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}
.mobile-menu ul a.active,
.mobile-menu ul a:hover { color: var(--brand); }

@media (max-width: 820px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
  .mobile-menu.open { display: block; }
}

/* ── PAGE HERO (internal pages) ─────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1e3a5f 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(1,129,171,0.25) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── CARDS ──────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-mid);
}

/* ── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1,129,171,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-captcha span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.form-captcha input { max-width: 100px; }

/* ── CTA STRIP ──────────────────────────────── */
.cta-strip {
  background: var(--brand);
  padding: 64px 24px;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p  { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1.05rem; }
.cta-strip .btn-white { margin: 0 8px; }
.cta-strip .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
  margin: 0 8px;
}
.cta-strip .btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ── FOOTER MAP ─────────────────────────────── */
.footer-map {
  background: var(--text-dark);
  padding: 48px 24px 0;
}
.footer-map-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-map-inner h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-map-inner h4 svg { color: var(--brand); }
.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 32%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(1,129,171,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  min-height: 200px;
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-wrap { padding-bottom: 56%; }
}
@media (max-width: 480px) {
  .map-wrap { padding-bottom: 72%; }
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(1.2); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer h4 { color: #fff; font-size: 0.92rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.footer ul a:hover { color: var(--brand); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.powered-by a { color: rgba(255,255,255,0.5); }
.powered-by a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
