/*
Theme Name: RSGMAU
Theme URI: https://lakesgilut.id
Author: LAKESGILUT drg. R. Poerwanto
Author URI: https://lakesgilut.id
Description: Military Dental Hospital Theme — Premium WordPress theme untuk Rumah Sakit Gigi dan Mulut Angkatan Udara. Dirancang dengan konsep Air Force Healthcare yang modern, elegan, dan profesional.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsgmau
Tags: military, healthcare, dental, hospital, dark-mode, mega-menu, responsive
*/

/* ============================================================
   RSGMAU DESIGN SYSTEM — CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:        #0A3D91;
  --color-primary-dark:   #072d6e;
  --color-primary-light:  #1a5abf;
  --color-secondary:      #2F80ED;
  --color-secondary-dark: #1a66cc;
  --color-accent:         #D4AF37;
  --color-accent-dark:    #b8960d;
  --color-success:        #27AE60;
  --color-danger:         #EB5757;
  --color-warning:        #F2994A;

  /* Neutral Colors */
  --color-white:          #FFFFFF;
  --color-bg:             #F5F8FC;
  --color-bg-alt:         #EEF3FA;
  --color-surface:        #FFFFFF;
  --color-border:         #D6E4F7;
  --color-text:           #1A2B4A;
  --color-text-muted:     #5A7090;
  --color-text-light:     #8DA5C2;

  /* Dark Mode Colors */
  --color-dark-bg:        #0B1426;
  --color-dark-surface:   #12213a;
  --color-dark-border:    #1e3558;
  --color-dark-text:      #E8F0FE;
  --color-dark-muted:     #8DA5C2;

  /* Typography */
  --font-heading:         'Poppins', sans-serif;
  --font-body:            'Inter', sans-serif;

  /* Font Sizes */
  --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;
  --text-6xl:   3.75rem;

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,61,145,0.08), 0 1px 2px rgba(10,61,145,0.06);
  --shadow-md:  0 4px 16px rgba(10,61,145,0.10), 0 2px 8px rgba(10,61,145,0.06);
  --shadow-lg:  0 8px 32px rgba(10,61,145,0.14), 0 4px 16px rgba(10,61,145,0.08);
  --shadow-xl:  0 20px 60px rgba(10,61,145,0.18), 0 8px 24px rgba(10,61,145,0.10);
  --shadow-gold: 0 4px 20px rgba(212,175,55,0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max:  1280px;
  --header-height:  80px;
  --topbar-height:  40px;
  --z-topbar:       100;
  --z-header:       200;
  --z-dropdown:     300;
  --z-floating:     400;
  --z-overlay:      500;
  --z-modal:        600;
  --z-loading:      700;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-bg:       var(--color-dark-bg);
  --color-bg-alt:   var(--color-dark-surface);
  --color-surface:  var(--color-dark-surface);
  --color-border:   var(--color-dark-border);
  --color-text:     var(--color-dark-text);
  --color-text-muted: var(--color-dark-muted);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

.section-padding {
  padding: var(--space-20) 0;
}

@media (max-width: 768px) {
  .section-padding { padding: var(--space-12) 0; }
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-title span {
  color: var(--color-primary);
}

[data-theme="dark"] .section-title span {
  color: var(--color-accent);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Decorative line */
.section-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-line::before,
.section-line::after {
  content: '';
  height: 2px;
  width: 60px;
  background: var(--color-border);
}

.section-line-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: rotate(45deg);
}

/* Text Utilities */
.text-primary   { color: var(--color-primary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: var(--color-white); }
.text-center    { text-align: center; }
.text-sm        { font-size: var(--text-sm); }
.text-lg        { font-size: var(--text-lg); }

.font-bold      { font-weight: 700; }
.font-semibold  { font-weight: 600; }
.font-heading   { font-family: var(--font-heading); }

/* Flex & Grid */
.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { display: flex; flex-direction: column; }
.gap-2          { gap: var(--space-2); }
.gap-4          { gap: var(--space-4); }
.gap-6          { gap: var(--space-6); }
.gap-8          { gap: var(--space-8); }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::before { transform: translateX(0); }

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

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

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

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

.btn-accent {
  background: var(--color-accent);
  color: #1A2B4A;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: #1A2B4A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

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

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

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

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

.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-xs); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-body { padding: var(--space-6); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-primary { background: rgba(10,61,145,0.1); color: var(--color-primary); }
.badge-accent  { background: rgba(212,175,55,0.15); color: #8b6914; }
.badge-success { background: rgba(39,174,96,0.1); color: var(--color-success); }
.badge-danger  { background: rgba(235,87,87,0.1); color: var(--color-danger); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,61,145,0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7090' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.pagination a:hover, .pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }

/* ============================================================
   PAGE HERO BANNER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #051f5a 100%);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-height) + var(--topbar-height));
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.accordion-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  gap: var(--space-4);
  transition: background var(--transition-fast);
}

.accordion-header:hover { background: var(--color-bg-alt); }

.accordion-header h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: transform var(--transition-base), background var(--transition-base);
  font-size: 1.25rem;
  font-weight: 300;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.accordion-body {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
}

.accordion-item.active .accordion-body { display: block; }

/* ============================================================
   TABLES
   ============================================================ */
.rsgmau-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
}

.rsgmau-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.rsgmau-table th {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.rsgmau-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.rsgmau-table tr:last-child td { border-bottom: none; }
.rsgmau-table tr:hover td { background: var(--color-bg-alt); }

/* Status badges for jadwal */
.status-praktek { color: var(--color-success); font-weight: 600; }
.status-libur   { color: var(--color-danger); font-weight: 600; }
.status-cuti    { color: var(--color-warning); font-weight: 600; }

/* ============================================================
   TABS
   ============================================================ */
.tabs-nav {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.lightbox-overlay.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1em; display: block; }
.alignwide { width: 100%; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.sticky { /* WordPress sticky posts */ }
.bypostauthor { /* WordPress author post */ }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .topbar, .site-header, .floating-buttons, #back-to-top,
  .cookie-consent, .site-footer { display: none; }
  body { background: white; color: black; }
}
