/* ==========================================================================
   hermanos.tech — site enhancements (loaded after the app CSS)
   1. Navbar hover: pop-up + neon underline
   2. Services grid cards: watermark number, icon tile, hover lift
   3. Odoo AI panel chips: hover lift
   4. Desktop scaling for wide screens
   Pure CSS overrides on the built site — no rebuild needed.
   ========================================================================== */

/* ===== 1. Navbar ===== */
header a[code-path^="src/sections/Navbar.tsx:62"],
header button[code-path^="src/sections/Navbar.tsx:20"] {
  position: relative;
  transition:
    color .18s ease,
    transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

/* Pop-up: lift + a touch of scale. No pill, no ring. */
header a[code-path^="src/sections/Navbar.tsx:62"]:hover,
header button[code-path^="src/sections/Navbar.tsx:20"]:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: translateY(-3px) scale(1.04);
}

header a[code-path^="src/sections/Navbar.tsx:62"]:active {
  transform: translateY(-1px) scale(1.02);
  transition-duration: .08s;
}

/* Neon light bar under the item */
header a[code-path^="src/sections/Navbar.tsx:62"]::after,
header button[code-path^="src/sections/Navbar.tsx:20"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc, #ec4899);
  box-shadow:
    0 0 6px rgba(192, 132, 252, .95),
    0 0 14px rgba(139, 92, 246, .75),
    0 0 28px rgba(236, 72, 153, .45);
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: center;
  transition:
    opacity .18s ease,
    transform .3s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

header button[code-path^="src/sections/Navbar.tsx:20"]::after {
  left: 5px;
  right: 5px;
  bottom: 0;
}

header a[code-path^="src/sections/Navbar.tsx:62"]:hover::after,
header button[code-path^="src/sections/Navbar.tsx:20"]:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== 2. Services grid ===== */

/* Card & inner wrapper */
[code-path^="src/sections/ServicesGrid.tsx:28"] {
  padding: 28px;
}

/* Watermark number — outlined, top-right, brightens on hover */
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:45"] {
  position: absolute;
  top: -6px;
  right: -4px;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 139, 250, .28);
  transition: all .4s ease;
  pointer-events: none;
}
[code-path^="src/sections/ServicesGrid.tsx:28"]:hover [code-path^="src/sections/ServicesGrid.tsx:45"] {
  -webkit-text-stroke-color: rgba(192, 132, 252, .55);
  text-shadow: 0 0 24px rgba(139, 92, 246, .35);
  transform: translateY(-2px);
}

/* "New frontier" badge: moved out of the header so the tile lines up with the
   other cards; it becomes a tag under the description instead */
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:43"] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:44"]:has([code-path^="src/sections/ServicesGrid.tsx:47"]) {
  order: 10;
  margin-top: 18px;
}
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:47"] {
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(240, 171, 252, .25);
}

/* Icon tile — visible gradient tile with a soft ring and glow */
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:52"] {
  margin-top: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  place-items: center;
  justify-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(99, 102, 241, .12));
  box-shadow:
    inset 0 0 0 1px rgba(167, 139, 250, .30),
    0 8px 24px -10px rgba(139, 92, 246, .6);
  color: #e9d5ff;
}
[code-path^="src/sections/ServicesGrid.tsx:28"]:hover [code-path^="src/sections/ServicesGrid.tsx:52"] {
  transform: scale(1.06);
  background: linear-gradient(135deg, rgba(139, 92, 246, .40), rgba(99, 102, 241, .18));
  box-shadow:
    inset 0 0 0 1px rgba(192, 132, 252, .5),
    0 0 24px rgba(139, 92, 246, .45);
}

/* Title and copy pulled up */
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:55"] {
  margin-top: 22px;
}
[code-path^="src/sections/ServicesGrid.tsx:28"] [code-path^="src/sections/ServicesGrid.tsx:56"] {
  margin-top: 8px;
}

/* Card pop-up on hover — same 6px lift as the Odoo cards above.
   !important is needed because the entrance animation leaves an inline transform. */
[code-path^="src/sections/ServicesGrid.tsx:28"],
[code-path^="src/sections/ServicesGrid.tsx:93"] {
  transition:
    transform .3s cubic-bezier(.2, .8, .2, 1),
    border-color .3s ease,
    box-shadow .3s ease !important;
}
[code-path^="src/sections/ServicesGrid.tsx:28"]:hover,
[code-path^="src/sections/ServicesGrid.tsx:93"]:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 40px -24px rgba(139, 92, 246, .45);
}

/* ===== Odoo "AI inside" panel — feature chips pop on hover ===== */
[code-path^="src/sections/OdooSection.tsx:181"] {
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    border-color .28s ease,
    box-shadow .28s ease,
    background-color .28s ease !important;
  cursor: default;
}
[code-path^="src/sections/OdooSection.tsx:181"] svg {
  transition: color .28s ease, filter .28s ease;
}
[code-path^="src/sections/OdooSection.tsx:181"]:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(167, 139, 250, .45);
  background: rgba(139, 92, 246, .12);
  box-shadow:
    0 14px 28px -14px rgba(139, 92, 246, .6),
    0 0 0 1px rgba(167, 139, 250, .15) inset;
  color: #fff;
}
[code-path^="src/sections/OdooSection.tsx:181"]:hover svg {
  color: #e9d5ff;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, .7));
}

/* ===== 4. Desktop scaling =====
   The layout is designed around a ~1280px content column. On wider screens
   the whole page is scaled up in steps so it fills the screen the way the
   mobile layout fills a phone. Media queries read the real viewport, so
   there is no feedback loop. Viewport-height sizes are divided back down. */
:root { --ui-scale: 1; }
@media (min-width: 1700px) { :root { --ui-scale: 1.12; } }
@media (min-width: 1900px) { :root { --ui-scale: 1.2;  } }
@media (min-width: 2200px) { :root { --ui-scale: 1.32; } }
@media (min-width: 2400px) { :root { --ui-scale: 1.45; } }
@media (min-width: 2800px) { :root { --ui-scale: 1.65; } }
@media (min-width: 3300px) { :root { --ui-scale: 1.9;  } }

@media (min-width: 1700px) {
  html { zoom: var(--ui-scale); }
  #top { min-height: calc(100svh / var(--ui-scale)); }
  [code-path^="src/sections/Hero.tsx:110"] { height: calc(70vh / var(--ui-scale)); }
  [code-path^="src/sections/Hero.tsx:111"] { height: calc(60vh / var(--ui-scale)); }
  [code-path^="src/sections/Hero.tsx:112"] { height: calc(55vh / var(--ui-scale)); }
  [code-path^="src/sections/Hero.tsx:117"] { height: calc(46vh / var(--ui-scale)); }
  .hcm-body { max-height: calc(90vh / var(--ui-scale)); }
}
