/* Tarmac Tapes — shared stylesheet */
/* Brand colours defined as CSS custom properties */

:root {
  --color-bg:         #111111;
  --color-surface:    #1A1A1A;
  --color-border:     #2A2A2A;
  --color-accent:     #F5C518;
  --color-text:       #FFFFFF;
  --color-text-muted: #888888;

  --font-heading: 'Bebas Neue', sans-serif;
  --font-body:    system-ui, -apple-system, sans-serif;

  --max-width: 800px;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
}

/* ── Reset ────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ─────────────────────────────────────────────── */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

li {
  margin-bottom: 0.35rem;
}

/* ── Layout ───────────────────────────────────────────── */

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

/* ── Surface / Card ───────────────────────────────────── */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: var(--spacing-md);
}

/* ── Accent rule ──────────────────────────────────────── */

.accent-rule {
  border: none;
  border-top: 3px solid var(--color-accent);
  margin: var(--spacing-lg) 0;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: var(--spacing-md) 0;
  text-align: center;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* ── Utilities ────────────────────────────────────────── */

.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════════════
   TASK 4 — Public site (index.html)
   ════════════════════════════════════════════════════════ */

/* ── Section layout ────────────────────────────────────── */

.section {
  padding: var(--spacing-lg) 0;
}

.section--dark {
  background-color: var(--color-surface);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.container--wide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--center {
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
  background-image: url('/assets/images/tt_hero_banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* Tarmac texture + dark overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(0,0,0,0.06) 1px, transparent 1px),
    radial-gradient(circle at 45% 80%, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,17,17,0.60) 0%, rgba(17,17,17,0.82) 100%);
  background-size: 5px 5px, 7px 7px, 3px 3px, 100% 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.hero__logo {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--color-text);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 0;
}

.hero__divider {
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.hero__scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-accent);
  font-size: 1.75rem;
  text-decoration: none;
  animation: hero-bounce 2s ease-in-out infinite;
}

.hero__scroll-arrow:hover {
  text-decoration: none;
  opacity: 0.8;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Latest video ──────────────────────────────────────── */

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Platform cards ────────────────────────────────────── */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-md);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.platform-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--color-text);
}

.platform-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
}

.platform-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-url {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── About ─────────────────────────────────────────────── */

.about-layout {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.about-content {
  flex: 1;
}

.about-avatar {
  flex-shrink: 0;
}

.about-avatar__img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  display: block;
}

/* ── Support / Ko-fi ───────────────────────────────────── */

.support-copy {
  max-width: 480px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-text-muted);
}

.btn--large {
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
}

/* ── Contact form ──────────────────────────────────────── */

.contact-form {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.form-input {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.form-success {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  color: var(--color-text);
}

/* ── Footer — main site overrides ─────────────────────── */

.site-footer--main {
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-sep {
  color: var(--color-border);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: 0.85rem;
}

.footer-social a {
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.footer-social a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Responsive breakpoints ────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    /* background-attachment: fixed causes rendering issues on iOS Safari */
    background-attachment: scroll;
  }

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

  .about-layout {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}
