/*
Theme Name: Astra SiwaLab
Description: SiwaLab child theme — Professional/Academic style for Spatial Intelligence for Watershed Applications
Template: astra
Version: 1.0.0
Author: SiwaLab / Emad Hasan
*/

/* =====================================================
   SIWALAB DESIGN SYSTEM
   Professional/Academic — Water & Spatial Intelligence
   ===================================================== */

:root {
  --sl-navy:       #0d2137;   /* deep navy — authority, depth */
  --sl-blue:       #1a4a72;   /* primary blue */
  --sl-teal:       #0077b6;   /* accent — water */
  --sl-teal-light: #00b4d8;   /* hover / highlight */
  --sl-sky:        #caf0f8;   /* light background tint */
  --sl-white:      #ffffff;
  --sl-gray-light: #f4f6f9;
  --sl-gray:       #e0e6ed;
  --sl-gray-mid:   #8596a8;
  --sl-text:       #1e2d3d;
  --sl-text-light: #4a5e72;
  --sl-accent-gold:#c9a84c;   /* academic gold for highlights */
  --sl-radius:     6px;
  --sl-radius-lg:  12px;
  --sl-shadow:     0 2px 12px rgba(13,33,55,0.10);
  --sl-shadow-lg:  0 8px 32px rgba(13,33,55,0.15);
  --sl-font-head:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --sl-font-body:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --sl-font-mono:  'JetBrains Mono', 'Fira Code', monospace;
}

/* ---- Base Typography ---- */
body {
  font-family: var(--sl-font-body);
  color: var(--sl-text);
  background: var(--sl-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sl-font-head);
  color: var(--sl-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--sl-teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sl-teal-light);
}

p {
  color: var(--sl-text-light);
  margin-bottom: 1.2rem;
}

/* ---- Site Header ---- */
.site-header,
.ast-primary-header-bar {
  background: var(--sl-navy) !important;
  border-bottom: 3px solid var(--sl-teal) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25) !important;
}

.ast-site-identity .site-title a,
.site-title a {
  color: var(--sl-white) !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

/* Site tagline */
.site-description {
  color: var(--sl-teal-light) !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Navigation ---- */
.main-header-menu .menu-item > a,
#ast-hf-menu-1 .menu-item > a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--sl-teal-light) !important;
}

/* ---- Hero Section ---- */
.sl-hero {
  background: linear-gradient(135deg, var(--sl-navy) 0%, var(--sl-blue) 60%, #1a6b9a 100%);
  color: var(--sl-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.sl-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='%230077b6' fill-opacity='0.08'%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");
  opacity: 0.4;
}

.sl-hero h1 {
  color: var(--sl-white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sl-hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.2rem;
  max-width: 620px;
  line-height: 1.65;
}

.sl-hero .sl-tag {
  display: inline-block;
  background: rgba(0,180,216,0.2);
  border: 1px solid var(--sl-teal-light);
  color: var(--sl-teal-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.2rem;
}

/* ---- Buttons ---- */
.sl-btn,
.wp-block-button__link,
.ast-button {
  background: var(--sl-teal) !important;
  color: var(--sl-white) !important;
  border: none !important;
  border-radius: var(--sl-radius) !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: background 0.2s, transform 0.15s !important;
  box-shadow: 0 4px 14px rgba(0,119,182,0.35) !important;
}

.sl-btn:hover,
.wp-block-button__link:hover {
  background: var(--sl-teal-light) !important;
  transform: translateY(-1px) !important;
}

.sl-btn-outline {
  background: transparent !important;
  color: var(--sl-teal) !important;
  border: 2px solid var(--sl-teal) !important;
  box-shadow: none !important;
}

.sl-btn-outline:hover {
  background: var(--sl-teal) !important;
  color: var(--sl-white) !important;
}

/* ---- Section Layout ---- */
.sl-section {
  padding: 80px 0;
}

.sl-section-alt {
  background: var(--sl-gray-light);
  padding: 80px 0;
}

.sl-section-dark {
  background: var(--sl-navy);
  padding: 80px 0;
  color: var(--sl-white);
}

.sl-section-dark h2,
.sl-section-dark h3 {
  color: var(--sl-white);
}

.sl-section-dark p {
  color: rgba(255,255,255,0.75);
}

.sl-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section label (eyebrow text above headings) */
.sl-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-teal);
  margin-bottom: 0.6rem;
}

.sl-section-dark .sl-eyebrow {
  color: var(--sl-teal-light);
}

/* ---- Divider ---- */
.sl-divider {
  width: 48px;
  height: 4px;
  background: var(--sl-teal);
  border-radius: 2px;
  margin: 1rem 0 1.8rem;
}

/* ---- Cards ---- */
.sl-card {
  background: var(--sl-white);
  border: 1px solid var(--sl-gray);
  border-radius: var(--sl-radius-lg);
  padding: 2rem;
  box-shadow: var(--sl-shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.sl-card:hover {
  box-shadow: var(--sl-shadow-lg);
  transform: translateY(-3px);
}

.sl-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,119,182,0.1);
  border-radius: var(--sl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.sl-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

/* ---- Service Cards ---- */
.sl-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ---- Project Cards ---- */
.sl-project-card {
  border-radius: var(--sl-radius-lg);
  overflow: hidden;
  box-shadow: var(--sl-shadow);
  border: 1px solid var(--sl-gray);
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--sl-white);
}

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

.sl-project-card-header {
  background: linear-gradient(135deg, var(--sl-navy), var(--sl-blue));
  padding: 2rem;
  position: relative;
}

.sl-project-card-body {
  padding: 1.75rem;
}

.sl-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  background: rgba(0,180,216,0.15);
  color: var(--sl-teal-light);
  border: 1px solid rgba(0,180,216,0.3);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.sl-badge-gold {
  background: rgba(201,168,76,0.15);
  color: var(--sl-accent-gold);
  border-color: rgba(201,168,76,0.3);
}

.sl-badge-green {
  background: rgba(39,174,96,0.12);
  color: #27ae60;
  border-color: rgba(39,174,96,0.3);
}

/* ---- Stats / Numbers ---- */
.sl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.sl-stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--sl-teal-light);
  line-height: 1;
  display: block;
}

.sl-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* ---- Publication List ---- */
.sl-pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sl-pub-list li {
  border-left: 4px solid var(--sl-teal);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--sl-white);
  border-radius: 0 var(--sl-radius) var(--sl-radius) 0;
  box-shadow: var(--sl-shadow);
}

.sl-pub-list li cite {
  display: block;
  font-size: 0.8rem;
  color: var(--sl-gray-mid);
  font-style: italic;
  margin-top: 0.3rem;
}

/* ---- Skills Tags ---- */
.sl-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sl-skill-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: var(--sl-gray-light);
  color: var(--sl-blue);
  border: 1px solid var(--sl-gray);
}

