/* =========================================
   MAIN.CSS - COMPLETE REPLACEMENT
   ========================================= */

/* --- Global Utilities --- */
:root {
  --primary: #1C3F78;  /* Deep Engineering Blue */
  --primary-hover: #163260;
  --secondary: #0b1f44;
  --text: #1a1a1a;
  --text-muted: #555555;
  --bg: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif; /* Explicitly set Poppins */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }

/* --- Global Button Styles --- */
a.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  text-decoration: none;
  border-radius: 50px; /* Modern Pill Shape */
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

/* Primary Button */
a.cta.primary, button.cta.primary {
  background-color: var(--primary);
  color: #ffffff !important; /* Force White Text */
  box-shadow: 0 4px 14px rgba(28, 63, 120, 0.3);
}

a.cta.primary:hover, button.cta.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Secondary Button */
a.cta.secondary, button.cta.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

a.cta.secondary:hover, button.cta.secondary:hover {
  background: rgba(28, 63, 120, 0.05);
}

/* --- Layout Sections --- */

/* Principles Section */
.principles-section {
  background: #ffffff;
  padding: 6rem 6vw;
}

.principles-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.principles-left h2 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: #111;
  margin-bottom: 2rem;
}

.principles-lines p {
  font-size: 1.1rem;
  font-weight: 400;
  color: #444;
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid #eef2f6;
}

.principles-right {
  border-left: 1px solid #e1e3e8;
  height: 100%;
  min-height: 200px; /* Ensure visibility */
}

@media(max-width: 900px) {
  .principles-inner { grid-template-columns: 1fr; gap: 3rem; }
  .principles-right { display: none; }
  .principles-section { padding: 4rem 6vw; }
}

/* Editorial Hero */
.editorial-hero {
  position: relative;
  background-image: url("../img/editorial-hero.png");
  background-size: cover;
  background-position: center right;
  padding: 7rem 6vw;
}

.editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4); /* Overlay */
}

.editorial-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.editorial-box {
  background: rgba(255, 255, 255, 0.95);
  max-width: 500px;
  padding: 3.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.editorial-kicker {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.editorial-box h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 1.2rem;
}

.editorial-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 2rem;
}

@media(max-width: 900px) {
  .editorial-hero { padding: 4rem 1.5rem; }
  .editorial-box { padding: 2rem; max-width: 100%; }
}

/* --- Intent/Challenges Section (THE GRID) --- */
.intent-section {
  background: #f8fafc; /* Very light slate bg */
  padding: 7rem 6vw;
}

.intent-inner { max-width: 1200px; margin: 0 auto; }

.intent-inner h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4rem;
  text-align: center;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.intent-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effect Line */
.intent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.intent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}

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

.intent-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.intent-card p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

/* --- Card Section (Flip Card) --- */
.card-section {
  background: #ffffff;
  padding: 6rem 6vw;
}

.card-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.card-text { max-width: 500px; }

.card-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
}

.card-text p {
  font-size: 1.1rem;
  color: #444;
}

.hover-card {
  flex: 1;
  max-width: 500px;
  min-height: 250px;
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
  cursor: default;
}

.card-front {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  transition: opacity 0.3s ease;
}

.card-back {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: flex;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hover-card:hover { background: var(--primary); }
.hover-card:hover .card-front { opacity: 0; }
.hover-card:hover .card-back { opacity: 1; }

@media(max-width: 900px) {
  .card-inner { flex-direction: column; }
  .hover-card { width: 100%; max-width: 100%; }
}

/* --- Insight Section --- */
.insight-section {
  position: relative;
  background-image: url("../img/insight.png");
  background-size: cover;
  background-position: center;
  padding: 7rem 6vw;
}

.insight-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.insight-box {
  background: rgba(255, 255, 255, 0.95);
  max-width: 500px;
  padding: 3.5rem;
  border-radius: var(--radius);
}

.insight-box h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0f172a;
}

.insight-box p {
  font-size: 1.05rem;
  color: #475569;
}

@media(max-width: 900px) {
  .insight-inner { justify-content: center; }
}

/* --- Contact / Bottom CTA --- */
.contact-section {
  background: #f1f5f9;
  padding: 5rem 6vw;
  text-align: center;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-inner h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0f172a;
}

.contact-inner p {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
}
