/*
 * EDDINO CREATIVE LAB - CUSTOM STYLES (readable, safe to edit)
 * ------------------------------------------------------------
 * This file is loaded AFTER app.css, so its rules win over the originals.
 * app.css is minified (one long line): leave it alone and change things here.
 */

/* Hidden means hidden, even when a class sets display */
[hidden] { display: none !important; }

/* ---------- Home: hero title (short, on two lines) ---------- */
.hero-copy { max-width: min(1120px, 72vw); }
.hero-title { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12; }

/* ---------- Home: "What we do" cards, all the same size ---------- */
.grid-4 > .px { display: flex; }
.grid-4 .service-card { flex: 1; display: flex; flex-direction: column; height: 100%; }
.grid-4 .service-card p { flex: 1; }
.grid-4 .service-card .link-arrow { margin-top: auto; }

@media (max-width: 720px) {
  /* one card per row on phones: give them the same height too */
  .grid-4 .service-card { min-height: 350px; }
}

/* ---------- Home: "Let's make your brand stand out" box, original card, 3D pencil overflowing on the right ---------- */
.cta-copy { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; position: relative; z-index: 2; }
.cta-pencil {
  position: absolute; right: -7%; top: 50%; transform: translateY(-50%);
  width: min(60%, 700px); height: 150%; z-index: 1; pointer-events: auto;
}
.cta-pencil canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Footer: social links ---------- */
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; opacity: 1;
  background: linear-gradient(145deg, var(--purple-2), var(--purple));
  box-shadow: inset 0 1px #ffffff80, 0 12px 24px -12px #7f2a8eb3;
  transition: transform 0.5s var(--spring), box-shadow 0.4s;
}
.socials a:hover { transform: translateY(-3px); box-shadow: inset 0 1px #ffffff80, 0 18px 30px -12px #7f2a8ee6; }
.socials svg { width: 20px; height: 20px; }

/* ---------- Contact: WhatsApp button ---------- */
.btn--wa {
  background: linear-gradient(135deg, #3ddc84, #128c4a);
  box-shadow: inset 0 1px #fff5, 0 18px 40px -14px #128c4acc;
  align-self: flex-start;
}
.btn--wa:hover { box-shadow: inset 0 1px #fff5, 0 26px 50px -14px #128c4aee; }

/* ---------- Presentation page (9:16 video) ---------- */
.presentation-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.video-frame { margin: 0; padding: 14px; border-radius: var(--radius-xl); position: relative; }
.presentation-video {
  display: block; width: 100%; aspect-ratio: 9 / 16; height: auto;
  object-fit: cover; border-radius: 24px; background: #120c16;
}
.video-missing {
  position: absolute; inset: 14px; margin: 0;
  display: grid; place-items: center; text-align: center;
  padding: 28px; border-radius: 24px;
  background: #ffffffd9; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.presentation-cta {
  padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
.presentation-cta h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; margin: 0; }
.presentation-cta p { color: var(--muted); line-height: 1.75; margin: 0; }
@media (max-width: 860px) {
  .presentation-grid { grid-template-columns: 1fr; }
  .presentation-video { max-width: 360px; margin: 0 auto; }
  .video-frame { max-width: 390px; margin: 0 auto; width: 100%; }
}

/* ---------- Blog list ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 18px 0 10px; }
.post-card p { color: var(--muted); line-height: 1.7; margin: 0 0 18px; flex: 1; }
.post-card .post-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.post-card .link-arrow { margin-top: auto; }
.blog-empty { padding: 40px; border-radius: var(--radius-xl); }
.blog-empty p { margin: 0; color: var(--muted); font-size: 18px; }

/* ---------- Blog post pages (blog/posts/*.html) ---------- */
.post-page .view { padding-top: 56px; max-width: 820px; margin: 0 auto; }
.post-page .post-back { display: inline-flex; margin-bottom: 28px; }
.post-body { padding: clamp(26px, 4vw, 56px); border-radius: var(--radius-xl); }
.post-body .tape { margin-bottom: 18px; }
.post-body h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -0.02em; }
.post-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); margin: 40px 0 12px; }
.post-body p { color: var(--muted); line-height: 1.85; margin: 0 0 18px; }
.post-body .lead { color: var(--ink); font-size: clamp(18px, 1.6vw, 21px); }
.post-body img { width: 100%; height: auto; border-radius: 20px; margin: 22px 0; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero-copy { max-width: 100%; }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }
  .cta-pencil { position: relative; right: auto; top: auto; transform: none; width: 100%; height: 300px; margin-top: 10px; }
}

/* Social icons in the footer: stay visible on hover */
.footer-col .socials a,
.footer-col .socials a:hover { opacity: 1; }
.footer-col .socials a { color: #fff; background: linear-gradient(145deg, var(--purple-2), var(--purple)); }
.footer-col .socials a:hover { color: var(--purple); background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--purple), 0 14px 26px -12px #7f2a8e99; }
html[data-theme=dark] .footer-col .socials a:hover { color: #e7b8f5; background: #ffffff14; box-shadow: inset 0 0 0 1.5px #e7b8f5; }

/* Quote: the highlighted words are always purple (light and dark mode) */
.quote em, .quote em * { color: var(--purple) !important; font-style: italic; }
html[data-theme=dark] .quote em, html[data-theme=dark] .quote em * { color: #c77be0 !important; }

/* French home title: each line stays on one line on desktop (3 lines total) */
@media (min-width: 861px) {
  html[lang=fr] .hero-title { white-space: nowrap; }
}

/* ---------- Golden 3D bubble (bottom right): glossy sphere that reacts to the mouse (orb.js) ---------- */
.orb-b {
  translate: var(--ox, 0px) var(--oy, 0px);
  background:
    radial-gradient(circle at var(--hx, 34%) var(--hy, 28%), #ffffff 0, #fff7cc 5%, #ffe072 16%, #ffb81f 38%, #e08a00 66%, #8a4f00 90%, #5a3000 100%);
  box-shadow:
    inset -14px -18px 30px #4a260066,
    inset 10px 12px 20px #fff3b833,
    0 30px 46px -16px #b86f00a6,
    0 8px 16px -8px #5a300066;
  opacity: 0.95;
}
html[data-theme=dark] .orb-b { opacity: 0.6; }

/* ---------- Service icons: semi-transparent glass tiles ---------- */
.icon-bubble {
  color: var(--purple);
  background: linear-gradient(145deg, #c878e685, #7f2a8e2e);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid #ffffff8c;
  box-shadow: inset 0 1px 0 #ffffffb3, inset 0 -10px 18px -12px #7f2a8e59, 0 14px 28px -14px #7f2a8e66;
}
.tone-gold .icon-bubble {
  color: #8a5a00;
  background: linear-gradient(145deg, #ffd45cb3, #ffb40052);
  box-shadow: inset 0 1px 0 #ffffffb3, inset 0 -10px 18px -12px #b8780055, 0 14px 28px -14px #ffb400b3;
}
.tone-teal .icon-bubble {
  color: #137a84;
  background: linear-gradient(145deg, #6fd6dfb3, #2bb3c052);
  box-shadow: inset 0 1px 0 #ffffffb3, inset 0 -10px 18px -12px #1e7f8855, 0 14px 28px -14px #2bb3c0b3;
}
html[data-theme=dark] .icon-bubble { color: #e7b8f5; }
html[data-theme=dark] .tone-gold .icon-bubble { color: #ffd45c; }
html[data-theme=dark] .tone-teal .icon-bubble { color: #8fe6ee; }
