/* derin.css — small overrides layered on top of the shared style.css
   Gives Derin Atelier a warmer, teal-forward identity and adds a few
   classes the shared stylesheet doesn't define. */

/* Logo image in the nav / footer instead of the "SS" text mark */
.brand-mark-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

/* Link back to the parent construction company in the nav */
.nav-parent-link {
  font-size: .82rem;
  color: var(--muted, #64748b);
  align-self: center;
  white-space: nowrap;
}
.nav-parent-link:hover { color: var(--gold, #d4af37); }

/* ── Gallery grid ─────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.gallery-card {
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 24, 40, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, .14);
}
.gallery-card .project-thumb { border-radius: 0; }
.gallery-body { padding: 16px 18px 20px; }
.gallery-body .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0b7f8c;
  background: #e4f6f7;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.gallery-body h3 { margin: 0 0 6px; font-size: 1.08rem; }
.gallery-body p { margin: 0; color: var(--muted, #64748b); font-size: .92rem; }

/* Gallery filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 30px;
}
.filter-chip {
  border: 1px solid #d9d3c7;
  background: #fff;
  color: #4b4335;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--gold, #d4af37); }
.filter-chip.active {
  background: linear-gradient(135deg, #f3d98a, #d4af37);
  border-color: transparent;
  color: #241800;
}

/* Hero collage of interior canvases */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  perspective: 1000px;
}
.hero-collage img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-collage img:nth-child(1) { transform: translateY(6px) rotate(-1.5deg); }
.hero-collage img:nth-child(2) { transform: translateY(-10px) rotate(1.5deg); }
.hero-collage img:nth-child(3) { transform: translateY(10px) rotate(1deg); }
.hero-collage img:nth-child(4) { transform: translateY(-4px) rotate(-1deg); }

@media (max-width: 720px) {
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .nav-parent-link { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM MOTION LAYER  (paired with derin-fx.js)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal, #17a2a2), var(--gold, #e0b24a));
  box-shadow: 0 1px 8px rgba(224, 178, 74, .5);
}

/* ── Aurora glow overlay for the hero ────────────────────────────────── */
.aurora { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(90px); opacity: .5; mix-blend-mode: screen;
}
.aurora::before {
  background: radial-gradient(circle, rgba(23, 162, 162, .6), transparent 65%);
  top: -20%; left: -10%; animation: auroraA 18s ease-in-out infinite;
}
.aurora::after {
  background: radial-gradient(circle, rgba(224, 178, 74, .5), transparent 65%);
  bottom: -25%; right: -10%; animation: auroraB 22s ease-in-out infinite;
}
@keyframes auroraA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,6%) scale(1.15); } }
@keyframes auroraB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%,-8%) scale(1.2); } }

/* ── Hero collage: Ken-Burns + shine + depth ─────────────────────────── */
.hero-collage { will-change: transform; }
.hero-collage .tile { position: relative; overflow: hidden; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); }
.hero-collage .tile img { width: 100%; display: block; border-radius: 0; border: 0; box-shadow: none;
  transform: scale(1.04); transition: transform 8s ease; }
.hero-collage .tile:hover img { transform: scale(1.14); }
.hero-collage .tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(115deg,
    transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .9s var(--ease, ease);
}
.hero-collage .tile:hover::after { transform: translateX(120%); }
.hero-collage .tile:nth-child(1) { transform: translateY(6px) rotate(-1.5deg); }
.hero-collage .tile:nth-child(2) { transform: translateY(-10px) rotate(1.5deg); }
.hero-collage .tile:nth-child(3) { transform: translateY(10px) rotate(1deg); }
.hero-collage .tile:nth-child(4) { transform: translateY(-4px) rotate(-1deg); }

/* ── Lazy image fade-in ──────────────────────────────────────────────── */
.img-fade { opacity: 0; transform: scale(1.02); transition: opacity .8s ease, transform .8s ease; }
.img-fade.loaded { opacity: 1; transform: none; }

