/* McGinn Solicitors, concept rebuild.
   Palette and type pulled from the live site (www.mcginnsolicitors.co.uk):
   navy #043473, heading grey #4d4d4d, body grey #333, Raleway + Open Sans. */

:root {
  --navy: #043473;
  --navy-dark: #022449;
  --navy-light: #0c57ad;
  --grey-900: #222222;
  --grey-700: #4d4d4d;
  --grey-500: #6b6b6b;
  --grey-300: #c7c7c7;
  --grey-100: #f3f4f6;
  --grey-050: #f9fafb;
  --white: #ffffff;
  --font-head: 'Raleway', Helvetica, Arial, sans-serif;
  --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(4, 52, 115, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--grey-900); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

.section-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 760px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  border-top: 3px solid var(--navy-light);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.82rem;
}
.topbar-inner a { color: #cfe0f4; }
.topbar-inner a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-mcginn {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.logo-g { color: var(--navy); }
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey-500);
  letter-spacing: 4px;
  margin-top: 2px;
}
.primary-nav ul { list-style: none; display: flex; gap: 28px; }
.primary-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--grey-900);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav li.active a,
.primary-nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,36,73,0.92) 0%, rgba(4,52,115,0.82) 45%, rgba(4,52,115,0.55) 100%);
}
.hero-content, .page-hero-content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 24px 100px;
}
.page-hero-small .page-hero-content { padding: 70px 24px; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bcd3ef;
  margin-bottom: 14px;
}
.hero h1, .page-hero-content h1 { color: #fff; max-width: 820px; }
.lede { font-size: 1.1rem; color: #dbe6f5; max-width: 640px; }
.page-hero-content .eyebrow { margin-bottom: 10px; }
.page-hero-content h1 { margin-bottom: 0; }

.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--grey-050); border-bottom: 1px solid var(--grey-100); }
.trust-strip-inner {
  max-width: var(--container); margin: 0 auto; padding: 22px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.trust-strip-inner p { margin: 0; font-size: 0.95rem; color: var(--grey-700); }
.trust-strip-inner strong { color: var(--navy); display: block; font-family: var(--font-head); }

/* ---------- Services ---------- */
.services { padding: 72px 0; }
.services h2 { text-align: center; margin-bottom: 40px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background: #fff;
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card-header { background: var(--navy); padding: 14px 22px; }
.service-card-header h3 { color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; }
.service-card img { height: 220px; object-fit: cover; width: 100%; }
.service-card-body { padding: 24px 22px 28px; }
.service-card-plain {
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
}
.service-card-plain h3 { color: var(--navy); }
.link-arrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}
.link-arrow::after { content: " \2192"; }

/* ---------- About teaser ---------- */
.about-teaser { background: var(--grey-050); padding: 72px 0; }
.about-teaser-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.about-teaser-grid img { border-radius: var(--radius); box-shadow: var(--shadow); height: 320px; object-fit: cover; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; }
.cta-band-inner { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f4; }
.cta-band .btn-primary { background: #fff; color: var(--navy); margin-top: 8px; }
.cta-band .btn-primary:hover { background: var(--grey-100); color: var(--navy-dark); }

/* ---------- Generic content sections ---------- */
.content-section { padding: 64px 0; }
.content-section .lede { color: var(--grey-700); font-size: 1.05rem; }
.content-section p { color: var(--grey-700); }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.service-list li {
  position: relative;
  padding-left: 30px;
  color: var(--grey-700);
  font-size: 1.02rem;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 10px; height: 10px;
  background: var(--navy);
  border-radius: 2px;
}

.stats-band { background: var(--grey-050); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); padding: 36px 0; }
.pull-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pull-stat { text-align: left; }
.pull-stat-num { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.pull-stat-label { display: block; font-size: 0.85rem; color: var(--grey-500); margin-top: 4px; }

/* ---------- Intro split (text + image) ---------- */
.intro-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.intro-split img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  height: 320px; object-fit: cover; width: 100%;
}
.intro-split .lede { color: var(--grey-700); }
.intro-split p { color: var(--grey-700); }

/* ---------- Point cards (service detail grids) ---------- */
.point-section { background: var(--grey-050); padding: 64px 0; }
.point-section h2 { text-align: center; margin-bottom: 36px; }
.point-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.point-card {
  background: #fff;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.point-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.point-card p { margin: 0; color: var(--grey-700); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; }
.contact-details address { font-style: normal; color: var(--grey-700); margin-bottom: 18px; }
.contact-details p { color: var(--grey-700); }
.contact-details a { color: var(--navy); font-weight: 600; }
.map-embed { margin: 22px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.legal-note { font-size: 0.82rem; color: var(--grey-500); margin-top: 20px; }

.contact-form-wrap { background: var(--grey-050); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--grey-900); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: #fff;
  color: var(--grey-900);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(4,52,115,0.12);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: #16693f; }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #e8eef7; padding: 56px 0 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; display: block; margin-bottom: 12px; }
.footer-col p, .footer-col address { color: #c6d3e6; font-size: 0.92rem; }
.footer-col h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #c6d3e6; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-col address { font-style: normal; }
.footer-col a { color: #c6d3e6; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  max-width: var(--container); margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-bottom p { color: #94a7c4; font-size: 0.78rem; margin: 0; }
.footer-credit { text-align: right; }
.footer-credit a { color: #cfe0f4; font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--navy); color: #fff;
  text-align: center;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5px;
  padding: 14px; text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid, .about-teaser-grid, .contact-grid, .trust-strip-inner, .pull-stats,
  .intro-split, .point-grid {
    grid-template-columns: 1fr;
  }
  .about-teaser-grid img, .intro-split img { height: 220px; order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .topbar { display: none; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--grey-100);
    max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .primary-nav li { border-top: 1px solid var(--grey-100); }
  .primary-nav a { display: block; padding: 14px 0; }
  .hero-content, .page-hero-content { padding: 70px 20px 100px; }
  .call-bar { display: block; }
  body { padding-bottom: 50px; }
}
