/* ==========================================================
   Koreflow Solutions — site styles
   Palette taken from the business card:
   deep navy, steel/cobalt blue, brushed silver, white
   ========================================================== */
:root {
  --navy-950: #070d1b;
  --navy-900: #0b1428;
  --navy-800: #101c38;
  --navy-700: #172a52;
  --blue-600: #2f63b8;
  --blue-500: #386ec5;
  --blue-400: #4d8ae6;
  --blue-300: #8fb1e8;
  --steel: #7794b7;
  --silver: #cfd6e4;
  --paper: #f4f6fa;
  --white: #ffffff;
  --ink: #0e1730;
  --muted: #55627d;
  --line: rgba(255,255,255,.12);
  --line-dark: #dfe4ee;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(7,13,27,.45);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --maxw: 1180px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue-500); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--blue-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); color: #fff; box-shadow: 0 10px 30px -10px rgba(56,110,197,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(56,110,197,.95); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, padding .3s;
  padding: 1.1rem 0;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(7,13,27,.92); backdrop-filter: blur(12px); padding: .6rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 66px; width: auto; transition: height .3s; }
.scrolled .brand img, .solid .brand img { height: 52px; }
.menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: #e8edf8; text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .02em; position: relative; padding: .3rem 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--blue-400); transition: width .25s; }
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { width: 100%; }
.menu .btn { padding: .65rem 1.3rem; font-size: .85rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s, background .3s; margin: auto; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; } .nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(56,110,197,.45), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(47,99,184,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  padding: 8rem 0 5rem;
}
.hero::before { /* fine grain like the card texture */
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px);
  background-size: 7px 7px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.flow { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; opacity: .9; pointer-events: none; }
