/* ========================================
   Meryantra Technologies LLC
   Main Stylesheet
   ======================================== */

/* CSS Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Brand Color Palette */
  --navy-deep: #0a1628;
  --navy: #0f1e3a;
  --navy-light: #1a2d52;
  --accent-gold: #c9a961;
  --accent-gold-bright: #e5c378;
  --accent-teal: #2d9db8;
  --accent-teal-bright: #4fb8d1;

  --white: #ffffff;
  --off-white: #f7f5f0;
  --light-gray: #e5e5e5;
  --medium-gray: #888888;
  --dark-gray: #2a2a2a;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-light: #888888;

  /* Typography */
  --font-heading: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 8rem;

  /* Max widths */
  --max-width: 1280px;
  --narrow-width: 800px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-smooth: 300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(10, 22, 40, 0.08);
  --shadow-medium: 0 8px 32px rgba(10, 22, 40, 0.12);
  --shadow-strong: 0 16px 48px rgba(10, 22, 40, 0.18);
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

a { color: var(--accent-teal); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-teal-bright); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.narrow-container {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  transition: all var(--transition-smooth);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--navy-deep);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-gold-bright);
}

.nav-links a.active {
  color: var(--accent-gold-bright);
}

.nav-cta {
  background: var(--accent-gold);
  color: var(--navy-deep) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-xxl) 0 var(--space-xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(45, 157, 184, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding: 0.375rem 1rem;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 999px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-weight: 800;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  max-width: 700px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  color: var(--navy-deep);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

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

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.8); }

.section-light {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-dark .section-eyebrow {
  color: var(--accent-gold-bright);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

/* ========================================
   PILLARS / SERVICE CARDS
   ======================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.pillar-card {
  background: var(--white);
  padding: var(--space-md);
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-gold);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--accent-gold-bright);
  font-size: 1.5rem;
  font-weight: 800;
}

.pillar-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.pillar-card ul {
  list-style: none;
  margin-top: var(--space-sm);
}

.pillar-card ul li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pillar-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: 700;
}

/* ========================================
   STATS / NUMBERS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-dark .stat-label { color: rgba(255, 255, 255, 0.7); }

/* ========================================
   TWO COLUMN LAYOUT
   ======================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

.two-col-content h3 {
  margin-bottom: var(--space-sm);
}

.feature-list {
  list-style: none;
  margin-top: var(--space-md);
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-bright));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.feature-list li strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.feature-list li span {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Visual element for two-col */
.visual-panel {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  padding: var(--space-lg);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-strong);
}

.visual-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.visual-panel h4 { color: var(--accent-gold-bright); margin-bottom: var(--space-sm); }
.visual-panel p { color: rgba(255, 255, 255, 0.85); }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  position: relative;
  font-size: 1.125rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-col h4 {
  color: var(--accent-gold-bright);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent-gold-bright);
}

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

.footer-disclaimer {
  max-width: 900px;
  margin: var(--space-sm) auto 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ========================================
   PAGE-SPECIFIC: SUB-HERO
   ======================================== */
.sub-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: calc(var(--space-xxl) + var(--space-md)) 0 var(--space-xl);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.sub-hero h1 {
  color: var(--white);
  position: relative;
}

.sub-hero p {
  max-width: 800px;
  margin: var(--space-sm) auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  position: relative;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.925rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 157, 184, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }

  .hero { padding: var(--space-xl) 0 var(--space-lg); min-height: 80vh; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }

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

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.5rem; }

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

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
