/* =============================================
   Star Electric — Regina, SK
   Colors: Yellow #F5C118 | Black #111111
   ============================================= */

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

:root {
  --yellow: #F5C118;
  --yellow-dark: #D4A812;
  --black: #111111;
  --gray-dark: #1e1e1e;
  --gray-mid: #2d2d2d;
  --gray-light: #f4f4f4;
  --white: #ffffff;
  --text-muted: #666666;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 200px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
}

/* ── Utility ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--gray-mid);
  border-color: var(--gray-mid);
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}

.section-title span {
  color: var(--yellow-dark);
}

/* ── Header / Nav ── */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 200px;
}

/* ── Logo wrapper — used on every logo instance ── */
.logo-wrap {
  position: relative;
  display: block;
  line-height: 0;
}

/* Invert the real PNG (black-on-white → white-on-black) */
.logo-wrap img {
  filter: invert(1);
  display: block;
}


/* ── Nav logo ── */
.nav-logo .logo-wrap {
  margin-left: 0;
}

.nav-logo img {
  height: 190px;
  width: auto;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--yellow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta-btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.nav-phone-item {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 32px;
}

.nav-phone,
.nav-links .nav-phone {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone:hover,
.nav-links .nav-phone:hover {
  color: var(--yellow-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
#hero {
  background: var(--black);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 600px;
  height: 650px;
  background: var(--yellow);
  opacity: 0.25;
  clip-path: polygon(62% 0%, 100% 0%, 48% 48%, 78% 48%, 38% 100%, 0% 100%, 52% 52%, 22% 52%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,193,24,0.12);
  border: 1px solid rgba(245,193,24,0.3);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--yellow);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--gray-dark);
  border: 1px solid rgba(245,193,24,0.15);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.hero-card .logo-wrap {
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.hero-card img {
  width: 180px;
  height: auto;
}


.hero-card-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.hero-card-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  margin-bottom: 10px;
}

.hero-card-contact .call-link {
  background: var(--yellow);
  color: var(--black);
  font-size: 1.1rem;
}
.hero-card-contact .call-link:hover { background: var(--yellow-dark); }

.hero-card-contact .email-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.hero-card-contact .email-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ── Trust Bar ── */
#trust-bar {
  background: var(--yellow);
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
}

.trust-item svg {
  flex-shrink: 0;
}

/* ── Services ── */
#services {
  padding: 96px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 36px 28px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  background: var(--white);
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--black);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Why Choose Us ── */
#why {
  padding: 96px 0;
  background: var(--black);
  color: var(--white);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.why-content .section-label {
  color: var(--yellow);
}

.why-content .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.why-intro {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 36px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-check {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg {
  width: 18px;
  height: 18px;
  color: var(--black);
}

.why-item-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.why-item-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.stat-box {
  background: var(--gray-dark);
  border: 1px solid rgba(245,193,24,0.15);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,193,24,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.stat-icon svg {
  width: 26px;
  height: 26px;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── About ── */
#about {
  padding: 96px 0;
  background: var(--gray-light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.about-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border: 2px solid rgba(245,193,24,0.2);
  border-radius: 16px;
  padding: 64px 48px;
}

.about-logo-block .logo-wrap {
  margin-bottom: 24px;
}

.about-logo-block img {
  width: 220px;
  height: auto;
}


.about-logo-block p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-align: center;
  font-style: italic;
}

.about-content .section-label {
  color: var(--yellow-dark);
}

.about-content p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.97rem;
}

.about-content p + p {
  margin-top: 12px;
}

.about-actions {
  margin-top: 32px;
}

/* ── Contact ── */
#contact {
  padding: 96px 0;
  background: var(--yellow);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.contact-content .section-label {
  color: rgba(0,0,0,0.5);
}

.contact-content .section-title {
  color: var(--black);
  margin-bottom: 20px;
}

.contact-content p {
  color: rgba(0,0,0,0.65);
  font-size: 0.97rem;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
}

.contact-method:hover {
  background: var(--black);
  color: var(--yellow);
}

.contact-method svg {
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.contact-form-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fafafa;
  color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow-dark);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-icon-spin {
  animation: spin 0.8s linear infinite;
}

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.form-success h4 {
  font-size: 1.4rem;
  color: var(--black);
  margin: 0;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

/* Error banner */
.form-error {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #ff8080;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ── Footer ── */
#footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.55);
  padding: 48px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo-wrap {
  margin-bottom: 16px;
}

.footer-brand img {
  height: 48px;
  width: auto;
}


.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--yellow);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner,
  .why-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-phone-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    width: 100%;
  }

  #header {
    position: relative;
  }

  .why-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    gap: 20px 32px;
  }
}
