/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ===== VARIABLES ===== */
:root {
  --navy: #0a1628;
  --navy-light: #112240;
  --yellow: #c94040;
  --yellow-dark: #a83232;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.18);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  background: var(--yellow);
  color: var(--navy);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  background: var(--yellow);
  color: var(--navy);
}

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

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ===== SECTION LABELS ===== */
.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 3rem;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s;
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.logo-img {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: url('hero.jpg') center / cover no-repeat;
  filter: saturate(0.2);
  z-index: 0;
  transform: translate(calc(var(--px, 0) * -25px), calc(var(--py, 0) * -18px));
  transition: transform 0.1s ease-out;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.78);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  flex: 1;
  max-width: 560px;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero badge */
.hero-badge {
  flex-shrink: 0;
}

.badge-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  gap: 0.5rem;
  box-shadow: 0 0 60px rgba(245, 197, 24, 0.2);
}

.badge-bolt {
  font-size: 2.5rem;
  color: var(--yellow);
  line-height: 1;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
}

/* ===== SERVICES ===== */
.services {
  padding: 90px 0;
  background: var(--gray-light);
}

.services .section-sub {
  margin-bottom: 2.5rem;
}

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

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, var(--navy));
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card-icon {
  font-size: 3rem;
  color: var(--yellow);
  padding: 2.5rem 2rem 1rem;
  line-height: 1;
}

.service-card-body {
  padding: 0.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--yellow);
  transition: gap 0.2s;
}

.service-card-link:hover { gap: 0.8rem; }

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 90px 0;
  background: var(--navy);
}

.reviews .section-tag { color: var(--yellow); }
.reviews .section-title { color: var(--white); margin-bottom: 2.5rem; }

.reviews-slider {
  overflow: hidden;
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 2rem;
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.review-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.google-logo {
  height: 18px;
  width: auto;
  margin-left: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  font-style: italic;
}

.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.reviews-prev,
.reviews-next {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-prev:hover,
.reviews-next:hover {
  background: var(--yellow);
  color: var(--navy);
}

.reviews-dots {
  display: flex;
  gap: 6px;
}

.reviews-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.reviews-dots .dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .review-card { min-width: calc(50% - 0.75rem); }
}

@media (max-width: 600px) {
  .review-card { min-width: 100%; }
}

/* ===== ABOUT ===== */
.about {
  padding: 90px 0;
  background: var(--white);
}

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

.about-text p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-light);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.badge-icon {
  color: var(--yellow-dark);
  font-weight: 800;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

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

/* ===== REALISATIES PREVIEW ===== */
.realisaties-preview {
  padding: 90px 0;
  background: var(--gray-light);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.preview-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.preview-item .masonry-img {
  height: 200px;
}

.preview-item.tall {
  grid-row: span 2;
}

.preview-item.tall .masonry-img {
  height: 100%;
  min-height: 420px;
}

.preview-item .masonry-overlay {
  opacity: 0;
  transition: opacity 0.3s;
}

.preview-item:hover .masonry-overlay {
  opacity: 1;
}

.preview-item:hover .masonry-img {
  transform: scale(1.05);
}

.preview-cta {
  text-align: center;
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .preview-item.tall { grid-row: span 1; }
  .preview-item.tall .masonry-img { min-height: 200px; }
}

@media (max-width: 480px) {
  .preview-grid { grid-template-columns: 1fr; }
}

/* ===== REALISATIES ===== */
.realisaties-preview {
  padding: 90px 0;
  background: var(--gray-light);
}

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  background: var(--white);
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--yellow); color: var(--yellow-dark); }
.filter-btn.active { background: var(--yellow); border-color: var(--yellow); color: var(--white); }

.masonry-grid {
  columns: 3;
  column-gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

.masonry-img {
  width: 100%;
  height: 220px;
  display: block;
  transition: transform 0.4s ease;
}

.masonry-item.tall .masonry-img { height: 340px; }

.masonry-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--yellow);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover .masonry-img { transform: scale(1.05); }

.masonry-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}

.masonry-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.gallery-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 900px) { .masonry-grid { columns: 2; } }
@media (max-width: 560px) {
  .masonry-grid { columns: 1; }
  .masonry-overlay { opacity: 1; }
}

/* ===== TEAM ===== */
.team {
  padding: 90px 0;
  background: var(--gray-light);
}

.team-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  width: 280px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.25rem;
  display: block;
  border: 3px solid var(--yellow);
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  padding: 90px 0;
  background: var(--navy);
}

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

.contact .section-tag {
  color: var(--yellow);
}

.contact .section-title {
  color: var(--white);
}

.contact > .contact-inner > .contact-info > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.contact-info p:not(.section-tag):not(.section-title) {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--white);
}

.detail-icon.whatsapp-icon {
  color: #25d366;
}

.contact-details strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.2rem;
}

.contact-details a,
.contact-details span {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--white);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 2px solid #6ee7b7;
  border-radius: 8px;
  color: #065f46;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* ===== FOOTER ===== */
.footer {
  background: #060e1a;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--yellow);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

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

  .nav-cta-mobile {
    display: block;
    padding: 0.5rem 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .section-sub {
    margin-bottom: 2rem;
  }

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

  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }
}
