/* Palette + Bootstrap 5.3 overrides for kimdesignsit.com */
:root, [data-bs-theme="light"] {
  --fern:#768E78; --pistachio:#C6C09C; --fennel:#EBDEC0; --blossom:#FECDBE;
  --peony:#E79897; --bluebell:#B7CBDB; --honey:#FCC88A;
  --ink:#2B372E; --serif:"Young Serif",Georgia,serif; --sans:"Figtree",system-ui,sans-serif;

  --bs-body-bg:#FAF4E9; --bs-body-color:#2B372E; --bs-secondary-color:#55635A;
  --bs-body-font-family:var(--sans); --bs-body-line-height:1.6;
  --bs-border-color:#E3D8BF; --bs-link-color:#2B372E; --bs-link-hover-color:#2B372E;
  --bs-focus-ring-color:rgba(118,142,120,.45);

  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
html { scroll-padding-top:5rem; scroll-behavior:smooth; }
:focus-visible { outline:3px solid var(--fern); outline-offset:3px; }

h1, h2, h3, .navbar-brand { font-family:var(--serif); font-weight:400; }
h1 { font-size:clamp(2.5rem,6vw,4.4rem); line-height:1.04; letter-spacing:-.01em; margin-bottom:1.4rem; }
h2 { font-size:clamp(1.9rem,4vw,2.6rem); line-height:1.1; margin-bottom:.9rem; }
.lead { max-width:36em; }

/* Navbar (sticky, same cream as the hero) */
.site-nav {
  background:var(--bs-body-bg);
  padding-top:1.6rem; padding-bottom:1.6rem;
  border-bottom:1px solid transparent;
  transition:all .4s ease;
}
.site-nav.scrolled {
  background:rgba(250,244,233,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  padding-top:.6rem; padding-bottom:.6rem;
  border-bottom-color:rgba(43,55,46,.15);
  box-shadow:0 2px 20px rgba(43,55,46,.10);
}
.site-nav .navbar-toggler { border-color:rgba(43,55,46,.4); }
.navbar-brand { font-size:1.25rem; }
.nav-link { font-weight:500; color:var(--ink); }
.nav-link { position:relative; }
.nav-link::after { content:""; position:absolute; left:var(--bs-nav-link-padding-x,.5rem); bottom:2px; width:0; height:3px; border-radius:2px; background:var(--peony); transition:width .3s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width:calc(100% - 2 * var(--bs-nav-link-padding-x,.5rem)); }
@media (prefers-reduced-motion:reduce) { .site-nav, .nav-link::after { transition:none; } }

/* Buttons */
.btn-honey {
  --bs-btn-bg:#FCC88A; --bs-btn-border-color:#FCC88A; --bs-btn-color:#2B372E;
  --bs-btn-hover-bg:#E79897; --bs-btn-hover-border-color:#E79897; --bs-btn-hover-color:#2B372E;
  --bs-btn-active-bg:#E79897; --bs-btn-active-border-color:#E79897; --bs-btn-active-color:#2B372E;
  --bs-btn-disabled-bg:#FCC88A; --bs-btn-disabled-border-color:#FCC88A; --bs-btn-disabled-color:#2B372E;
  --bs-btn-focus-shadow-rgb:118,142,120; font-weight:700;
}
.btn-outline-fern {
  --bs-btn-color:#2B372E; --bs-btn-border-color:#768E78; --bs-btn-border-width:2px;
  --bs-btn-hover-bg:#EBDEC0; --bs-btn-hover-border-color:#768E78; --bs-btn-hover-color:#2B372E;
  --bs-btn-active-bg:#EBDEC0; --bs-btn-active-border-color:#768E78; --bs-btn-active-color:#2B372E;
  --bs-btn-focus-shadow-rgb:118,142,120; font-weight:700;
}

/* Sections */
.hero { padding-top:3rem; padding-bottom:5.5rem; }
.section { padding:80px 0; }
.band { background:var(--fennel); color:#2B372E; --bs-secondary-color:#4A5A4E; }
.band-white { background:#FFFFFF; }
.contact { background:var(--bluebell); color:#2B372E; }
.contact .lead { color:#3F4E58; }

/* Hero swatch bars */
.fan { display:flex; gap:8px; justify-content:center; align-items:flex-end; height:360px; }
.fan span { flex:1; max-width:46px; border-radius:999px; }
.fan span:nth-child(1){background:var(--fern);height:80%}
.fan span:nth-child(2){background:var(--pistachio);height:62%}
.fan span:nth-child(3){background:var(--fennel);height:92%}
.fan span:nth-child(4){background:var(--blossom);height:54%}
.fan span:nth-child(5){background:var(--peony);height:74%}
.fan span:nth-child(6){background:var(--bluebell);height:100%}
.fan span:nth-child(7){background:var(--honey);height:66%}

/* Work tiles */
.work-group { font-size:1.5rem; margin:2.5rem 0 1.2rem; }
.work-group:first-of-type { margin-top:1rem; }
.tile { --bs-card-bg:#FFFBF3; --bs-card-border-color:#E3D8BF; border-radius:22px; overflow:hidden; }
.shot { position:relative; aspect-ratio:4 / 3; overflow:hidden; display:grid; place-items:center; padding:16px; text-align:center; color:#2B372E; font:1.4rem var(--serif); }
.shot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.tile .card-body { padding:16px 20px; }
.tile b a { text-decoration-color:var(--peony); text-decoration-thickness:2px; text-underline-offset:4px; }

/* Tile opens modal */
.tile { transition:transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(43,55,46,.12); }
.tile-open { background:none; border:0; padding:0; font:inherit; font-weight:700; color:inherit; text-align:left; cursor:pointer; }
.tile-open:focus-visible { outline:none; }
.tile:has(.tile-open:focus-visible) { outline:3px solid var(--fern); outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .tile { transition:none; } .tile:hover { transform:none; } }

/* Short blurb on tiles */
.tile-blurb { margin:.5rem 0 .75rem; font-size:.95rem; line-height:1.5; color:var(--bs-secondary-color);
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

/* Live site link on website tiles */
.visit-link { position:relative; z-index:2; display:inline-block; font-weight:700; font-size:.95rem; color:var(--ink); text-decoration:underline; text-decoration-color:var(--peony); text-decoration-thickness:2px; text-underline-offset:4px; }
.visit-link:hover { text-decoration-color:var(--fern); }

/* Icon service grid (Websites / Graphic design pages) */
.svc-item { display:flex; flex-direction:column; align-items:center; gap:.9rem; }
.svc-icon { font-size:3.25rem; line-height:1; color:var(--fern); }
.svc-label { font-size:1.1rem; line-height:1.35; max-width:14rem; }

/* Service cards */
.svc { --bs-card-bg:#FFFBF3; --bs-card-border-width:0; border-radius:22px; border-top:10px solid var(--fern); }
.svc-peony { border-top-color:var(--peony); }
.svc h3 { font-size:1.5rem; margin-bottom:.6rem; }

/* Form */
.form-control { background:#FFFBF3; border:2px solid transparent; border-radius:14px; color:#2B372E; }
.form-control:focus { background:#FFFBF3; border-color:var(--fern); box-shadow:none; color:#2B372E; }

/* Footer */
footer { background:var(--ink); color:#FAF4E9; font-size:.95rem; }
footer i { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:5px; }

@media (max-width:991.98px) { .fan { height:220px; } }

/* Project modal */
.modal-backdrop { --bs-backdrop-bg:#2B372E; --bs-backdrop-opacity:.6; }
#projectModal .modal-content { background:#FFFBF3; border:0; border-radius:22px; overflow:hidden; color:var(--ink); }
.modal-inner { display:grid; grid-template-columns:1fr 1fr; min-height:480px; }
.modal-inner-images { background:var(--fennel); overflow:hidden; min-height:100%; }
.modal-carousel-img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.modal-inner-images .carousel, .modal-inner-images .carousel-inner, .modal-inner-images .carousel-item { height:100%; }
.modal-no-image { width:100%; height:100%; display:grid; place-items:center; font:4rem var(--serif); color:var(--fern); }
.modal-inner-content { position:relative; padding:3rem 2.5rem; display:flex; flex-direction:column; }
.modal-close-btn { position:absolute; top:1rem; right:1rem; z-index:5; }
.modal-project-type { font-size:.75rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:#556E59; margin-bottom:.6rem; }
.modal-project-title { font:clamp(1.8rem,3vw,2.4rem)/1.1 var(--serif); margin:0; padding-right:2rem; }
.modal-divider { width:44px; height:3px; border-radius:2px; background:var(--peony); margin:1.4rem 0; }
.modal-project-desc { line-height:1.75; color:var(--bs-secondary-color); }
.modal-project-desc p { margin-bottom:.9rem; }
.modal-skills-wrap { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.1rem; }
.modal-skill { background:var(--fennel); color:var(--ink); border-radius:999px; padding:.25rem .85rem; font-size:.85rem; font-weight:500; }
@media (max-width:768px) {
  .modal-inner { grid-template-columns:1fr; min-height:0; }
  .modal-inner-images { min-height:230px; max-height:280px; }
  .modal-inner-content { padding:2rem 1.5rem; }
}
