/* ============================================
   RMO Schildersbedrijf — Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --gold: #C4A55A;
  --gold-light: #D4BA7A;
  --gold-dark: #A68B3E;
  --green: #1B3C2D;
  --green-light: #2A5A43;
  --black: #1A1A1A;
  --dark: #0D0D0D;
  --white: #FFFFFF;
  --gray-50: #F9F9F7;
  --gray-100: #F2F0EC;
  --gray-200: #E5E2DB;
  --gray-300: #C8C4BA;
  --gray-500: #8A8679;
  --gray-700: #4A4740;
  --font-display: 'Circular', -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'Circular', -apple-system, 'Helvetica Neue', sans-serif;
  --nav-height: 80px;
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }

.text-gold { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 165, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  border-radius: 6px;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

/* --- YouTube Video Background --- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: url('https://img.youtube.com/vi/lRI4K8hapBs/maxresdefault.jpg') center/cover no-repeat;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  min-width: 177.78vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video-wrap iframe.video-ready {
  opacity: 1;
}

/* --- Animated Overlay Layers --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Gradient overlay */
.overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13, 13, 13, 0.6) 0%,
      rgba(13, 13, 13, 0.25) 35%,
      rgba(13, 13, 13, 0.2) 50%,
      rgba(13, 13, 13, 0.35) 75%,
      rgba(13, 13, 13, 0.75) 100%
    ),
    linear-gradient(135deg,
      rgba(27, 60, 45, 0.25) 0%,
      transparent 50%,
      rgba(196, 165, 90, 0.08) 100%
    );
}

/* Film grain texture */
.overlay-grain {
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  animation: grainShift 0.5s steps(6) infinite;
}

/* Cinematic light sweep */
.overlay-light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(196, 165, 90, 0.06) 45%,
    rgba(196, 165, 90, 0.1) 50%,
    rgba(196, 165, 90, 0.06) 55%,
    transparent 60%,
    transparent 100%
  );
  animation: lightSweep 8s ease-in-out infinite;
}

/* Floating particles container */
.overlay-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 165, 90, 0.5), transparent 70%);
  pointer-events: none;
  animation: particleFloat linear infinite;
}

/* Vignette */
.overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* --- Overlay Animations --- */
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  16% { transform: translate(-5%, -5%); }
  33% { transform: translate(3%, -8%); }
  50% { transform: translate(-8%, 2%); }
  66% { transform: translate(6%, 5%); }
  83% { transform: translate(-3%, 8%); }
  100% { transform: translate(0, 0); }
}

@keyframes lightSweep {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(120%); opacity: 1; }
  60% { opacity: 0; }
  61% { transform: translateX(-120%); }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(196, 165, 90, 0.15);
  border: 1px solid rgba(196, 165, 90, 0.3);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(196, 165, 90, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 550px;
  margin: 12px auto 0;
}

/* ============================================
   SERVICES
   ============================================ */
.diensten {
  background: var(--gray-50);
}

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

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 165, 90, 0.1), rgba(27, 60, 45, 0.08));
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--black);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(27, 60, 45, 0.3);
}

.badge-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  opacity: 0.8;
  line-height: 1.3;
  margin-top: 2px;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 1.02rem;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(27, 60, 45, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-check svg {
  width: 13px;
  height: 13px;
}

.feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ============================================
   PROCESS
   ============================================ */
.werkwijze {
  background: var(--dark);
}

.werkwijze .section-tag { color: var(--gold-light); }
.werkwijze h2 { color: var(--white); }
.werkwijze .section-desc { color: rgba(255,255,255,0.5); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
  padding: 32px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.process-step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(196, 165, 90, 0.2);
  transform: translateY(-4px);
}

.process-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step:hover .process-number {
  opacity: 0.7;
}

.process-step h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ============================================
   PROJECTS
   ============================================ */
.projecten {
  background: var(--gray-50);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.project-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
}
.project-placeholder svg { width: 60px; height: 60px; }

.project-info {
  padding: 20px 24px;
}

.project-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: var(--white);
}

.cta-box {
  text-align: center;
  padding: 72px 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green) 0%, #0f2a1e 100%);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(196, 165, 90, 0.08) 0%, transparent 70%);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-buttons .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.cta-buttons .btn-outline:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196, 165, 90, 0.1);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--black);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--gray-200);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 90, 0.15);
}

.form-group textarea { resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8679' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

/* Ambient glow */
.footer-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(196, 165, 90, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: footerGlowPulse 6s ease-in-out infinite;
}

@keyframes footerGlowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* --- Footer Top: CTA --- */
.footer-top {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.footer-cta-text.visible .footer-headline,
.footer-cta-text.visible .footer-tagline,
.footer-cta-text.visible .footer-cta-actions {
  opacity: 1;
  transform: translateY(0);
}

.footer-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(196, 165, 90, 0.25);
}

.footer-phone-btn svg {
  width: 18px;
  height: 18px;
}

.footer-phone-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(196, 165, 90, 0.4);
  background: var(--gold-dark);
}

