/* ============================================================
   islandcommercial.ca — Shared styles for static content pages
   Matches the main site's navy/slate visual identity.
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --gold: #c59b3c;
  --gold-light: #d4a84b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #64748b;
  --gray-700: #475569;
  --gray-800: #334155;
  --max-w: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 0;
}
.site-head .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--gold-light); }
.lang a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.9rem;
}
.lang a:hover { text-decoration: underline; }

/* BREADCRUMB */
.crumbs {
  max-width: var(--max-w);
  margin: 12px auto 0;
  padding: 0 24px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* MAIN */
main.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-top: 28px;
  margin-bottom: 8px;
}
p, li { font-size: 1.05rem; margin-bottom: 14px; }
ul, ol { margin: 0 0 20px 24px; }

.lede {
  font-size: 1.2rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* CARDS / BOXES */
.card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h3 { margin-top: 0; }

/* FAQ */
.faq dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 4px;
}
.faq dd {
  margin-left: 0;
  margin-bottom: 16px;
  color: var(--gray-700);
}

/* CREDENTIALS TABLE */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.cred-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 14px 18px;
}
.cred-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}
.cred-item .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
}

/* INTERNAL LINK CLUSTERS */
.link-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.link-cluster a {
  display: block;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.link-cluster a:hover {
  border-color: var(--gold);
  background: #fefce8;
}
.link-cluster a .sub {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* CTA BUTTON */
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
}
.cta-btn:hover { background: var(--gold-light); }

.callout {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 32px 0;
}
.callout h2 { color: var(--white); margin-top: 0; }
.callout a { color: var(--gold-light); }

/* FOOTER */
.site-foot {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.site-foot .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-foot .name { color: var(--white); font-weight: 700; margin-bottom: 8px; }
.site-foot .brokerage { color: var(--gold-light); font-weight: 600; }
.site-foot a { color: var(--gold-light); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .legal { margin-top: 16px; font-size: 0.8rem; opacity: 0.65; }
.site-foot p { margin-bottom: 6px; font-size: 0.9rem; }

/* RESPONSIVE */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  main.wrap { padding: 24px 16px 48px; }
  .link-cluster { grid-template-columns: 1fr; }
}
