/* ============================================
   WAVE ELECTRICAL — STYLESHEET
   ============================================ */

:root {
  --blue: #2067AA;
  --blue-dark: #164f82;
  --blue-light: #4CB7DF;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --text: #1c1c1c;
  --text-muted: #666;
  --radius: 0.75em;
  --font: 'Outfit', sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); overflow-x: hidden; background: white; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25em 2em;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: var(--blue);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.header-brand { color: white; font-size: 1em; font-weight: 700; letter-spacing: 0.15em; }
.header-nav { display: flex; gap: 2em; }
.header-nav a { color: rgba(255,255,255,0.85); font-size: 0.9em; letter-spacing: 0.03em; transition: color 0.2s; }
.header-nav a:hover { color: white; }
.header-cta { display: flex; align-items: center; gap: 0.75em; }
.header-social { color: rgba(255,255,255,0.7); display: flex; align-items: center; transition: color 0.2s; }
.header-social:hover { color: white; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.65em 1.5em; border-radius: 2em;
  font-family: var(--font); font-weight: 600; font-size: 0.9em;
  cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
  text-decoration: none;
}
.btn-white { background: white; color: var(--blue); }
.btn-white:hover { background: #f0f4f8; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: white; }

/* ===== HERO ===== */
.hero {
  height: 100vh; background: var(--blue);
  display: flex; flex-direction: column;
  position: relative;
}
.hero-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center; color: white;
  padding: 3em 2em 2em;
  position: relative; z-index: 2;
}
.hero-logo { width: min(85vw, 1400px); max-height: 60vh; margin-bottom: -4em; }
.hero h1 {
  width: min(85vw, 1400px);
  font-size: clamp(1.2em, 3.5vw, 2.2em);
  font-weight: 300; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.6em; opacity: 0.95;
}
.hero-sub { font-size: clamp(0.95em, 2vw, 1.2em); opacity: 0.75; margin-bottom: 0.75em; font-weight: 300; }
.hero-buttons { display: flex; gap: 1em; flex-wrap: wrap; justify-content: center; }

/* Wave animation */
.editorial { position: absolute; bottom: -6em; left: 0; right: 0; width: 100%; height: calc(25vh + 7.5em); z-index: 3; display: block; pointer-events: none; }
.hero + .section { padding-top: 10em; }
.parallax > use { animation: move-forever 12s linear infinite; }
.parallax > use:nth-child(1) { animation-delay: -2s; }
.parallax > use:nth-child(2) { animation-delay: -2s; animation-duration: 5s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 3s; }
@keyframes move-forever {
  0% { transform: translate(-90px, 0%); }
  100% { transform: translate(85px, 0%); }
}

