/*
  KernelWorx LLC — Minimalist, professional, responsive single-page styles
  Neutral palette: blues / greys / whites; subtle abstract hero background
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ink: #0f1f2e; /* deep blue-grey */
  --muted: #576575;
  --primary: #2b6cb0; /* muted blue */
  --primary-600: #245f9b;
  --ring: rgba(43, 108, 176, 0.4);
  --card: #ffffff;
  --border: #e3e8ef;

  --container: 1120px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(2, 12, 26, 0.08);
}

/* Base reset (minimal) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--muted); }
ul { padding-left: 1.2rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.5rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: 0.2px; }
.brand-logo { height: 50px; display: block; object-fit: contain; }
.brand-text { display: none; }

.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); padding: 0.4rem 0.6rem; border-radius: 6px; }
.site-nav a:hover { background: var(--bg-alt); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 10px; border: 1px solid var(--border); padding: 0.66rem 0.9rem; font-weight: 600; transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.btn:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 15rem 0 15rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 0.5rem; }
.hero .tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-cta { margin-top: 1.25rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Subtle abstract background using layered gradients + masked grid */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(43,108,176,0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(43,108,176,0.12), transparent 55%),
    conic-gradient(from 180deg at 60% 40%, rgba(43,108,176,0.06), transparent 25%, rgba(43,108,176,0.06) 50%, transparent 75%, rgba(43,108,176,0.06) 100%);
}
.hero-bg.has-photo {
  background-image:
    var(--hero-photo),
    radial-gradient(1200px 600px at -10% -10%, rgba(43,108,176,0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(43,108,176,0.12), transparent 55%),
    conic-gradient(from 180deg at 60% 40%, rgba(43,108,176,0.06), transparent 25%, rgba(43,108,176,0.06) 50%, transparent 75%, rgba(43,108,176,0.06) 100%);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: -40px;
  background:
    linear-gradient(90deg, rgba(15,31,46,0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(15,31,46,0.06) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: radial-gradient(1200px 600px at 50% 20%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Full-width short hero with animated background image */
.hero-photo { overflow: hidden; }
.hero-photo .hero-bg.has-photo, .hero-photo .hero-bg { background-size: cover, auto, auto, auto; background-position: center; }
.hero-photo .hero-bg { animation: hero-zoom 24s ease-in-out infinite alternate; transform-origin: center; }
@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Matte glass underlay for hero content */
.hero-inner { position: relative; }
.hero-inner .glass {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
  margin: 0 auto; padding: 1rem 1.25rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(227, 232, 239, 0.8);
  box-shadow: 0 6px 30px rgba(2, 12, 26, 0.12);
  backdrop-filter: blur(10px) saturate(120%);
}
.hero-inner .glass .hero-cta { margin-top: 0.2rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.05rem; color: var(--ink); }

/* Services cards */
.cards { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.card p { margin: 0; }

.with-icon { display: grid; grid-template-columns: 48px 1fr; gap: 0.8rem; align-items: start; }
.icon { width: 48px; height: 48px; display: block; }

@media (min-width: 640px) {
  .card { grid-column: span 6; }
}
@media (min-width: 960px) {
  .card { grid-column: span 4; }
}

/* Why Choose Us */
.grid-why { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.why-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }

@media (min-width: 900px) {
  .grid-why { grid-template-columns: repeat(3, 1fr); }
}

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1rem; }
.aside-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.details { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.details li { margin: 0.25rem 0; }

.contact-card { max-width: 520px; margin-top: 1rem; }

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 2fr 1fr; }
}

/* removed form styles */

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fbfcfe; }
.footer-inner { padding: 1rem 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-left { display: flex; flex-direction: column; gap: 0.5rem; }
.company-address { 
  font-style: normal; 
  color: var(--muted); 
  font-size: 0.9rem; 
  line-height: 1.4;
  margin: 0;
}
.top-link { font-size: 0.95rem; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: 72px; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Decorative illustrations */
.illustration { display: block; width: 100%; max-width: 560px; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); object-fit: cover; background: #fff; }
.section .illustration { margin: 1rem 0 0; }


