/* ===== COLOURS — change these to restyle the whole site ===== */
:root {
  --main-color: #1e5aa8;   /* buttons, links, banner */
  --text-color: #222222;
  --light-bg: #f4f6f9;     /* background of alternate sections */
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: #ffffff;
}

a { color: var(--main-color); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Top menu */
.nav { background: #ffffff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text-color); }
.nav nav a { margin-left: 20px; text-decoration: none; color: var(--text-color); }
.nav nav a:hover { color: var(--main-color); }

/* Big banner */
.hero { background: var(--main-color); color: #ffffff; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; margin-bottom: 28px; opacity: 0.9; }
.button {
  display: inline-block; background: #ffffff; color: var(--main-color);
  padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 600;
}

/* Sections */
.section { padding: 70px 0; }
.section.alt { background: var(--light-bg); }
.section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.section p { margin-bottom: 10px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #ffffff; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card h3 { margin-bottom: 8px; }

/* Footer */
.footer { background: #222222; color: #bbbbbb; text-align: center; padding: 24px 0; font-size: 0.9rem; }

/* Q&A — click a question to open its answer */
.qa-list details { border: 1px solid #e5e5e5; border-radius: 8px; margin-bottom: 12px; background: #ffffff; }
.qa-list summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: "+"; font-size: 1.4rem; color: var(--main-color); }
.qa-list details[open] summary::after { content: "\2212"; }
.qa-list details p { padding: 0 20px 16px; margin: 0; }

/* Blog list page */
.page-title { font-size: 2.2rem; margin-bottom: 6px; }
.page-intro { color: #666666; margin-bottom: 32px; }
.post-list { display: grid; gap: 20px; }
.post-item {
  display: block; text-decoration: none; color: var(--text-color);
  background: #ffffff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 24px;
}
.post-item:hover { border-color: var(--main-color); }
.post-item h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-date { color: #888888; font-size: 0.9rem; margin-bottom: 4px; }
.read-more { color: var(--main-color); font-weight: 600; }

/* Single blog post */
.post { max-width: 720px; }
.post h1 { font-size: 2.2rem; line-height: 1.25; margin-bottom: 24px; }
.post h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.post p, .post ul { margin-bottom: 16px; }
.post ul { padding-left: 24px; }
.post img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.back-link { display: inline-block; margin-bottom: 24px; text-decoration: none; }

/* Phones */
@media (max-width: 600px) {
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 1.8rem; }
  .nav nav a { margin-left: 12px; font-size: 0.9rem; }
}
