/* =====================================================
   SimplifAi — styles.css
   Colors: #000 black, #179BAD azure, #fff white,
           #1E1E1E charcoal, #E5E7EB light gray
   Fonts: League Spartan (headings), Inter (body)
===================================================== */

/* --- Reset & Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #000000;
  --azure:   #179BAD;
  --azure-dark: #117a89; /* darker for small-text contrast */
  --white:   #FFFFFF;
  --charcoal:#1E1E1E;
  --gray:    #E5E7EB;
  --gray-mid:#9CA3AF;
  --max-w:   1160px;
  --radius:  8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
}

/* Visually hidden (accessible to screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--azure);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* --- Typography ------------------------------------ */
h1, h2, h3, h4 {
  font-family: 'League Spartan', sans-serif;
  line-height: 1.15;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--azure-dark); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 2px; }

/* --- Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--gray { background: var(--gray); }
.section--azure { background: var(--azure); color: var(--white); }
.section--azure h2,
.section--azure h3 { color: var(--white); }

.text-center { text-align: center; }

/* --- Buttons --------------------------------------- */
.btn {
  display: inline-block;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  line-height: 1.2;
}
.btn:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn--azure {
  background: var(--azure);
  color: var(--white);
  border-color: var(--azure);
}
.btn--azure:hover { background: var(--azure-dark); border-color: var(--azure-dark); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--azure-dark);
  border-color: var(--white);
}
.btn--white:hover { background: var(--gray); border-color: var(--gray); }

.btn--outline {
  background: transparent;
  color: var(--azure-dark);
  border-color: var(--azure);
}
.btn--outline:hover { background: var(--azure); color: var(--white); }

/* --- Navigation ------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav__logo:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 2px; }

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

.nav__links a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--azure-dark); }

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 2px; }
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------ */
.hero {
  padding: 6rem 0 5rem;
  background: var(--white);
}
.hero__eyebrow {
  font-family: 'League Spartan', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azure-dark);
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.5rem; max-width: 780px; }
.hero__sub {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
  color: #374151;
}
.hero__cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.hero__small {
  font-size: .85rem;
  color: var(--gray-mid);
  font-style: italic;
}

/* --- Section intros -------------------------------- */
.section-intro { max-width: 700px; margin: 0 auto 3rem; }
.section-intro--left { margin: 0 0 3rem; }

/* --- What We Do ------------------------------------ */
.what-body { max-width: 720px; }
.what-body p { font-size: 1.05rem; }

/* --- The Shift ------------------------------------- */
.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.shift-card {
  padding: 2rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
}
.shift-card--before {
  background: var(--gray);
  border-left: 4px solid var(--gray-mid);
  color: #4B5563;
}
.shift-card--after {
  background: #E6F6F8;
  border-left: 4px solid var(--azure);
  color: var(--charcoal);
}
.shift-card__label {
  font-family: 'League Spartan', sans-serif;
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.shift-card--before .shift-card__label { color: var(--gray-mid); }
.shift-card--after .shift-card__label { color: var(--azure-dark); }

/* --- Who We Help ----------------------------------- */
.who-body { max-width: 680px; margin-bottom: 1.75rem; }
.text-link {
  font-weight: 600;
  color: var(--azure-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.text-link:hover { text-decoration: underline; }
.text-link::after { content: '→'; }

/* --- Work Examples --------------------------------- */
.bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.bullets li {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--azure);
  font-size: .97rem;
  line-height: 1.5;
}

/* --- Bottom CTA ------------------------------------ */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { font-size: 1.05rem; max-width: 580px; margin: 0 auto 2rem; opacity: .9; }

/* --- Page Header ----------------------------------- */
.page-header {
  padding: 4.5rem 0 3.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
}
.page-header h1 { margin-bottom: 1.25rem; }
.page-header__intro { font-size: 1.1rem; max-width: 680px; color: #374151; }

/* --- Services page --------------------------------- */
.offering {
  padding: 5rem 0;
}
.offering + .offering { border-top: 1px solid var(--gray); }
.offering--primary {}
.offering--secondary { background: var(--white); }

.offering__tagline {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.1rem;
  color: var(--azure-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.step {
  padding: 1.5rem;
  background: var(--gray);
  border-radius: var(--radius);
}
.step__num {
  font-family: 'League Spartan', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--azure);
  line-height: 1;
  margin-bottom: .5rem;
}
.step h3 { font-size: 1rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; margin: 0; }

.takeaways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.takeaway {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  background: #E6F6F8;
  border-radius: var(--radius);
  font-size: .95rem;
}
.takeaway__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--azure);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  margin-top: .1rem;
}

.offering__details {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--gray);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.offering__detail-item { font-size: .93rem; }
.offering__detail-item strong { display: block; font-family: 'League Spartan', sans-serif; }

/* Redesigned details grid (services page training section) */
.offering__details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
.offering__detail-card {
  padding: 1.5rem;
  background: var(--gray);
  border-radius: var(--radius);
  border-top: 3px solid var(--azure);
}
.offering__detail-label {
  font-family: 'League Spartan', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azure-dark);
  margin-bottom: .5rem;
}
.offering__detail-value {
  font-size: .95rem;
  margin: 0;
  line-height: 1.6;
}
.offering__detail-disclaimer {
  display: block;
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--gray-mid);
  font-style: italic;
}

