/* ============================================
   THE AGENCY — AI-Powered Workforce Optimization
   Clean, modern, professional static site CSS
   No frameworks. Pure craftsmanship.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,300&family=Manrope:wght@400;600&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  /* BOOM Standard Colors */
  --carbon: #0F0F0F;
  --bone: #F5F0E8;
  --amber: #E8820C;
  --white: #FFFFFF;
  --mid-gray: #6B7280;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Legacy support (mapped to BOOM) */
  --primary: var(--carbon);
  --primary-light: #1a1a1a;
  --accent: var(--amber);
  --accent-hover: #d96200;
  --accent-light: var(--amber);
  --cta: var(--amber);
  --cta-hover: #d96200;
  --text: var(--carbon);
  --text-light: var(--mid-gray);
  --text-on-dark: var(--bone);
  --off-white: var(--bone);
  --border: #e5e7eb;
  --gradient-start: var(--carbon);
  --gradient-end: #2a2a2a;
  --success: #10b981;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.18);
  --radius: 0px;
  --radius-lg: 0px;
  --max-width: 1400px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

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

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

img {
  max-width: 100%;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--primary);
}

/* Display/Hero - Cormorant Garamond 300 italic - BOOM edition */
h1 {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* Headlines - Cormorant Garamond 600 */
h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, var(--white) 0%, rgba(248, 246, 243, 0.8) 100%);
}

.section-dark {
  background-color: var(--carbon);
  background-image: url('assets/images/why-us-bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--text-on-dark);
}

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

.text-center {
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 130, 12, 0.1);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-light);
}

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

.nav-links a {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 0px;
}

.nav-cta {
  background: var(--cta) !important;
  color: var(--primary) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--cta-hover) !important;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 0px;
}

/* --- Hero - BOOM EDITION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('assets/catalyst-hero-ember.png') center / cover no-repeat;
  background-color: var(--carbon);
  overflow: hidden;
  padding-top: 72px;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(232,130,12,0.15), rgba(15, 15, 15, 0.5));
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,130,12,0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
  padding-right: 5vw;
  animation: heroSlideIn 0.9s ease-out 0.1s both;
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--amber);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-on-dark);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
  color: var(--accent-light);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero-stat p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--cta);
  color: var(--primary);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(232,130,12,0.45);
}

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  box-shadow: 0 20px 60px rgba(232,130,12,0.2);
  transform: translateY(-8px);
  border-color: rgba(232,130,12,0.3);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

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

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: 60% 1fr;
    gap: 3rem;
    align-items: start;
  }

  .cards-grid > :nth-child(n+2) {
    grid-column: 2;
  }

  .cards-grid > :first-child {
    grid-row: 1 / span 3;
  }
}

/* --- Phase Cards (Services) --- */
.phase-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

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

.phase-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.phase-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.phase-card p {
  margin-bottom: 1.25rem;
}

.phase-features {
  list-style: none;
  padding: 0;
}

.phase-features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.phase-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Phase progression timeline */
.phases-timeline {
  display: grid;
  gap: 2rem;
}

.phases-timeline .phase-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

/* --- Section Headers --- */
.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header .label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
}

/* --- Values Grid (About) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-item {
  padding: 1.5rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  transition: all var(--transition);
}

.team-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.team-card h4 {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.team-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

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

.contact-info {
  padding: 2.5rem;
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-info-item p {
  color: var(--text-on-dark);
  margin-bottom: 0;
}

.contact-info-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.5);
}

.cta-banner .btn-outline:hover {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 4rem 0 2rem;
}

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

.footer-brand p {
  color: var(--text-on-dark);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Page Headers (inner pages) --- */
.page-header {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.90) 0%, rgba(10,22,40,0.72) 100%),
    url('assets/images/city-grid.png') center / cover no-repeat;
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232,130,12,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-on-dark);
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-stats {
    gap: 2rem;
  }

  .phases-timeline .phase-card {
    grid-template-columns: 1fr;
  }
}

/* --- Service detail layouts --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-reverse .card {
  order: -1;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-reverse .card {
    order: 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

/* --- SVG Icons --- */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-svg svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon .icon-svg svg {
  width: 28px;
  height: 28px;
}

.contact-info-item .icon-svg svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-light);
}

.icon-lg .icon-svg svg,
.icon-lg svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .card, .phase-card {
    padding: 1.5rem;
  }
}
