/* ============================================================
   CAHAYA MULTIDAYA INDONESIA — Global Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #ff7b00;
  --primary-dark: #cc6200;
  --white: #ffffff;
  --light-bg: #f4f8fb;
  --dark-bg: #1a1a2e;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo img { height: 40px; width: auto; display: block; }

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  transition: background 0.2s, color 0.2s;
}
nav a:hover { background: var(--light-bg); color: var(--primary); }
nav a.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a .chevron {
  font-size: 0.7rem; transition: transform 0.2s; line-height: 1;
}
.nav-dropdown:hover > a .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 180px;
  z-index: 200;
}
.dropdown-menu-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 16px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover { background: var(--light-bg); color: var(--primary); }
.dropdown-menu a.active { color: var(--primary); font-weight: 600; background: var(--light-bg); }

/* Language switcher — dropdown */
.lang-switcher {
  position: relative; margin-left: 8px;
}
.lang-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--white); font-size: 0.88rem; font-weight: 600;
  color: var(--text); cursor: pointer; transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lang-toggle .chevron { font-size: 0.7rem; transition: transform 0.2s; }
.lang-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow);
  min-width: 140px; z-index: 200; overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; padding: 10px 16px;
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--light-bg); color: var(--primary); }
.lang-option.active { color: var(--primary); font-weight: 700; background: var(--light-bg); }

/* Mobile lang row */
.mobile-lang-row {
  display: flex; gap: 8px; padding: 6px 14px;
}
.lang-btn {
  flex: 1; text-align: center;
  padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--primary); border-color: var(--primary); }
.lang-btn.active { color: var(--primary); border-color: var(--primary); background: rgba(235,108,26,0.07); }

/* Mobile services toggle button */
.mobile-services-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 500; color: var(--text);
  text-align: left;
}
.mobile-services-toggle:hover { background: var(--light-bg); color: var(--primary); }
.mobile-services-toggle .chevron { font-size: 0.75rem; transition: transform 0.2s; }
.mobile-services-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-sub { display: none; flex-direction: column; }
.mobile-sub.open { display: flex; }

.header-actions {
  display: flex; align-items: center; gap: 8px;
}

.btn-contact {
  padding: 10px 20px;
  background: var(--primary); color: var(--white);
  border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-contact:hover { background: var(--primary-dark); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav a {
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; color: var(--text);
}
.mobile-nav a:hover { background: var(--light-bg); color: var(--primary); }
.mobile-nav .btn-contact { margin: 8px 0 0; display: block; text-align: center; }
.mobile-nav .mobile-sub-label {
  padding: 10px 14px 4px; font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
}
.mobile-nav .mobile-sub a {
  padding: 8px 14px 8px 28px; font-size: 0.95rem; color: var(--text-muted);
}
.mobile-nav .mobile-sub a.active { color: var(--primary); }

/* ----------------------------------------------------------
   PAGE HERO BANNER (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white); padding: 64px 24px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { opacity: 0.85; font-size: 1.05rem; }

/* ----------------------------------------------------------
   SECTION COMMONS
   ---------------------------------------------------------- */
section { padding: 80px 24px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary);
  font-weight: 700; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--text); margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 48px;
}

.section-text { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.95rem;
  margin-top: 24px; transition: gap 0.2s;
}
.link-more:hover { gap: 10px; }

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn-white {
  display: inline-block;
  padding: 14px 28px; background: var(--white);
  color: var(--primary); border-radius: 6px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-outline {
  display: inline-block;
  padding: 14px 28px; background: transparent;
  color: var(--white); border: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px; font-weight: 600; font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-primary {
  display: inline-block;
  padding: 14px 28px; background: var(--primary);
  color: var(--white); border-radius: 6px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ----------------------------------------------------------
   CTA SECTION
   ---------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center; padding: 80px 24px; color: var(--white);
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: 16px;
}
.cta-section p { opacity: 0.85; margin-bottom: 36px; font-size: 1.05rem; }

/* ----------------------------------------------------------
   CARD — shared card base
   ---------------------------------------------------------- */
.card {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.card-body { padding: 20px 24px; }

.card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* Checklist inside card */
.card-body ul { list-style: none; margin-top: 4px; }
.card-body ul li {
  font-size: 0.85rem; color: var(--text-muted);
  padding: 3px 0; display: flex; align-items: flex-start; gap: 7px;
}
.card-body ul li::before {
  content: '✓'; color: var(--primary); font-weight: 700;
  margin-top: 1px; flex-shrink: 0;
}

/* ----------------------------------------------------------
   PARTNERS
   ---------------------------------------------------------- */
.partners-section { padding: 60px 24px; }
.partners-section .section-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.partners-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 40px; color: var(--text); }

.partners-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 32px 48px;
}
.partner-logo { display: flex; align-items: center; justify-content: center; }
.partner-logo img { height: 48px; width: auto; max-width: 140px; object-fit: contain; }

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
footer { background: var(--dark-bg); color: var(--white); padding: 64px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
  flex-wrap: wrap; gap: 12px;
}

/* ----------------------------------------------------------
   SUB-NAV (services sub-menu tabs)
   ---------------------------------------------------------- */
.sub-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.sub-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 0;
}
.sub-nav a {
  padding: 14px 24px;
  font-size: 0.95rem; font-weight: 600; color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sub-nav a:hover { color: var(--primary); }
.sub-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ----------------------------------------------------------
   ALTERNATING ROWS
   ---------------------------------------------------------- */
.alt-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: stretch;
  margin-bottom: 0;
}
.alt-row + .alt-row { border-top: 1px solid var(--border); }
.alt-row-img {
  aspect-ratio: 4/3; object-fit: cover;
  display: block; width: 100%; height: 100%;
}
.alt-row-body {
  padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.alt-row-body .section-label { margin-bottom: 8px; }
.alt-row-body h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: 16px; }
.alt-row-body p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; font-size: 0.95rem; }
.alt-row-body ul { list-style: none; margin-top: 8px; }
.alt-row-body ul li {
  font-size: 0.9rem; color: var(--text-muted);
  padding: 4px 0; display: flex; align-items: flex-start; gap: 8px;
}
.alt-row-body ul li::before {
  content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* Odd rows: image left, text right (default) */
/* Even rows: text left, image right */
.alt-row.reverse { direction: rtl; }
.alt-row.reverse > * { direction: ltr; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  nav, .btn-contact, .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .mobile-nav .btn-contact { display: block; }
  .header-actions { gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .alt-row, .alt-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .alt-row-img { aspect-ratio: 16/9; }
  .alt-row-body { padding: 32px 24px; }
  .sub-nav a { padding: 12px 16px; font-size: 0.875rem; }
}
