/* Foxeffex – styles for the Events, About, Resources, Careers, Contact,
   legal and service pages. Loaded after styles.css and the page-group
   stylesheets. Uses the same variables, buttons, cards and CTA block. */

/* ---------- Shared helpers ---------- */

.section-lead {
  max-width: 720px;
  margin: -24px 0 40px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-block p + p {
  margin-top: 16px;
}

.text-block {
  max-width: 780px;
}

/* ---------- Events: gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(19, 34, 83, 0.25);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(19, 34, 83, 0.06), rgba(69, 148, 74, 0.08));
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.gallery-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-grid.gallery-mosaic {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.gallery-grid.gallery-mosaic .gallery-item:nth-child(n) {
  grid-column: span 4;
  min-width: 0;
}

.gallery-grid.gallery-mosaic .gallery-item:nth-child(1),
.gallery-grid.gallery-mosaic .gallery-item:nth-child(9) {
  grid-column: span 7;
}

.gallery-grid.gallery-mosaic .gallery-item:nth-child(2),
.gallery-grid.gallery-mosaic .gallery-item:nth-child(8) {
  grid-column: span 5;
}

.gallery-grid.gallery-mosaic .gallery-item:nth-child(6) {
  grid-column: span 8;
}

.gallery-grid.gallery-mosaic .gallery-item:nth-child(7) {
  grid-column: span 4;
}

.gallery-mosaic .gallery-item img {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.hero-with-image .hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
}

.hero-with-image .hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.6rem);
}

.hero-page-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.hero-page-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(83, 214, 255, 0.18), rgba(139, 92, 246, 0.15));
  filter: blur(28px);
}

.hero-page-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 18px;
  border-radius: var(--radius);
  object-fit: cover;
}

.service-feature-image {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero-with-image .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-with-image .hero-page-visual {
    width: min(100%, 560px);
  }

  .gallery-grid.gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid.gallery-mosaic .gallery-item:nth-child(n) {
    grid-column: span 1;
  }

  .gallery-grid.gallery-mosaic .gallery-item:nth-child(4n + 1) {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .hero-with-image .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .gallery-grid.gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-grid.gallery-mosaic .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}

/* ---------- About: values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Vision / Mission side by side */
.statement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.statement {
  padding: 36px 34px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.statement h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.statement p {
  color: rgba(255, 255, 255, 0.88);
}

.company-info-title {
  margin-top: 32px;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 24px;
  max-width: 900px;
}

.company-info-grid div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.company-info-grid dt {
  color: var(--navy);
  font-weight: 600;
}

.company-info-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
}

/* ---------- Resources: coming soon ---------- */

.coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.coming-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px dashed rgba(19, 34, 83, 0.28);
  border-radius: var(--radius);
}

.coming-card h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
}

.coming-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-soon {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Careers: audiences ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-grid .card {
  border-top-width: 3px;
  box-shadow: none;
}

.audience-grid .card p {
  color: var(--muted);
}

.note-box {
  max-width: 780px;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field .optional {
  font-weight: 400;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #C9D0DC;
  border-radius: 8px;
}

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

.form-field [aria-invalid="true"] {
  border-color: #B42318;
  box-shadow: 0 0 0 1px #B42318;
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 5px;
  color: #B42318;
  font-size: 0.82rem;
}

.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
}

.consent-label input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 18px;
}

.consent-label a {
  color: var(--navy);
  font-weight: 600;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--green-soft);
  border: 1px solid #A9CDAA;
  color: #245F29;
}

.form-status.is-error {
  display: block;
  background: #FFF1F0;
  border: 1px solid #F0B2AD;
  color: #85251C;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 0;
  border-color: var(--green);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-actions .btn {
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-aside h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--navy);
}

.contact-aside p {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ---------- Legal: draft pages ---------- */

.draft-banner {
  max-width: 820px;
  margin-bottom: 36px;
  padding: 18px 22px;
  background: #FFF8E6;
  border: 1px solid #E8D59A;
  border-left: 4px solid #B7862B;
  border-radius: var(--radius);
  color: #5B4612;
  font-size: 0.95rem;
}

.legal-body {
  max-width: 820px;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
}

.legal-body p,
.legal-body li {
  color: var(--ink);
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal-body li + li {
  margin-top: 6px;
}

.placeholder-text {
  padding: 0 4px;
  background: #FFF3C4;
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Service page: SEO landing ---------- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-grid a {
  display: block;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.related-grid a:hover {
  border-left-color: var(--green);
  color: var(--green-deep);
}

.related-grid span {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .coming-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid,
  .coming-grid,
  .values-grid,
  .audience-grid,
  .related-grid,
  .statement-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }
}
