/* ==========================================================================
   BestowYouth — base styles
   Edit colors/spacing via the CSS variables below to retheme the whole site.
   ========================================================================== */

:root {
  --color-primary: #e2722e;       /* warm orange — buttons, accents */
  --color-primary-dark: #c25c1d;
  --color-secondary: #2f6f6e;     /* deep teal — headings, nav */
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-muted: #f6f3ee;
  --color-border: #e4ded4;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1100px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-secondary);
}

a:hover,
a:focus {
  color: var(--color-primary);
}

h1, h2, h3 {
  color: var(--color-secondary);
  line-height: 1.2;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-secondary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 0;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--color-secondary), #1f4f4e);
  color: #fff;
  padding: 4.5rem 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
}

.hero .tagline {
  font-size: 1.2rem;
  max-width: 42rem;
  color: #eef6f5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus {
  background: var(--color-primary-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover,
.button-secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.25rem 0;
}

.section-muted {
  background: var(--color-bg-muted);
}

.section h2 {
  font-size: 1.75rem;
  margin-top: 0;
}

.page-header {
  padding-bottom: 1.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 46rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards (services, founders) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card-photo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card-meta {
  color: var(--color-primary);
  font-weight: 700;
  margin: -0.5rem 0 0.75rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- Photo gallery ---------- */

.gallery-event {
  margin-top: 2rem;
}

.gallery-event h3 {
  margin-bottom: 0.25rem;
}

.event-date {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-muted);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item a {
  display: block;
  height: 100%;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Lightbox overlay (toggled by /js/main.js) */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-bg-muted);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
}

.testimonial-quote {
  font-size: 1.05rem;
  margin-top: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  font-style: normal;
  margin-top: 0.75rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-secondary);
}

.testimonial-role {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 700;
  margin-top: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.75rem;
  cursor: pointer;
}

.form-note {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ---------- Calls to action ---------- */

.cta-section {
  background: var(--color-bg-muted);
}

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

.cta-inner h2 {
  margin-top: 0;
}

.cta-inner p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--color-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-secondary);
  color: #eef6f5;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-grid p {
  margin: 0.25rem 0;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #cfe3e2;
}

.footer-bottom p {
  margin: 0;
}
