/* ============================================================
   Enopoly — Modern Redesign
   Palette: #ffffff | #1f3a5f (navy) | #1d9bf0 (blue) | #1e1e24 (ink)
   ============================================================ */

:root {
  --white: #ffffff;
  --navy: #1f3a5f;
  --blue: #1d9bf0;
  --ink: #1e1e24;
  --ink-2: #26262e;              /* card surface on ink */
  --navy-2: #24446e;             /* card surface on navy */
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.10);
  --radius: 16px;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Sora', 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.accent { color: var(--blue); }

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

.narrow { max-width: 800px; }

.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.35);
}
.btn-primary:hover {
  background: #3fabf4;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(29, 155, 240, 0.45);
}

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.4rem; font-size: 0.9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 36, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
}

.brand-mark { width: 38px; height: 36px; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(31, 58, 95, 0.85), transparent 65%),
    radial-gradient(800px 500px at 10% 110%, rgba(29, 155, 240, 0.16), transparent 60%),
    linear-gradient(rgba(30, 30, 36, 0.86), rgba(30, 30, 36, 0.96)),
    url('assets/hero-home.jpg') center / cover no-repeat,
    var(--ink);
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(29, 155, 240, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 1.5rem auto 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}

.stats li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--blue);
}

.stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-navy {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(29, 155, 240, 0.10), transparent 60%),
    var(--navy);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.section-head h2 { margin-bottom: 1rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 155, 240, 0.45);
}

.card-icon {
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(29, 155, 240, 0.12);
  border: 1px solid rgba(29, 155, 240, 0.25);
  margin-bottom: 1.1rem;
}

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.step {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(29, 155, 240, 0.4);
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.split h2 { margin-bottom: 1rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.split p { color: var(--text-muted); margin-bottom: 1rem; }

/* ---------- Comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.compare-col {
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}

.compare-col h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.compare-col ul { list-style: none; }

.compare-col li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.compare-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.compare-bad {
  background: rgba(30, 30, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.compare-bad li::before { content: "✕"; color: #e5687a; }

.compare-good {
  background: rgba(29, 155, 240, 0.10);
  border: 1px solid rgba(29, 155, 240, 0.45);
  box-shadow: 0 10px 40px rgba(29, 155, 240, 0.12);
}
.compare-good li::before { content: "✓"; color: var(--blue); }
.compare-good li { color: var(--text); }

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-2);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.faq-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(29, 155, 240, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ink), #17171c);
}

.cta-band h2 { max-width: 760px; margin: 0 auto 1rem; }
.cta-band .lede { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #17171c;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  max-width: 420px;
}

.footer-grid .brand { margin-bottom: 1rem; }

.footer-grid nav a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.footer-grid nav a:hover { color: var(--blue); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(31, 58, 95, 0.9), transparent 65%),
    radial-gradient(700px 400px at 5% 120%, rgba(29, 155, 240, 0.14), transparent 60%),
    var(--ink);
  text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.page-hero .lede { margin-top: 1.25rem; }

.page-hero--photo {
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(31, 58, 95, 0.75), transparent 65%),
    linear-gradient(rgba(30, 30, 36, 0.86), rgba(30, 30, 36, 0.96)),
    url('assets/hero-about.jpg') center / cover no-repeat,
    var(--ink);
}

/* ---------- Press / logo strip ---------- */
.press-strip {
  padding: 2.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.press-strip p {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.press-strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.2rem 3rem;
}

.press-strip img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.press-strip img:hover { opacity: 1; }

/* ---------- Photo grids ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-2);
}

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.25s ease;
}

.photo-grid figure:hover img { transform: scale(1.03); }

.photo-grid figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- Inline section image ---------- */
.split-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
  width: 100%;
}

.cta-visual {
  max-width: 300px;
  margin: 0 auto 1.5rem;
}

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  max-width: 760px;
  margin-inline: auto;
}

.check-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.check-list li strong { color: var(--white); }

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-weight: 800;
  color: var(--blue);
}

/* ---------- Contact cards ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.contact-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 155, 240, 0.45);
}

.contact-card .card-icon { margin-inline: auto; }

.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card p { color: var(--text-muted); }
.contact-card a { font-weight: 600; }

/* ---------- Map ---------- */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(35%) contrast(95%);
}

/* ---------- Application form ---------- */
.app-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }

.form-intro { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.6rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-field label span { color: var(--blue); }

.form-field .hint { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  background: #17171c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 155, 240, 0.18);
}

.form-field select { appearance: auto; }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.checks input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

.form-submit { margin-top: 1.6rem; text-align: center; }

.form-submit .btn { width: 100%; border: 0; cursor: pointer; }

.form-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.9rem;
}

/* ---------- Application sidebar ---------- */
.side-card {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin-bottom: 1.4rem;
}

.side-card h3 { margin-bottom: 1.1rem; }

.side-steps { list-style: none; }

.side-steps li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.side-steps .step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.side-steps h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.side-steps p { font-size: 0.87rem; color: var(--text-muted); }

.side-card .contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin-inline: auto; }

.legal-content .effective {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.9rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.7rem;
  color: var(--blue);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.96rem;
}

.legal-content ul, .legal-content ol {
  color: var(--text-muted);
  margin: 0 0 1.2rem 1.4rem;
  font-size: 0.96rem;
}

.legal-content li { margin-bottom: 0.5rem; }

.legal-content strong { color: var(--text); }

.legal-content a { word-break: break-word; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.88rem;
}

.legal-content th, .legal-content td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--text-muted);
  vertical-align: top;
}

.legal-content th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(30, 30, 36, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 4%;
  }

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

  .site-nav a:not(.btn) {
    padding: 0.9rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn { margin: 1rem 0; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 980px) and (min-width: 561px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .app-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .card-grid, .steps, .video-grid, .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .press-strip img { height: 22px; }
  .press-strip ul { gap: 1.4rem 2rem; }
}