.footer-email-btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-email-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.04);
}

@keyframes footerReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Divider --- */
.footer-divider {
  padding: 0 24px;
}

.footer-divider-line {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 165, 90, 0.2) 20%,
    rgba(196, 165, 90, 0.35) 50%,
    rgba(196, 165, 90, 0.2) 80%,
    transparent 100%
  );
}

/* --- Footer Main Grid --- */
.footer-main {
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  height: 48px;
  margin-bottom: 20px;
  filter: brightness(1.2);
  transition: filter 0.4s ease;
}

.footer-logo:hover {
  filter: brightness(1.5);
}

.footer-brand-desc {
  color: rgba(255,255,255,0.35);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 260px;
}

/* Columns */
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-nav li {
  margin-bottom: 0;
}

.footer-nav li a {
  display: inline-block;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-nav li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-nav li a:hover::after {
  width: 100%;
}

/* Address */
.footer-address {
  font-style: normal;
}

.footer-address p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* --- Footer Bottom --- */
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

/* Back to top */
.footer-back-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-back-top svg {
  width: 18px;
  height: 18px;
}

.footer-back-top:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(196, 165, 90, 0.15);
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: var(--font-body);
}

/* Floating Action Button */
.wa-fab {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 14px rgba(37, 211, 102, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 6px 20px rgba(37, 211, 102, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.2);
}

.wa-fab-icon,
.wa-fab-close {
  position: absolute;
  width: 30px;
  height: 30px;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-fab-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.wa-fab-close {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.wa-widget.open .wa-fab-icon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

.wa-widget.open .wa-fab-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Pulse ring */
.wa-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2.5s ease-out infinite;
}

.wa-widget.open .wa-fab-pulse {
  animation: none;
  opacity: 0;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Chat Window */
.wa-chat {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-widget.open .wa-chat {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.wa-chat-header {
  background: #075E54;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-chat-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25D366, #128C7E, #075E54);
}

.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-avatar svg {
  width: 28px;
  height: 28px;
}

.wa-header-info {
  flex: 1;
  min-width: 0;
}

.wa-name {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.wa-status {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 1px;
}

.wa-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  border-radius: 50%;
  transition: all var(--transition);
  flex-shrink: 0;
}

.wa-close svg { width: 18px; height: 18px; }

.wa-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Chat Body */
.wa-chat-body {
  padding: 24px 20px;
  background: #ECE5DD url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c1 0 2 3 2 4s-1 3-2 3-2-2-2-3 1-4 2-4zm15 10c1 1 0 3-1 3s-3-1-3-2 2-3 3-3 1 1 1 2zM15 15c-1 1 0 3 1 3s3-1 3-2-2-3-3-3-1 1-1 2zm20 20c1 0 2 2 2 3s-1 3-2 3-2-2-2-3 1-3 2-3zM20 40c1 0 2 2 2 3s-1 3-2 3-2-2-2-3 1-3 2-3zm25 5c1 1-1 3-2 3s-2-2-1-3 2-1 3 0z' fill='%23d4cfc6' fill-opacity='0.3'/%3E%3C/svg%3E");
  min-height: 120px;
}

.wa-bubble {
  background: var(--white);
  padding: 14px 16px;
  border-radius: 0 12px 12px 12px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: bubbleIn 0.5s ease-out 0.2s both;
}

.wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.wa-bubble p {
  font-size: 0.88rem;
  color: var(--black);
  line-height: 1.55;
  margin: 0;
}

.wa-time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 6px;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Send Button */
.wa-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: #25D366;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.wa-send-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wa-send-btn:hover {
  background: #22BF5B;
  letter-spacing: 0.3px;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    transition: right var(--transition);
  }

  .nav-links.open { right: 0; }

  .nav-links li a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 260px; }

  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

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

  .footer-top { padding: 72px 0 56px; }
  .footer-main { padding: 48px 0; }
  .footer-cta-actions { flex-direction: column; }
  .footer-phone-btn, .footer-email-btn { width: 100%; justify-content: center; text-align: center; }
  .footer-bottom-inner { flex-direction: column; gap: 16px; }
  .footer-legal { justify-content: center; }

  .cta-box { padding: 48px 24px; }

  .section { padding: 72px 0; }

  .contact-form-wrapper { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-badge { font-size: 0.75rem; }

  .wa-widget { bottom: 20px; right: 20px; }
  .wa-chat {
    width: calc(100vw - 40px);
    right: -8px;
  }
}
