/* ============================================
   PSE — Phuoc Solar Energy
   Design System & Theme Engine
   ============================================ */

/* ---------- CSS Custom Properties (Dark = default) ---------- */
:root {
  /* Brand (constant across themes) */
  --brand: #72BC29;
  --brand-rgb: 114, 188, 41;
  --gold: #F5C42C;
  --gold-rgb: 245, 196, 44;

  /* Dark theme (default) */
  --bg-primary: #081911;
  --bg-surface: #0E2617;
  --bg-elevated: #132E1D;
  --border-color: #194026;
  --border-hover: #246633;
  --text-main: #F2F8F3;
  --text-muted: #85B392;
  --text-faint: #3D6849;
  --nav-bg: rgba(8, 25, 17, 0.92);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  --input-bg: transparent;
  --overlay: rgba(8, 25, 17, 0.85);
  --cta-bg: var(--brand);
  --cta-text: #081911;
  --hero-gradient-start: rgba(8, 25, 17, 0.35);
  --hero-gradient-end: rgba(8, 25, 17, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #F8FAF7;
  --bg-surface: #EFF5EC;
  --bg-elevated: #FFFFFF;
  --border-color: #D4E4CC;
  --border-hover: #72BC29;
  --text-main: #0A1F12;
  --text-muted: #4A7255;
  --text-faint: #8CAA96;
  --nav-bg: rgba(248, 250, 247, 0.92);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  --input-bg: #FFFFFF;
  --overlay: rgba(248, 250, 247, 0.9);
  --cta-bg: var(--brand);
  --cta-text: #FFFFFF;
  --hero-gradient-start: rgba(248, 250, 247, 0.2);
  --hero-gradient-end: rgba(248, 250, 247, 1);
}

/* ---------- Base Reset & Typography ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme transition on all themed elements */
body *, body *::before, body *::after {
  transition: background-color 0.4s ease, color 0.3s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Override transition for elements that need specific timing */
.no-theme-transition,
.no-theme-transition * {
  transition: none !important;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Syne', sans-serif; }
.font-body { font-family: 'DM Sans', sans-serif; }

.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-brand { color: var(--brand); }
.text-gold { color: var(--gold); }

.tracking-wide { letter-spacing: 0.2em; }
.uppercase { text-transform: uppercase; }

/* ---------- Layout ---------- */
.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bg-primary { background-color: var(--bg-primary); }
.bg-surface { background-color: var(--bg-surface); }
.bg-elevated { background-color: var(--bg-elevated); }
.border-themed { border-color: var(--border-color); }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 0;
}

.nav-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

.nav-logo-sub {
  display: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 0.75rem;
}

@media (min-width: 640px) {
  .nav-logo-sub { display: block; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brand);
}

/* Nav Controls (theme + lang + CTA) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  height: 36px;
}

.lang-btn {
  padding: 0 12px;
  height: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.lang-btn.active {
  background: var(--brand);
  color: #081911;
  font-weight: 600;
}

.lang-btn:not(.active):hover {
  color: var(--text-main);
}

/* ---------- Mobile Menu ---------- */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

@media (min-width: 900px) {
  .mobile-toggle { display: none; }
}

.hamburger {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-main);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.4s ease;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--brand);
}

.mobile-menu-controls {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.35s;
}

.mobile-menu.open .mobile-menu-controls {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #081911;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 1.1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--brand-rgb), 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  padding: 1.1rem 2.5rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #081911;
  color: #F2F8F3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 1.5rem 3rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-dark:hover {
  background: #0E2617;
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--hero-gradient-start), var(--hero-gradient-end));
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.05);
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.stat-item p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ---------- Section Styles ---------- */
.section {
  padding: 8rem 0;
}

.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title-lg {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.125rem;
  max-width: 40rem;
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.brand {
  background: rgba(var(--brand-rgb), 0.1);
}

.card-icon.gold {
  background: rgba(var(--gold-rgb), 0.1);
}

.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.875rem;
  margin-bottom: 1rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover h3 {
  transform: translateY(-4px);
}

.card p {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.card-footer .arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-footer .arrow {
  opacity: 1;
}

/* ---------- Project Cards ---------- */
.project-card {
  border: 1px solid var(--border-color);
  padding: 1rem;
  background: var(--bg-surface);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: var(--card-shadow);
}

.project-card .img-wrapper {
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
  position: relative;
}

.project-card .img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 25, 17, 0.2);
  transition: all 0.5s ease;
  z-index: 1;
}

.project-card:hover .img-overlay {
  background: transparent;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card .meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--brand);
}

.testimonial-card .quote-mark {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  color: rgba(var(--brand-rgb), 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card .author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
}

.testimonial-card .author-title {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.testimonial-card .savings {
  display: inline-block;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-top: 0.75rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--brand);
  color: #081911;
  text-align: center;
  padding: 10rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 2rem;
}

.cta-banner p {
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 36rem;
  margin: 0 auto 3rem;
  opacity: 0.8;
}

/* ---------- Contact Form ---------- */
.input-clean {
  background: var(--input-bg);
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 0;
  padding: 1rem 0;
  outline: none;
  transition: border-color 0.4s ease;
  width: 100%;
  font-weight: 300;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.input-clean:focus {
  border-color: var(--brand);
}

.input-clean::placeholder {
  color: var(--text-faint);
}

select.input-clean {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-success {
  text-align: center;
  padding: 5rem 2rem;
}

.form-success .icon {
  width: 4rem;
  height: 4rem;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ---------- Timeline ---------- */
.timeline {
  border-left: 1px solid var(--border-color);
  padding-left: 2.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 1px;
  background: linear-gradient(to bottom, var(--brand), transparent);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-2.5rem - 4px);
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  ring: 4px solid var(--bg-primary);
}

/* ---------- Team Cards ---------- */
.team-card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.team-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Process Steps ---------- */
.process-step {
  position: relative;
}

.process-step .step-number {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- Region Tags ---------- */
.region-tag {
  border: 1px solid var(--border-color);
  padding: 0.625rem 1.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: default;
  display: inline-block;
}

.region-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.region-tag.highlight {
  border-color: rgba(var(--brand-rgb), 0.4);
  color: var(--brand);
}

/* ---------- Filter Buttons ---------- */
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn.active {
  background: var(--brand);
  color: #081911;
  border-color: var(--brand);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

/* ---------- Page Header ---------- */
.page-header {
  padding-top: 12rem;
  padding-bottom: 8rem;
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 48rem;
  line-height: 1.7;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* 12-column for service detail */
.grid-service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .grid-service {
    grid-template-columns: 1fr 2fr;
  }
}

/* Two-col with equal sizing */
.grid-equal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-equal { grid-template-columns: 1fr 1fr; }
}

/* ---------- Image Hover ---------- */
.img-hover-wrapper {
  overflow: hidden;
  position: relative;
}

.img-hover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-hover-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.img-hover-wrapper .gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

/* ---------- Pillar Cards ---------- */
.pillar-card {
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--brand);
}

/* ---------- Director Quote ---------- */
.director-quote {
  border-left: 2px solid var(--brand);
  padding-left: 3rem;
  max-width: 56rem;
}

.director-quote blockquote {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ---------- Utility ---------- */
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-y { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.aspect-video { aspect-ratio: 16/9; }
.rounded-sm { border-radius: 2px; }
.w-full { width: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-auto { margin-top: auto; }

.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

.leading-relaxed { line-height: 1.7; }
.whitespace-nowrap { white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }

/* Check icon */
.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--brand);
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #081911;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(var(--brand-rgb), 0.3);
  color: var(--text-main);
}
