/* eGroupConnect — site styles */

:root {
  --color-ink: #16181c;
  --color-charcoal: #2a2d33;
  --color-red: #d0272b;
  --color-red-dark: #a81f22;
  --color-cream: #faf8f5;
  --color-white: #ffffff;
  --color-sage: #eef1ec;
  --color-muted: #6b7280;
  --color-border: #e6e3dd;
  --shadow-soft: 0 20px 45px -25px rgba(22, 24, 28, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(22, 24, 28, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--color-charcoal); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-red);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 14px 30px -12px rgba(208, 39, 43, 0.55);
}
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-dark {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-dark:hover { background: var(--color-charcoal); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  display: block;
  height: 34px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--color-red); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,18,21,0.78) 0%, rgba(17,18,21,0.62) 45%, rgba(17,18,21,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 130px 0 110px;
  max-width: 760px;
}

.hero .eyebrow { color: #ff9d93; }
.hero .eyebrow::before { background: #ff9d93; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin-bottom: 0.35em;
}

.hero-lede {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 2em;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 640px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 28px;
}

.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Section shared ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--color-muted); font-size: 1.08rem; }
.section-alt { background: var(--color-sage); }

/* ---------- Purpose / intro with image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.split h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.split .lede { font-size: 1.1rem; color: var(--color-charcoal); }

.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 45px -22px rgba(22,24,28,0.35); }

.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body .num { font-family: var(--font-display); color: var(--color-red); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { color: var(--color-muted); font-size: 0.96rem; margin-bottom: 0; }

/* ---------- Values band ---------- */
.values-band {
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px;
}
.values-band .value h4 { color: var(--color-white); font-size: 1.05rem; margin-bottom: 8px; }
.values-band .value p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }
.values-band .value .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(208,39,43,0.18);
  color: #ff9d93;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Quote / callout ---------- */
.callout {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.callout blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 24px;
}
.callout cite { color: var(--color-muted); font-style: normal; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: flex-start;
}

.contact-intro .eyebrow { color: #ff9d93; }
.contact-intro .eyebrow::before { background: #ff9d93; }
.contact-intro h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--color-white); }
.contact-intro p { color: rgba(255,255,255,0.75); font-size: 1.08rem; }

.contact-meta { margin-top: 40px; display: grid; gap: 22px; }
.contact-meta .meta-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-meta .meta-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.contact-meta .meta-item strong { display: block; font-size: 0.95rem; }
.contact-meta .meta-item span { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

.contact-form-card {
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 24px;
  padding: 52px;
  box-shadow: var(--shadow-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.18rem;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-cream);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #a3a09a; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-red);
  background: var(--color-white);
  box-shadow: 0 0 0 5px rgba(208,39,43,0.12);
}

.field textarea { resize: vertical; min-height: 160px; }

.field-error { color: var(--color-red-dark); font-size: 0.88rem; margin-top: 8px; display: none; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--color-red-dark); }
.field.has-error .field-error { display: block; }

.form-submit {
  width: 100%;
  padding: 20px 28px;
  font-size: 1.15rem;
}

.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 16px; text-align: center; }

.form-status {
  display: none;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  font-weight: 600;
  font-size: 1rem;
}
.form-status.success { display: block; background: #e6f4ea; color: #1e7a3d; }
.form-status.error { display: block; background: #fbe7e7; color: var(--color-red-dark); }

/* ---------- Newsletter strip ---------- */
.newsletter-strip {
  background: var(--color-red);
  color: var(--color-white);
  padding: 54px 0;
}
.newsletter-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-strip h3 { color: var(--color-white); margin-bottom: 6px; font-size: 1.5rem; }
.newsletter-strip p { color: rgba(255,255,255,0.85); margin: 0; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: 1rem;
  min-width: 280px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.75); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h5 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-grid a { color: rgba(255,255,255,0.68); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--color-white); }
.footer-tagline { color: rgba(255,255,255,0.6); max-width: 320px; margin: 0; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}
.footer-bottom-logo {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  border-radius: 10px;
  padding: 8px 16px;
  line-height: 0;
}
.footer-bottom-logo img { display: block; height: 22px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .values-band { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .main-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-cream); border-bottom: 1px solid var(--color-border); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .main-nav.is-open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .site-header .container { position: relative; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 90px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .values-band { grid-template-columns: 1fr; padding: 36px; }
  .contact-form-card { padding: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .newsletter-strip .container { flex-direction: column; align-items: flex-start; }
}
