/*
 * Debra Carroll – Careers Advisor
 * Rebuild of the original "Debra Carroll Theme" (minimal portfolio, v1.2, Matthew Wells)
 * for a static Cloudflare Pages site. Same look on desktop; now responsive, accessible
 * and dependency-free (no jQuery, no web fonts).
 */

:root {
  --pink: #eb3977;          /* primary colour (links, h3, logo text) */
  --pink-light: #f388ad;    /* original button hover */
  --pink-button: #d92b68;   /* slightly deeper pink so white button text meets WCAG AA */
  --link: var(--pink);      /* small-text links; set to #d92b68 for WCAG AA contrast */
  --ink: #333;              /* body text, headings */
  --grey: #afafaf;          /* menu, tagline, footer text */
  --grey-mid: #777;
  --line: #ccc;
  --panel: #f0f0f0;         /* footer band */
  --page: 940px;            /* original fixed width */
  --gutter: 16px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body, form, h1, h2, h3, h4, h5, h6, p, img, a, figure, blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
  color: var(--ink);
  background-color: #fff;
  /* bg_top_outer.jpg: 3px #dfdfdf rule, then a soft grey-to-white fade */
  background-image: linear-gradient(#dfdfdf 0, #dfdfdf 3px, #f2f2f2 3px, #fff 110px);
  background-repeat: no-repeat;
  background-size: 100% 113px;
}

img { max-width: 100%; height: auto; }
picture { display: contents; }

/* ---------- Typography (from style.css) ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { padding: 8px 0; line-height: 1.2; }
h1, .h1 { font-size: 2.4em; color: var(--ink); }
h2, .h2 { font-size: 2.2em; color: var(--ink); }
h3, .h3 { font-size: 1.6em; color: var(--pink); }
h4, .h4 { font-size: 1.5em; color: var(--grey-mid); }
h5, .h5 { font-size: 1.4em; color: var(--ink); }
h6, .h6 { font-size: 1.2em; color: var(--ink); letter-spacing: -0.02em; }

p { padding: 8px 0; line-height: 140%; }
li { padding: 3px 0; line-height: 140%; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px dotted var(--line);
  background: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--pink);
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* top bar – where the old "Client Login" button sat */
.topbar {
  width: min(780px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 10px 0 12px;
  font-size: 11px;
  line-height: 23px;
  text-align: right;
}
.topbar-btn,
.topbar-btn:hover {
  display: inline-block;
  padding: 4px 8px 6px;
  border-radius: 4px;
  background: var(--pink-button);
  color: #fff;
  font-weight: bold;
  line-height: 13px;
  text-decoration: none;
}
.topbar-btn:hover { background: #c8235e; }

.main {
  /* bg_top_inner.jpg: 3px #333 rule then the same fade */
  background-image: linear-gradient(#333 0, #333 3px, #f2f2f2 3px, #fff 110px);
  background-repeat: no-repeat;
  background-size: 100% 113px;
  padding-bottom: 20px;
}

/* logo */
.logo { padding: 40px 0 20px; text-align: center; }
.logo a { display: inline-block; line-height: 0; }
.logo img { width: 192px; height: auto; }

/* main menu */
.menu { padding: 20px 0; text-align: center; }
.menu ul {
  margin: 0 auto;
  padding: 2px 0 0;
  list-style: none;
  border-top: 1px dotted var(--grey);
  border-bottom: 1px dotted var(--grey);
}
.menu li { display: inline-block; padding: 0; }
.menu a {
  display: inline-block;
  padding: 0 20px;
  line-height: 40px;
  color: var(--grey);
  text-transform: uppercase;
  font-weight: bold;
}
.menu a:hover,
.menu a[aria-current],
.menu a.current { color: var(--ink); text-decoration: none; }

/* big grey tagline / testimonial quote under the menu */
.tagline { padding: 20px 0; }
.tagline p,
.tagline h1 {
  padding: 8px 0;
  text-align: center;
  font-size: 3em;
  font-weight: normal;
  color: var(--grey);
  line-height: 1.1em;
  letter-spacing: -0.04em;
}
.tagline a:hover { color: var(--ink); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .tagline { animation: dc-fade-in 1.5s ease-in both; }
}
@keyframes dc-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* columns (600 + 40 + 300 = 940) */
.columns { display: flex; gap: 40px; align-items: flex-start; }
.column { padding: 20px 0; }
.column-600 { flex: 0 1 600px; min-width: 0; }
.column-300 { flex: 0 1 300px; min-width: 0; }
.pod { padding: 0 0 20px; }
.pod h2 { font-size: 2.2em; }

.page-content::after, .clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Sub-navigation ---------- */
.subnav-group h2 { padding: 8px 0; }
.sub-menu {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
.sub-menu li { display: inline-block; margin: 0; padding: 2px 0; }
.sub-menu a { display: inline-block; padding: 5px 10px 0 0; font-size: 75%; }
.sub-menu a[aria-current] { color: var(--ink); }

/* ---------- Content images ---------- */
img.border-thin { padding: 1px; border: 1px solid #ededee; }
img.border-thick { padding: 1px; border: 4px solid #ededed; }
img.border-black { border: 5px solid #000; }
img.center, img.aligncenter { display: block; margin: 0 auto; }
img.alignright, .alignright { float: right; margin: 0 0 10px 10px; }
a.photo { display: block; line-height: 0; }
img.alignleft, .alignleft { float: left; margin: 0 10px 10px 0; }
.banner { padding: 8px 0; }
.banner img { display: block; margin: 0 auto; }

.page-content ul, .page-content ol { margin: 8px 0; padding-left: 40px; }

/* ---------- Home: promo list with the big round icons ---------- */
ul.large { margin: 0; padding: 0; list-style: none; }
ul.large li { margin: 0; padding: 0; border-bottom: 1px dotted var(--line); }
ul.large a {
  display: block;
  padding: 20px 0 20px 80px;
  color: var(--grey);
  font-size: 110%;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 66px 66px;
}
ul.large a:hover { color: var(--ink); text-decoration: none; }
ul.large span { display: block; }
ul.large .heading { font-size: 1.4em; font-weight: bold; color: var(--ink); padding-bottom: 2px; }
ul.large .summary { font-weight: bold; line-height: 1.3; }
ul.large a:hover .summary { color: var(--pink); }
.icon-information { background-image: url(/assets/img/theme/icons/information.jpg); background-image: image-set(url(/assets/img/theme/icons/information.webp) type("image/webp"), url(/assets/img/theme/icons/information.jpg) type("image/jpeg")); }
.icon-check-mark  { background-image: url(/assets/img/theme/icons/check-mark.jpg);  background-image: image-set(url(/assets/img/theme/icons/check-mark.webp) type("image/webp"), url(/assets/img/theme/icons/check-mark.jpg) type("image/jpeg")); }
.icon-person      { background-image: url(/assets/img/theme/icons/person.jpg);      background-image: image-set(url(/assets/img/theme/icons/person.webp) type("image/webp"), url(/assets/img/theme/icons/person.jpg) type("image/jpeg")); }

/* sidebar lists */
.recent-posts { margin: 0; padding: 0; list-style: none; }

/* social icons (same look as the WordPress social links block) */
.social { display: flex; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.social li { padding: 0; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform .1s ease;
}
.social a:hover { transform: scale(1.1); text-decoration: none; }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social .facebook { background: #0866ff; }
.social .twitter { background: #1da1f2; }
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } .social a:hover { transform: none; } }

/* ---------- FAQ page ---------- */
.faq-index { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.faq-index img { flex: 0 0 66px; }
.faq-index ul { margin: 0; padding-left: 20px; font-weight: bold; }
.anchor-target { scroll-margin-top: 16px; }

/* ---------- Testimonials ---------- */
ul.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.testimonials li { padding: 0; border-bottom: 1px dotted var(--line); }
.testimonials blockquote { padding: 16px 0; }
.testimonials p {
  padding: 0;
  font-size: 1.45em;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--grey-mid);
}
.testimonials p::before { content: "\201C"; color: var(--pink); }
.testimonials p::after { content: "\201D"; color: var(--pink); }

/* ---------- Links page ---------- */
.link-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}
.link-groups section { padding-bottom: 12px; }
.link-groups ul { margin: 0; padding: 0; list-style: none; }
.link-groups li { padding: 4px 0; }
.link-exchange { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 8px 0; }
.link-exchange textarea {
  flex: 1 1 320px;
  min-height: 112px;
  padding: 7px;
  border: 3px solid #eee;
  background: #fefefe;
  font: 12px/1.4 Consolas, Menlo, monospace;
  color: var(--ink);
  resize: vertical;
}

/* ---------- Blog ---------- */
.post { padding: 8px 0 12px; }
.post h2 { font-size: 1.6em; padding-bottom: 4px; }
.post h2 a { color: var(--pink); }
.meta { padding: 3px 10px; font-size: 75%; background: #efefef; }
.meta .date { padding-right: 10px; font-weight: bold; }

/* ---------- Contact form (the theme's .standardForm look) ---------- */
.standard-form { margin: 8px 0 15px; }
.standard-form .field { padding: 5px 0; }
.standard-form label { display: block; font-weight: bold; padding-bottom: 3px; }
.standard-form .req { font-weight: normal; color: var(--grey-mid); }
.standard-form input[type="text"],
.standard-form input[type="email"],
.standard-form input[type="tel"],
.standard-form textarea {
  display: block;
  width: 500px;
  max-width: 100%;
  padding: 7px;
  border: 3px solid #eee;
  background: #fefefe;
  font: bold 110% Arial, Helvetica, sans-serif;
  color: var(--ink);
  border-radius: 0;
}
.standard-form textarea { height: 180px; font-weight: normal; line-height: 1.4; resize: vertical; }
.standard-form input:focus, .standard-form textarea:focus { border-color: #f6c3d6; outline-offset: 0; }
.standard-form [aria-invalid="true"] { border-color: #e7a3bb; }
.standard-form .error-text { display: block; color: #b0003a; font-size: 90%; padding-top: 3px; }
.standard-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.standard-form .turnstile { padding: 8px 0; min-height: 65px; }
.standard-form button {
  padding: 6px 18px;
  border: 3px solid #eee;
  background: #767676;
  color: #fff;
  font: bold 110% Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.standard-form button:hover { background: var(--pink-button); border-color: #f6c3d6; }
.standard-form button[disabled] { opacity: .6; cursor: progress; }
.form-status { padding: 8px 0; font-weight: bold; }
.form-status.is-error { color: #b0003a; }
.form-thanks h2 { color: var(--pink); font-size: 1.6em; }

/* ---------- Footer ---------- */
.footer {
  /* bg_bottom_outer.gif: a 1px white highlight on the grey band */
  background: linear-gradient(var(--panel) 0 1px, #fff 1px 2px, var(--panel) 2px);
  text-align: center;
  color: var(--grey);
  font-size: 80%;
}
.footer .wrap { padding: 20px 0 80px; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { display: inline-block; padding: 2px 0; }
.footer-menu a { padding: 0 5px; font-size: 95%; }
.footer .badge { display: inline-block; margin-top: 18px; line-height: 0; }

/* ---------- Lightbox (replaces prettyPhoto) ---------- */
.lightbox {
  max-width: 94vw;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; width: auto; height: auto; border: 6px solid #fff; }
.lightbox button {
  position: absolute;
  top: -14px; right: -14px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: bold 20px/32px Arial, sans-serif;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu a { padding: 0 12px; }
}

@media (max-width: 767px) {
  .logo { padding: 28px 0 8px; }
  .logo img { width: 150px; }
  .menu { padding: 12px 0; }
  .menu a { padding: 0 9px; line-height: 34px; font-size: 13px; }
  .tagline { padding: 8px 0; }
  .tagline p, .tagline h1 { font-size: clamp(1.55rem, 6.6vw, 2.2rem); }
  .tagline br { display: none; }
  .columns { flex-direction: column; gap: 0; }
  .column-600, .column-300 { flex-basis: auto; width: 100%; }
  .column { padding: 12px 0; }
  h2, .h2, .pod h2 { font-size: 1.8em; }
  h1, .h1 { font-size: 2em; }
  ul.large a { padding-left: 72px; background-size: 56px 56px; background-position: left 24px; }
  ul.testimonials { grid-template-columns: 1fr; }
  .link-groups { grid-template-columns: 1fr 1fr; }
  img.alignright, a.photo.alignright { float: none; display: table; margin: 8px auto; }
  .footer .wrap { padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .link-groups { grid-template-columns: 1fr; }
  .sub-menu a { font-size: 85%; padding-top: 6px; }
}

@media print {
  .topbar, .menu, .sub-menu, .footer-menu, .skip-link, .social { display: none !important; }
  body, .main { background: none; }
  a { color: inherit; }
  .tagline { animation: none; }
}
