@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  /* Brand Colors */
  --primary-color: #064e3b; /* Emerald 900 */
  --primary-light: #10b981; /* Emerald 500 */
  --primary-dark: #022c22;
  --secondary-color: #d97706; /* Amber 600 */
  --secondary-light: #f59e0b; /* Amber 500 */
  
  /* Neutral Colors */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);
  
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  line-height: 1.2;
}

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

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

/* Base Layout */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
  color: white;
}

.main-content {
  margin-top: 70px; /* offset for fixed navbar */
  min-height: calc(100vh - 70px - 100px); /* rough calc for footer */
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 4px solid var(--secondary-color);
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(2, 44, 34, 0.9) 0%, rgba(6, 78, 59, 0.8) 100%), var(--hero-bg, var(--primary-dark));
  background-size: cover;
  background-position: center;
  color: white;
  padding: 10rem 2rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-w: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero h1 span {
  color: var(--secondary-light);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Exco Grid */
.section-title {
  text-align: center;
  margin: 4rem 0 2rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
}

.exco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.exco-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid var(--primary-light);
  position: relative;
  overflow: hidden;
}

.exco-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.exco-image-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-full);
  padding: 4px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
}

.exco-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 4px solid white;
}

.exco-icon {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 4px solid white;
}

.exco-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.exco-card .position {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.exco-card .phone {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
}

.exco-card:hover .phone {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
}

/* Forms */
.form-container {
  max-width: 800px;
  margin: 4rem auto;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

.form-header h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.form-body {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2.5rem; }
  .nav-links { display: none; } /* Simplified mobile */
}

/* Alerts & Messages */
.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #34d399;
}

/* ID Lookup Card */
.id-card {
  max-width: 500px;
  margin: 3rem auto;
  background: linear-gradient(135deg, white, var(--bg-color));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.id-card-header {
  background: var(--primary-color);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.id-card-body {
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

.id-photo {
  width: 120px;
  height: 120px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  object-fit: cover;
}

.id-details h3 {
  margin-bottom: 0.25rem;
}

.id-details p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.id-number {
  margin-top: 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}
