/* Davimac Manufacturing landing page */

:root {
  --ink: #0f1115;
  --ink-2: #1a1d23;
  --steel: #2a2f38;
  --line: #d9dde3;
  --paper: #ffffff;
  --paper-2: #f3f4f6;
  --muted: #5b6370;
  --blue: #1d55c9;
  --blue-dark: #153f97;
  --blue-light: #8fb3ff;
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 17, 21, .06), 0 8px 24px rgba(15, 17, 21, .06);
  --shadow-lift: 0 2px 4px rgba(15, 17, 21, .08), 0 18px 40px rgba(15, 17, 21, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .8em; display: block; }
.on-dark .eyebrow { color: var(--blue-light); }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; font-weight: 700; text-decoration: none; border-radius: 999px; font-size: .95rem; transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 85, 201, .35); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(29, 85, 201, .45); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff; padding: 12px 24px; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Header: transparent over the hero, solid once scrolled */
header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
header.scrolled { background: rgba(15, 17, 21, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.nav img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: #dfe3e9; text-decoration: none; font-weight: 600; font-size: .9rem; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue-light); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 10px 20px; }

/* Hero */
.hero { position: relative; min-height: min(100vh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: -12% 0 -12% 0; background: url("/img/hero-profile-cut.webp") center / cover no-repeat; will-change: transform; animation: kenburns 24s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 12, 16, .9) 0%, rgba(10, 12, 16, .7) 45%, rgba(10, 12, 16, .25) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; background: linear-gradient(transparent, rgba(10, 12, 16, .6)); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; max-width: 15ch; }
.hero p { font-size: 1.15rem; color: #dde1e7; max-width: 54ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .in { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero .in:nth-child(2) { animation-delay: .12s; }
.hero .in:nth-child(3) { animation-delay: .24s; }
.hero .in:nth-child(4) { animation-delay: .36s; }

/* A laser line that sweeps across the bottom of the hero */
.laser { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; overflow: hidden; background: rgba(255, 255, 255, .06); }
.laser::before { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--blue-light), #fff, var(--blue-light), transparent); box-shadow: 0 0 14px 2px rgba(143, 179, 255, .9); animation: sweep 3.6s ease-in-out infinite; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }

/* Stats band */
.stats { background: var(--blue); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .85; }

section { padding: 100px 0; position: relative; }
.alt { background: var(--paper-2); }
.intro { max-width: 62ch; margin-bottom: 48px; }
.intro p { color: var(--muted); }

/* Capability cards */
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.cap { overflow: hidden; display: flex; flex-direction: column; }
.cap .media { overflow: hidden; }
.cap .media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.cap:hover .media img { transform: scale(1.06); }
.cap .body { padding: 28px; }
.cap p, .plasma p { color: var(--muted); }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 700; width: 40%; padding-right: 16px; }
.specs td { color: var(--muted); }
.plasma { margin-top: 32px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border-left: 5px solid var(--blue); }
.plasma p { margin: 0; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why .card { padding: 28px 24px; }
.why h3 { font-size: 1.05rem; }
.why p { color: var(--muted); font-size: .93rem; margin: 0; }
.why .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(29, 85, 201, .1); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.why .icon svg { width: 22px; height: 22px; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > *, .quote > * { min-width: 0; }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); will-change: transform; }

.dark { background: var(--ink-2); color: #fff; overflow: hidden; }
.dark p { color: #b9c0ca; }
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.brand { border: 1px solid var(--steel); padding: 22px; border-radius: var(--radius); text-decoration: none; display: block; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.brand:hover { border-color: var(--blue-light); background: rgba(255, 255, 255, .03); transform: translateY(-4px); }
.brand h3 { margin-bottom: .3em; font-size: 1.1rem; }
.brand p { margin: 0; font-size: .9rem; }

/* Quote */
.quote { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-frame { overflow: hidden; }
.form-frame iframe { width: 100%; height: 1100px; border: 0; display: block; }
.contact-card { background: var(--ink); color: #fff; padding: 32px; border-radius: var(--radius); position: sticky; top: 100px; box-shadow: var(--shadow-lift); }
.contact-card h3 { margin-bottom: 0; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #8f98a5; font-weight: 700; margin-top: 18px; }
.contact-card dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }
.contact-card .small { font-size: .95rem; font-weight: 500; }

footer { background: #08090b; color: #8f98a5; font-size: .88rem; padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: #cfd4dc; text-decoration: none; }
footer a:hover { color: #fff; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Scroll reveal: only hidden when JS has confirmed it can reveal them */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.done { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s, background .25s; transition-delay: 0s; }
.js .card.reveal.done:hover { transform: translateY(-6px); }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: translate3d(0, var(--py, 0), 0) scale(1); } to { transform: translate3d(0, var(--py, 0), 0) scale(1.08); } }
@keyframes sweep { 0% { left: -30%; } 100% { left: 100%; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .split, .quote, .caps, .plasma { grid-template-columns: 1fr; gap: 24px; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .nav ul { display: none; }
  .contact-card { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { min-height: 640px; }
  .hero-bg { background-image: url("/img/hero-profile-cut-800.webp"); }
  .hero .wrap { padding-top: 110px; padding-bottom: 90px; }
  .why, .brands { grid-template-columns: 1fr; }
  .nav img { height: 32px; }
  .nav .btn { padding: 9px 14px; font-size: .85rem; }
  .form-frame iframe { height: 1300px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .in, .js .reveal { opacity: 1; transform: none; }
  .photo img { transform: none; }
}
