/* Global styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #050816;
  --bg-light: #0f172a;
  --accent-red: #f97373;
  --accent-yellow: #facc15;
  --accent-blue: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --font-heading: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #1d2538 0, #050816 55%, #020617 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Layout containers */

.wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

header {
  background-color: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(6px);
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-yellow), var(--accent-red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(248, 113, 113, 0.7);
}

.logo-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.logo-text span {
  color: var(--accent-red);
}

/* Navigation */

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-red), var(--accent-yellow));
  transition: width 0.2s ease;
}

nav a:hover {
  color: var(--accent-yellow);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Main content */

main {
  padding: 1.5rem 0 2.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Grid layout for sections */

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Desktop layout (641px and up) */
@media (min-width: 641px) {
  .grid-2 {
    grid-template-columns: 2fr 1.5fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile layout (640px and less) */
@media (max-width: 640px) {
  header .wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Card styles */

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 113, 113, 0.7);
}

.card h2,
.card h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.card small {
  color: var(--text-muted);
}

/* Images */

img.responsive {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
  object-fit: cover;
}

/* Hero section on home */

.hero {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 641px) {
  .hero {
    grid-template-columns: 1.8fr 1.4fr;
    align-items: center;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: var(--accent-red);
}

.hero-caption {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-highlight {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-yellow);
  margin-bottom: 0.75rem;
}

/* Video wrapper */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Info list */

.info-list {
  list-style: none;
  margin-top: 0.75rem;
}

.info-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact info / footer */

.contact-bar {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-bar span {
  display: inline-block;
  margin-right: 0.75rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  color: var(--accent-blue);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--accent-yellow);
}

footer {
  margin-top: 1rem;
  padding: 0.75rem 0;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
}

footer .wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

footer p {
  color: var(--text-muted);
}

/* Map */

.map-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Form styles */

form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 641px) {
  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

label {
  font-size: 0.9rem;
  color: var(--text-main);
}

label .required {
  color: var(--accent-red);
  margin-left: 0.2rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* Required vs optional styling */

input.required-field,
textarea.required-field {
  border-left: 3px solid var(--accent-red);
}

textarea.optional-field {
  border-left: 3px solid rgba(148, 163, 184, 0.7);
}

/* Submit button */

button[type="submit"] {
  width: fit-content;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(to right, var(--accent-red), var(--accent-yellow));
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(248, 113, 113, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(248, 113, 113, 0.65);
  filter: brightness(1.05);
}

/* Small helper text */

.helper-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}



/* Spiral energy pulse for all pages */

.spiral-pulse {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(56, 191, 248, 0.6), transparent 70%);
  opacity: 0;
  animation: pulseEnergy 8s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulseEnergy {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 0.25; transform: scale(1.2); }
  10% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
