/*
  styles.css for BGS Electrician
  - Modern, minimal, responsive
  - Uses CSS variables for corporate colors
  - Font: Poppins
  - Animations, shadows, and comments included
*/

:root {
  --red: #DA0020;
  --yellow: #F9C300;
  --black: #1E1E1E;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-dark: #E0E0E0;
  --font-main: 'Poppins', 'Inter', 'Montserrat', Arial, sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--gray-light);
  color: var(--black);
  line-height: 1.6;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, var(--white) 80%, var(--gray-dark) 100%);
  box-shadow: 0 2px 8px rgba(30,30,30,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}
.logo {
  height: 48px;
}
.nav__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.nav__list a:hover {
  color: var(--red);
}

/* HERO BANNER */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__overlay {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero__img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}
.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  text-align: center;
  width: 90%;
  max-width: 700px;
  background: linear-gradient(90deg, rgba(30,30,30,0.7) 60%, rgba(218,0,32,0.5) 100%);
  padding: 2.5rem 1.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(30,30,30,0.18);
  animation: fadeIn 1.2s;
}
.hero__content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero__content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(30,30,30,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn--cta:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.05);
}

/* ABOUT US */
.about {
  background: var(--white);
  padding: 3rem 0 2.5rem 0;
}
.about__container {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
  flex-wrap: wrap;
}
.about__text {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 0.5rem 1.2rem 1.2rem;
  font-size: 0.97rem;
}
.about__features {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.2rem 1.2rem 0.5rem;
}
.features__highlight {
  background: var(--red);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 4px 16px rgba(218,0,32,0.10);
  font-size: 0.97rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.features__highlight ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.features__highlight li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}
.icon {
  font-size: 1.3rem;
}

/* GALLERY / PORTFOLIO */
.gallery {
  background: var(--gray-light);
  padding: 4rem 0 3rem 0;
}
.gallery h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery__card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(30,30,30,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  animation: fadeIn 1.2s;
}
.gallery__card:hover {
  transform: scale(1.035);
  box-shadow: 0 8px 32px rgba(218,0,32,0.13);
}
.gallery__card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.gallery__info {
  padding: 1.1rem 1rem 1.2rem 1rem;
  text-align: center;
}
.gallery__info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.gallery__info p {
  margin: 0;
  color: var(--red);
  font-weight: 500;
}

/* VIDEO SECTION */
.video-section {
  background: var(--white);
  padding: 4rem 0 3rem 0;
}
.video-section__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.video-section__video {
  margin-top: 2rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30,30,30,0.10);
}

/* QUICK ACCESS BUTTONS */
.quick-access {
  background: linear-gradient(90deg, var(--red) 60%, var(--black) 100%);
  padding: 2.5rem 0;
  animation: gradientMove 6s linear infinite alternate;
}
.quick-access__container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.quick-btn {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30,30,30,0.10);
  transition: background 0.2s, transform 0.2s;
  margin: 0.2rem 0;
}
.quick-btn:hover {
  background: rgba(30,30,30,0.22);
  color: var(--yellow);
  transform: scale(1.05);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* FOOTER */
.footer {
  background: var(--gray-dark);
  color: var(--black);
  padding: 2.5rem 0 1rem 0;
  font-size: 1rem;
}
.footer__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer__logo {
  height: 38px;
}
.footer__info p {
  margin: 0 0 1rem 0;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--red);
}
.footer__social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.social-icon svg {
  display: block;
  stroke: var(--black);
  transition: stroke 0.2s;
}
.social-icon:hover svg {
  stroke: var(--red);
}
.footer__copyright {
  text-align: center;
  margin-top: 2rem;
  color: #888;
  font-size: 0.95rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__container {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .about__text, .about__features {
    padding: 0.7rem 0.5rem;
  }
  .features__highlight {
    min-height: unset;
  }
}
@media (max-width: 700px) {
  .header__container, .about__container, .gallery__grid, .quick-access__container, .footer__container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
  }
  .hero__content h1 {
    font-size: 1.5rem;
  }
  .footer__container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
