/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
  --color-primary: #0056b3;
  --color-secondary: #ff4500;
  --color-text: #2c3e50;
  --color-light-bg: #ecf0f1;
  --color-white: #fff;
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.1vw, 18px);
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--color-text);
  background-color: var(--color-light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
  background-color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo h1 {
  font-size: 2em;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.logo .color {
  color: var(--color-secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  padding: 10px 15px;
  font-weight: 600;
  color: var(--color-text);
}

nav ul li a:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

.cta-header {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-header:hover {
  background-color: #cc3700;
  transform: scale(1.05);
}

/* Tombol Menu Mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: var(--color-primary);
  cursor: pointer;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
  margin-top: -100px;
}

.hero-overlay {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("https://sig.rjteamm.xyz/AC.png");
  background-size: cover;
  background-position: center;
  padding: clamp(100px, 15vw, 200px) 5%;
}

.hero h2 {
  font-size: clamp(1.8em, 4vw, 3.5em);
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: clamp(1em, 1.4vw, 1.3em);
  margin-bottom: 100px;
}

.cta-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 16px 55px;
  border-radius: 50px;
  font-size: clamp(1em, 1.2vw, 1.2em);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-secondary);
}

.cta-primary:hover {
  background-color: #2c3e50;
  transform: translateY(-3px) scale(1.03);
  border: 2px solid var(--color-secondary);
}

/* =========================================
   4. SECTION BASE STYLE
   ========================================= */
section {
  padding: clamp(60px, 8vw, 120px) 5%;
}

section:nth-child(even) {
  background-color: var(--color-white);
}

h2 {
  text-align: center;
  font-size: clamp(1.8em, 3vw, 2.5em);
  margin-bottom: 60px;
  position: relative;
  color: var(--color-text);
}

h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* =========================================
   5. FEATURES / KEUNGGULAN
   ========================================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-item {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 40px 25px;
  text-align: center;
  border-bottom: 5px solid var(--color-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-item h3 {
  color: var(--color-primary);
  margin: 15px 0 10px;
}

/* =========================================
   6. SERVICES / LAYANAN
   ========================================= */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
  justify-items: center;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.4s, box-shadow 0.4s, border 0.4s;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

.service-card img { 
  width: 100%;
  aspect-ratio: 4 / 3; /* Menggunakan rasio 4:3 agar unit AC terlihat lebih tinggi dan penuh, bukan 16:9 yang lebih lebar */ 
  object-fit: cover; 
}

.service-card h3 {
  color: var(--color-primary);
  margin: 25px 0 10px;
}

.service-card p {
  color: #666;
  padding: 0 20px 30px;
}

/* =========================================
   7. PRICING / HARGA
   ========================================= */
.price-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px;
  border-collapse: collapse;
  box-shadow: var(--shadow-light);
  border-radius: 8px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.price-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.price-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.price-table tr:hover {
  background-color: #e8e8e8;
}

.note {
  text-align: center;
  color: #555;
  font-style: italic;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  padding: 30px;
  position: relative;
  border-bottom: 5px solid var(--color-primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.testimonial-card .fa-quote-left {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2.5em;
  color: #e9ecef;
}

.testimonial-text {
  margin-bottom: 25px;
  font-style: italic;
  color: #555;
  margin-top: 10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  color: var(--color-primary);
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
.contact {
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  -webkit-text-fill-color: #e0e0e0;
}

.contact h2 {
  font-size: clamp(1.8em, 4vw, 3.5em);
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.contact h2::after {
  background-color: var(--color-secondary);
}

.contact p {
  font-size: 20px;
  margin-bottom: 40px;
  margin-top: -50px;
}

.contact-methods {
  gap: 10px;
  justify-content: center;
  display: flex;
  max-width: 800px;
  margin: 0 auto;
}

.cta-whatsapp,
.cta-email {
  border-radius: 50px;
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s;
}

.cta-whatsapp {
  background-color: #25d366;
  color: var(--color-white);
  -webkit-text-fill-color: black;
  padding: 15px 80px;
  border: 2px solid #25d366;
}

.cta-whatsapp:hover {
  background-color: #128c7e;
  color: var(--color-primary);
  -webkit-text-fill-color: #fff;
  border: 2px solid var(--color-white);
}

.cta-email {
  background-color: var(--color-white);
  padding: 15px 100px;
  color: black;
  -webkit-text-fill-color: black;
  border: 2px solid var(--color-white);
}

.cta-email:hover {
  color: #fff;
  background-color: #3a393980;
  -webkit-text-fill-color: #ffffff;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
  background-color: var(--color-text);
  color: #aeb6bf;
  text-align: center;
  padding: 25px 5%;
  font-size: 0.9em;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #aeb6bf;
  margin: 0 10px;
}

.footer-links a:hover {
  color: var(--color-white);
}

/* =========================================
   11. RESPONSIVE NAV & MOBILE ADJUSTMENTS (UPDATED)
   ========================================= */
@media (max-width: 992px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1100;
  }
  
  /* PERBAIKAN: Tampilkan tombol Hubungi Cepat di mobile */
  .cta-header {
    display: block; 
    position: absolute; 
    right: 50px; /* Geser ke kiri tombol menu */
    top: 15px;
    padding: 8px 9px; /* Kecilkan sedikit */
    font-size: 0.9em;
    z-index: 1100;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: var(--shadow-light);
    padding: 10px 0;
  }

  nav ul.active {
    display: flex;
  }

  .hero h2 {
    font-size: 2.2em;
  }

  .cta-primary {
    padding: 12px 25px;
  }

  section {
    padding: 70px 5%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 4%;
  }

  .logo h1 {
    font-size: 1.6em;
  }
  
  /* Penyesuaian posisi di layar super kecil */
  .menu-toggle,
  .cta-header {
    top: 10px; 
  }

  .hero h2 {
    font-size: 1.7em;
  }

  .hero p {
    font-size: 0.95em;
    margin-bottom: 60px;
  }

  h2 {
    font-size: 1.6em;
  }

  
.contact-methods {
  /* Di mobile, kita ingin tombol susun ke bawah */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Tambahkan sedikit jarak vertikal antar tombol */
  max-width: none; /* Pastikan tidak ada batasan lebar desktop */
}

.cta-whatsapp,
.cta-email {
  /* Ini sudah benar: memastikan tombol mengisi penuh lebar layar */
  width: 100%;
  font-size: 1em;
  padding: 12px 20px;
}

  footer {
    font-size: 0.8em;
  }
}

@media (min-width: 1400px) {
  body {
    max-width: 1400px;
    margin: 0 auto;
  }

  section {
    padding: 100px 8%;
  }
}


.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PENYESUAIAN: Pastikan Hero Section langsung terlihat tanpa animasi penundaan */
#beranda.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}

#WA {
  position: absolute;
  margin-left: -30px;
  margin-top: -3px;
}

#via {
  position: relative;
  right: -20px;
}

#EM {
  position: absolute;
  margin-left: -30px;
  margin-top: -3px;
}

#kirim {
  position: relative;
  right: -20px;
}