/* ============================================
   MWest · Design System
   Premium Technical Advisory · Denmark
   ============================================ */

/* Variables */
:root {
  --bg:          #0b0f17;
  --bg-2:        #0f1520;
  --bg-card:     #131a27;
  --bg-card-h:   #172030;
  --border:      #1c2739;
  --border-lt:   #243047;
  --text:        #e9e5e0;
  --text-2:      #8590a8;
  --text-3:      #48566a;
  --accent:      #b8946a;
  --accent-lt:   #d4b48c;
  --accent-d:    rgba(184, 148, 106, 0.10);
  --accent-d2:   rgba(184, 148, 106, 0.05);

  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'IBM Plex Sans', system-ui, sans-serif;
  --ff-mono:     'IBM Plex Mono', 'Courier New', monospace;

  --radius:      4px;
  --radius-lg:   8px;
  --ease:        0.25s ease;

  --max-w:       1120px;
  --gap-section: 112px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   Typography Scale
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  line-height: 1.12;
  font-weight: 500;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem);   letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

h4 {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

p { color: var(--text-2); line-height: 1.75; }

em {
  font-style: italic;
  color: var(--accent-lt);
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 148, 106, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-lt);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full { width: 100%; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 15, 23, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--ease);
}
.nav-logo:hover { color: var(--accent-lt); }
.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--ease);
  font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid var(--border-lt) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  transition: all var(--ease) !important;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  transition: all var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile.open { max-height: 280px; }

.mobile-link {
  display: block;
  padding: 15px 28px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  transition: color var(--ease), background var(--ease);
}
.mobile-link:hover { color: var(--text); background: var(--bg-card); }
.mobile-link:last-child { border-bottom: none; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 0 80px;
  overflow: hidden;
}

/* Blueprint grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 148, 106, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 148, 106, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 35% 50%, black 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 70% at 35% 50%, black 10%, transparent 100%);
}

/* Ambient glow */
.hero-glow {
  position: absolute;
  top: 40%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(184, 148, 106, 0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
}

.hero h1 {
  margin-bottom: 28px;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 44px;
  color: var(--text-2);
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 72px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.3s ease both;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.9s 0.4s ease both;
  flex-wrap: wrap;
}

.stat-num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  color: var(--accent-lt);
  margin-bottom: 3px;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: var(--gap-section) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 56px;
}
.section-header .section-label { margin-bottom: 18px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  max-width: 500px;
  font-size: 1.0rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  gap: 1px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--ease);
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--ease);
}

.service-card:hover { background: var(--bg-card-h); }
.service-card:hover::after { opacity: 1; }
.service-card:hover .svc-icon { color: var(--accent); border-color: var(--accent); }

.svc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  color: var(--text-3);
  padding: 10px;
  transition: color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-num {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.2;
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  flex: 1;
}

.svc-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-d2);
  border: 1px solid rgba(184, 148, 106, 0.18);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: var(--gap-section) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.about-text .section-label { margin-bottom: 20px; }
.about-text h2 { margin-bottom: 28px; }

.about-text p { margin-bottom: 18px; font-size: 1rem; }

.about-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.65;
}

.approach-quote {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--accent-d2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.approach-quote blockquote {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* Credentials panel */
.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.creds-card,
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.creds-card h4,
.price-card h4 { margin-bottom: 24px; }

.cred-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cred-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cred-diamond {
  color: var(--accent);
  font-size: 0.45rem;
  margin-top: 7px;
  flex-shrink: 0;
  line-height: 1;
}

.cred-list strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.cred-list span {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 300;
}

/* Pricing card */
.price-card p {
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.price-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-2);
  font-size: 0.875rem;
}

.price-list li span:first-child { color: var(--text-2); }

.price-list li span:last-child {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: var(--gap-section) 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-intro .section-label { margin-bottom: 20px; }
.contact-intro h2 { margin-bottom: 18px; }
.contact-intro > p { margin-bottom: 44px; font-size: 1rem; }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--text);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.opt { color: var(--text-3); font-weight: 300; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 148, 106, 0.08);
}

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

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2348566a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--ff-mono);
  letter-spacing: 0.03em;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: var(--bg-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 14px; }

.footer-brand p {
  font-size: 0.875rem;
  max-width: 260px;
  margin-bottom: 10px;
}

.footer-cvr {
  font-family: var(--ff-mono);
  font-size: 0.7rem !important;
  color: var(--text-3) !important;
  letter-spacing: 0.05em;
}

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

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  :root { --gap-section: 80px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

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

  .about-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

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

@media (max-width: 640px) {
  :root { --gap-section: 64px; }

  .container { padding: 0 20px; }

  .services-grid { grid-template-columns: 1fr; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn { width: 100%; }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat-div { display: none; }

  .form-row { grid-template-columns: 1fr; }
}
