/* home-refresh.css — homepage-only layer, loaded AFTER website-template.css.
   Keeps the original black + orange palette. Adds: folder-style services,
   non-square shapes, a smooth section divider, and images that always fill
   their box. Only index.html links this file. */

/* ── Type ────────────────────────────────────────────────── */
h1, h2 { letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.hero-title { font-size: clamp(2.75rem, 5.6vw, 5.5rem); line-height: 1.04; }
.section-title { font-size: clamp(2.4rem, 4.4vw, 4.25rem); line-height: 1.06; font-weight: 400; }

/* ── Shapes: pills and one-corner-cut instead of boxes ───── */
.btn, .nav-cta { border-radius: 999px; }
.tag, .portfolio-tags span { border-radius: 999px; }
.glass-card, .niche-card, .faq-item { border-radius: 32px 32px 32px 8px; }
.niche-thumb { border-radius: 26px 26px 26px 6px; }

/* ── Stacked layouts: headline first, search demo after ──── */
@media (max-width: 1100px) {
  .hero-content { order: 1; }
  .hero-visual  { order: 2; }
}

/* ── Services as folders ─────────────────────────────────── */
#services-grid { align-items: start; }

.folder { position: relative; }
.folder > summary { list-style: none; cursor: pointer; display: block; outline-offset: 4px; }
.folder > summary::-webkit-details-marker { display: none; }

.folder-tab {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: -1px; position: relative; z-index: 2;
  padding: .7rem 1.35rem .7rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text-primary);
  transition: background .3s ease, color .3s ease;
}
.folder-icon { width: 1.35rem; height: 1.35rem; color: #E25A3C; display: grid; place-items: center; transition: color .3s ease; }
.folder-icon svg { width: 100%; height: 100%; }

.folder-front {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 7.5rem; padding: 1.25rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0 28px 28px 28px;
  transition: border-color .3s ease;
}
.folder-hint { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.folder-plus {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; position: relative;
  border: 1px solid rgba(226, 90, 60, .55);
  transition: background .3s ease;
}
.folder-plus::before, .folder-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .9rem; height: 2px;
  background: #E25A3C; transform: translate(-50%, -50%); transition: transform .3s ease;
}
.folder-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.folder > summary:hover .folder-front { border-color: rgba(226, 90, 60, .6); }
.folder > summary:hover .folder-plus  { background: rgba(226, 90, 60, .12); }
.folder > summary:focus-visible .folder-tab { outline: 2px solid #F0A500; outline-offset: 2px; }

/* open state: tab fills orange, front becomes the top of the open sheet */
.folder[open] .folder-tab { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.folder[open] .folder-icon { color: #fff; }
.folder[open] .folder-front { border-radius: 0 28px 0 0; border-bottom-color: transparent; min-height: 4.5rem; }
.folder[open] .folder-hint { visibility: hidden; }
.folder[open] .folder-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.folder-body {
  margin-top: -1px; padding: .25rem 1.4rem 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border); border-top: 0;
  border-radius: 0 0 28px 28px;
}
.folder-body p { color: var(--text-secondary); font-size: .98rem; margin-bottom: 1.1rem; }
.folder[open] .folder-body { animation: folder-open .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes folder-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Work + image boxes: always fill, never letterbox ────── */
.portfolio-image-wrapper, .niche-thumb, .showcase-card { overflow: hidden; }
.portfolio-img, .niche-thumb img, .showcase-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.portfolio-item:nth-child(odd)  .portfolio-image-wrapper { border-radius: 72px 20px 72px 20px; }
.portfolio-item:nth-child(even) .portfolio-image-wrapper { border-radius: 20px 72px 20px 72px; }
@media (max-width: 700px) {
  .portfolio-grid { max-width: none; width: 100%; }
  .portfolio-item .portfolio-image-wrapper { width: 100%; }
  .portfolio-item:nth-child(odd)  .portfolio-image-wrapper { border-radius: 48px 16px 48px 16px; }
  .portfolio-item:nth-child(even) .portfolio-image-wrapper { border-radius: 16px 48px 16px 48px; }
  .niche-thumb { max-width: none; }
}

/* ── Reviews: speech bubbles and soft pills ──────────────── */
.review-card { border-radius: 32px 32px 32px 8px; position: relative; }
.review-featured { border-radius: 44px; }

/* ── Smooth divider (replaces the brown bar) ─────────────── */
.theme-separator {
  height: 140px; width: 100%; position: relative; overflow: hidden;
  background: linear-gradient(to bottom, var(--bg-color) 0%, var(--bg-color-alt) 100%);
}
.theme-separator::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(70vw, 760px); height: 220px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(226, 90, 60, .16), rgba(226, 90, 60, 0) 100%);
  filter: blur(12px);
}

.folder-body .service-link { color: #E25A3C; }
