/* SoarPoint — shared brand styles (public pages + admin login) */

:root {
  --orange: #ff6a00;
  --orange-dark: #d95700;
  --black: #0d0b0a;
  --charcoal: #221e1b;
  --charcoal-light: #34302c;
  --cream: #fff6ea;
  --white: #ffffff;
  --success: #1f9d55;
  --error: #c0392b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(13, 11, 10, 0.12);
  --max-width: 720px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px;
}

/* Focus states — always visible, never suppressed */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

/* Top bar with discreet FHG logo */
.topbar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
}

.topbar img {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

/* Discreet FHG logo chip, overlaid on the hero photo */
.topbar-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(13, 11, 10, 0.25);
  display: inline-flex;
  align-items: center;
}

.topbar-overlay img {
  height: 22px;
  width: auto;
  display: block;
}

/* Hero banner (photo background) */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}

.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0.32) 0%, rgba(13, 11, 10, 0.68) 78%, rgba(13, 11, 10, 0.82) 100%);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 56px 20px 40px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--white);
  letter-spacing: -0.02em;
  font-weight: 800;
  animation: fadeInUp 0.7s ease both;
}

.hero .accent {
  color: var(--orange);
}

.hero p {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero .slogan {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero .btn {
  animation: fadeInUp 0.7s ease 0.3s both, pulseGlow 2.6s ease-in-out 1.2s infinite;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35); }
  50% { box-shadow: 0 6px 26px rgba(255, 106, 0, 0.65); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner .hero-bg-img,
  .hero h1, .hero p, .hero .slogan, .hero .btn,
  .reveal {
    animation: none !important;
    transition: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 52px;
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Invitation banner */
.invite-banner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
}

.invite-banner strong {
  color: var(--orange-dark);
}

/* Sections */
.section {
  padding: 32px 0;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--black);
}

.section .lede {
  color: var(--charcoal-light);
  margin: 0 0 18px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills-grid li {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(13, 11, 10, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.skills-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 11, 10, 0.12);
}

/* Scroll-reveal: elements fade/slide in as they enter the viewport (JS toggles .in-view) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.44s; }

.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

/* Campus gallery strip */
.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip img {
  scroll-snap-align: start;
  flex: 0 0 78%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(13, 11, 10, 0.12);
  transition: transform 0.25s ease;
}

.gallery-strip img:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  .gallery-strip {
    overflow: visible;
  }
  .gallery-strip img {
    flex: 1 1 0;
    height: 190px;
  }
  .gallery-strip img:hover {
    transform: translateY(-4px) scale(1.02);
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(34, 30, 27, 0.08);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.steps li:hover::before {
  transform: scale(1.15);
}

/* Form */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

.field {
  margin-bottom: 18px;
}

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

.field .hint {
  font-size: 0.82rem;
  color: var(--charcoal-light);
  margin-top: 4px;
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  border: 2px solid rgba(34, 30, 27, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  min-height: 52px;
  background: var(--cream);
  color: var(--black);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221e1b' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--orange);
  flex: none;
}

.checkbox-field label {
  font-size: 0.92rem;
  color: var(--charcoal-light);
  font-weight: 500;
}

.form-error {
  background: #fdecea;
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.form-success {
  text-align: center;
  padding: 20px 8px;
}

.form-success .icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  display: inline-block;
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}

.form-success h3 {
  margin: 0 0 8px;
  color: var(--black);
}

.form-success p {
  color: var(--charcoal-light);
  margin: 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
}

.footer img {
  height: 22px;
  width: auto;
  margin: 0 auto 8px;
  opacity: 0.85;
}

.footer p {
  font-size: 0.78rem;
  color: var(--charcoal-light);
}

/* Not-found state */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.notfound .card {
  max-width: 420px;
}

.notfound h1 {
  font-size: 1.4rem;
  color: var(--black);
  margin: 0 0 8px;
}

.notfound p {
  color: var(--charcoal-light);
  margin: 0;
}

/* Admin login */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
}

.login-card .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.login-card .brand-row img {
  height: 30px;
  width: auto;
}

.login-card h1 {
  font-size: 1.3rem;
  color: var(--black);
  margin: 0 0 4px;
}

.login-card .sub {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.login-card .field {
  text-align: left;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 360px) {
  .hero { padding-top: 18px; }
  .card { padding: 18px 14px; }
}
