/* ================================================
   KHALIL CENTER ROCKFORD
   Signifier (serif headings) + Matter (sans body)
   Maroon #A01441 · Black #1A1A1A · Warm gray #F5F3F0
   ================================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/Signifier-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/Signifier-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/Signifier-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Signifier';
  src: url('../fonts/Signifier-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Matter';
  src: url('../fonts/MatterLight.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('../fonts/MatterRegular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('../fonts/MatterMedium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('../fonts/MatterSemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('../fonts/MatterBold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

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

:root {
  --maroon: #A01441;
  --maroon-dark: #7E1035;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --warm-gray: #F5F3F0;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5550;
  --text-muted: #8A8580;

  --font-serif: 'Signifier', Georgia, serif;
  --font-sans: 'Matter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --section-padding: 100px;
  --container-max: 1280px;
  --container-padding: 24px;

  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Scroll Reveal (minimal) --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  z-index: 1000;
}
.nav.scrolled {
  box-shadow: 0 1px 8px rgba(26, 26, 26, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  gap: 24px;
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 4px 0;
  white-space: nowrap;
}
.nav__links a:hover {
  color: var(--maroon);
}
.nav__links a.active {
  color: var(--maroon);
}
.nav__links a.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--maroon);
  color: var(--white) !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__cta:hover {
  background: var(--maroon-dark);
  color: var(--white) !important;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: 1002;
}
.nav__dropdown:hover .nav__dropdown-menu {
  display: block;
}
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  border-top: 1px solid rgba(26,26,26,0.08);
  border-left: 1px solid rgba(26,26,26,0.08);
}
.nav__dropdown-group {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(26,26,26,0.12);
  border: 1px solid rgba(26,26,26,0.06);
  padding: 12px 8px;
  min-width: 220px;
}
.nav__dropdown-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 8px;
}
a.nav__dropdown-item {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
a.nav__dropdown-item:hover,
a.nav__dropdown-item.active {
  background: rgba(160,20,65,0.05);
  color: var(--maroon);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.3);
  z-index: 998;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--maroon);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--maroon-dark);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(26, 26, 26, 0.2);
}
.btn--outline:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn--white {
  background: var(--white);
  color: var(--maroon);
}
.btn--white:hover {
  background: var(--warm-gray);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ================================================
   SECTION COMMON
   ================================================ */
.section {
  padding: var(--section-padding) 0;
}
.section--gray {
  background: var(--warm-gray);
}
.section--maroon {
  background: var(--maroon);
  color: var(--white);
}
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 16px;
}
.section--maroon .section__eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section--maroon .section__title {
  color: var(--white);
}
.section__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}
.section--maroon .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   PAGE HERO (used on subpages)
   ================================================ */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: var(--warm-gray);
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
}
.page-hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================================
   SERVICES CARDS
   ================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(160, 20, 65, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--maroon);
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================
   RESOURCES CARDS
   ================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.07);
  border-radius: 12px;
  padding: 32px;
}
.resource-card:hover {
  border-color: rgba(160, 20, 65, 0.2);
}
.resource-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
}
.resource-card__icon svg {
  width: 22px;
  height: 22px;
}
.resource-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
}
.resource-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================
   TEAM CARDS
   ================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.team-card__info {
  padding: 28px 28px 32px;
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.2;
}
.team-card__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--maroon);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.team-card__bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.team-card__bio.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card__toggle {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
}
.team-card__toggle:hover {
  opacity: 0.7;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 24px;
  line-height: 1.2;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(160, 20, 65, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
}
.contact-item__icon svg {
  width: 18px;
  height: 18px;
}
.contact-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.contact-item__value {
  font-size: 16px;
  color: var(--text-primary);
}
.contact-item__value a {
  color: var(--text-primary);
  text-decoration: none;
}
.contact-item__value a:hover {
  color: var(--maroon);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(160, 20, 65, 0.08);
}
.form-group textarea {
  min-height: 130px;
}
.contact-form .btn {
  align-self: flex-start;
}

/* ================================================
   SUPPORT BANNER (reusable on any page)
   ================================================ */
.support-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.support-banner__content {
  position: relative;
  z-index: 1;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__logo {
  height: 36px;
  width: auto;
  opacity: 0.9;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
}
.footer__col ul li {
  margin-bottom: 12px;
}
.footer__col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.footer__col ul a:hover {
  color: var(--white);
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}
.footer__social a:hover {
  background: var(--maroon);
  color: var(--white);
}
.footer__social svg {
  width: 16px;
  height: 16px;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.footer__bottom a:hover {
  color: var(--white);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-padding: 20px;
    --nav-height: 64px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav__links.open {
    transform: translateX(0);
  }
  .nav__links li {
    width: 100%;
    border-bottom: 1px solid rgba(26,26,26,0.06);
  }
  .nav__links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }
  .nav__cta {
    margin-top: 16px;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__mobile-overlay.active {
    display: block;
  }
  .nav__dropdown-menu {
    display: none;
    position: static;
    transform: none;
    padding-top: 0;
    box-shadow: none;
  }
  .nav__dropdown.open .nav__dropdown-menu {
    display: block;
  }
  .nav__dropdown-menu::before {
    display: none;
  }
  .nav__dropdown-group {
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    background: transparent;
  }
  .nav__dropdown-label {
    padding: 8px 0 4px;
  }
  a.nav__dropdown-item {
    padding: 8px 0;
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .page-hero {
    padding: calc(var(--nav-height) + 40px) 0 40px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section__title {
    font-size: clamp(28px, 7vw, 36px);
  }
}
