/* =========================================================
   Presence Media — site styles  (White + Electric Blue)
   Change the colors and fonts here and every page updates.
   ========================================================= */

/* Urbanist — the typeface used in the Presence Media logo.
   Self-hosted (static/fonts) under the SIL Open Font License. */
@font-face {
  font-family: "Urbanist";
  src: url("/fonts/urbanist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --blue: #0a66ff;          /* accent: buttons, links, highlights */
  --blue-dark: #0050d6;     /* hover */
  --blue-text: #0556d9;     /* blue for text: readable on white and light blue */
  --blue-deep: #3b2bff;     /* second color in gradients */
  --blue-tint: #eef4ff;     /* soft blue backgrounds */
  --blue-tint-2: #dce8ff;   /* icon backgrounds, borders */
  --accent-rgb: 10, 102, 255;   /* same as --blue, for see-through glows */
  --accent2-rgb: 59, 43, 255;   /* same as --blue-deep */
  --star: #f5a800;

  /* Neutrals */
  --text: #0f172a;
  --muted: #526077;
  --bg: #ffffff;
  --border: #e3e8f0;
  --footer: #0b1220;

  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 40px rgba(var(--accent-rgb), 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 450;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-text); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--blue); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Blue highlighted words inside a headline */
.accent {
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Small pill label above a heading, e.g. "WHAT WE DO" */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

/* ---------- Header & menu ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.logo img { display: block; height: 40px; width: auto; }
@media (min-width: 960px) { .logo img { height: 44px; } }

/* Phone-size menu (default): hidden until the Menu button is pressed */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; color: var(--text);
  background: var(--blue-tint); border: 0; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: none; width: 100%; padding: 8px 0 12px; }
.nav-open .site-nav { display: block; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; }
.menu a, .menu-label {
  display: block; padding: 10px 0;
  color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--blue-text); }
.sub a { padding-left: 18px; font-weight: 500; color: var(--muted); }
.header-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.header-phone { color: var(--text); font-weight: 700; text-decoration: none; }
.header-phone:hover { color: var(--blue); }

/* Wide screens: menu in one row, Services opens as a dropdown */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 28px; }
  .site-nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: auto; flex: 1; padding: 0; }
  .menu { display: flex; gap: 26px; margin-left: auto; }
  .menu > li > a, .menu-label { padding: 8px 0; border: 0; color: var(--muted); }
  .menu-label { cursor: default; }
  .has-sub { position: relative; }
  .has-sub > a::after { content: " ▾"; font-size: 0.8em; }
  .sub {
    display: none;
    position: absolute; top: 100%; left: -18px;
    min-width: 260px; padding: 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-hover);
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .sub a { padding: 9px 12px; border: 0; border-radius: 8px; color: var(--text); font-weight: 600; }
  .sub a:hover { background: var(--blue-tint); }
  .header-cta { margin-top: 0; flex-wrap: nowrap; }
}

/* Breadcrumb ("Home › Page") */
.breadcrumb { background: var(--blue-tint); font-size: 0.9rem; color: var(--muted); padding-top: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 104px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, rgba(var(--accent2-rgb), 0.08), transparent 70%),
    var(--bg);
}
.hero h1 { max-width: 860px; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 680px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-trust > span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow);
}
.hero-trust strong { color: var(--text); }
.stars { color: var(--star); letter-spacing: 2px; }

.page-title {
  padding: 72px 0 56px;
  background:
    radial-gradient(800px 360px at 90% 0%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    var(--blue-tint);
}
.page-title p { color: var(--muted); font-size: 1.2rem; max-width: 680px; margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--blue-tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.34);
}
.button-small { padding: 9px 20px; font-size: 0.95rem; box-shadow: none; }
.button-ghost { background: transparent; color: var(--blue); box-shadow: none; }
.button-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.card-link { font-weight: 700; text-decoration: none; }
/* Cards whose title is a link: the whole card is clickable */
.card-linked { position: relative; }
.card-linked h3 a { color: var(--text); text-decoration: none; }
.card-linked h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-linked:hover h3 a, .card-linked h3 a:focus { color: var(--blue); }