/* ---- Timeline (Experience) ---- */
.sl-timeline {
  position: relative;
  padding-left: 2rem;
}

.sl-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--sl-gray);
}

.sl-timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.sl-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sl-teal);
  border: 3px solid var(--sl-white);
  box-shadow: 0 0 0 2px var(--sl-teal);
}

.sl-timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sl-teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.sl-timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sl-navy);
  margin-bottom: 0.2rem;
}

.sl-timeline-org {
  font-size: 0.9rem;
  color: var(--sl-teal);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* ---- Contact Form ---- */
.sl-contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sl-contact-wrap { grid-template-columns: 1fr; }
}

.sl-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sl-contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(0,119,182,0.1);
  border-radius: var(--sl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ---- Footer ---- */
.site-footer,
.ast-small-footer {
  background: var(--sl-navy) !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: 3px solid var(--sl-teal) !important;
}

.site-footer a,
.ast-small-footer a {
  color: var(--sl-teal-light) !important;
}

.site-footer a:hover {
  color: var(--sl-white) !important;
}

/* ---- Utilities ---- */
.text-teal   { color: var(--sl-teal) !important; }
.text-navy   { color: var(--sl-navy) !important; }
.text-white  { color: var(--sl-white) !important; }
.bg-navy     { background: var(--sl-navy) !important; }
.bg-teal     { background: var(--sl-teal) !important; }
.bg-light    { background: var(--sl-gray-light) !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sl-hero { padding: 60px 0 50px; }
  .sl-section, .sl-section-alt, .sl-section-dark { padding: 56px 0; }
  .sl-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Astra theme overrides ---- */
.ast-container { max-width: 1140px !important; }

/* Gutenberg block alignment fix */
.wp-block-cover__inner-container,
.wp-block-group__inner-container {
  max-width: 1140px;
}

/* Make Astra's header menu tighter */
.ast-primary-header-bar .ast-container {
  padding-top: 0;
  padding-bottom: 0;
}

.main-header-bar {
  padding: 0 !important;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
