/* Mark Province of the Channel Islands - demonstration site
   Palette: Mark blue (deep navy), crimson accent, keystone gold
   Fonts aligned to Mark Masons' Hall: Merriweather (serif headings) + Poppins (sans body).
   Both are Google Fonts under the SIL Open Font Licence, free to self-host or link. */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --mark-blue: #0d1f3c;      /* deep navy */
  --mark-blue-2: #16305c;    /* lighter navy for panels */
  --crimson: #8f1d2d;        /* Mark degree crimson */
  --gold: #c8a24a;           /* keystone gold */
  --gold-light: #e2c778;
  --paper: #f7f5ef;          /* warm off-white */
  --ink: #23262b;
  --muted: #5c6270;
  --line: #dcd8cc;
  --white: #ffffff;
  --maxw: 1080px;
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--mark-blue); }

a { color: var(--crimson); }
a:hover { color: var(--mark-blue); }

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

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--crimson);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 7px 12px;
}
.demo-banner strong { color: var(--gold-light); }

/* ---------- Top bar / header ---------- */
.site-header {
  background: var(--mark-blue);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .keystone { flex: 0 0 auto; }
.brand .brand-logo { flex: 0 0 auto; height: 58px; width: auto; display: block; }
.brand-text { color: #fff; }
.brand-text .name { font-family: var(--font-head); font-size: 20px; color: #fff; display: block; letter-spacing: 0.01em; }
.brand-text .domain { font-size: 12px; color: var(--gold-light); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Navigation ---------- */
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #eef1f6;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.main-nav a:hover { background: var(--mark-blue-2); color: #fff; }
.main-nav a.active { background: var(--gold); color: var(--mark-blue); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(13,31,60,0.82), rgba(13,31,60,0.90)),
    repeating-linear-gradient(45deg, #16305c 0 22px, #12294f 22px 44px);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  border-bottom: 3px solid var(--gold);
}
.hero h1 { color: #fff; font-size: 40px; margin: 0 0 12px; }
.hero .kicker { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; margin-bottom: 18px; }
.hero p.lede { font-size: 20px; max-width: 720px; margin: 0 auto 26px; color: #e7ebf2; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--mark-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.btn:hover { background: var(--gold-light); color: var(--mark-blue); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--gold); }
.btn.ghost:hover { background: rgba(200,162,74,0.15); color: #fff; }

/* ---------- Sections ---------- */
main { padding: 0 0 20px; }
.section { padding: 52px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 28px; margin-top: 0; position: relative; padding-bottom: 12px; }
.section h2::after { content: ""; display: block; width: 54px; height: 3px; background: var(--gold); margin-top: 12px; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 8px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  border-radius: 5px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Welcome / message layout ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 24px; border-radius: 4px; }
.panel h3 { margin-top: 0; }
.signoff { font-family: var(--font-head); font-style: italic; color: var(--mark-blue); margin-top: 16px; }

/* ---------- Table ---------- */
table.directory { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--white); }
table.directory th, table.directory td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 16px; }
table.directory th { background: var(--mark-blue); color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; }
table.directory tr:nth-child(even) td { background: #faf9f4; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px; background: var(--gold); color: var(--mark-blue); font-weight: 600; letter-spacing: 0.03em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--mark-blue); margin: 14px 0 5px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-body); font-size: 16px; background: #fff;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Placeholder marker ---------- */
.placeholder { background: #fff8e8; border: 1px dashed var(--gold); border-radius: 4px; padding: 3px 8px; font-size: 13px; color: #7a5a12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mark-blue); color: #cdd6e4; margin-top: 30px; border-top: 3px solid var(--gold); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-inner h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-inner a { color: var(--gold-light); text-decoration: none; display: block; margin-bottom: 6px; font-size: 15px; }
.footer-inner a:hover { color: #fff; }
.footer-inner p { font-size: 14px; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid #24406e; text-align: center; font-size: 13px; color: #8fa0bd; padding: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