.flow path { fill: none; stroke-linecap: round; }
.flow .f1 { stroke: url(#fg); stroke-width: 3; }
.flow .f2 { stroke: rgba(207,214,228,.35); stroke-width: 1.5; }
.flow .f3 { stroke: rgba(77,138,230,.4); stroke-width: 1; }
.flow path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero h1 .accent { background: linear-gradient(90deg, var(--silver), var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cdd7ec; max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 1.2rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hero-card li { display: flex; gap: .8rem; align-items: flex-start; color: #e6ecf8; font-weight: 500; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(77,138,230,.25); display: grid; place-items: center; margin-top: 2px; }
.tick svg { width: 12px; height: 12px; stroke: var(--blue-300); }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0);} 30% { opacity: 1;} 100% { opacity: 0; transform: translateY(14px);} }

/* ---------- Sector strip ---------- */
.strip { background: var(--navy-800); color: var(--silver); border-block: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 1.2rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.5rem; font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.strip li { display: flex; align-items: center; gap: .7rem; }
.strip li::before { content: ""; width: 7px; height: 7px; background: var(--blue-400); transform: rotate(45deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.on-dark { background: linear-gradient(170deg, var(--navy-900), var(--navy-950)); color: #fff; }
.on-dark .section-head p { color: #b9c5de; }
.bg-paper { background: var(--paper); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-visual {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/4.4; color: #fff;
  background:
    radial-gradient(600px 300px at 70% 0%, rgba(77,138,230,.5), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-950));
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.about-visual .logo-big { width: 62%; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.about-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: linear-gradient(90deg, var(--blue-600), var(--silver), var(--blue-600)); }
.badge-dawber {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.8rem; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.2rem; background: rgba(7,13,27,.65); backdrop-filter: blur(6px); font-size: .92rem;
}
.badge-dawber strong { color: var(--blue-300); display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .2rem; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; font-weight: 600; }
.check-list .tick { background: rgba(56,110,197,.12); } .check-list .tick svg { stroke: var(--blue-500); }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--silver)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); box-shadow: 0 10px 22px -10px rgba(11,20,40,.7);
}
.icon svg { width: 26px; height: 26px; stroke: var(--blue-300); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.on-dark .card { background: rgba(255,255,255,.04); border-color: var(--line); }
.on-dark .card p { color: #b9c5de; }
.on-dark .card h3 { color: #fff; }
.card .more { display: inline-block; margin-top: 1rem; font-weight: 700; font-size: .85rem; color: var(--blue-500); text-decoration: none; }
.card .more:hover { text-decoration: underline; }

/* Services numbers */
.service { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; }
.num { font-size: 2.4rem; font-weight: 800; line-height: 1; background: linear-gradient(180deg, var(--blue-300), var(--blue-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* CTA band */
.cta-band {
  color: #fff; text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 0; overflow: hidden;
  background: radial-gradient(700px 300px at 50% 0%, rgba(77,138,230,.55), transparent 70%), linear-gradient(135deg, var(--blue-600), var(--navy-800) 70%);
}
.cta-band h2 { max-width: 20em; margin-inline: auto; }
.cta-band p { max-width: 38em; margin: 0 auto 2rem; color: #dbe5f8; }
.cta-band .btn-light { background: #fff; color: var(--navy-900); }
.cta-band .btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .icon { margin: 0; width: 48px; height: 48px; flex: none; }
.contact-list small { display: block; color: #8ea0c3; letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--blue-300); }
.form-card { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: .35rem; letter-spacing: .02em; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 1.5px solid #cdd5e4; border-radius: 10px; background: #f9fafd; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(56,110,197,.18); background: #fff; }
.consent { font-weight: 500; letter-spacing: 0; display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: .4rem 0 1.4rem; }
.consent input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--blue-500); flex: none; }
.consent a { color: var(--blue-500); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .92rem; display: none; }
.form-status.ok { display: block; background: #e5f6ec; color: #15693a; }
.form-status.err { display: block; background: #fdeaea; color: #9b1c1c; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b3c0da; padding: 4rem 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.foot-grid img { height: 84px; width: auto; margin-bottom: 1.2rem; }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.foot-bottom a { text-decoration: none; } .foot-bottom a:hover { color: #fff; }

/* Page hero (inner pages) */
.page-hero { color: #fff; padding: 9rem 0 4.5rem; position: relative; overflow: hidden;
  background: radial-gradient(800px 380px at 85% 0%, rgba(56,110,197,.5), transparent 65%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
.page-hero p { color: #c3cfe6; max-width: 40em; font-size: 1.12rem; margin: 0; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--blue-600), var(--silver), var(--blue-600)); }

/* Product detail rows */
.product { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 1.8rem 2.5rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.product:first-child { padding-top: 0; }
.product .icon { width: 72px; height: 72px; border-radius: 18px; margin: 0; }
.product .icon svg { width: 34px; height: 34px; }
.product h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.product p { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tags li { background: rgba(56,110,197,.1); color: var(--blue-600); border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; font-weight: 700; }
.suited { font-size: .88rem; color: var(--ink); }
.suited strong { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: .3rem; }

/* Legal */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 32rem; }
  .product { grid-template-columns: 72px 1fr; }
  .product > :last-child { grid-column: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--navy-950); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem; transform: translateX(100%); transition: transform .35s; box-shadow: -20px 0 50px rgba(0,0,0,.5); }
  .nav-open .menu { transform: none; }
  .menu a { font-size: 1.1rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 2.8rem 1.4rem 2rem; }
  .badge-dawber { position: static; width: 100%; }
  .about-visual .logo-big { width: 58%; max-width: 300px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .product { grid-template-columns: 1fr; } .product > :last-child { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } .flow path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Product banner (photo background) ---------- */
.banner { position: relative; overflow: hidden; color: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    linear-gradient(90deg, rgba(7,13,27,.96) 0%, rgba(9,17,36,.88) 42%, rgba(11,20,40,.22) 100%),
    linear-gradient(180deg, rgba(7,13,27,.18), rgba(7,13,27,.18)),
    url("/assets/drums-bg.jpg") center / cover no-repeat;
  background-color: var(--navy-900); }
.banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--blue-600), var(--silver), var(--blue-600)); }
.banner-inner { position: relative; z-index: 1; }
.banner-copy { max-width: 36rem; }
.banner h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); margin-bottom: .9rem; }
.banner h2 span { display: block; background: linear-gradient(90deg, var(--silver), var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner-list { color: #cdd7ec; font-weight: 500; max-width: 30em; margin-bottom: 0; font-size: 1.05rem; }
.banner .hero-cta { margin-top: 2rem; }

/* About panel (replaces the old logo card) */
.about-panel { aspect-ratio: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(2rem, 4vw, 3.2rem); min-height: 340px; place-items: initial; }
.about-panel .eyebrow { margin-bottom: 1.4rem; }
.panel-big { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.25; margin: 0 0 1.2rem; }
.panel-big strong { background: linear-gradient(90deg, var(--silver), var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-sub { color: #b9c5de; margin: 0; }
@media (max-width: 860px) {
  .banner { background: linear-gradient(rgba(7,13,27,.8), rgba(7,13,27,.74)), url("/assets/drums-bg.jpg") 70% center / cover no-repeat; background-color: var(--navy-900); }
  .banner .hero-cta .btn { width: 100%; }
  .about-panel { min-height: 0; }
}


