/* Elepton — design system
   Navy and cream, taken from the existing wordmark. Elepton's sister brand,
   Inteliace, uses a cooler blue/sky palette on a pale-blue page; Elepton stays
   warmer -- navy ink on a warm paper tint -- so the two read as related but
   distinct. */

:root {
  /* Brand — from the logo */
  --navy:       #10233d;
  --navy-deep:  #0a1626;
  --cream:      #f3e6c8;
  --cream-deep: #d8bf87;
  --ink:        #16202c;
  --ink-2:      #3d4b57;

  /* Neutrals. --card sits above --paper so it reads as raised; --surface sits
     below it for the alternating bands. Keep that order or depth inverts. */
  --paper:      #faf7f1;
  --card:       #ffffff;
  --surface:    #f1e9d8;
  --line:       #e6dcc8;
  --line-strong:#d3c4a3;
  --muted:      #5c6570;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 2px rgba(16,35,61,.06), 0 4px 16px rgba(16,35,61,.06);
  --shadow-lg:  0 2px 4px rgba(16,35,61,.06), 0 12px 40px rgba(16,35,61,.10);

  --wrap:       1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(2rem, 1.3rem + 2.9vw, 3.25rem);
  --t-h2:   clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-h3:   1.125rem;
  --t-body: 1.0625rem;
  --t-sm:   .875rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

a { color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

.lead { font-size: 1.1875rem; color: var(--ink-2); margin-top: 1rem; max-width: 40em; }
.muted { color: var(--muted); }
.prose p { margin-top: 1.1em; max-width: 62ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.prose .btn { margin-top: 1.5rem; }
/* Inteliace logo beside its "visit the site" button on About. */
.prose .brand-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.5rem; }
.prose .brand-cta .btn { margin-top: 0; }
.brand-cta img { display: block; height: 52px; width: auto; }

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.5rem;
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: var(--t-sm);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: .5rem 1.1rem; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand-mark { height: 40px; width: auto; display: block; border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: var(--t-sm); }
.site-nav a:hover { color: var(--navy); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
.lang-switch { color: var(--muted) !important; font-weight: 400 !important; display: inline-flex; align-items: center; gap: .45rem; }
.lang-flag { display: block; width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16,35,61,.15); }

/* ---------- Hero --------------------------------------------------------- */
/* A photo of Warsaw Spire at Rondo Daszyńskiego (assets/img/hero-warsaw.jpg,
   the client's own shot) filling the right part of the band, where the copy
   never reaches, panned slowly upward like a camera tilting up the tower. A CSS transform pans with sub-pixel smoothness
   on the GPU, which a slowed-down video clip could not match, and the
   ease-in-out alternate loop glides to a stop at each end instead of jumping.
   A navy scrim sits over it, near-opaque on the left and thinning to the
   right, the same technique Inteliace uses for its photographic hero, so the
   two sites read as kin without sharing imagery. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 2.25rem 0 2rem;
}
/* A compact band rather than a full-screen splash: tighter type and spacing
   keep the copy fitting in roughly half the original height. */
.hero h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: .5rem; }
.hero .lead { margin-top: 0; margin-bottom: 0; max-width: 62ch; }
/* The photo is a wide strip of the tower tops, so on desktop it covers the
   right 58% of the band, close to its own proportions, rather than being
   stretched full-width and cropped to a sliver. Its left edge fades out
   through a mask so there is no seam against the navy. */
.hero-media {
  position: absolute; inset: 0 0 0 42%; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
          mask-image: linear-gradient(to right, transparent 0, #000 30%);
}
/* The image is 125% of the band's height so there is room for a gentle pan:
   -20% of its own height (25/125) is exactly where its bottom meets the
   band's. */
.hero-media img {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 125%;
  object-fit: cover; object-position: center top;
  animation: hero-pan 120s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  /* Keep it on its own GPU layer so the slow drift is drawn with sub-pixel
     positioning rather than snapping a whole pixel at a time. */
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes hero-pan {
  from { transform: translate3d(0, -20%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: translate3d(0, -10%, 0); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg,
      var(--navy) 0%,
      var(--navy) 40%,
      rgba(16,35,61,.6) 55%,
      rgba(16,35,61,.2) 72%,
      rgba(16,35,61,0) 100%);
}
.hero h1 { color: #fff; }
.hero .lead { color: var(--cream); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
/* The flattened scrim behind the copy erases the page-level navy/navy-deep
   contrast .btn relies on elsewhere, so the hero CTA needs its own treatment
   rather than inheriting the plain navy button. */
.hero .btn { background: var(--cream); color: var(--navy); }
.hero .btn:hover { background: #fff; }
.hero .btn-ghost { color: var(--cream); border-color: rgba(243,230,200,.4); }
.hero .btn-ghost:hover { background: rgba(243,230,200,.08); }
@media (max-width: 860px) {
  .hero-media { left: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-media img { object-position: 0% top; }
  .hero::after {
    background:
      linear-gradient(100deg,
        var(--navy) 0%,
        var(--navy) 55%,
        rgba(16,35,61,.55) 78%,
        rgba(16,35,61,.25) 100%);
  }
}

/* ---------- Sections ------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.page-head { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); }

/* ---------- Home: stats strip ---------------------------------------------- */
.stats { padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-value { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: var(--t-sm); margin-top: .35rem; }

/* ---------- Home: service tiles -------------------------------------------- */
.section-title { text-align: center; margin-bottom: 2rem; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tile {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tile h3 { font-size: 1.0625rem; margin-bottom: .5rem; color: var(--navy); }
.tile p { color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- Home: how-we-work teaser ---------------------------------------- */
/* Left-aligned to the same edge as the hero copy above, so the home page
   reads down one line instead of switching between left and centred. */
.how h2 { margin-bottom: 1rem; }
.how .lead { margin: 1rem 0 0; }

.sister > p { max-width: 44em; }
.sister h2 { margin-bottom: 1rem; }
.sister .btn-ghost { margin-top: 1.5rem; }

/* ---------- Services: detailed sections ------------------------------------ */
.service-sections { display: grid; gap: 3rem; max-width: 48em; margin: 0 auto; }
.service-section { scroll-margin-top: 5rem; }
.service-no { font-size: var(--t-sm); font-weight: 700; color: var(--cream-deep); background: var(--navy); border-radius: 999px; padding: .2rem .65rem; }
.service-section h2 { margin: .9rem 0 .6rem; }
.cta-band { text-align: center; }


/* ---------- Contact --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: start; }
.facts { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: .6rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .5rem; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 600; color: var(--ink); text-align: right; }

.contact-form form { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; background: var(--card); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.field-check label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.field-check input { width: auto; }
.err { color: #a3242f; font-size: var(--t-sm); margin-top: .35rem; }
.notice { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--cream); padding: 2.5rem 0; margin-top: 4rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: flex; align-items: baseline; gap: .5rem; }
.footer-brand span { font-size: var(--t-sm); opacity: .75; }
.footer-rights { font-size: var(--t-sm); opacity: .75; }
.site-footer a { color: var(--cream); }

/* ---------- Home: price calculator ----------------------------------------- */
.calc-section { padding: 6rem 0; }
.calc-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-lg); align-items: center;
}
.calc-types { display: grid; gap: .7rem; }
.calc-type {
  display: block; width: 100%; text-align: left; padding: .95rem 1.2rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.calc-type:hover { border-color: var(--navy); }
.calc-type.is-active { background: var(--surface); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.calc-type strong { display: block; color: var(--navy); font-size: var(--t-body); }
.calc-type span { color: var(--muted); font-size: var(--t-sm); }
.calc-hours { margin-top: 1.75rem; }
.calc-hours-label { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.calc-hours-label strong { color: var(--navy); font-weight: 700; }
.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 99px; background: var(--line-strong); outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 3px solid #fff; box-shadow: var(--shadow); cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy);
  border: 3px solid #fff; box-shadow: var(--shadow); cursor: pointer;
}
.calc-total {
  text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}
.calc-total .k { font-size: var(--t-sm); color: var(--cream-deep); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.calc-total .v { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; margin-top: .4rem; letter-spacing: -.01em; }
.calc-total .r { font-size: var(--t-sm); color: rgba(255,255,255,.7); margin-top: .5rem; }

/* ---------- Home: enquiry form (RODO-gated) --------------------------------- */
.home-contact { padding: 6rem 0; background: var(--navy); color: var(--cream); }
.home-contact .section-title { color: #fff; }
.home-contact-grid { max-width: 40em; margin: 0 auto; }
.home-contact .field label { color: var(--cream); }
.home-contact .field input, .home-contact .field textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #fff;
}
.home-contact .field input::placeholder, .home-contact .field textarea::placeholder { color: rgba(255,255,255,.4); }
.home-contact .field-check label { color: rgba(255,255,255,.8); }
.home-contact .btn[disabled] { opacity: .45; cursor: not-allowed; }
.home-contact .btn[disabled]:hover { background: var(--cream); }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .site-nav { gap: 1rem; }
  .stats-grid, .tiles, .contact-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; gap: .75rem; }
  .calc-panel { grid-template-columns: 1fr; }
}
