/* ========== Base Reset ========== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #0f172a;
}

/* Layout helper */

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  border-color: #1d4ed8;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5edf9;
}

.btn-secondary:hover {
  border-color: #e5edf9;
}

.btn-block {
  width: 100%;
}

/* ========== Header / Navigation ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #0b1120 100%);
  color: #e5edf9;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 20% 20%, #facc15, #f97316 40%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 9px;
  color: #0f172a;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  opacity: 0.8;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 0.9rem;
}

.main-nav a {
  color: #e5edf9;
  text-decoration: none;
  opacity: 0.85;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.nav-call a {
  font-weight: 600;
}

.nav-cta {
  font-size: 0.88rem;
}

/* ===== Dropdown ===== */

.has-dropdown {
  position: relative;
}

/* Skjult som standard */
.dropdown {
  position: absolute;
  top: 160%;
  left: 0;
  background: #020617;
  border-radius: 14px;
  padding: 12px 22px;
  min-width: 560px;
  display: none; /* <- VIGTIGT: skjul */
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.6);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

/* Kun synlig ved hover på "Financing Options" */
.has-dropdown:hover .dropdown {
  display: grid;
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  white-space: normal;
}

.dropdown a:hover {
  text-decoration: underline;
}

/* ========== Hero ========== */

.hero {
  position: relative;
  padding: 70px 0 70px;
  color: #f9fafb;
}

.hero-image {
  background-image:
    linear-gradient(115deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.55)),
    url("https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
}

.hero-content-wrap {
  position: relative;
}

.hero-copy {
  max-width: 540px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  line-height: 1.15;
}

.accent {
  color: #38bdf8;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 1rem;
  color: #d1e2ff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-badge {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.73rem;
  color: #e5edf9;
  background: rgba(15, 23, 42, 0.55);
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.hero-bullets li {
  margin-bottom: 4px;
}

.hero-bullets li::before {
  content: "• ";
  color: #38bdf8;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.hero-note-small {
  font-size: 0.78rem;
  color: #cbd5f5;
}

/* ========== Sections ========== */

.section {
  padding: 60px 0;
}

.section.alt {
  background: #ffffff;
}

.section-subtitle {
  margin-top: 4px;
  font-size: 0.92rem;
  color: #6b7280;
}

/* ========== Apply Section ========== */

.apply-section {
  background: #f5f7fb;
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: flex-start;
}

.apply-form-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 26px 26px 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.apply-form-card h2 {
  margin-top: 0;
  margin-bottom: 2px;
}

.apply-info-card {
  background: #020617;
  border-radius: 26px;
  padding: 26px 26px 24px;
  color: #e5edf9;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.apply-info-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.apply-info-sub {
  font-size: 0.96rem;
  color: #cbd5f5;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.9rem;
}

.info-list li {
  margin-bottom: 10px;
}

.info-list strong {
  display: block;
  margin-bottom: 2px;
}

.estimate-box {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.86rem;
}

.estimate-box h4 {
  margin: 0 0 6px;
}

.tiny-note {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* ========== Forms ========== */

.loan-form {
  margin-top: 14px;
}

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

.form-row {
  display: flex;
  gap: 12px;
}

.half {
  flex: 1;
}

label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 4px;
  color: #4b5563;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
  background: #ffffff;
}

.checkbox-group {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #4b5563;
}

.checkbox-label input {
  margin-top: 3px;
}

.checkbox-label a {
  color: #2563eb;
  text-decoration: underline;
}

.captcha-placeholder {
  margin: 10px 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #e5e7eb;
  font-size: 0.8rem;
  color: #4b5563;
  display: inline-flex;
}

/* ========== Three Steps Section ========== */

.three-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.three-steps h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

/* ========== Page Hero (undersider) ========== */

.page-hero {
  background: #0f172a;
  color: #e5edf9;
  padding: 50px 0 40px;
}

.page-hero h1 {
  margin: 0 0 6px;
}

.page-hero p {
  margin: 0;
  color: #cbd5f5;
}

/* ========== Generic Two Column Layout ========== */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
}

.feature-list {
  padding-left: 18px;
  font-size: 0.9rem;
  color: #4b5563;
}

.feature-list li {
  margin-bottom: 6px;
}

/* ========== Footer ========== */

.site-footer {
  background: #020617;
  color: #e5edf9;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 28px 20px 16px;
}

.footer-brand .brand-logo-circle {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.footer-text {
  font-size: 0.84rem;
  color: #cbd5f5;
}

.footer-links a {
  color: #cbd5f5;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-small {
  font-size: 0.76rem;
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  text-align: center;
  padding: 10px 0 14px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* ========== Responsive ========== */

/* Tablets + mobil */
@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 16px;
  }

  .nav-call {
    display: none; /* for meget tekst på små skærme */
  }

  .nav-cta {
    padding: 8px 18px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 50px 0 45px;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .apply-grid,
  .two-col,
  .three-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .apply-info-card {
    margin-top: 8px;
  }
}

/* Mindre mobiler */
@media (max-width: 600px) {
  .nav-container {
    padding: 10px 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.7rem;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown {
    min-width: 260px;
    grid-template-columns: 1fr;
  }
}
