/* ========================================
   DEWI FORTUNE TEHNIK - Company Profile
   Pure HTML/CSS/JS - Ready to upload
======================================== */

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

/* ---- CSS Variables ---- */
:root {
  --sun-gold: #d4a853;
  --deep-gold: #b8943f;
  --light-gold: #f0dbaa;
  --soft-white: #faf9f7;
  --rich-black: #111111;
  --muted-text: #777777;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --white: #ffffff;
  --border: rgba(0,0,0,0.06);
  --container: 1200px;
  --section-pad: 120px;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--soft-white);
  color: var(--rich-black);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ---- Typography ---- */
.font-heading {
  font-family: 'Playfair Display', serif;
}

.category-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sun-gold);
}

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

/* ---- Floating Navigation ---- */
.nav-floating {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
  max-width: calc(100% - 32px);
}

.nav-floating.scrolled {
  box-shadow: inset 0 2px 4px rgba(212,168,83,0.15), 0 4px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--rich-black);
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid var(--border);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  color: var(--rich-black);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--rich-black);
  color: var(--white);
}

.nav-cta {
  display: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  background: var(--sun-gold);
  color: var(--rich-black);
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--deep-gold);
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--soft-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--rich-black);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--sun-gold);
}

.mobile-menu .btn-gold {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(250,249,247,0) 0%, rgba(250,249,247,0.7) 55%, rgba(250,249,247,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 80px;
  max-width: 600px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--rich-black);
}

.hero-title span {
  color: var(--sun-gold);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted-text);
  margin-top: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  letter-spacing: -0.01em;
}

.btn-gold {
  background: var(--sun-gold);
  color: var(--rich-black);
  padding: 14px 28px;
  margin-top: 24px;
}

.btn-gold:hover {
  background: var(--deep-gold);
}

.btn-outline {
  background: transparent;
  color: var(--rich-black);
  border: 1px solid var(--rich-black);
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--rich-black);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
}

.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- Section Base ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--rich-black);
  margin-top: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--muted-text);
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---- Services Section ---- */
.services {
  background: var(--white);
  padding: 80px 0;
}

.service-block {
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.service-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.service-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-img:hover img {
  transform: scale(1.03);
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--rich-black);
}

.service-text p {
  font-size: 15px;
  color: var(--muted-text);
  line-height: 1.7;
}

.price-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--sun-gold);
}

/* ---- Pricing Section ---- */
.pricing {
  background: var(--soft-white);
  padding: 80px 0;
}

.pricing-scroll-wrap {
  position: relative;
  overflow: hidden;
}

.pricing-parallax-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--light-gold);
  opacity: 0.3;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

.pricing-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 24px 16px;
  margin: 0 -24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pricing-scroll::-webkit-scrollbar {
  display: none;
}

.price-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.price-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.price-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--rich-black);
  margin-bottom: 8px;
}

.price-amount {
  font-size: 28px;
  font-weight: 600;
  color: var(--sun-gold);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.price-card ul li {
  font-size: 13px;
  color: var(--muted-text);
  padding: 4px 0;
}

/* ---- Gallery Section ---- */
.gallery {
  background: var(--rich-black);
  padding: 80px 0;
}

.gallery .section-header h2 {
  color: var(--white);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sun-gold);
  margin-bottom: 4px;
}

.gallery-overlay .caption {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}

.gallery-overlay .loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---- Testimonials ---- */
.testimonials {
  background: var(--white);
  padding: 80px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  color: var(--sun-gold);
  font-size: 18px;
}

.testimonial-card q {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--rich-black);
  line-height: 1.5;
  display: block;
  margin-bottom: 20px;
}

.testimonial-card .divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.testimonial-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--rich-black);
}

.testimonial-card .loc {
  font-size: 13px;
  color: var(--muted-text);
}

/* ---- CTA Section ---- */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 100px 24px;
  text-align: center;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}

.cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 16px auto 0;
}

.cta .btn-white {
  margin-top: 32px;
}

.cta .phone-alt {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-top: 20px;
}

/* ---- Footer ---- */
.footer {
  background: var(--rich-black);
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--sun-gold);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sun-gold);
}

.footer-col .wa-link {
  color: var(--sun-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ---- Floating Buttons ---- */
.float-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-btn.wa {
  background: #25D366;
}

.float-btn.telp {
  background: var(--sun-gold);
}

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

.reveal.active {
  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; }

/* ---- Responsive: Tablet ---- */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .nav-floating {
    top: 24px;
    padding: 12px 24px;
    gap: 24px;
    max-width: none;
  }

  .nav-logo {
    font-size: 16px;
    padding-right: 12px;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-block;
  }

  .nav-hamburger {
    display: none;
  }

  .hero-content {
    padding: 0 32px 100px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-top: 20px;
  }

  .services,
  .pricing,
  .gallery,
  .testimonials {
    padding: 100px 0;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .service-block:nth-child(even) .service-grid {
    direction: rtl;
  }

  .service-block:nth-child(even) .service-img,
  .service-block:nth-child(even) .service-text {
    direction: ltr;
  }

  .service-img img {
    aspect-ratio: 3/4;
  }

  .pricing-scroll {
    padding: 8px 32px 16px;
    margin: 0 -32px;
    gap: 24px;
  }

  .price-card {
    width: 280px;
    padding: 40px 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .lightbox-close {
    top: 24px;
    right: 24px;
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}

/* ---- Responsive: Desktop ---- */
@media (min-width: 1024px) {
  .services,
  .pricing,
  .gallery,
  .testimonials {
    padding: var(--section-pad) 0;
  }

  .service-text h3 {
    font-size: 2.75rem;
  }

  .pricing-parallax-text {
    font-size: 7rem;
  }

  .cta {
    padding: 120px 24px;
  }
}