/* ── Directional reveals ─────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transition: opacity .8s var(--ease, ease), transform .8s var(--ease, ease); will-change: transform, opacity; }
[data-reveal="up"]    { transform: translateY(38px); }
[data-reveal="left"]  { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Auto-scrolling image ribbon ─────────────────────────────────────── */
.ribbon { overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; gap: 18px; width: max-content; animation: ribbonScroll 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track img { height: 150px; width: 220px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(11, 22, 38, .16); border: 1px solid rgba(255, 255, 255, .5); }
@keyframes ribbonScroll { to { transform: translateX(-50%); } }

/* ── Stat band ───────────────────────────────────────────────────────── */
.stat-band { background: linear-gradient(135deg, #0c2b2b, #103f3d); color: #eafffb; position: relative; overflow: hidden; }
.stat-band::before { content: ""; position: absolute; inset: 0;
  background-image: url("../img/wood.svg"); background-size: 420px auto; opacity: .1; }
.stat-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 46px 0; text-align: center; }
.stat-grid .stat strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1;
  background: linear-gradient(135deg, #f3d98a, #17a2a2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-grid .stat span { display: block; margin-top: 8px; color: #a9e6e0; font-size: .9rem; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }

/* ── Testimonials ────────────────────────────────────────────────────── */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 2; }
.tcard { position: relative; background: #fff; border: 1px solid var(--line, #e7ebf2); border-radius: 18px;
  padding: 28px 26px 24px; box-shadow: 0 10px 30px rgba(11, 22, 38, .07);
  transition: transform .3s var(--ease, ease), box-shadow .3s; overflow: hidden; }
.tcard:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(11, 22, 38, .14); }
.tcard::before { content: "\201C"; position: absolute; top: -18px; right: 14px;
  font-family: Georgia, serif; font-size: 6rem; color: rgba(23, 162, 162, .12); }
.tcard .stars { color: #e0b24a; letter-spacing: 2px; font-size: .95rem; }
.tcard blockquote { margin: 12px 0 18px; font-size: 1rem; color: #34435a; line-height: 1.6; }
.tcard .twho { display: flex; align-items: center; gap: 12px; }
.tcard .tavatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #093; color: #0b3d3a;
  background: linear-gradient(135deg, #cdeeea, #a9e6e0); }
.tcard .tname { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy, #0b1626); font-size: .96rem; }
.tcard .trole { color: var(--muted, #64748b); font-size: .84rem; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }

/* ── Before → After slider ───────────────────────────────────────────── */
.ba { position: relative; max-width: 860px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg, 0 28px 64px rgba(11, 22, 38, .18)); border: 1px solid rgba(255, 255, 255, .12); user-select: none; }
.ba img { display: block; width: 100%; height: auto; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-after img { width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; bottom: 14px; z-index: 4; padding: 6px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(8, 15, 26, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); }
.ba-label.l-before { left: 14px; }
.ba-label.l-after { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; z-index: 5;
  background: rgba(255, 255, 255, .9); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.ba-handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #0b1626;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 1rem; }
.ba-range { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ── Floating action buttons ──────────────────────────────────���──────── */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: none; font-size: 1.5rem; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease, ease), box-shadow .25s, opacity .3s; text-decoration: none; }
.fab:hover { transform: translateY(-4px) scale(1.05); text-decoration: none; }
.fab-wa { background: linear-gradient(135deg, #25d366, #12924a); }
.fab-wa::after { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(37, 211, 102, .5); animation: fabPing 2.4s ease-out infinite; z-index: -1; }
.fab-top { background: linear-gradient(135deg, var(--navy-3, #1b3355), var(--navy, #0b1626));
  opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
@keyframes fabPing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ── Section divider (soft wave) ─────────────────────────────────────── */
.divider-wave { display: block; width: 100%; height: 60px; }

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after, .ribbon-track, .fab-wa::after,
  .hero-collage .tile img { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}


