/* Area Pages CSS - Mobile-First Responsive Design for Local SEO Pages */

/* Import base design tokens and accessibility standards */
@import url('style-index.css');

/* ===== LAYOUT & GRID SYSTEM ===== */

.area-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .area-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .area-container {
    padding: 0 3rem;
  }
}

/* ===== HERO SECTION ===== */

.hero-local {
  background: linear-gradient(135deg, var(--color-primary) 0%, #A30F1A 100%);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-local::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.hero-local .area-container {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ===== TRUST BADGES ===== */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  min-width: 140px;
}

.trust-badge .highlight {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .trust-badge {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* ===== BREADCRUMB NAVIGATION ===== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.breadcrumb-current {
  color: white;
  font-weight: 600;
}

/* ===== CTA BUTTONS ===== */

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
  text-align: center;
}

.cta-primary {
  background: var(--color-success);
  color: white;
  border: 2px solid var(--color-success);
}

.cta-primary:hover {
  background: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.cta-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid white;
}

.cta-secondary:hover {
  background: var(--color-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===== SECTION STYLES ===== */

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-title {
  font-size: 2rem;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-foreground);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* ===== ADVANTAGE CARDS ===== */

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  text-align: center;
  padding: 2rem 1rem;
}

.advantage-icon {
  width: 5rem;
  height: 5rem;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.advantage-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
}

.advantage-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.advantage-description {
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* ===== COVERAGE AREA SECTION ===== */

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .coverage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coverage-list li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.coverage-list li:last-child {
  border-bottom: none;
}

.coverage-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-success);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.coverage-info {
  background: #EBF8FF;
  color: #1E40AF;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid #3B82F6;
}

.coverage-info strong {
  font-weight: 600;
}

.coverage-map {
  height: 24rem;
  background: var(--color-muted);
  border-radius: 0.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== PACKAGE CARDS ===== */

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.package-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(193, 18, 31, 0.1);
  transform: translateY(-4px);
}

.package-card.featured {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  position: relative;
}

.package-card.featured::before {
  content: 'PILIHAN TERPOPULER';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.package-price .unit {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-weight: 400;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.package-features svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-success);
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.package-cta {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.package-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.3);
}

/* ===== TESTIMONIAL CARDS ===== */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

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

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.testimonial-avatar span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-foreground);
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #FCD34D;
}

.testimonial-text {
  color: var(--color-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-project {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  font-style: italic;
}

/* ===== EMERGENCY CTA SECTION ===== */

.emergency-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #A30F1A 100%);
  color: white;
  text-align: center;
}

.emergency-title {
  font-size: 2rem;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .emergency-title {
    font-size: 2.5rem;
  }
}

.emergency-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.emergency-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .emergency-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.emergency-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 220px;
}

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

.emergency-primary:hover {
  background: var(--color-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.emergency-secondary {
  background: #FDE047;
  color: #1F2937;
}

.emergency-secondary:hover {
  background: #FDE68A;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(253, 224, 71, 0.3);
}

.emergency-cta svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
}

/* ===== FAQ SECTION ===== */

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-muted);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-question[aria-expanded="true"] {
  background: rgba(193, 18, 31, 0.05);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-muted-foreground);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-muted-foreground);
  line-height: 1.7;
  display: none;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RELATED AREAS SECTION ===== */

.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.related-link {
  background: white;
  color: var(--color-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.related-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== MOBILE MENU ===== */

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-content {
  background: white;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.mobile-menu-links li {
  margin-bottom: 1rem;
}

.mobile-menu-links a {
  color: var(--color-foreground);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
}

.mobile-menu-links a:hover {
  color: var(--color-primary);
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus indicators */
.cta-primary:focus,
.cta-secondary:focus,
.package-cta:focus,
.emergency-cta:focus,
.related-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.faq-question:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .trust-badge {
    background: white;
    border: 2px solid var(--color-foreground);
  }
  
  .package-card {
    border-width: 3px;
  }
  
  .testimonial-card {
    border: 2px solid var(--color-border);
  }
}

/* ===== PRINT STYLES ===== */

@media print {
  .hero-local,
  .cta-buttons,
  .emergency-section,
  .mobile-menu {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .package-card,
  .testimonial-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== UTILITIES ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
}