/* ==========================================================
   StratFree Consulting – Refreshed Brand Stylesheet
   ========================================================== */

/* 1️⃣  Design tokens – colors, fonts, spacing, fluid type */
:root {
  --c-navy: #003366;
  --c-deep-red: #8B0000;
  --c-white: #ffffff;
  --c-gold: #B8860B;
  --c-light-gray: #F5F5F5;

  --font-logo: 'Trajan Pro', Cinzel, serif;
  --font-tagline: Optima, Perpetua, sans-serif;
  --font-nav: 'Open Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  --font-h1: 'Libre Baskerville', Garamond, Georgia, serif;
  --font-h2: 'Libre Baskerville', Garamond, Georgia, serif;
  --font-h3: 'Libre Baskerville', Garamond, Georgia, serif;
  --font-body: 'Open Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif;

  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;

  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 2️⃣  Base styles */
html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-navy);
  background: var(--c-white);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--c-deep-red); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--c-gold); }
h1, h2, h3, h4 { font-family: var(--font-h1); margin-top: 0; }
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 500; }
.section__title { margin-bottom: var(--sp-md); text-align: center; color: var(--c-navy); }
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3️⃣  Header & Navigation */
.header {
  background: var(--c-white);
  border-bottom: 2px solid var(--c-deep-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) 0;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: 48px;
}
.brand-name {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  color: var(--c-navy);
  font-weight: bold;
  letter-spacing: 1px;
}
.nav {
  display: flex;
}
.nav__list {
  display: flex;
  gap: var(--sp-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-nav);
  font-size: 1rem;
  color: var(--c-navy);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav__link.active,
.nav__link:hover,
.nav__link:focus {
  background: var(--c-light-gray);
  color: var(--c-deep-red);
}
.header__cta {
  margin-left: var(--sp-md);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: var(--sp-md);
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--c-deep-red);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 4️⃣  Hero Section */
.hero {
  background: var(--c-light-gray);
  padding: var(--sp-xl) 0 var(--sp-lg) 0;
  display: flex;
  align-items: center;
  min-height: 60vh;
}
.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero__content {
  flex: 1 1 400px;
  max-width: 600px;
}
.hero__title {
  font-size: 2.5rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-md);
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--c-deep-red);
  margin-bottom: var(--sp-lg);
}
.hero__cta {
  font-size: 1.1rem;
}
.hero__media {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* 5️⃣  Section Styles */
.section {
  padding: var(--sp-xl) 0;
  background: var(--c-white);
}
.section:nth-of-type(even) {
  background: var(--c-light-gray);
}

/* 6️⃣  About Section */
.about__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about__highlights {
  list-style: none;
  padding: 0;
  margin: var(--sp-md) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  color: var(--c-navy);
  font-size: 1.05rem;
}

/* 7️⃣  Services Section */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}
.service-card {
  background: var(--c-white);
  border: 2px solid var(--c-deep-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-lg);
  text-align: left;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  border-color: var(--c-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.service-card h3 {
  color: var(--c-deep-red);
  margin-bottom: var(--sp-sm);
}

/* 8️⃣  Frameworks Section */
.frameworks__grid {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-lg);
}
.framework-card {
  background: var(--c-light-gray);
  border-left: 6px solid var(--c-deep-red);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  min-width: 260px;
  max-width: 350px;
  box-shadow: var(--shadow);
}
.framework-card h3 {
  color: var(--c-navy);
  margin-bottom: var(--sp-sm);
}
.framework-card ul {
  padding-left: 1.2em;
  margin: 0;
}

/* 9️⃣  Insights/Articles Section */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}
.insight-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-md);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.insight-card:hover {
  border-color: var(--c-deep-red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.insight-card__media {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--sp-sm);
}
.insight-card__type {
  color: var(--c-deep-red);
  font-size: 0.95rem;
  margin-top: var(--sp-xs);
}
.insights__cta {
  text-align: center;
  margin-top: var(--sp-lg);
}

/* 🔟  Team Section */
.team__grid {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-lg);
}
.team-card {
  background: var(--c-white);
  border: 2px solid var(--c-light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-lg);
  text-align: center;
  min-width: 220px;
  max-width: 300px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  border-color: var(--c-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.team-card__photo {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  margin-bottom: var(--sp-md);
  border: 3px solid var(--c-deep-red);
}
.team-card__bio {
  font-size: 0.98rem;
  color: #444;
  margin-top: var(--sp-sm);
}

/* 1️⃣1️⃣  Testimonials Section */
.testimonials__grid {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-lg);
}
.testimonial {
  background: var(--c-light-gray);
  border-left: 6px solid var(--c-gold);
  border-radius: var(--radius);
  padding: var(--sp-lg);
  max-width: 400px;
  font-style: italic;
  color: var(--c-navy);
  box-shadow: var(--shadow);
}
.testimonial footer {
  margin-top: var(--sp-sm);
  font-size: 0.95rem;
  color: var(--c-deep-red);
  font-style: normal;
}

/* 1️⃣2️⃣  Contact Section */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  max-width: 500px;
  margin: 0 auto var(--sp-lg) auto;
}
.form__row {
  display: flex;
  gap: var(--sp-md);
}
.contact__form input,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--sp-sm);
  border: 1.5px solid var(--c-light-gray);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-navy);
  transition: border-color 0.2s;
  width: 100%;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--c-deep-red);
  outline: none;
}
.contact__form button {
  align-self: flex-end;
}
.contact__info {
  text-align: center;
  color: var(--c-navy);
  font-size: 1.05rem;
}
.contact__info a {
  color: var(--c-deep-red);
  text-decoration: underline;
}

/* 1️⃣3️⃣  Footer */
.footer {
  background: var(--c-navy);
  color: var(--c-white);
  padding: var(--sp-lg) 0 var(--sp-md) 0;
}
.footer__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-logo);
  font-size: 1.2rem;
}
.footer__logo {
  width: 36px;
  height: 36px;
}
.footer__links {
  display: flex;
  gap: var(--sp-md);
}
.footer__links a {
  color: var(--c-white);
  font-size: 1rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--c-gold);
}
.footer__legal {
  font-size: 0.95rem;
  color: #ccc;
}

/* 1️⃣4️⃣  Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn--primary {
  background: var(--c-deep-red);
  color: var(--c-white);
}
.btn--primary:hover,
.btn--primary:focus {
  background: var(--c-gold);
  color: var(--c-navy);
}
.btn--secondary {
  background: var(--c-navy);
  color: var(--c-white);
}
.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--c-deep-red);
  color: var(--c-white);
}

/* 1️⃣5️⃣  Responsive Design */
@media (max-width: 900px) {
  .hero__container,
  .footer__container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-lg);
  }
  .hero__media {
    margin-top: var(--sp-lg);
  }
  .team__grid,
  .testimonials__grid {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 700px) {
  .header__container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-md);
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--c-white);
    box-shadow: var(--shadow);
    flex-direction: column;
    width: 220px;
    max-width: 90vw;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 99;
  }
  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: var(--sp-md);
    padding: var(--sp-md);
  }
  .header__cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .container { width: 98%; }
  .hero__title { font-size: 1.5rem; }
  .section { padding: var(--sp-lg) 0; }
  .services__grid,
  .insights__grid {
    grid-template-columns: 1fr;
  }
}

/* 1️⃣6️⃣  Accessibility & Utility */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
