@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #fafafa;
  --surface:    #ffffff;
  --text:       #111111;
  --text-muted: #777777;
  --accent:     #2c4a6e;
  --line:       #e0e0e0;
  --dot:        #2c4a6e;

  --font:       'Inter', sans-serif;
  --weight-light:  300;
  --weight-reg:    400;
  --weight-mid:    500;
  --weight-semi:   600;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  --max-width: 1100px;
}

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

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

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

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

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

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

/* ── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

.nav-logo {
  font-size: 0.9rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo-img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4em;
  position: relative;
  top: -1px;
  opacity: 0.85;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: var(--weight-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.2s;
}

/* ── Mobile menu ───────────────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--space-md);
  gap: var(--space-md);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.85rem;
  font-weight: var(--weight-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: var(--weight-mid);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: var(--weight-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  font-weight: var(--weight-reg);
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.2s;
}

.hero-cta:hover {
  gap: var(--space-md);
}

/* ── Dot grid decoration ───────────────────────────────────────────────────── */
.dot-grid {
  display: none;
}

.hero-container {
  display: block;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Services ──────────────────────────────────────────────────────────────── */
.services {
  padding: var(--space-lg) 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-item {
  background: var(--bg);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--surface);
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
  margin-top: 0.45em;
}

.service-item h3 {
  font-size: 0.95rem;
  font-weight: var(--weight-mid);
  color: var(--text);
  margin-bottom: 2px;
}

.service-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact {
  padding: var(--space-lg) 0 var(--space-xl);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: var(--weight-light);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 20ch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  font-weight: var(--weight-mid);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-md);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0 0;
}

.footer-vangogh {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0 var(--space-lg);
}

.footer-vangogh img {
  height: 64px;
  width: auto;
  opacity: 1;
}

@keyframes footer-logo-wiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-6deg); }
  40%  { transform: rotate(5deg); }
  60%  { transform: rotate(-4deg); }
  80%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

.footer-vangogh img.wiggle {
  animation: footer-logo-wiggle 0.6s ease-in-out;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* ── Desktop breakpoint ────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-menu-btn {
    display: none;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-lg);
  }

  .dot-grid {
    display: block;
    width: min(540px, 50vw);
    height: 360px;
    margin-left: min(-40px, calc(50vw - 540px));
    cursor: crosshair;
  }

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

  .contact-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .contact-links {
    min-width: 300px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
