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

/* ── Palette — pulled from logo ── */
:root {
  --navy:        #172338;
  --navy-mid:    #1E3050;
  --navy-light:  #2A4570;
  --red:         #C8282E;
  --red-dark:    #A01E22;
  --blue:        #5BACC8;
  --blue-light:  #7EC4DC;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --light-gray:  #EEF1F5;
  --border:      #D0D8E4;
  --text:        #172338;
  --muted:       #5A6B80;
  --muted-light: #8A9BB0;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  background: var(--off-white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Racing stripe banner ── */
.stripe-banner {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--navy)   0%,   var(--navy)  25%,
    var(--red)    25%,  var(--red)   50%,
    var(--blue)   50%,  var(--blue)  75%,
    var(--navy)   75%,  var(--navy)  100%
  );
}

/* ── Navigation ── */
nav {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(23,35,56,0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--red);
  background: rgba(200,40,46,0.06);
}

.nav-links a.active {
  color: var(--white);
  background: var(--navy);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.2s;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(200,40,46,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(91,172,200,0.16) 0%, transparent 65%);
  pointer-events: none;
}

/* subtle checkered texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(rgba(255,255,255,0.025) 0% 25%, transparent 0% 50%);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero h1 .accent-red  { color: var(--red); }
.hero h1 .accent-blue { color: var(--blue-light); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 4px;
  border: 2px solid var(--red);
  transition: background 0.2s, border-color 0.2s;
}

.hero-cta:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.hero-cta-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.3);
  margin-left: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.hero-cta-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

/* ── Page wrapper ── */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

/* ── Section heading ── */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  border-top: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 480px;
  margin-inline: auto;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 52px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.divider::after {
  background: linear-gradient(90deg, var(--border), transparent);
}
.divider-icon { font-size: 1rem; color: var(--red); flex-shrink: 0; }

/* ── Feature cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: 0 0 6px 6px;
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-top-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(23,35,56,0.1);
  transform: translateY(-3px);
  border-top-color: var(--red);
}

.feature-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }

.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── About blurb on home ── */
.about-home {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  border-radius: 0 6px 6px 0;
  padding: 36px 40px;
}

.about-home h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.3;
}

.about-home p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* ── About page ── */
.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gray);
}

.about-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.about-content p:first-of-type {
  font-size: 1.04rem;
  color: var(--text);
}

/* ── Tutorials ── */
.tutorial-list { display: grid; gap: 16px; }

.tutorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-left-color 0.2s;
}

.tutorial-card:hover {
  box-shadow: 0 4px 20px rgba(23,35,56,0.09);
  border-left-color: var(--red);
}

.tutorial-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--light-gray);
  line-height: 1;
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.tutorial-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.tutorial-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 8px;
  margin-right: 5px;
}

.tag-beginner     { background: rgba(91,172,200,0.12); color: #2878A0; border: 1px solid rgba(91,172,200,0.35); }
.tag-intermediate { background: rgba(200,40,46,0.08);  color: var(--red); border: 1px solid rgba(200,40,46,0.25); }
.tag-advanced     { background: rgba(23,35,56,0.08);   color: var(--navy); border: 1px solid rgba(23,35,56,0.2); }
.tag-default      { background: var(--light-gray); color: var(--muted); border: 1px solid var(--border); }

.section-sub-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
}

.coming-soon-card {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 6px;
  padding: 22px 28px;
  text-align: center;
  color: var(--muted-light);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  box-shadow: 0 8px 28px rgba(23,35,56,0.12);
  transform: translateY(-3px);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 10px;
}

.gallery-img-placeholder span { font-size: 2.4rem; opacity: 0.4; }

.gallery-caption { padding: 14px 16px; }
.gallery-caption h4 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.gallery-caption p  { font-size: 0.8rem; color: var(--muted); }

.upload-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 0 0 6px 6px;
  padding: 22px 28px;
  margin-bottom: 32px;
}

.upload-note p { color: var(--muted); font-size: 0.88rem; }
.upload-note code {
  font-size: 0.82rem;
  background: var(--light-gray);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--navy);
}

/* ── Contact ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 52px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.contact-info p { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--navy-mid);
  margin-top: 18px;
  font-weight: 500;
}
.contact-detail span { font-size: 1.1rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 0 0 8px 8px;
  padding: 34px 30px;
  box-shadow: 0 4px 20px rgba(23,35,56,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 13px;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91,172,200,0.15);
}

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

.form-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.77rem;
  color: var(--muted-light);
  text-align: center;
  margin-top: 10px;
}

/* ── Alerts ── */
.alert {
  padding: 13px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  border-radius: 5px;
  border-left: 4px solid;
}
.alert-success { background: rgba(34,160,34,0.08); border-color: #22a034; color: #145c1a; }
.alert-error   { background: rgba(200,40,46,0.08); border-color: var(--red); color: var(--red-dark); }

/* ── Footer ── */
footer {
  background: var(--navy);
  border-top: 4px solid var(--red);
  padding: 40px 24px 30px;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 3px;
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--blue-light); }

footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,25,0.93);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid var(--navy-light);
  border-radius: 4px;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 2rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.15s;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--navy);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(23,35,56,0.1);
  }
  .nav-links.open a { padding: 13px 24px; border-radius: 0; }
  .nav-toggle { display: flex; }
  nav { position: relative; }

  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .about-home { padding: 26px 22px; }
  .hero { padding: 56px 20px 52px; }
  .page-wrap { padding: 44px 18px 64px; }
  .hero-cta-ghost { margin-left: 0; margin-top: 10px; display: block; text-align: center; }
}