/* ===== SECTIONS ===== */
.section { padding: 5em 2em; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label { display: block; font-size: 0.75em; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5em; }
.section h2 { font-size: clamp(1.8em, 3.5vw, 2.6em); font-weight: 700; line-height: 1.2; margin-bottom: 0.5em; }
.section-sub { font-size: 1em; color: var(--text-muted); line-height: 1.7; margin-bottom: 2.5em; max-width: 560px; }
.bg-off { background: var(--off-white); }
.bg-blue { background: var(--blue); }
.bg-dark { background: #0d1f35; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== VALUES ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.value-card { background: white; border-radius: var(--radius); padding: 2em 1.5em; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.value-icon { font-size: 2.2em; margin-bottom: 0.5em; }
.value-title { font-weight: 700; font-size: 1em; margin-bottom: 0.4em; }
.value-desc { font-size: 0.85em; color: var(--text-muted); line-height: 1.6; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5em; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap::after {
  content: ''; position: absolute;
  top: 1.5em; left: 1.5em; right: -1.5em; bottom: -1.5em;
  background: var(--blue); opacity: 0.1;
  border-radius: var(--radius); z-index: -1;
}
.about-img-wrap img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 580px; }
.about-text .section-label { color: var(--blue); }
.about-text p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.25em; }
.about-stats {
  display: flex; gap: 2.5em;
  margin: 2em 0; padding: 1.5em 0;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.stat-num { font-size: 2.6em; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label { font-size: 0.78em; color: var(--text-muted); margin-top: 0.3em; }

/* ===== INNER PAGE HERO ===== */
.page-hero { background: var(--blue); color: white; text-align: center; padding: 8em 2em 4em; }
.page-hero h1 { font-size: clamp(2em, 4vw, 3em); font-weight: 700; margin-bottom: 0.4em; }
.page-hero p { font-size: 1.1em; opacity: 0.8; max-width: 580px; margin: 0 auto 1.5em; }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5em; margin-bottom: 2.5em; }
.service-card { background: white; border-radius: var(--radius); padding: 2em; border-left: 4px solid var(--blue); }
.service-card h3 { font-weight: 700; font-size: 1em; margin-bottom: 1em; }
.service-card li { font-size: 0.82em; color: var(--text-muted); padding: 0.35em 0; border-bottom: 1px solid #f2f2f2; line-height: 1.4; }
.service-card li:last-child { border-bottom: none; }
.services-cta { text-align: center; }

/* ===== REVIEWS ===== */
.reviews-section .section-label { color: rgba(255,255,255,0.6); }
.reviews-section h2 { color: white; }
.reviews-section .section-sub { color: rgba(255,255,255,0.7); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25em; margin-bottom: 2.5em; }
.review-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 1.5em; }
.review-stars { color: #F5A623; margin-bottom: 0.75em; letter-spacing: 0.05em; }
.review-text { font-size: 0.85em; line-height: 1.75; color: rgba(255,255,255,0.88); margin-bottom: 1em; font-style: italic; }
.review-author { font-size: 0.78em; font-weight: 600; color: rgba(255,255,255,0.55); }
.reviews-cta { text-align: center; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 0.75em; margin-bottom: 2em;
}
.gallery-item { overflow: hidden; border-radius: 0.5em; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cta { text-align: center; }

/* ===== AREAS ===== */
.areas-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5em; margin-top: 2em; }
.area-tag { background: white; border: 1.5px solid #dde3eb; border-radius: 2em; padding: 0.4em 1.1em; font-size: 0.85em; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer { padding: 3.5em 2em; text-align: center; }
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-brand { font-size: 1.2em; font-weight: 700; letter-spacing: 0.15em; color: rgba(255,255,255,0.85); margin-bottom: 1.5em; }
.footer-contacts { display: flex; justify-content: center; gap: 1.5em; flex-wrap: wrap; margin-bottom: 1.5em; }
.footer-contacts a { color: rgba(255,255,255,0.7); font-size: 0.9em; transition: color 0.2s; }
.footer-contacts a:hover { color: white; }
.footer-social { display: flex; justify-content: center; gap: 1.25em; margin: 1em 0; }
.footer-social a { color: rgba(255,255,255,0.45); font-size: 0.85em; transition: color 0.2s; }
.footer-social a:hover { color: white; }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 1.5em 0; }
.footer-legal { font-size: 0.72em; color: rgba(255,255,255,0.35); line-height: 2; }
.footer-legal a { color: inherit; }

/* Google reviews button */
.google-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: white; color: #444; border-radius: 2em;
  padding: 0.6em 1.2em; font-weight: 600; font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); margin: 0.5em auto;
  max-width: 90vw; white-space: nowrap;
  text-decoration: none; transition: transform 0.2s;
}
.google-btn:hover { transform: translateY(-1px); }
.google-btn svg { width: 1.4em; height: 1.4em; flex-shrink: 0; }
.google-btn .stars { color: #F5A623; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4em; align-items: start; }
.contact-details h2, .contact-form-wrap h2 { font-size: clamp(1.5em, 2.5vw, 2em); font-weight: 700; margin-bottom: 0.3em; }
.contact-item { display: flex; align-items: flex-start; gap: 1em; margin-bottom: 1.75em; }
.contact-icon { width: 2.5em; height: 2.5em; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.contact-label { font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2em; }
.contact-value { font-size: 1em; color: var(--text); font-weight: 500; text-decoration: none; }
a.contact-value:hover { color: var(--blue); }
.contact-book-btn { margin-top: 2em; }
.contact-form { display: flex; flex-direction: column; gap: 1.25em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25em; }
.form-group { display: flex; flex-direction: column; gap: 0.4em; }
.form-group label { font-size: 0.82em; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid #dde3ea; border-radius: var(--radius); padding: 0.75em 1em; font-family: var(--font); font-size: 0.95em; color: var(--text); background: white; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; }
.btn-full { width: 100%; justify-content: center; }

/* ===== ABOUT PAGE ===== */
.licence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; margin-top: 2.5em; }
.licence-card { background: var(--off-white); border-radius: var(--radius); padding: 2em 1.5em; }
.licence-label { font-size: 0.78em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5em; }
.licence-num { font-size: 1.2em; font-weight: 700; color: var(--blue); }

/* ===== GALLERY ===== */
.gallery-section { margin-bottom: 3.5em; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section-title { font-size: 1.1em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 1em; padding-bottom: 0.5em; border-bottom: 2px solid var(--blue); display: inline-block; }
.gallery-grid { columns: 3; column-gap: 1em; }
.gallery-item { break-inside: avoid; margin-bottom: 1em; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.55)); color: white; font-size: 0.82em; padding: 1.5em 1em 0.75em; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 1.25em; right: 1.5em; color: white; font-size: 2em; cursor: pointer; line-height: 1; background: none; border: none; opacity: 0.7; }
.lightbox-close:hover { opacity: 1; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e8ecf0; padding: 1.5em 0; }
.faq-item:first-child { border-top: 1px solid #e8ecf0; }
.faq-q { font-size: 1.05em; font-weight: 700; color: var(--text); margin-bottom: 0.5em; }
.faq-a { font-size: 0.9em; color: var(--text-muted); line-height: 1.75; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .about-img-wrap::after { display: none; }
}

@media (max-width: 768px) {
  /* Header: brand + social icons on row 1, nav links on row 2 */
  .site-header {
    flex-wrap: wrap;
    padding: 0.8em 1.25em 0;
    gap: 0;
  }
  .header-brand { font-size: 0.78em; letter-spacing: 0.08em; white-space: nowrap; }
  .header-social { display: flex; }
  .header-cta .btn-outline-white { display: none; }
  .header-cta .btn-white { display: none; }
  .header-nav {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 0;
    padding: 0.55em 0;
    margin-top: 0.55em;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .header-nav a { font-size: 0.78em; letter-spacing: 0; padding: 0.2em 0; }

  /* Hero: use small viewport height so waves are visible on iOS Safari */
  .hero { height: 100svh; }
  .hero-logo { margin-bottom: -1em; }
  .hero-content { justify-content: center; padding: 7em 1.5em 7em; }
  .editorial { height: calc(12vh + 2em); bottom: -2em; }
  .hero + .section { padding-top: 5em; }

  /* Sections */
  .section { padding: 3.5em 1.5em; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5em; }
  .form-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; display: block; }
  .gallery-item { height: auto; }
  .licence-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5em; }
}

@media (max-width: 480px) {
  .hero-logo { margin-bottom: 0.5em; }
  .hero h1 { font-size: 1em; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { columns: 1; }
  .footer-contacts { flex-direction: column; gap: 0.75em; }
}
