/* Portlaw Strategic Intelligence — recreated from psinet.ie
   Palette and type taken from the original Wix site: near-black navy chrome,
   cyan wordmark, white body, Palatino throughout. */

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

:root {
  --navy:   #010214;
  --cyan:   #72d9f8;
  --cyan-d: #57a6c2;
  --ink:    #000000;
  --paper:  #ffffff;
  --rule:   #d8d8d8;
  --muted:  #5a5a5a;
  --max:    1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', Georgia, serif;
  font-size: 20px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; }
a { color: var(--cyan-d); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header { background: var(--navy); padding: 18px 24px 14px; }
.header-inner { max-width: var(--max); margin: 0 auto; text-align: center; position: relative; }
.wordmark {
  display: inline-block;
  font-size: 2.15rem;
  color: var(--cyan);
  line-height: 1.15;
}
.wordmark:hover { text-decoration: none; color: var(--cyan); }

.nav-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 42px; height: 34px;
  background: none; border: none; cursor: pointer;
  display: none; flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--cyan); border-radius: 1px; }

.site-nav { margin-top: 12px; }
.site-nav ul {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 32px;
}
.site-nav a {
  color: var(--cyan); font-size: 0.85rem; letter-spacing: 0.04em;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--cyan); text-decoration: none; }

/* ── Home ────────────────────────────────────────────────────────────────── */

.home-hero {
  flex: 1;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 24px 72px;
  gap: 26px;
}
.home-hero img { width: min(560px, 84vw); height: auto; display: block; }

/* The logo artwork already carries the wordmark, so the h1 exists for
   assistive tech and search engines only. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Generic page ────────────────────────────────────────────────────────── */

main { flex: 1; width: 100%; }
.page { max-width: 900px; margin: 0 auto; padding: 52px 24px 72px; }
.page-wide { max-width: var(--max); margin: 0 auto; padding: 52px 24px 72px; }

.page h1 { font-size: 3.5rem; margin-bottom: 26px; }
.page h2 { font-size: 2.5rem; margin-bottom: 18px; }
.page h3 { font-size: 1.5rem; margin: 28px 0 10px; }
.page p { margin-bottom: 18px; }

.centered { text-align: center; }
.centered p { margin-left: auto; margin-right: auto; max-width: 760px; }

.rule { width: 34px; height: 2px; background: var(--ink); margin: 14px auto 26px; }

.banner { width: 100%; height: auto; display: block; margin: 44px 0; }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.mail-btn {
  display: inline-block;
  background: var(--navy); color: var(--cyan);
  padding: 15px 38px;
  font-size: 1.05rem;
  border: 1px solid var(--navy);
  transition: background 0.15s, color 0.15s;
}
.mail-btn:hover { background: var(--cyan); color: var(--navy); text-decoration: none; }
.mail-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* ── Cards (blog + services) ─────────────────────────────────────────────── */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; margin-top: 40px;
}
.card { display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.card h2, .card h3 { font-size: 1.6rem; margin: 18px 0 8px; }
.card h2 a, .card h3 a { color: var(--ink); }
.card-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 10px 0 0; }

.price { font-size: 1.25rem; margin-top: 10px; }
.card .mail-btn { align-self: flex-start; margin-top: 18px; padding: 11px 26px; font-size: 0.9rem; }

/* Service cards keep the bordered panel and title rule the original had. */
.card.service { border: 1px solid var(--rule); text-align: left; }
.card.service img { margin: 0; }
.service-body { padding: 22px 24px 26px; display: flex; flex-direction: column; }
.service-body h3 { margin: 0 0 14px; font-size: 1.45rem; }
.rule-left { height: 1px; background: var(--rule); margin-bottom: 16px; }

/* ── Post ────────────────────────────────────────────────────────────────── */

.post { max-width: 780px; margin: 0 auto; padding: 52px 24px 72px; }
.post h1 { font-size: 2.75rem; margin-bottom: 14px; }
.post-meta { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 30px; }
.post img.hero { width: 100%; height: auto; display: block; margin-bottom: 36px; }
.post h2 { font-size: 1.9rem; margin: 36px 0 12px; }
.post h3 { font-size: 1.35rem; margin: 28px 0 10px; }
.post p { margin-bottom: 18px; }
.post ul { margin: 0 0 20px 26px; }
.post li { margin-bottom: 9px; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 0.85rem; letter-spacing: 0.04em; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy); color: var(--cyan);
  padding: 30px 24px; margin-top: auto;
  font-size: 0.82rem; text-align: center; letter-spacing: 0.02em;
}
.site-footer a { color: var(--cyan); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  body { font-size: 18px; }
  .wordmark { font-size: 1.45rem; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; margin-top: 16px; }
  .page h1, .post h1 { font-size: 2.1rem; }
  .page h2 { font-size: 1.7rem; }
  .card-grid { gap: 32px; }
}
