
/* ML Jones Bookkeeping theme overrides */
:root{
    --primary: #7b5cd6; /* light purple */
    --primary-600: #6a4bc7;
    --primary-700: #5a3db3;
    --bg: #faf7ff; /* very light purple tint */
    --text: #1f1f29;
    --muted: #6b7280;
    --card: #ffffff;
    --accent: #b493ff;
}
body{
    background: var(--bg);
    color: var(--text);
}
/* Top nav icons and active state */
#nav a{
    color: var(--primary);
    border-color: var(--primary);
}
#nav a.active{
    background: var(--primary);
    color: white !important;
}
/* Panels */
.panel{
    background: var(--card);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    border-radius: 14px;
}
.panel header h2, .panel header h3 { color: var(--primary-700); }
.button{
    background: var(--primary);
    border: 0;
    color: #fff !important;
}
.button.alt{ background: var(--primary-600); }
a{ color: var(--primary-700); }
hr{ border-color: rgba(125, 92, 214, .25); }
.badge{
    display:inline-block; padding:.4rem .6rem; border-radius:999px;
    background: var(--accent); color:#1b1039; font-weight:600; font-size:.85rem;
}
.kv{
    display:grid; grid-template-columns: 120px 1fr; gap:.25rem .75rem; margin-top:.5rem;
}
.hero{
    display:grid; grid-template-columns: 1fr 320px; gap:2rem; align-items:center;
}
.hero img{ width:100%; height:auto; border-radius: 16px; box-shadow:0 12px 24px rgba(0,0,0,.12); }
.callouts{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1rem; }
.card{ background: var(--card); padding:1rem; border-radius:12px; box-shadow:0 6px 16px rgba(0,0,0,.08); }
.contact-quick a{ display:inline-block; margin:.25rem .25rem 0 0; }
.small{ font-size:.9rem; color:var(--muted); }

.callouts{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr)); /* 1 row of 4 */
    gap:16px;
}
.callouts .card{
    float:none !important;
    width:auto !important;
    display:flex;            /* optional: equal height cards */
    flex-direction:column;
}

/* breakpoint: 2×2 layout */
@media (max-width: 1100px){
    .callouts{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

/* small screens: single column */
@media (max-width: 560px){
    .callouts{ grid-template-columns:1fr; }
}

article {
    max-width: 85vw;
    height: fit-content;
    max-height: 75vh;
    overflow-y: auto;
}

#contact.panel header { margin-bottom: 8px; }
#contact p { margin: 0 0 8px; }

#contact .contact-quick{
    display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px;
}
#contact .contact-quick .button{
    padding:.5rem .75rem; font-size:.9rem; line-height:1.1;
}

#contact form .row > *{
    padding: 0 !important;
}
#contact form .row{
    display:grid;
    grid-template-columns: 1fr;  /* one column = each control on its own row */
    gap:8px;
    padding-left: 32px;
    padding-right: 0px;
    padding-top: 32px;
    padding-bottom: 0px;
}

#contact{
    max-width: 960px;          /* was narrow; widen */
    margin: 0 auto;
    padding: 16px 20px;
}

/* One field per row (from before), with a bit more spacing */
#contact form .row{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    padding-left: 32px;
    padding-right: 0px;
    padding-top: 32px;
    padding-bottom: 0px;
}

/* Larger inputs and textarea */
#contact input,
#contact textarea{
    width:100%;
    box-sizing:border-box;
    font-size:1rem;
    padding:.75rem .9rem;
}
#contact textarea{ min-height: 160px; }

/* Bigger buttons */
#contact .contact-quick .button,
#contact .actions .button{
    font-size:1rem;
    padding:.75rem 1rem;
    line-height:1.2;
}

/* Keep Send aligned right on desktop, full-width on mobile */
#contact .actions{ justify-self:end; }
@media (max-width:560px){
    #contact{ padding:12px; }
    #contact .contact-quick .button,
    #contact .actions .button{ width:100%; text-align:center; }
    #contact .actions{ justify-self:stretch; }
}

.contact-quick .button,
.actions .button{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.button .icon{ line-height:0; font-size:1.05em; }

#qualifications .certs{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:16px;
    align-items:start;
}
#qualifications .certs img{
    width:140px;
    height:auto;
    object-fit:contain;
    border-radius:8px;
}
@media (max-width:560px){
    #qualifications .certs{ grid-template-columns:1fr; }
}

/* About layout */
#about .about-grid{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:16px;
  align-items:start;
}
#about .about-photo img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:8px;
}
#about .about-photo figcaption{
  font-size:.8rem;
  opacity:.8;
  margin-top:6px;
}

/* readable copy */
#about .about-body p{ margin:0 0 10px; }

/* scannable lists */
#about .about-highlights,
#about .about-facts{
  list-style:none; padding:0; margin:8px 0;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
}
#about li{
  display:flex;
  align-items:center;   /* vertical centering */
  gap:8px;
}
#about li .icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.25em;
  height:1.25em;
  line-height:1;
  margin:0;
}

/* Keep CTA icon aligned too */
#about .about-cta .button{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Always reserve a scrollbar gutter when content can scroll */
article{
  overflow-y:auto;
  scrollbar-gutter:stable;      /* prevents layout shift, shows gutter when scrollable */
}

.home-grid {
    display: grid;
    padding: 8px;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-items: center;
    height: fit-content;
    max-height: 75vh;
}

.carousel {
    position: relative;
    display: inline-block;
}

.carousel img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 1.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel img:first-child {
    position: static; /* Baseline image sets the container size */
}

.carousel img.active {
    opacity: 1;
}

/* CTA */
#about .about-cta{ margin-top:8px; }

/* collapse long extras on mobile */
#about details{ margin-top:6px; }
#about summary{ cursor:pointer; }

/* stack on small screens */
@media (max-width:900px){
    #about .about-grid{ grid-template-columns: 1fr; }
}

/* stack on small screens */
@media (max-width:644px){
    .home-grid{ grid-template-columns: 1fr 2fr; }
}