/* =========================================================
   seo.irish — design system
   Brand colours sampled from agiledigitalstrategy.com
   ========================================================= */
:root {
  --navy: #1a3c8f;
  --navy-dark: #122a66;
  --cyan: #00aeef;
  --cyan-dark: #0090c4;
  --slate: #3d4459;
  --charcoal: #22252f;
  --bg-light: #f4f9fd;
  --white: #ffffff;
  --border: #e1e8f0;
  --success: #1a8f5c;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(26, 60, 143, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 42, 102, 0.16);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--slate); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-dark);
  background: rgba(0, 174, 239, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.text-center { text-align: center; }
.muted { color: #6b7386; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--white); box-shadow: 0 10px 24px rgba(0,174,239,0.35); }
.btn-primary:hover { background: var(--cyan-dark); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgba(26,60,143,0.3); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.4rem; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.brand-text strong .dot { color: var(--cyan); }
.brand-text small { font-size: 0.68rem; color: #7c8296; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a { color: var(--navy); background: var(--bg-light); }
.site-nav a.nav-cta { background: var(--navy); color: var(--white) !important; padding: 10px 20px; }
.site-nav a.nav-cta:hover { background: var(--navy-dark); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: 8px;
  list-style: none;
  margin: 8px 0 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a { border-radius: 6px; padding: 10px 12px; font-size: 0.9rem; }
.dropdown li a:hover { background: var(--bg-light); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #0d63a8 100%);
  color: var(--white);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0,174,239,0.35), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.88); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 2rem; color: var(--cyan); }
.hero-stats div span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,0.88); max-width: 760px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,174,239,0.12);
  color: var(--cyan-dark);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-dark);
  font-weight: 800;
}

table.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--navy); color: var(--white); }
table.compare tr:last-child td { border-bottom: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--cyan-dark), var(--navy));
  color: var(--white);
  padding: 56px 0;
  border-radius: var(--radius);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .btn-primary { background: var(--white); color: var(--navy); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--bg-light); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.05rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--cyan-dark); }
.faq-item[open] summary::before { content: "\2212 "; }
.faq-item p { margin-top: 12px; }

/* Glossary */
.glossary-item { border-left: 3px solid var(--cyan); padding: 4px 0 4px 18px; margin-bottom: 24px; }
.glossary-item dt { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.glossary-item dd { margin: 0; }

/* Audit form */
.form-row { margin-bottom: 18px; text-align: left; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.92rem; }
.form-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--slate);
}
.form-row input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 18px; }
.form-error { color: #b3261e; font-weight: 600; margin: 12px 0 0; }
.audit-loading { text-align: center; padding: 24px; color: var(--slate); }
.audit-results { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.audit-score-card { display: flex; align-items: center; gap: 24px; }
.audit-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--cyan);
}
.audit-score span { font-size: 1rem; font-weight: 600; color: #7c8296; }
.audit-score.score-excellent { border-color: var(--success); }
.audit-score.score-good { border-color: var(--cyan); }
.audit-score.score-needs-work { border-color: #e08a1e; }
.audit-score.score-poor { border-color: #b3261e; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.check-item:last-child { border-bottom: none; }
.check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
}
.check-pass .check-icon { background: var(--success); }
.check-warn .check-icon { background: #e08a1e; }
.check-fail .check-icon { background: #b3261e; }
.rec-list { padding-left: 20px; margin: 0; }
.rec-list li { margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.78); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-top: 16px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    display: none;
    overflow-y: auto;
    padding: 12px 0 40px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; }
  .site-nav > ul > li { border-bottom: 1px solid var(--border); }
  .dropdown { position: static; box-shadow: none; border: none; display: none; margin: 0; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
  .site-nav a.nav-cta { margin: 16px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
