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

:root {
  /* Modern, Premium Color Palette */
  --primary-blue: #0f172a;
  /* Slate 900 */
  --primary-blue-light: #1e293b;
  /* Slate 800 */
  --accent-blue: #2563eb;
  /* Blue 600 */
  --primary-green: #059669;
  /* Emerald 600 */
  --primary-green-light: #10b981;
  /* Emerald 500 */
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  /* Slate 50 */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #64748b;
  /* Slate 500 */
  --border: #e2e8f0;
  /* Slate 200 */
  --focus-ring: rgba(37, 99, 235, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #f1f5f9 100%);

  /* Spacing & Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 25px 35px -5px rgba(0, 0, 0, 0.08), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface-alt);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary-blue);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

p,
ul {
  margin-bottom: var(--space-3);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

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

.section-title {
  margin-bottom: var(--space-5);
  font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-green);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 99px;
}

/* Header & Navigation (Glassmorphism) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.header-row {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand img {
  border-radius: 0;
}

.brand-link {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--accent-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.primary-nav {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
}

.primary-nav.open {
  display: flex;
}

.primary-nav a {
  color: var(--text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
}

.primary-nav a.active,
.primary-nav a:hover {
  color: var(--primary-blue);
  background: var(--surface-alt);
}

/* Hero Section */
.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05), transparent 40%);
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary-blue);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.hero-card ul {
  list-style: none;
}

.hero-card ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

/* Buttons */
.action-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

/* Cards & Grids */
.card-grid {
  display: grid;
  gap: var(--space-4);
}

.card-grid.two-col {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Team Section */
.team-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

.team-card {
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.team-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo-wrap {
  transform: scale(1.05);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.team-card .role {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

/* CEO Specific */
.ceo-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.ceo-photo-wrap {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 8px rgb(50, 100, 50), var(--shadow-lg);
  background: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ceo-photo {
  width: 95%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.ceo-photo-wrap:hover .ceo-photo {
  transform: scale(1.08) translateY(-5px);
}

/* CTA Section */
.cta-panel {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: white;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.cta-panel .btn {
  background: white;
  color: var(--primary-blue);
}

.cta-panel .btn:hover {
  background: var(--surface-alt);
}

/* Footer */
.site-footer {
  background: var(--primary-blue);
  color: white;
  padding-top: var(--space-3);
  padding-bottom: var(--space-1);
  margin-top: var(--space-4);
}

.site-footer h2,
.site-footer h3 {
  color: white;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--primary-green-light);
}

.footer-meta {
  margin-top: var(--space-1);
  padding-top: var(--space-1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Utility Layouts for Subpages */
.about-preview-grid {
  display: grid;
  gap: var(--space-4);
}

.stats-grid {
  display: grid;
  gap: var(--space-3);
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.stat-card h2 {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 0;
}

/* Forms */
.contact-layout {
  display: grid;
  gap: var(--space-5);
}

.contact-form {
  display: grid;
  gap: var(--space-3);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--surface);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}

/* Desktop Media Queries */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    gap: var(--space-2);
  }

  .primary-nav a {
    color: var(--text-main);
  }

  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ceo-grid {
    grid-template-columns: 300px 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .about-preview-grid,
  .contact-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .cta-panel {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
}

/* Mobile Optimizations */
@media (max-width: 425px) {
  :root {
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .brand-link {
    font-size: 1.1rem;
  }

  .footer-grid {
    gap: var(--space-3);
  }

  .btn {
    padding: 0.8rem 1.5rem;
  }
}