/* Numbered process steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 72px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 26px; left: 30px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-weight: 800;
  display: grid; place-items: center;
}

/* Testimonials */
.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 12px 0 16px; font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 700; margin-top: auto; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* Service detail blocks (Services page) */
.service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px 48px;
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service ul { margin: 0; }

/* ---------- Call-to-action band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }
.cta-band .button-row { justify-content: center; }
.cta-band .button { background: #fff; border-color: #fff; color: var(--blue); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.cta-band .button:hover { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-dark); }
.cta-band .button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
.cta-band .button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .form select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  background: var(--bg);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 3px solid var(--blue-tint-2);
  border-color: var(--blue);
}
.form textarea { min-height: 150px; resize: vertical; }
.hidden { display: none; }
.contact-details p { margin-bottom: 18px; }
.contact-details strong { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #a9b4c6; padding: 56px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.footer-logo img { display: block; height: 38px; width: auto; }
.footer-heading { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #a9b4c6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-map iframe { width: 100%; height: 200px; border: 0; border-radius: 12px; }
.service-areas { grid-column: 1 / -1; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; }

/* ---------- Content extras ---------- */
/* Two columns that stack on phones */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; align-items: start; }

/* Checkmark list */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-tint-2); color: var(--blue-text);
  font-size: 0.8rem; font-weight: 800; display: grid; place-items: center;
}

/* Small rounded tags, e.g. service areas */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.tags li {
  margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); font-size: 0.95rem;
}

/* Compact cards used for long service lists */
.cards-compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.cards-compact .card { padding: 22px; }
.cards-compact h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.cards-compact p { font-size: 0.97rem; color: var(--muted); }

/* Services directory */
.directory { display: grid; gap: 28px; }
.directory .card h2 { font-size: 1.5rem; }
.directory .card h2 a { color: var(--text); text-decoration: none; }
.directory .card h2 a:hover { color: var(--blue); }
.directory ul { columns: 2 220px; column-gap: 32px; margin-bottom: 1em; }
.directory li { break-inside: avoid; }

/* FAQs */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Long text pages (privacy, accessibility) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.note {
  background: #fff8db; border: 1px solid #f1d77a; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 28px; font-size: 0.97rem;
}

/* Client logo grid (homepage) */
.clients-head { margin-top: 72px; max-width: none; }
.client-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.client-logos li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-logos li:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.client-logos li.on-dark { background: #23272B; border-color: #23272B; }  /* light logos need a dark tile */
.client-logos img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }

/* Blog articles */
.post-meta { font-size: 0.95rem; margin-top: 14px; }
.article-body { margin: 0 auto; }
.article-body h2 { font-size: 1.7rem; margin-top: 2em; }
.article-body h3 { font-size: 1.35rem; margin-top: 1.8em; }
.article-body h4 { font-size: 1.1rem; margin-top: 1.6em; color: var(--muted); }
.article-body img {
  display: block; margin: 16px 0 28px;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
}
.article-body [id] { scroll-margin-top: 100px; }
.article-body code {
  background: var(--blue-tint); color: var(--blue-text);
  padding: 2px 6px; border-radius: 6px; font-size: 0.92em;
}
.article-body li { margin-bottom: 0.5em; }

/* Blog list */
.post-card h2 { font-size: 1.35rem; margin-bottom: 0.4em; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue-text); }
.post-card .post-meta { margin: 0 0 10px; color: var(--muted); }

/* Reviews widget slot */
.reviews-widget:empty { display: none; }

/* ---------- Placeholders ----------
   Yellow highlighted text = something still to fill in. */
.placeholder {
  background: #fff4b8;
  color: #0f172a;
  outline: 1px dashed #d4a800;
  padding: 0 4px;
  border-radius: 3px;
}
