/* =============================================
   Principles Analytics — Main Stylesheet
   ============================================= */

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

:root {
  --navy:        #0c1445;
  --navy-mid:    #152066;
  --accent:      #2563eb;
  --accent-light:#dbeafe;
  --light:       #f8fafc;
  --white:       #ffffff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --max-w:       1100px;
  --nav-h:       72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── UTILITIES ──────────────────────────────── */

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

.section { padding: 5rem 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── BUTTON ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #1d4ed8; }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ─── NAV ────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.nav__logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.nav__logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
  margin-bottom: 2px;
  flex-shrink: 0;
  align-self: flex-end;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav__links a:hover,
.nav__links a.active { color: var(--white); }

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

/* mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ─── HERO ───────────────────────────────────── */

.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, #0c1445 0%, #152066 55%, #1a2a7a 100%);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: #93b4fd;
}

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── SERVICES ───────────────────────────────── */

.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card__body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CLIENTS ────────────────────────────────── */

.clients { background: var(--light); }

.clients__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  margin-top: 3rem;
}

.clients__logo {
  height: auto;
  width: auto;
  /* filter: grayscale(100%) opacity(0.5); */
  transition: filter 0.2s;
}

/* .clients__logo:hover {
  filter: grayscale(0%) opacity(1);
} */

/* Per-logo size overrides — adjust max-height / max-width to taste */
.clients__logo--letemps    { max-height: 70px;  max-width: 200px; }
.clients__logo--strategysa { max-height: 70px;  max-width: 200px; }
.clients__logo--opifex     { max-height: 70px;  max-width: 200px; }
.clients__logo--netzero    { max-height: 90px;  max-width: 220px; }
.clients__logo--scala      { max-height: 90px;  max-width: 220px; }

/* ─── CTA BAND ───────────────────────────────── */

.cta-band {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.cta-band__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ─── ABOUT PAGE ─────────────────────────────── */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  color: var(--white);
}

.page-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero__sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.0625rem;
  max-width: 520px;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body__text p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-body__text p:last-child { margin-bottom: 0; }

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.expertise-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--light);
  border-radius: 8px;
  padding: 1.75rem;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.value-card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── CONTACT PAGE ───────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info__icon {
  width: 42px; height: 42px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-info__value {
  font-size: 0.9375rem;
  color: var(--text);
}

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

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── FOOTER ─────────────────────────────────── */

.footer {
  background: var(--navy);
  padding: 2.75rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__toggle { display: flex; }

  .about-body  { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row    { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer__links { gap: 1.25rem; }
}
