/* ============================================
   The Vermeulen Group — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Primary */
  --navy: #0F1B2D;
  --gold: #C9A84C;
  --deep-gold: #8B7328;
  --white: #FFFFFF;

  /* Surfaces & Backgrounds */
  --bg-primary: #0F1B2D;
  --bg-elevated: #122040;
  --bg-deep: #060D1A;
  --bg-glass: rgba(255,255,255,0.06);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9A9EAB;
  --text-muted: rgba(255,255,255,0.5);

  /* Accent */
  --accent: #C9A84C;
  --accent-light: #D4B96A;
  --accent-glow: rgba(201,168,76,0.15);

  /* Borders */
  --border: #2A3654;
  --border-subtle: rgba(255,255,255,0.06);

  /* Warm highlight */
  --warm: #D97757;

  /* Layout */
  --container: 1200px;
  --section-padding: clamp(60px, 10vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

.text-gold {
  color: var(--gold);
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-right: 12px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0;
}

.logo-the,
.logo-vermeulen,
.logo-group {
  display: block;
}

.logo-the {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.logo-vermeulen {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-group {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: rgba(15, 27, 45, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--white);
}

/* --- Product Highlight Section --- */
.product-highlight {
  background: rgba(6, 13, 26, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.product-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 40% 60% at 80% 50%,
    rgba(201, 168, 76, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* --- Background Canvas --- */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(120px, 15vw, 200px) 0 var(--section-padding);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(201, 168, 76, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Subtle grid pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Floating diagonal accent line */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 5%;
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.2), transparent);
  transform: rotate(25deg);
  pointer-events: none;
}

/* Subtle dot pattern on elevated sections */
section[style*="bg-elevated"]::before,
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(201, 168, 76, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
  position: relative;
  padding: clamp(120px, 15vw, 180px) 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
}

.page-header .hero-glow {
  opacity: 0.6;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-1px);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-nav:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-1px);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 110px;
  font-size: 14px;
  font-weight: 500;
  background: radial-gradient(62% 100% at 48% -12%, rgba(201,168,76,0.3) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--gold);
  margin-bottom: 24px;
}

/* --- Cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

.gradient-border {
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
              linear-gradient(135deg, rgba(201,168,76,0.5), rgba(201,168,76,0.1)) border-box;
  border: 1px solid transparent;
  border-radius: 4px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.glass-card h3 {
  margin-bottom: 12px;
  color: var(--white);
}

.glass-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  position: relative;
  margin-bottom: 16px;
}

.cta-banner p {
  position: relative;
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  position: relative;
}

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 32px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.pricing-card.featured {
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
              linear-gradient(135deg, rgba(201,168,76,0.5), rgba(201,168,76,0.1)) border-box;
  border: 1px solid transparent;
}

.pricing-card h3 {
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
}

/* --- Process Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.step-card {
  counter-increment: step;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 8px;
}

/* --- Summary Table --- */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.summary-table th,
.summary-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.summary-table th {
  font-weight: 600;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-table td {
  color: var(--text-secondary);
}

.summary-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Values Grid (About page) --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.value-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.value-item:last-child {
  border-bottom: none;
}

.value-item h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-info h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.contact-info p {
  margin-bottom: 24px;
  font-size: 15px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 32px;
}

.contact-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--gold);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* --- Animations --- */
/* Elements are visible by default; JS adds .js-animated to hide them,
   then .visible to reveal on scroll. This ensures content is always
   visible if JS fails or IntersectionObserver isn't supported. */
.fade-up.js-animated {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.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;
}

.gold-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0;
}

/* --- Rate Display --- */
.rate-display {
  text-align: center;
  padding: 48px 32px;
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elevated);
  position: relative;
}

.rate-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.rate-amount {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.rate-unit {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}

.rate-note {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive — Tablet (768px+) --- */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .value-item {
    border-bottom: none;
  }
}

/* --- Responsive — Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}

/* --- Responsive — Mobile (below 1024px) --- */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-cta.desktop-only {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* --- Responsive — Small Mobile (below 480px) --- */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .summary-table {
    font-size: 13px;
  }

  .summary-table th,
  .summary-table td {
    padding: 12px 10px;
  }
}