.fit-list {
  list-style: none;
  margin: 1.5rem 0;
}
.fit-list li {
  padding: .6rem 0 .6rem 1.5rem;
  position: relative;
  font-size: .97rem;
  border-bottom: 1px solid var(--gray);
}
.fit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--azure);
  font-weight: 700;
}

.philosophy-note {
  padding: 1.5rem;
  border-left: 4px solid var(--azure);
  background: #E6F6F8;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 1.5rem 0;
  font-size: .97rem;
}

.custom-section {
  padding: 3rem 0;
  background: var(--gray);
  text-align: center;
}
.custom-section h3 { margin-bottom: .75rem; }

/* --- About page ------------------------------------ */
.dynamic-section { padding: 4rem 0; }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
  align-items: start;
}
.team-card { text-align: center; }
.team-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--gray);
  border: 3px solid var(--azure);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'League Spartan', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--azure-dark);
}
.team-card__name {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.team-card__title {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azure-dark);
  margin-bottom: .75rem;
}
.team-card__bio { font-size: .95rem; }
.team-shared {
  text-align: center;
  font-style: italic;
  font-size: .97rem;
  color: #4B5563;
  margin-top: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.value-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 4px solid var(--azure);
  border-radius: var(--radius);
}
.value-card__title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--black);
}
.value-card p { font-size: .93rem; margin: 0; }

/* --- Contact page ---------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.contact-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.contact-card__icon {
  width: 48px;
  height: 48px;
  background: #E6F6F8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.contact-card p { font-size: .93rem; flex: 1; margin-bottom: 1.25rem; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .97rem;
  color: var(--charcoal);
  transition: border-color .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(23,155,173,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.location-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}
.location-note__icon { font-size: 1.5rem; }

/* --- Footer ---------------------------------------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #222;
}
.footer__logo img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.footer__tagline { font-size: .85rem; color: #9CA3AF; }

.footer__nav-title {
  font-family: 'League Spartan', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: .75rem;
}
.footer__nav-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer__nav-links a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.footer__nav-links a:hover { color: var(--azure); }

.footer__social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  color: #D1D5DB;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.footer__social a:hover { background: var(--azure); color: var(--white); }

.footer__email-label {
  font-size: .9rem;
  color: #D1D5DB;
  margin-bottom: 1rem;
}
.footer__form { display: flex; gap: .5rem; }
.footer__form input {
  flex: 1;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  border: 1.5px solid #333;
  background: #111;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
}
.footer__form input:focus { outline: none; border-color: var(--azure); }
.footer__form input::placeholder { color: #555; }
.footer__form button {
  padding: .65rem 1.1rem;
  background: var(--azure);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}
.footer__form button:hover { background: var(--azure-dark); }
.footer__form button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  color: #6B7280;
}
.footer__bottom a { color: #9CA3AF; text-decoration: none; }
.footer__bottom a:hover { color: var(--azure); }

.footer__transparency {
  text-align: center;
  padding: .75rem 0;
  font-size: .75rem;
  color: #444;
  border-top: 1px solid #1a1a1a;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }

  /* Nav */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { font-size: 1.05rem; }

  /* Grids → single column */
  .shift-grid,
  .team-grid,
  .bullets,
  .takeaways,
  .values-grid,
  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }

  .hero__cta-group { align-items: stretch; }
  .btn { text-align: center; }

  .offering__details { flex-direction: column; }
}
