/* ============================================================
   Excelsior BI — Global Styles
   clementvillalard.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --teal:       #2A9D8F;
  --dark:       #0f1112;
  --white:      #ffffff;
  --body-grey:  #a0a0a0;
  --mustard:    #C9973A;
  --border:     #1e2a29;
  --light-bg:   #f7f7f7;
  --text-dark:  #1a1a1a;
  --text-mid:   #555555;
  --text-body:  #666666;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ---- Layout ---- */
.container        { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width:  760px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 18, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--teal); }
.nav-logo-img { height: 48px; width: auto; display: block; }
.nav-logo-icon {
  width: 30px; height: 30px;
  background: var(--border);
  border: 1.5px dashed var(--teal);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 7px; color: var(--teal); letter-spacing: 0; line-height: 1;
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--body-grey);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.nav-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.85; color: var(--white); }

/* ---- Hamburger ---- */
.hamburger-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.hamburger-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--body-grey);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s;
  border-bottom: none;
}
.mobile-menu .mobile-cta:hover { opacity: 0.85; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  line-height: 1;
}
.btn-primary             { background: var(--teal); color: var(--white); }
.btn-primary:hover       { opacity: 0.85; color: var(--white); }
.btn-outline             { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover       { background: var(--teal); color: var(--white); }
.btn-outline-white       { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: var(--white); }

/* ---- Availability badge ---- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--body-grey);
}
.availability-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* ---- Section spacing ---- */
.section    { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--dark);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

/* ---- Typography ---- */
.overline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}
.page-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-title-light {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-subtitle       { font-size: 1.05rem; color: var(--text-body);   max-width: 560px; line-height: 1.7; }
.section-subtitle-light { font-size: 1.05rem; color: #d0d0d0;   max-width: 560px; line-height: 1.7; }
.section-subtitle-light b,
.section-subtitle-light strong { color: #e0e0e0; }

/* ---- Hero layout ---- */
.hero-section {
  background-color: var(--dark);
  background-image: radial-gradient(circle at 50% 45%, rgba(42,157,143,0.18) 0%, rgba(42,157,143,0.04) 45%, transparent 70%),
                    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}
.hero-logo-img {
  height: 280px;
  width: auto;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-social-link {
  color: var(--body-grey);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.hero-social-link:hover { color: var(--white); }

/* ---- Placeholders ---- */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border: 2px dashed var(--teal);
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.photo-placeholder {
  background: rgba(30, 42, 41, 0.6);
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #444;
  font-size: 0.8125rem; text-align: center;
  gap: 0.75rem; padding: 2rem;
}
.photo-placeholder-light {
  background: #eeeeee;
  border: 2px dashed #cccccc;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #999;
  font-size: 0.8125rem; text-align: center;
  gap: 0.75rem; padding: 3rem 2rem;
}
.image-placeholder {
  background: #f3f3f3;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #aaa;
  font-size: 0.8125rem; text-align: center;
  gap: 0.5rem;
  aspect-ratio: 16/9;
  padding: 1rem;
}
.template-thumb {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 0.75rem;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(42,157,143,0.07);
}
.card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.card-dark:hover { border-color: var(--teal); }
.card-icon {
  width: 44px; height: 44px;
  background: rgba(42,157,143,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

/* ---- Portfolio cards ---- */
.portfolio-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.portfolio-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); }
.portfolio-card-body { padding: 1.5rem; }

.template-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.template-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(42,157,143,0.08);
}
.template-card-body { padding: 0.875rem 1rem 1.125rem; }

/* ---- Service section ---- */
.service-section { border-top: 1px solid #e8e8e8; padding-top: 3rem; margin-top: 3rem; }
.service-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: rgba(42,157,143,0.1);
  color: var(--teal);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-neutral {
  display: inline-block;
  background: #f0f0f0; color: #666;
  padding: 0.2rem 0.65rem;
  border-radius: 3px; font-size: 0.75rem; font-weight: 500;
}

/* ---- Checklist ---- */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--text-mid); font-size: 0.9375rem; line-height: 1.5;
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: rgba(42,157,143,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232A9D8F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  margin-top: 2px;
}

/* ---- Blockquote ---- */
.blockquote {
  border-left: 3px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin: 1.25rem 0;
}

/* ---- NDA note ---- */
.nda-note {
  background: rgba(42,157,143,0.05);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  color: var(--text-mid);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
}

/* ---- Dividers ---- */
.divider      { height: 1px; background: #e8e8e8; }
.divider-dark { height: 1px; background: var(--border); }

/* ---- Social proof strip ---- */
.social-strip {
  background: var(--white);
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 3rem 0;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-top: 0.375rem;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

/* ---- Form ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-dark); margin-bottom: 0.375rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.1);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.form-success-icon {
  width: 56px; height: 56px;
  background: rgba(42,157,143,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0;
}
.footer-tagline { font-size: 0.8125rem; color: var(--body-grey); margin: 0; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-link {
  color: #555; text-decoration: none; font-size: 0.875rem; transition: color 0.2s;
}
.footer-link:hover { color: var(--body-grey); }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ---- Inline helpers ---- */
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.text-teal   { color: var(--teal); }
.text-white  { color: var(--white); }
.text-mid    { color: var(--text-mid); }
.text-muted  { color: var(--body-grey); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.w-full      { width: 100%; }

/* ---- Contribution / case-study cards ---- */
.contribution-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.contribution-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.contribution-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.contribution-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}
.contribution-role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
}
.contribution-body {
  display: grid;
  grid-template-columns: 1fr 1.75fr 1.75fr;
}
.contribution-block {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid #f0f0f0;
}
.contribution-block:last-child { border-right: none; }
.contribution-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.contribution-result-block { background: rgba(42,157,143,0.03); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links     { display: none; }
  .hamburger-btn { display: flex; }

  .grid-2, .grid-3     { grid-template-columns: 1fr; }
  .grid-4              { grid-template-columns: repeat(2, 1fr); }
  .form-row            { grid-template-columns: 1fr; }

  .contribution-body { grid-template-columns: 1fr; }
  .contribution-block { border-right: none; border-bottom: 1px solid #f0f0f0; }
  .contribution-block:last-child { border-bottom: none; }

  .hero-section { min-height: auto; padding: 3.5rem 0; }
  .hero-logo-img { height: 70px; }

  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .page-hero  { padding: 3rem 0; }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-nav   { gap: 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
