/* ============================================================
   Fredericks Strategy & Analytics — Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green-900: #1A3D2B;
  --green-700: #2D6A4F;
  --green-500: #40916C;
  --green-100: #D8EDDF;
  --neutral-900: #111827;
  --neutral-700: #374151;
  --neutral-500: #6B7280;
  --neutral-300: #D1D5DB;
  --neutral-100: #F3F4F6;
  --white:       #FFFFFF;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);

  --transition: 0.2s ease;
  --max-width:  1100px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--neutral-900);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; }

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

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--alt { background: var(--neutral-100); }
.section--dark {
  background: var(--green-900);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  color: var(--neutral-500);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.section--dark .section-header p { color: var(--green-100); }

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

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn--primary:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn--outline:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--green-900);
}
.btn--lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--neutral-300);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav__logo span { color: var(--green-700); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--green-700);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav__links a:hover,
.nav__links a.active { color: var(--green-700); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links .btn--primary,
.nav__links .btn--primary:hover { color: var(--white); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-900);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--neutral-300);
  gap: 1rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-700);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--neutral-100);
}
.nav__mobile a:hover { color: var(--green-700); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 9rem 0 5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--white) 100%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero__title { margin-bottom: 1.25rem; }
.hero__title em {
  font-style: normal;
  color: var(--green-700);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--neutral-500);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.hero__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.hero__card + .hero__card {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: -1;
  opacity: 0.5;
  background: var(--green-100);
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-100);
}
.hero__stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero__stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.hero__stat-label { font-size: 0.8rem; color: var(--neutral-500); }
.hero__stat-value { font-size: 0.95rem; font-weight: 600; color: var(--neutral-900); }

/* ── Value Props ─────────────────────────────────────────────── */
.value-props { padding: 4rem 0; background: var(--green-900); }
.value-props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.value-prop {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.value-prop__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.value-prop__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.value-prop__text { font-size: 0.9rem; color: var(--green-100); line-height: 1.6; }

/* ── Service Cards ───────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.service-card__rate {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--neutral-500); }
.service-card__example {
  font-size: 0.82rem;
  color: var(--neutral-500);
  font-style: italic;
  border-left: 3px solid var(--green-100);
  padding-left: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ── Full Services Page ──────────────────────────────────────── */
.service-full {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.service-full:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
}
.service-full__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.service-full__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.service-full h3 { font-size: 1.25rem; margin: 0; }
.service-full__body p { color: var(--neutral-500); margin-bottom: 1rem; }
.service-full__best-for {
  font-size: 0.88rem;
  color: var(--neutral-700);
  margin-bottom: 0.75rem;
}
.service-full__best-for strong { color: var(--neutral-900); }
.service-full__example {
  font-size: 0.88rem;
  color: var(--neutral-500);
  font-style: italic;
  border-left: 3px solid var(--green-100);
  padding-left: 0.85rem;
}

/* ── About ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo-placeholder {
  aspect-ratio: 3/4;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--neutral-500);
  font-size: 0.9rem;
  border: 2px dashed var(--neutral-300);
  max-width: 360px;
}
.about-photo-placeholder svg { opacity: 0.3; }
.credential {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-100);
}
.credential:last-child { border-bottom: none; }
.credential__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-700);
  flex-shrink: 0;
  margin-top: 6px;
}
.credential__label { font-size: 0.8rem; color: var(--neutral-500); }
.credential__value { font-size: 0.95rem; font-weight: 500; color: var(--neutral-900); }

/* ── Portfolio ───────────────────────────────────────────────── */
.portfolio-placeholder {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--neutral-300);
  max-width: 600px;
  margin: 0 auto;
}
.portfolio-placeholder h3 { margin-bottom: 1rem; }
.portfolio-placeholder p { color: var(--neutral-500); margin-bottom: 2rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item__label { font-size: 0.8rem; color: var(--neutral-500); }
.contact-item__value { font-size: 0.95rem; font-weight: 500; color: var(--neutral-900); }

/* ── Form ────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neutral-700);
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--neutral-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
textarea { resize: vertical; min-height: 140px; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--green-900);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer__tagline { font-size: 0.9rem; color: var(--green-100); line-height: 1.6; }
.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-100);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--green-100); font-size: 1.1rem; margin-top: 0.75rem; max-width: 560px; }

/* ── Fade-in animation ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green  { color: var(--green-700); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner        { grid-template-columns: 1fr; }
  .hero::before       { display: none; }
  .hero__visual       { display: none; }
  .hero               { padding: 8rem 0 4rem; }
  .grid-2             { grid-template-columns: 1fr; }
  .grid-3             { grid-template-columns: 1fr; }
  .grid-4             { grid-template-columns: repeat(2, 1fr); }
  .value-props__grid  { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid         { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__inner      { grid-template-columns: 1fr; gap: 2rem; }
  .service-full       { grid-template-columns: 1fr; }
  .service-full__icon { display: none; }
  .form-row           { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links         { display: none; }
  .nav__hamburger     { display: flex; }
  .grid-4             { grid-template-columns: 1fr; }
  .hero h1            { font-size: 2rem; }
  .section            { padding: 3.5rem 0; }
  .hero__actions      { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__bottom     { flex-direction: column; gap: 0.5rem; text-align: center; }
}
