/* 
* Halim Wijaya Accounting & Tax Consultant
* Modern, Sleek UI Design
*/

:root {
  /* Color Palette */
  --primary: #1a3c6e;       /* Navy blue (brand color) */
  --primary-light: #2c5aa0; /* Lighter blue */
  --primary-lighter: #e6f0ff; /* Very light blue for backgrounds */
  --secondary: #4a6fa5;     /* Soft blue */
  --accent: #ff6b6b;        /* Coral accent */
  --accent-light: #ffebeb;   /* Light coral for backgrounds */
  --light: #f8fafc;         /* Light gray background */
  --dark: #2d3748;          /* Dark text (better contrast) */
  --dark-light: #4a5568;    /* Slightly lighter dark */
  --gray: #718096;          /* Medium gray */
  --gray-light: #e2e8f0;    /* Light gray for borders */
  --white: #ffffff;
  --black: #000000;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  font-weight: 400;
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--dark-light);
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

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

/* Layout Components */
.container {
  width: 100%;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--space-md) * -1);
  margin-left: calc(var(--space-md) * -1);
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding-right: var(--space-md);
  padding-left: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 500;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--primary-lighter);
  border-color: var(--primary-light);
  color: var(--primary-light);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-text {
  padding: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}

.btn-text:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Header & Navigation */
.site-header {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-xs) 0;
  font-size: var(--text-xs);
}

.top-info {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-info li {
  display: flex;
  align-items: center;
  margin-right: var(--space-lg);
}

.top-info li i {
  margin-right: var(--space-xs);
}

.top-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  color: white;
}

.top-links li {
  margin-left: var(--space-md);
}

.top-links a {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  transition: var(--transition-fast);
}

.top-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.navbar {
  padding: var(--space-sm) 0;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--gray);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  position: relative;
  color: var(--dark);
  font-weight: 500;
  /*padding: var(--space-sm) 0;*/
  display: flex;
  align-items: center;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

.nav-link:hover:after,
.nav-item.active .nav-link:after {
  width: 100%;
}

.nav-item.active .nav-link,
.nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26, 60, 110, 0.9) 0%, rgba(74, 111, 165, 0.9) 100%),
              url(https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80) no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--white);
  text-shadow: var(--shadow-sm);
}

.hero h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* Section Styles */
section {
  padding: var(--space-xxl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--space-xxl);
  text-align: center;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-md);
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}

.section-header p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: var(--space-xxl) 0;
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}


.page-header h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--white);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(255, 255, 255, 0.7);
  padding: 0 var(--space-sm);
}

/* Card Components */
.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card {
    border: none;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}

.card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
}

.card-header h3 {
  color: var(--white);
  margin-bottom: 0;
}

.card-body {
  padding: var(--space-lg);
}

/* Service Cards */
.service-card {
  background-color: var(--white);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-normal);
  border-bottom: 3px solid transparent;
  text-align: center;
}

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

.service-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--accent);
}

.service-card h3 {
  margin-bottom: var(--space-md);
}

.service-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-md);
}

.service-card li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
}

.service-card li::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* About Section */
.about-section {
    background-color: #f8f9fa; 
}
.about-image img {
    max-height: 400px; 
    object-fit: cover; 
}



/* Tax Calculator Tabs */
.tax-calculator-tabs {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 30px;
  overflow-x: auto;
}

.tax-calculator-tabs .tab-item {
  padding: 15px 20px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.3s ease;
}

.tax-calculator-tabs .tab-item:hover {
  color: #1a3c6e;
}

.tax-calculator-tabs .tab-item.active {
  color: #1a3c6e;
  font-weight: 600;
}

.tax-calculator-tabs .tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1a3c6e;
}

.tax-calculator-content .tab-pane {
  display: none;
}

.tax-calculator-content .tab-pane.active {
  display: block;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, rgba(26, 60, 110, 0.9) 0%, rgba(74, 111, 165, 0.9) 100%),
              url("/images/business-meeting.jpg") no-repeat center center;
  background-size: cover;
  color: var(--white);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 60, 110, 0.9) 0%, rgba(74, 111, 165, 0.9) 100%);
  z-index: 1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 60, 110, 0.1);
  outline: 0;
}

textarea.form-control {
  min-height: 120px;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-prepend {
  margin-right: -1px;
  display: flex;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  text-align: center;
  white-space: nowrap;
  background-color: var(--light);
  border: 1px solid var(--gray-light);
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

/* Alert Styles */
.alert {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Table Styles */
.table {
  width: 100%;
  margin-bottom: var(--space-lg);
  color: var(--dark);
  border-collapse: collapse;
}

.table th {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}

.table td {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--gray-light);
}

.table-sm td, .table-sm th {
  padding: var(--space-xs) var(--space-sm);
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
}

.footer-top {
  padding: var(--space-xxl) 0;
}

.footer-widget {
  margin-bottom: var(--space-lg);
}

.footer-widget h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-widget h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: var(--space-sm);
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-widget ul li a:hover {
  color: var(--white);
  padding-left: var(--space-xs);
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-sidebar {
    font-size: 0.9rem;
}
.contact-sidebar h3 {
    letter-spacing: 0.5px;
}
.contact-sidebar .fa {
    min-width: 20px;
    text-align: center;
}

.email-icon { margin-right: 5px; }
.map-icon { margin-right: 5px; }
.phone-icon { margin-right: 5px; }

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.1);
  padding: var(--space-md) 0;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.footer-nav li {
  margin-left: var(--space-lg);
}

.footer-nav li a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 80px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float i {
  margin-top: 0;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 991.98px) {
    .about-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 991px) {
  section {
    padding: var(--space-xl) 0;
  }
  
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero h2 {
    font-size: var(--text-lg);
  }

  .top-info {
    justify-content: center;
    margin-bottom: var(--space-sm);
  }

  .social-links {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    margin-top: var(--space-md);
  }

  .footer-bottom p {
    text-align: center;
  }
  
  .navbar-nav {
    padding-top: var(--space-md);
  }
  
  .navbar-nav .nav-item {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero {
    padding: var(--space-lg) 0;
  }
  
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero h2 {
    font-size: var(--text-base);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .service-item .row {
    text-align: center;
  }

  .service-item .service-icon {
    margin-bottom: var(--space-md);
  }
  
  .page-header {
    padding: var(--space-xl) 0;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 20px;
    bottom: 80px;
    font-size: 24px;
  }

  .back-to-top {
    right: 20px;
  }
}

@media (max-width: 575px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }
  
  .section-header h2 {
    font-size: var(--text-2xl);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
  }
}