/* ─────────────────────────────────────────────────────────────────────────────
   industry-template.css — Industry landing page template styles
   Pixel-faithful translation of Figma node 12:1565 (Industry Landing Page)

   TEMPLATE USAGE
   ─────────────────────────────────────────────────────────────────────────────
   To set an industry-specific hero image, add an inline <style> block to
   the <head> of each industry HTML file:

     <style>
       .industry-hero {
         background-image: url('/assets/images/banking-hero.jpg');
       }
     </style>

   This overrides the default gradient defined in .industry-hero below.
   ───────────────────────────────────────────────────────────────────────────── */

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

:root {
  /* Brand */
  --primary:         #076476;
  --primary-dark:    #054e5c;
  --primary-deep:    #004b59;
  /* Text */
  --text-heading:    #0f172a;
  --text-body:       #3f484b;
  --text-secondary:  #64748b;
  --text-muted:      #94a3b8;
  --white:           #ffffff;
  /* Backgrounds */
  --bg-section:      #f5f7f8;
  --bg-card:         #f9fafb;
  --bg-card-border:  #e8ecee;
  --border-nav:      #f3f4f6;
  /* Error / Success */
  --error:           #dc2626;
  --error-bg:        #fef2f2;
  --error-border:    #fecaca;
  --success-text:    #065f46;
  --success-bg:      #ecfdf5;
  --success-border:  #a7f3d0;
  /* Accent */
  --accent-light:    #97def3;
  /* Workshop hero overlay */
  --hero-overlay:    rgba(0, 0, 0, 0.45);
  /* Fonts */
  --font-display:    'Manrope', sans-serif;
  --font-body:       'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.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;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border-nav);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 40px; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

.nav-link--active {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: 8px 32px 16px;
  border-bottom: 1px solid var(--border-nav);
  background: var(--white);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--border-nav);
}

.nav-mobile li:last-child a { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile a[aria-current="page"] { color: var(--primary); font-weight: 700; }

/* ─── INDUSTRY HERO ──────────────────────────────────────────────────────── */
/*
  TEMPLATE: Override background-image per industry page with an inline <style>:
    .industry-hero { background-image: url('/assets/images/your-industry.jpg'); }
*/
.industry-hero {
  position: relative;
  height: 600px;
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0a3d4a 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.industry-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.industry-hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.industry-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 900px;
}

/* ─── FEATURES SECTION ───────────────────────────────────────────────────── */

.features-section {
  background: var(--white);
  padding: 72px 0;
  border-bottom: 1px solid var(--bg-card-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  padding: 40px 36px;
  background: var(--white);
  border-right: 1px solid var(--bg-card-border);
}

.feature-card:last-child {
  border-right: none;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 20px;
}

.feature-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.feature-card-list li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}

.feature-card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ─── WORKSHOP SECTION ───────────────────────────────────────────────────── */

.workshop-section {
  background: var(--primary);
  padding: 80px 0;
}

.workshop-layout {
  display: grid;
  grid-template-columns: 1fr 518px;
  gap: 64px;
  align-items: center;
}

/* Left column ── */

.workshop-content {
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workshop-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.workshop-desc {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.workshop-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workshop-list li {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.workshop-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.1em;
}

/* Right column — Form card ── */

.workshop-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 44px 44px 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.workshop-form-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.2;
}

/* ─── FORM ELEMENTS ───────────────────────────────────────────────────────── */

.workshop-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.field-required {
  color: var(--error);
  margin-left: 2px;
}

.field-input {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-heading);
  background: #f8f9fb;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
}

.field-input::placeholder { color: var(--text-muted); }

.field-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(7, 100, 118, 0.12);
}

.field-input[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 500;
  min-height: 1.2em;
}

/* ─── FORM STATUS ─────────────────────────────────────────────────────────── */

.form-status {
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: 7px;
  line-height: 1.5;
}

.form-status--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.form-status--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error-border);
}

/* ─── REGISTER BUTTON ─────────────────────────────────────────────────────── */

.btn-register {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 16px 24px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}

.btn-register:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-register:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-inner { display: flex; flex-direction: column; gap: 48px; }

.footer-top {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  display: block;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--white);
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
  width: fit-content;
}

.btn-primary:hover { background: var(--accent-light); }

.footer-links {
  display: flex;
  gap: 64px;
  flex: 1;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--white); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .workshop-layout { grid-template-columns: 1fr 440px; gap: 48px; }
}

@media (max-width: 900px) {
  .workshop-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 560px;
    margin: 0 auto;
  }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .industry-hero { height: auto; min-height: 400px; padding: 64px 0; }
  .industry-hero-inner { padding-bottom: 32px; }
  .industry-hero-title { font-size: 2rem; }

  .features-section { padding: 48px 0; }
  .features-grid {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }
  .feature-card {
    border-right: none;
    border-bottom: 1px solid var(--bg-card-border);
  }
  .feature-card:last-child { border-bottom: none; }

  .workshop-section { padding: 56px 0; }
  .workshop-form-card { padding: 32px 28px 36px; }
  .workshop-form-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .industry-hero-title { font-size: 1.75rem; }
  .workshop-form-card { padding: 24px 20px 28px; border-radius: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
