@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary-color: #0f4c81;
  --secondary-color: #fca311;
  --dark-color: #14213d;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
  font-weight: 800;
}

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

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

.nav-links li a {
  font-weight: 600;
  color: var(--dark-color);
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.btn-secondary:hover {
  background-color: #e5940e;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 76, 129, 0.8), rgba(20, 33, 61, 0.9)), url('image/1.jpeg') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #e0e0e0;
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  animation: fadeInUp 1.2s ease;
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.bg-light {
  background-color: var(--white);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Services Legal Section */
.services-legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom: 4px solid var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Detailed Services / List */
.detailed-services {
  background-color: var(--primary-color);
  color: var(--white);
}

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

.detailed-services .section-title::after {
  background-color: var(--secondary-color);
}

.category-accordion {
  max-width: 900px;
  margin: 0 auto;
}

details.service-category {
  background: var(--white);
  color: var(--dark-color);
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

details.service-category:hover {
  box-shadow: var(--shadow-hover);
}

details.service-category[open] summary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

summary.category-title {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

summary.category-title::after {
  content: '\f078';
  font-family: 'FontAwesome';
  font-weight: 900;
  transition: transform 0.3s ease;
}

details.service-category[open] summary.category-title::after {
  transform: rotate(180deg);
}

summary.category-title::-webkit-details-marker {
  display: none;
}

.category-content {
  padding: 1.5rem;
  background-color: var(--light-color);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.category-content ul {
  list-style-type: none;
}

.category-content li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.category-content li:last-child {
  border-bottom: none;
}

.category-content li::before {
  content: '\f058';
  font-family: 'FontAwesome';
  color: var(--primary-color);
  font-weight: 900;
  margin-top: 4px;
}

/* Target Audience */
.target-audience {
  text-align: center;
}

.target-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tag {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.tag:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

/* Explanations Section */
.explanations {
  background-color: var(--white);
}

.explanation-block {
  margin-bottom: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.explanation-block:nth-child(even) {
  flex-direction: row-reverse;
}

.explanation-text {
  flex: 1;
  min-width: 300px;
}

.explanation-text h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.explanation-text p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.explanation-text ul {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--text-light);
}

.explanation-image {
  flex: 1;
  min-width: 300px;
}

.explanation-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Contact / Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cccccc;
}

.contact-cta {
  background-color: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.contact-cta h3 {
  color: var(--white);
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
}

.wa-btn:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Floating Mobile CTA (Default Hidden) */
.floating-mobile-cta {
  display: none;
}

/* Mobile Menu Toggle (Default Hidden) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Responsive & Mobile Optimizations */
@media (max-width: 768px) {
  /* Header Mobile Optimizations */
  #header-cta {
    display: none;
  }
  
  .container {
    padding: 0 30px; /* Memberikan jarak lebih di pinggir layar HP */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .navbar {
    position: relative; /* For absolute positioning of dropdown */
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .explanation-block, .explanation-block:nth-child(even) {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Floating Mobile CTA Styling */
  .floating-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  }
  
  .float-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
  }
  
  .float-wa {
    background-color: #25D366;
  }
  
  .float-wa:hover {
    background-color: #128C7E;
  }
  
  .float-tel {
    background-color: var(--primary-color);
  }
  
  .float-tel:hover {
    background-color: var(--dark-color);
  }
  
  /* Prevent content overlap with floating bar */
  body {
    padding-bottom: 60px;
  }
}
