/* ========================================
   DESIGN SYSTEM — Premium Consulting
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #1B2A4A;
  --navy-deep: #0F1A2E;
  --navy-light: #2A3F6A;
  --gold: #C9A84C;
  --gold-hover: #B8953D;
  --gold-light: #D4BA6A;
  --charcoal: #2D2D2D;
  --body-text: #4A4A4A;
  --slate: #6B7B8D;
  --ivory: #F7F6F1;
  --warm-white: #FAFAF7;
  --light-border: #E8E4DC;
  --white: #FFFFFF;
  --black: #0A0A0A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --max-width: 1240px;
  --section-pad: clamp(80px, 10vw, 140px);
  --header-height: 90px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

p { font-size: 1.05rem; line-height: 1.8; color: var(--body-text); max-width: 680px; }
.text-center p { margin-left: auto; margin-right: auto; }

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--slate);
  line-height: 1.6;
  max-width: 620px;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
.section { padding: var(--section-pad) 0; }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
  letter-spacing: 0.1em;
}
.btn-ghost:hover { border-bottom-color: var(--gold); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--ivory); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }

.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 48px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(15, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  height: 72px;
}

.site-header.light-header { }
.site-header.light-header.scrolled { background: rgba(255,255,255,0.97); }
.site-header.light-header.scrolled .nav-link { color: var(--navy); }
.site-header.light-header.scrolled .logo { color: var(--navy); }

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta {
  font-size: 0.75rem;
  padding: 12px 24px;
  margin-left: 12px;
}

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all 0.3s; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(42, 63, 106, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(15, 26, 46, 0.8) 0%, transparent 60%);
  z-index: 1;
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: 
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  padding-top: var(--header-height);
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .subtitle { color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.hero .label { margin-bottom: 24px; }

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid { opacity: 0.03; }
.page-hero .hero-bg::before {
  background: 
    radial-gradient(ellipse at 30% 60%, rgba(42, 63, 106, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .subtitle { color: rgba(255,255,255,0.55); }
.page-hero .label { margin-bottom: 20px; }
.page-hero .hero-line { margin-bottom: 24px; }
.page-hero .breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-bottom: 32px; }
.page-hero .breadcrumb a { color: var(--gold); }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--light-border);
  padding: 40px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(27,42,74,0.08); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: 12px; }
.card h4 { margin-bottom: 8px; color: var(--navy); }
.card p { font-size: 0.95rem; color: var(--slate); }
.card .card-icon { font-size: 2rem; margin-bottom: 20px; color: var(--gold); }
.card .card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  right: 24px;
}

/* --- Dark sections --- */
.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-dark .label { color: var(--gold); }

/* --- Ivory sections --- */
.section-ivory { background: var(--ivory); }

/* --- Stats / Metrics --- */
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number .accent { color: var(--gold); }
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.stat-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto;
  opacity: 0.4;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.4); max-width: 300px; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { margin-left: 24px; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--white); }

/* --- Animations / Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Dividers --- */
.gold-line { width: 60px; height: 2px; background: var(--gold); margin: 20px 0; }
.gold-line-center { width: 60px; height: 2px; background: var(--gold); margin: 20px auto; }

/* --- Pill tags --- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 4px 14px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* --- Testimonial --- */
.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  position: relative;
  padding: 0 40px;
}
.testimonial blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -30px;
  left: -10px;
  line-height: 1;
}
.testimonial cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.05em;
}

/* --- Form --- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Methodology Timeline --- */
.timeline { position: relative; padding-left: 60px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--light-border));
}
.timeline-step { position: relative; padding-bottom: 48px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .step-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--white);
  z-index: 1;
}
.section-ivory .timeline-step .step-marker { background: var(--ivory); }
.timeline-step h4 { margin-bottom: 8px; }
.timeline-step p { font-size: 0.95rem; }

/* --- Industry / Service Tiles --- */
.tile {
  padding: 48px 32px;
  border: 1px solid var(--light-border);
  text-align: center;
  transition: all 0.5s var(--ease-out);
  background: var(--white);
}
.tile:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(27,42,74,0.06); }
.tile-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-icon svg { width: 36px; height: 36px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.tile h4 { margin-bottom: 10px; }
.tile p { font-size: 0.9rem; color: var(--slate); margin: 0 auto; }

/* --- Article cards --- */
.article-card { border: 1px solid var(--light-border); background: var(--white); transition: all 0.5s var(--ease-out); overflow: hidden; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(27,42,74,0.06); }
.article-card .card-img {
  height: 200px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.article-card .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
  opacity: 0.9;
}
.article-card .card-body { padding: 28px; }
.article-card .card-date { font-size: 0.75rem; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.article-card h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.article-card p { font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .main-nav { 
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { font-size: 1rem; color: var(--white); }
  .header-cta { display: none; }
  
  .hero { min-height: 90vh; }
  
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
}
