/* ============================================================
   ArcWorks Welding Academy — landing page styles
   Theme: dark industrial steel + molten-orange accent
   ============================================================ */

:root {
  --ink: #14181d;
  --ink-2: #1d232b;
  --steel: #2a323d;
  --paper: #f6f4f0;
  --text: #2b2f36;
  --text-light: #c8cdd4;
  --muted: #6b7280;
  --accent: #ff6b1a;
  --accent-hot: #ffa24d;
  --radius: 10px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section { padding: 5rem 0; }

.section-lede {
  max-width: 56ch;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hot); color: var(--ink); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-hot); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
/* Photo: welder with sparks by Christopher Burns on Unsplash (free license).
   The gradient overlay doubles as the fallback if the image fails to load. */
.hero {
  background:
    linear-gradient(rgba(15, 18, 22, 0.78), rgba(15, 18, 22, 0.88)),
    var(--ink-2)
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1800&q=70")
    center / cover no-repeat;
  color: #fff;
  padding: 7rem 0 5rem;
}

.hero-inner { max-width: 760px; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(255, 107, 26, 0.45);
}

.lede {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 2rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-hot);
}
.hero-stats span { font-size: 0.85rem; color: var(--text-light); }

/* ---------- Course cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.course-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4e1db;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(20, 24, 29, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 24, 29, 0.12);
}
.course-card.featured { border: 2px solid var(--accent); }

.badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.course-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.course-icon svg { width: 100%; height: 100%; }

.course-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.course-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }

.course-meta {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.course-meta li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.course-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
}

.course-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------- Dark sections ---------- */
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .section-lede,
.section-dark p { color: var(--text-light); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.feature h3 {
  font-size: 1.05rem;
  color: var(--accent-hot);
  margin-bottom: 0.5rem;
}
.feature p { font-size: 0.95rem; }

/* Photo strip — backgrounds degrade to dark steel panels if blocked.
   Photos via Unsplash (free license), hot-linked through Unsplash's
   /photos/{id}/download endpoint:
   1. "Welder working with sparks flying in workshop"
   2. "Welders working on a piece of metal with sparks"
   3. "A welder works, sparks fly against the sunset" */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.photo {
  height: 220px;
  border-radius: var(--radius);
  background-color: var(--steel);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.photo-1 { background-image: url("https://unsplash.com/photos/LnOOWZk5cE8/download?force=true&w=900"); }
.photo-2 { background-image: url("https://unsplash.com/photos/EvLFiUYJAvg/download?force=true&w=900"); }
.photo-3 { background-image: url("https://unsplash.com/photos/jcm9Qo8O7kw/download?force=true&w=900"); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

/* Photo: welder at work via Unsplash (free license); steel panel fallback. */
.about-photo {
  min-height: 440px;
  border-radius: var(--radius);
  background:
    var(--steel)
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=900&q=70")
    center / cover no-repeat;
  box-shadow: 12px 12px 0 var(--accent);
}

.cred-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
}
.cred-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.cred-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.about-copy p { margin-bottom: 1rem; color: var(--text); }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.quote-grid blockquote {
  background: var(--ink-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.quote-grid p { font-size: 1rem; margin-bottom: 1rem; }
.quote-grid footer {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-hot);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--accent) 0%, #d9480f 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-inner h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.contact-details {
  list-style: none;
  margin-top: 1.5rem;
}
.contact-details li { margin-bottom: 0.6rem; }
.contact-details a { color: var(--accent); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid #e4e1db;
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 2px 8px rgba(20, 24, 29, 0.05);
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d6d2cb;
  border-radius: 6px;
  background: var(--paper);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-status { font-size: 0.9rem; color: #15803d; font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--text-light); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 320px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 0.9rem 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav .btn { border-radius: 0; text-align: left; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 5rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
}
