/* ===================================================
   Linkvision — base styles
   Brand: background #ffffff / main #333333 / accent #ff0844 -> #ffb199
=================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --main: #333333;
  --muted: #6b6b6f;
  --accent-1: #ff0844;
  --accent-2: #ffb199;
  --border: #e7e7e9;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --max-width: 1160px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--main);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(255, 8, 68, 0.45);
  border: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(255, 8, 68, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--main);
}

.btn-ghost:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
}

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

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--main);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--accent-1); }

.nav-cta {
  background: var(--main);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-1) !important;
  color: #fff !important;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--main);
  border-radius: 2px;
}

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lang-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--accent-1);
}

.flag {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.flag-nl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='10' y='0' fill='%23AE1C28'/%3E%3Crect width='60' height='10' y='10' fill='%23FFFFFF'/%3E%3Crect width='60' height='10' y='20' fill='%2321468B'/%3E%3C/svg%3E");
}

.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%2300247d'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23cf142b' stroke-width='2'/%3E%3Cpath d='M25,0 H35 V30 H25 Z' fill='%23fff'/%3E%3Cpath d='M0,11 H60 V19 H0 Z' fill='%23fff'/%3E%3Cpath d='M27,0 H33 V30 H27 Z' fill='%23cf142b'/%3E%3Cpath d='M0,13 H60 V17 H0 Z' fill='%23cf142b'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}

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

.hero-bg {
  position: absolute;
  top: -220px;
  right: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent-1) 70%, transparent 100%);
  opacity: 0.18;
  z-index: 0;
}

/* ---------- Services ---------- */

.services {
  padding: 90px 0;
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Work ---------- */

.work {
  padding: 90px 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.12);
}

.project-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  opacity: 0.85;
}

.project-body {
  padding: 22px 22px 26px;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-1);
  margin-bottom: 10px;
}

.project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About ---------- */

.about {
  padding: 90px 0;
  background: var(--surface);
}

.about-inner { max-width: 720px; }

.about p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 24px;
}

.about-stack li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--main);
}

/* ---------- Contact ---------- */

.contact {
  padding: 90px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-intro .section-sub { margin-bottom: 26px; }

.contact-email {
  display: inline-block;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-1);
  border-bottom: 2px solid var(--accent-2);
  padding-bottom: 4px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--main);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 8, 68, 0.12);
}

.contact-form .btn { margin-top: 4px; }

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

.form-row-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  margin: -6px 0 0;
}

.form-status.success { color: #1b9e5a; }
.form-status.error { color: var(--accent-1); }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo { height: 32px; }

.footer-details {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-details address {
  font-style: normal;
}

.footer-legal {
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards,
  .projects { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .cards,
  .projects { grid-template-columns: 1fr; }

  .hero { padding: 70px 0 60px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-details { text-align: left; }
}
