/* ============================================
   ArtElec — Site vitrine
   Editorial / Magazine Style
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

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

html {
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #faf8f5;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #E63946;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.header-logo .logo-black {
  display: none;
}

.header.scrolled .header-logo .logo-white {
  display: none;
}

.header.scrolled .header-logo .logo-black {
  display: block;
}

/* Mobile: when menu is open, always show white */
.header.menu-open .header-logo .logo-white {
  display: block;
}

.header.menu-open .header-logo .logo-black {
  display: none;
}

.header-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
  position: relative;
}

.header.scrolled .header-links a {
  color: rgba(0,0,0,0.6);
}

.header-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E63946;
  transition: width 0.3s ease;
}

.header-links a:hover::after {
  width: 100%;
}

.header-links a:hover {
  color: #E63946;
}

.header.scrolled .header-links a:hover {
  color: #E63946;
}

.header-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  transition: all 0.3s ease;
}

.header.scrolled .header-cta {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.header-cta:hover {
  border-color: #E63946;
  background: #E63946;
  color: #fff;
}

.header.scrolled .header-cta:hover {
  border-color: #E63946;
  background: #E63946;
  color: #fff;
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.header-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.header.scrolled .header-toggle span {
  background: #1a1a1a;
}

.header.menu-open .header-toggle span,
.header.scrolled.menu-open .header-toggle span {
  background: #fff;
}

.header-toggle span:nth-child(1) { top: 0; }
.header-toggle span:nth-child(2) { top: 9px; }
.header-toggle span:nth-child(3) { top: 18px; }

.header-toggle.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.header-toggle.open span:nth-child(2) {
  opacity: 0;
}

.header-toggle.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #1a1a1a 0%, rgba(26,26,26,0.7) 10%, transparent 35%),
    linear-gradient(
      135deg,
      rgba(26,26,26,0.85) 0%,
      rgba(26,26,26,0.4) 50%,
      rgba(230,57,70,0.08) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #E63946;
  margin-bottom: 1.5rem;
  border-left: 2px solid #E63946;
  padding-left: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: #E63946;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: #E63946;
  color: #fff;
  border: 1.5px solid #E63946;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 7rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
}

.section-header h2 em {
  font-style: italic;
  color: #E63946;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 480px;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ============================================
   SERVICES — Magazine Editorial Grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #ddd;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  padding: 3rem 2.5rem;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  transition: all 0.4s ease;
  position: relative;
}

.service-item:nth-child(even) {
  border-right: none;
}

.service-item:hover {
  background: #fff;
}

.service-item:hover .service-number {
  color: #E63946;
}

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #bbb;
  margin-bottom: 0.75rem;
  display: block;
  transition: color 0.3s ease;
}

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.service-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  max-width: 360px;
}

.service-item .service-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  font-size: 1.2rem;
  color: #ddd;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.service-item:hover .service-arrow {
  opacity: 1;
  color: #E63946;
  transform: translateX(0);
}

/* ============================================
   ABOUT — Editorial spread
   ============================================ */
#about {
  background: #fff;
}

.about-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-column {
  background: #e8e4df;
  overflow: hidden;
}

.about-image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-spread:hover .about-image-column img {
  transform: scale(1.03);
}

.about-text-column {
  padding: 4rem 4.5rem;
}

.about-text-column h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-text-column h2 em {
  font-style: italic;
  color: #E63946;
}

.about-text-column p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-text-column blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #1a1a1a;
  border-left: 3px solid #E63946;
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E63946;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ============================================
   WORKS / PROJECTS — Full-bleed gallery
   ============================================ */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ddd;
  max-width: 1200px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.work-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E63946;
  margin-bottom: 0.4rem;
}

.work-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

/* Full-width featured card */
.work-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ============================================
   ZONE / CERTIFICATIONS
   ============================================ */
.zone-section {
  background: #1a1a1a;
  color: #fff;
}

.zone-section .section-header h2 {
  color: #fff;
}

.zone-section .section-header p {
  color: rgba(255,255,255,0.6);
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.zone-card {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.zone-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(230,57,70,0.3);
}

.zone-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.zone-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.zone-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ============================================
   CONTACT — Editorial minimal
   ============================================ */
.contact-section {
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.contact-info h2 em {
  font-style: italic;
  color: #E63946;
}

.contact-info > p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.contact-detail-icon {
  font-size: 1rem;
  color: #E63946;
  min-width: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.contact-detail-text {
  font-size: 0.9rem;
  color: #444;
}

.contact-detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  display: block;
  margin-bottom: 0.15rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  color: #1a1a1a;
  width: 100%;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #E63946;
}

.form-submit {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: #E63946;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #111;
  color: rgba(255,255,255,0.4);
  padding: 3rem 2rem;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: #E63946;
}

.footer-info {
  text-align: right;
  line-height: 1.8;
}

.footer-credit {
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-credit:hover {
  color: #E63946;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFade 0.3s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 201;
  line-height: 1;
}

.lightbox-close:hover {
  color: #E63946;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 201;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #E63946;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
  .lightbox-content {
    max-width: 95vw;
    max-height: 70vh;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E63946;
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  transform: translateY(10px);
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #c02f3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .header-links {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26,26,26,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateY(-8px);
  }

  .header-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header.menu-open {
    background: rgba(26, 26, 26, 0.98);
  }

  .header.menu-open .header-logo {
    color: #fff;
  }

  .header-toggle {
    z-index: 20;
  }

  .header-links a {
    font-size: 1.2rem;
    color: #fff !important;
  }

  .header-cta {
    display: none;
  }

  .header-toggle {
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(even) {
    border-right: 1px solid #eee;
  }

  .service-item .service-arrow {
    display: none;
  }

  .about-spread {
    grid-template-columns: 1fr;
  }

  .about-image-column {
    min-height: 300px;
  }

  .about-text-column {
    padding: 3rem 2rem;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

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

  .work-card.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .works-gallery {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: span 1;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   ZONE CARDS CUSTOM: full dark, no images
   ============================================ */
.zone-card ul {
  list-style: none;
  margin-top: 0.8rem;
}

.zone-card ul li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  padding-left: 1rem;
  position: relative;
}

.zone-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #E63946;
}
