/* ddamke.uk — clean corporate style: white, navy, one teal accent */

:root {
  --navy: #0b2545;
  --navy-soft: #13315c;
  --accent: #0f7c8a;        /* teal: buttons, links, tags */
  --accent-dark: #0b5f6a;
  --text: #1f2933;
  --muted: #5f6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;        /* light grey band behind Projects */
  --border: #dde3ea;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Top bar */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { color: #fff; font-weight: 600; text-decoration: none; letter-spacing: .3px; }
.brand:hover { color: #fff; }
nav a { color: #cfd8e3; text-decoration: none; margin-left: 22px; font-size: .95rem; }
nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: #8fd3dc; margin: 0 0 12px; }
.hero h1 { font-size: 2.8rem; line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 1.25rem; color: #d6dee8; max-width: 640px; margin: 0 0 32px; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
h2 { color: var(--navy); font-size: 1.8rem; margin: 0 0 20px; }

/* Project cards */
/* min(300px, 100%): cards are at least 300px wide, but never wider than a small phone screen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.card h3 { color: var(--navy); margin: 4px 0 12px; font-size: 1.25rem; }
.card ul { padding-left: 20px; color: var(--muted); }
.card.muted { background: transparent; border-style: dashed; color: var(--muted); }
.tag {
  display: inline-block;
  background: #e3f3f5;
  color: var(--accent-dark);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0;
}
.card.muted .tag { background: #eceff3; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

/* Demo status (set by the script at the bottom of index.html) */
.status { font-size: .9rem; font-weight: 600; margin: 0 0 14px; }
.status::before { content: "●"; margin-right: 6px; }
.status.checking { color: var(--muted); }
.status.online { color: #1a7f37; }
.status.offline { color: #b54708; }
.button.disabled { background: #c5ccd6; cursor: not-allowed; }
.button.disabled:hover { background: #c5ccd6; }

.email { font-size: 1.2rem; font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; }

/* Phones */
@media (max-width: 600px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 2.1rem; }
  .lead { font-size: 1.1rem; }
  nav a { margin-left: 14px; font-size: .9rem; }
  .brand { font-size: .95rem; }
  .section { padding: 56px 0; }
  .card { padding: 22px; }
}

/* Small phones: name on its own line, menu below it */
@media (max-width: 420px) {
  .topbar-inner { flex-direction: column; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 4px; }
  nav a { margin: 0 9px; }
  section[id] { scroll-margin-top: 30px; }   /* menu links: keep the heading below the taller top bar */
}
