/* ===========================================================
   SDG CONSULTING — design tokens
   =========================================================== */
:root {
  --ink: #080808;
  --paper: #FDFCFA;
  --paper-dim: #F5F2EC;
  --paper-mid: #EAE6DD;
  --navy: #162F58;
  --navy-light: #2F5FA0;
  --navy-glow: rgba(47, 95, 160, 0.12);
  --gold: #C8A96A;
  --gold-dim: rgba(200, 169, 106, 0.18);
  --grey: #8A8A82;
  --grey-line: #DDD9CF;
  --shadow-sm: 0 2px 8px rgba(8,8,8,0.06), 0 1px 2px rgba(8,8,8,0.04);
  --shadow-md: 0 8px 32px rgba(8,8,8,0.10), 0 2px 8px rgba(8,8,8,0.06);
  --shadow-lg: 0 24px 64px rgba(8,8,8,0.14), 0 4px 16px rgba(8,8,8,0.08);

  --font-display: 'Inter', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;

  --container: 1160px;
  --radius: 3px;
  --radius-lg: 6px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--navy); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--navy-light);
  outline-offset: 3px;
}

/* subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===========================================================
   TYPOGRAPHY
   =========================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; font-weight: 700; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

p { color: #3E3E38; line-height: 1.65; }

/* ===========================================================
   LAYOUT helpers
   =========================================================== */
.section { padding: 8rem 0; }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.bracket-frame {
  position: relative;
  padding: 3.5rem clamp(1.8rem, 5vw, 4.5rem);
  max-width: 800px;
}
.bracket-frame::before,
.bracket-frame::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  opacity: 0.7;
}
.bracket-frame::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}
.bracket-frame::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(22, 47, 88, 0.3);
}
.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 47, 88, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(8,8,8,0.25);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(8,8,8,0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-bracket {
  width: 14px;
  height: 20px;
  border: 1.5px solid var(--gold);
  border-right: none;
  border-bottom: none;
  flex-shrink: 0;
  opacity: 0.85;
}
.brand-bracket-light { border-color: var(--gold); opacity: 0.7; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}
.brand-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  color: #4A4A44;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(22, 47, 88, 0.25);
}
.nav-cta:hover { background: var(--navy-light); box-shadow: 0 4px 14px rgba(22, 47, 88, 0.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s var(--ease);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding: 6rem 0 7rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--paper) 0%, var(--paper-dim) 100%);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--navy-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-lede {
  font-size: 1.06rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.72;
  color: #4A4A44;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual — real planogram screenshot */
.hero-visual { display: flex; justify-content: center; }
.hero-laptop {
  width: 100%;
  max-width: 490px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 32px 56px rgba(8, 8, 8, 0.20)) drop-shadow(0 8px 16px rgba(8,8,8,0.1));
  transition: transform 0.6s var(--ease);
}
.hero-laptop:hover { transform: translateY(-4px) rotate(0.4deg); }

/* ===========================================================
   ABOUT / OUTCOMES
   =========================================================== */
.about { background: var(--paper-dim); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}
.about-inner .bracket-frame { max-width: none; padding-left: clamp(1.8rem, 4vw, 3.5rem); }
.outcomes-list { list-style: none; margin-top: 2rem; }
.outcomes-list li {
  display: flex;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--grey-line);
  align-items: baseline;
  transition: background 0.2s;
}
.outcomes-list li:last-child { border-bottom: 1px solid var(--grey-line); }
.outcome-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 2.2rem;
  padding-top: 0.1rem;
}
.outcomes-list li span:last-child { color: #3E3E38; font-size: 0.97rem; }

.about-screenshot {
  background: var(--ink);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-screenshot img {
  width: 100%;
  border-radius: 3px;
  display: block;
}
.about-screenshot figcaption {
  color: #888880;
  font-size: 0.78rem;
  padding: 0.9rem 0.3rem 0.2rem;
  line-height: 1.45;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  border-top: 1.5px solid var(--gold);
  padding-top: 1.8rem;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-3px); }
.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1.4rem;
  filter: grayscale(20%);
  box-shadow: var(--shadow-sm);
  transition: filter 0.3s, box-shadow 0.3s var(--ease);
}
.service-card:hover .service-photo {
  filter: grayscale(0%);
  box-shadow: var(--shadow-md);
}
.service-mark {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}
.service-card h3 { color: var(--ink); }
.service-card p { font-size: 0.95rem; color: #4A4A44; }

/* ===========================================================
   CASE STUDIES
   =========================================================== */
.case-studies { background: var(--paper-dim); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light));
  opacity: 0;
  transition: opacity 0.3s;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--grey-line);
}
.case-card:hover::before { opacity: 1; }
.case-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.case-figure {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-label {
  font-size: 0.83rem;
  color: var(--grey);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.case-body { font-size: 0.95rem; line-height: 1.68; color: #4A4A44; }

/* ===========================================================
   WORKSHOPS
   =========================================================== */
.workshops {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.workshops::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.workshops .eyebrow { color: var(--gold); }
.workshops h2 { color: var(--paper); }
.workshops p { color: #B8B8AE; }
.workshops-copy { color: #9A9A92; margin-bottom: 2rem; line-height: 1.72; }
.workshops .bracket-frame::before,
.workshops .bracket-frame::after { border-color: var(--gold); opacity: 0.5; }
.workshops .btn-ghost { border-color: rgba(253,252,250,0.3); color: var(--paper); }
.workshops .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.workshops-inner { display: flex; justify-content: center; }

/* ===========================================================
   TESTIMONIALS SLIDER
   =========================================================== */
.testimonial-slider {
  position: relative;
  margin-top: 3rem;
  max-width: 820px;
}

.testimonial {
  display: none;
  padding-left: 2.2rem;
  border-left: 2px solid var(--gold);
  animation: fadeSlide 0.5s var(--ease) both;
}
.testimonial.active { display: block; }

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

.testimonial p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.72;
  color: #3E3E38;
  margin-bottom: 1rem;
}
.testimonial footer {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
}
.testimonial-logo {
  height: 26px;
  width: auto;
  max-width: 90px;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.45;
  mix-blend-mode: multiply;
  transition: opacity 0.25s var(--ease);
}
.testimonial-logo:hover { opacity: 0.75; }
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; }
.testimonial-role { font-size: 0.82rem; color: var(--grey); }

/* Controls row */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.slider-btn svg { width: 14px; height: 14px; }

/* Dot indicators */
.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.slider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grey-line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.slider-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* Counter */
.slider-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.08em;
  margin-left: auto;
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}
.contact-details a {
  font-weight: 600;
  font-size: 1rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  color: var(--navy);
}
.contact-details a:hover { border-color: var(--gold); color: var(--ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--paper-dim);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-line);
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A5A54;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-glow);
  outline: none;
}
.form-note {
  font-size: 0.86rem;
  color: var(--navy-light);
  min-height: 1.2em;
  line-height: 1.5;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
  border-top: 1px solid rgba(200,169,106,0.15);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  opacity: 0.8;
}
.footer-copy { font-size: 0.78rem; color: #5A5A52; margin-top: 1.2rem; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-inner .bracket-frame { padding-left: clamp(1.8rem, 5vw, 4rem); }
  .services-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cases-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--grey-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2.5rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-md);
  }
  .section { padding: 5rem 0; }
  .bracket-frame { padding: 2.2rem 1.4rem; }
  .contact-form { padding: 1.8rem; }
}
