/* ============================================================================
   BASE STYLES & RESET
   ============================================================================ */

html,body,address,blockquote,div,
form,fieldset,caption,
h1,h2,h3,h4,h5,h6,
hr,ul,li,ol,p,img {
	margin:0;
	padding:0;
}

img,fieldset {
	border:none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

a {
  color: #1a8fb3;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #14697f;
  text-decoration: underline;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #1a3a42;
  line-height: 1.3;
}

h1 {
  font-size: 2.5em;
  line-height: 1.3;
}

h2 {
  font-size: 2em;
  line-height: 1.3;
}

h3 {
  font-size: 1.5em;
  line-height: 1.3;
}

h4 {
  font-size: 1.25em;
  line-height: 1.3;
}

p {
  margin-bottom: 1em;
}

/* ============================================================================
   COLOR PALETTE
   ============================================================================ */

body {
  --primary-teal: #1a8fb3;
  --primary-green: #5fa87f;
  --light-teal: #6bc4dd;
  --light-green: #8fcc9e;
  --dark-teal: #14697f;
  --dark-green: #4a7f62;
  --neutral-light: #f8fafb;
  --neutral-medium: #e8ecf0;
  --neutral-dark: #2c3e50;
  --text-primary: #1a3a42;
  --text-secondary: #6b7a87;
  --accent-success: #27ae60;
  --accent-warning: #e67e22;
  --accent-error: #e74c3c;
}

/* ============================================================================
   LANGUAGE SWITCHER
   ============================================================================ */

span.lang-id {
  display: none;
}

body.lang-id span.lang-en {
  display: none;
}

body.lang-id span.lang-id {
  display: inline;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.85em;
  line-height: 1.4;
  font-weight: 600;
  color: #6b7a87;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.lang-toggle:hover,
.lang-toggle:focus {
  color: #1a8fb3;
  text-decoration: none;
}

body.lang-en .lang-toggle-en,
body.lang-id .lang-toggle-id {
  color: #ffffff;
  background-color: #1a8fb3;
}

body.lang-en .lang-toggle-en:hover,
body.lang-en .lang-toggle-en:focus,
body.lang-id .lang-toggle-id:hover,
body.lang-id .lang-toggle-id:focus {
  color: #ffffff;
}

.lang-divider {
  color: #e8ecf0;
  font-size: 0.85em;
  line-height: 1.4;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1em;
  flex: 0 0 auto;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.company-info {
  display: flex;
  flex-direction: column;
}

.company-name {
  margin: 0;
  font-size: 1.25em;
  color: #1a8fb3;
  font-weight: 700;
  line-height: 1.2;
}

.company-tagline {
  margin: 0;
  font-size: 0.75em;
  line-height: 1.4;
  color: #6b7a87;
  font-weight: 400;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2em;
  flex: 0 0 auto;
}

.nav-list a {
  display: block;
  padding: 0.5em 0;
  color: #1a3a42;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  color: #1a8fb3;
  border-bottom-color: #1a8fb3;
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1em;
  }

  .nav-list {
    justify-content: center;
    width: 100%;
    gap: 1em;
    font-size: 0.9em;
  }

  .lang-switcher {
    order: -1;
    align-self: flex-end;
  }
}

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

.hero {
  background: linear-gradient(135deg, #6bc4dd 0%, #8fcc9e 100%);
  padding: 6em 2em;
  text-align: center;
  color: #ffffff;
}

.hero-title {
  margin-top: 0;
  font-size: 3em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2em;
}

.cta-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1em 2em;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-primary {
  background-color: #ffffff;
  color: #1a8fb3;
}

.cta-primary:hover,
.cta-primary:focus {
  background-color: #f8fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.cta-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cta-secondary:hover,
.cta-secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero {
    padding: 4em 2em;
  }

  .hero-title {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1em;
  }

  .cta-buttons {
    gap: 0.75em;
  }

  .cta-button {
    padding: 0.75em 1.5em;
    font-size: 0.9em;
  }
}

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

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  color: #6b7a87;
  margin-bottom: 2em;
}

/* ============================================================================
   SERVICES SECTION
   ============================================================================ */

.services {
  padding: 4em 2em;
  background-color: #f8fafb;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2em;
  margin-top: 3em;
}

.service-card {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 3em;
  margin-bottom: 1em;
  display: block;
}

.icon-symbol {
  display: inline-block;
}

.service-title {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.25em;
  line-height: 1.4;
}

.service-description {
  color: #6b7a87;
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .services {
    padding: 3em 2em;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .service-card {
    padding: 1.5em;
  }
}

/* ============================================================================
   PRODUCTS SECTION
   ============================================================================ */

.products {
  padding: 4em 2em;
  background-color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 3em;
}

.product-card {
  background-color: #f8fafb;
  padding: 1.5em;
  border-radius: 8px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-color: #1a8fb3;
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1em;
  border-radius: 4px;
  max-height: 200px;
  object-fit: cover;
}

.product-name {
  margin: 0 0 0.5em 0;
  font-size: 1.25em;
  line-height: 1.3;
  color: #1a3a42;
}

.product-description {
  font-size: 0.9em;
  line-height: 1.5;
  color: #6b7a87;
  margin-bottom: 1em;
}

.product-features {
  list-style: none;
  font-size: 0.9em;
  line-height: 1.7;
  color: #6b7a87;
  margin: 0;
}

.product-features li {
  padding: 0.25em 0 0.25em 1.5em;
  position: relative;
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5fa87f;
  font-weight: bold;
}

@media (max-width: 768px) {
  .products {
    padding: 3em 2em;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .product-card {
    padding: 1em;
  }
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */

.about {
  padding: 4em 2em;
  background-color: #f8fafb;
}

.about-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #6b7a87;
  margin-bottom: 1.5em;
}

.about-subheading {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
  line-height: 1.3;
  color: #1a3a42;
}

.about-list {
  list-style: none;
  font-size: 0.95em;
  line-height: 1.8;
  color: #6b7a87;
}

.about-list li {
  padding: 0.75em 0 0.75em 1.5em;
  position: relative;
}

.about-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1a8fb3;
  font-weight: bold;
}

@media (max-width: 768px) {
  .about {
    padding: 3em 2em;
  }

  .about-text {
    font-size: 0.9em;
  }
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */

.contact {
  padding: 4em 2em;
  background-color: #ffffff;
}

.contact-wrapper {
  margin-top: 3em;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2em;
  align-items: start;
}

.modal-toggle {
  display: none;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2em;
}

.modal-toggle:checked ~ .modal-overlay {
  display: flex;
}

.modal {
  background-color: #ffffff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2em;
  line-height: 1;
  color: #6b7a87;
  cursor: pointer;
  padding: 0;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover,
.modal-close:focus {
  color: #1a3a42;
  text-decoration: none;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 1.5em;
  font-size: 1.5em;
  line-height: 1.3;
}

.contact-form {
  width: 100%;
}

.contact-form .form-group button {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #1a3a42;
  font-size: 0.95em;
}

.form-input,
.form-textarea {
  padding: 0.75em 1em;
  border: 1px solid #e8ecf0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #1a3a42;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #1a8fb3;
  box-shadow: 0 0 0 3px rgba(26, 143, 179, 0.1);
}

.form-textarea {
  resize: vertical;
  font-family: inherit;
}

.form-group button {
  margin-top: 1em;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.contact-method {
  padding: 1.5em;
  background-color: #f8fafb;
  border-radius: 8px;
  border-left: 4px solid #1a8fb3;
}

.contact-heading {
  font-size: 1em;
  margin: 0 0 0.5em 0;
  color: #1a8fb3;
  font-weight: 600;
}

.contact-detail {
  margin: 0;
  color: #6b7a87;
  line-height: 1.7;
}

.contact-detail a {
  color: #1a8fb3;
}

.contact-detail a:hover {
  color: #14697f;
}

@media (max-width: 768px) {
  .contact {
    padding: 3em 2em;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2em;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .contact-method {
    padding: 1em;
  }
}

@media (max-width: 480px) {
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================ */

.scroll-to-top {
  position: absolute;
  bottom: 2em;
  right: 2em;
  width: 3em;
  height: 3em;
  padding: 0;
  background-color: #1a8fb3;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.5em;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(26, 143, 179, 0.3);
  text-decoration: none;
}

.scroll-to-top:hover,
.scroll-to-top:focus {
  background-color: #14697f;
  box-shadow: 0 6px 16px rgba(26, 143, 179, 0.4);
  text-decoration: none;
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 1em;
    right: 1em;
    width: 2.5em;
    height: 2.5em;
    font-size: 1.25em;
  }

  .footer {
    padding: 2em 2em 2em 2em;
  }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background-color: #1a3a42;
  color: #ffffff;
  padding: 2em;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-text {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2em;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 1em;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible for keyboard navigation */
:focus {
  outline: 2px solid #1a8fb3;
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid #1a8fb3;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background-color: #ffffff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }

  .header,
  .footer,
  .cta-buttons {
    display: none;
  }
}
