/* =====================================================================
   WE PRACHAR — BASE STYLES (loaded on every page)
   ---------------------------------------------------------------------
   1.  Design tokens (colours, fonts, spacing)      → change the theme here
   2.  Reset & typography
   3.  Buttons, tags, links
   4.  Page curtain (page-to-page transition)
   5.  Header · navigation · services mega menu
   6.  Mobile menu
   7.  Custom cursor
   8.  Page hero (.phero) — used on every inner page
   9.  Service phone cards + auto slider (.rail / .pcard)
   10. Chips · tables · FAQ accordion
   11. Contact block + form + custom select
   12. WhatsApp button · footer
   13. Project cards · blog cards (shared by several pages)
   14. Responsive rules · reduced motion
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* colours — light cream theme with ONE accent colour */
  --bg: #FFF9F2;            /* main page background               */
  --bg-2: #FFF0E0;          /* slightly deeper tint for alternate bands */
  --card: #FFFFFF;          /* card background                    */
  --ink: #1F1F1F;           /* main text (dark charcoal)          */
  --muted: #5E5A55;         /* secondary text                     */
  --dim: #8C8780;           /* labels, placeholders               */
  --line: rgba(31, 31, 31, 0.09);   /* borders                    */
  --line-2: rgba(31, 31, 31, 0.18); /* stronger borders / hover   */
  --accent: #FF6900;        /* primary brand orange (from the WE PRACHAR logo) */
  --accent-2: #D94800;      /* deep orange: hover states + small orange text   */
  --gold: #FF9D00;          /* golden orange: gradients + highlights           */
  --accent-soft: #FFE5CC;   /* light orange tint for badges / icon tiles       */
  --grad: linear-gradient(135deg, #FF9D00 0%, #FF6900 55%, #D94800 100%);
  --shadow: 0 1px 2px rgba(90, 40, 0, .05), 0 18px 40px -24px rgba(90, 40, 0, .28);
  --shadow-lg: 0 2px 4px rgba(90, 40, 0, .05), 0 40px 80px -40px rgba(90, 40, 0, .38);

  /* fonts */
  --f-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* radius */
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  /* layout */
  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 44px);          /* left/right page padding  */
  --sec: clamp(56px, 8vw, 104px);         /* vertical section spacing */
  --head-gap: clamp(30px, 4.5vw, 56px);   /* space under every section heading */
  --hdr-h: 80px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Reset & typography ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Film-grain texture: a single fixed layer (no repaint on scroll), sits above content but below the page curtain/cursor */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
main#main { overflow-x: clip; }            /* stops sideways scroll from animations */
img, svg { display: block; max-width: 100%; }
img { height: auto; }                      /* keep image proportions */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; transition: top .3s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: clamp(40px, 6vw, 76px); position: relative; }
.sec--alt { background: var(--bg-2); }      /* alternate cream band */

/* display sizes */
.d-xxl { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.d-xl  { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.d-lg  { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
.d-md  { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.d-sm  { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; }
.lead  { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.ic { width: 1em; height: 1em; flex: none; }

/* section heading block */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: start; margin-bottom: var(--head-gap); }
.sec-head.center { justify-items: center; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* small pill label above headings */
.tag {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; min-height: 30px; padding: 6px 14px; line-height: 1.3;
  border-radius: 99px; background: var(--accent-soft); color: var(--accent-2);
  font: 700 11px/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase;
}
.tag::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* split-text helpers (words slide in from left / right — see main.js) */
.sl { display: block; overflow: hidden; padding-bottom: .08em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; }
.wi { display: inline-block; will-change: transform; }

/* ---------- 3. Buttons & links ---------- */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 99px; font: 700 14.5px/1 var(--f-body); white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease), box-shadow .35s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .ic--go { transform: translateX(4px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 13.5px; }
/* primary = dark ink button that turns accent on hover */
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: 0 10px 24px -12px rgba(31, 31, 31, .6); }
.btn--primary:hover { background: var(--accent-2); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 105, 0, .7); }
/* ghost = outlined button */
.btn--ghost { border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .6); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.link-u { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease); }
.link-u:hover { color: var(--accent-2); }
.link-u:hover::after { transform: scaleX(1); }
.link-u .ic { width: 16px; height: 16px; }

/* ---------- 4. Page curtain (shown between pages) ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; animation: curtainFallback .01s 3s forwards; }
.curtain__mark { display: flex; overflow: hidden; padding: 6px 10px; }
.curtain__mark span { display: block; }
.curtain__mark img { display: block; width: clamp(150px, 26vw, 250px); height: auto; }
.curtain__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); }
@keyframes curtainFallback { to { visibility: hidden; } }   /* safety: hides the curtain if JS fails */

/* ---------- 5. Header ---------- */
.hdr {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1240px); height: var(--hdr-h); padding: 0 12px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 99px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, height .4s var(--ease);
}
.hdr.is-solid, .hdr.is-mega {
  background: rgba(255, 255, 255, .96); border-color: var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.hdr.is-compact { --hdr-h: 68px; }
/* image logo (assets/img/logo.png) */
.logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); line-height: 0; }
.logo img { display: block; height: 54px; width: auto; max-width: none; transition: transform .45s var(--ease); }
.logo:hover img { transform: scale(1.04) rotate(-2deg); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__a {
  position: relative; height: 42px; padding: 0 16px; border-radius: 99px; display: inline-flex; align-items: center;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s;
}
.nav__a:hover, .nav__a[aria-expanded="true"] { color: var(--ink); background: rgba(31, 31, 31, .05); }
.nav__a.is-on { color: var(--ink); }
.nav__a.is-on::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.hdr__cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.burger span + span { margin-top: 5px; width: 12px; }
.burger > div { display: grid; justify-items: end; }

/* Services mega menu — full width, 40px rows, icon + label, no arrows */
.mega {
  position: fixed; left: 0; right: 0; top: 0; z-index: 99; padding: calc(var(--hdr-h) + 36px) var(--pad) 28px;
  background: rgba(255, 249, 242, .97); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s; }
.mega__in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 16px; }
.mega__top p { color: var(--muted); font-size: 14px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
.mega__item {
  min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 4px 12px; border-radius: 12px; line-height: 1.25;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s;
}
.mega__ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex: none; transition: background .25s, color .25s, border-color .25s; }
.mega__ic .ic { width: 15px; height: 15px; }
.mega__item:hover, .mega__item:focus-visible, .mega__item.is-on { background: var(--card); color: var(--ink); }
.mega__item:hover .mega__ic, .mega__item.is-on .mega__ic { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 6. Mobile menu (drops from the top, sized to its content) ---------- */
.mnav-back { position: fixed; inset: 0; z-index: 115; background: rgba(31, 31, 31, .35); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.mnav-back.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.mnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120; max-height: 100svh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 0 0 26px 26px; box-shadow: var(--shadow-lg);
  transform: translateY(-105%); visibility: hidden;
}
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 4px; }
.mnav__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.mnav__close .ic { width: 20px; height: 20px; }
.mnav__body { overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px 14px; display: flex; flex-direction: column; min-height: 0; }
.mnav__body > * { flex-shrink: 0; }
.mnav__a { display: flex; align-items: center; justify-content: space-between; height: 44px; border-bottom: 1px solid var(--line); font: 600 17px/1 var(--f-display); letter-spacing: -.02em; }
.mnav__a.is-on { color: var(--accent); }
.mnav__a .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease); }
.mnav__a[aria-expanded="true"] .ic { transform: rotate(45deg); }
.mnav__svc { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; overflow: hidden; height: 0; }
.mnav__svc a { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.mnav__svc a .ic { width: 14px; height: 14px; color: var(--accent); }
.mnav__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mnav__cta .btn { --h: 46px; padding: 0 12px; }

/* ---------- 7. Custom cursor (desktop only) ---------- */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cur, .cur-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; }
.cur { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .3s; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .3s; }
.cur__label { font: 800 10px/1 var(--f-body); letter-spacing: .1em; color: #fff; opacity: 0; white-space: nowrap; transition: opacity .25s; }
.cur.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--accent); }
.cur.is-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 105, 0, .1); border-color: transparent; }
.cur.is-view { width: 110px; height: 110px; margin: -55px 0 0 -55px; background: var(--ink); border-color: var(--ink); }
.cur.is-view .cur__label { opacity: 1; }
.cur.is-hidden, .cur-dot.is-hidden { opacity: 0; }

/* ---------- 8. Page hero — compact, text left + illustration right ---------- */
.phero { padding: calc(var(--hdr-h) + 30px) 12px 0; }
.phero__card {
  position: relative; max-width: 1400px; margin-inline: auto; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 30px;
  padding: 50px clamp(24px, 5vw, 64px);                /* ← compact 50px vertical padding */
}
/* soft cream glow + dotted texture behind the hero */
.phero__card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 50%, var(--accent-soft), transparent 70%); }
.phero__card::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(31, 31, 31, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; min-width: 0; }
.phero__in h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 18ch; }   /* same size on every inner page */
.phero__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.phero__art { justify-self: end; width: min(100%, 340px); }
.phero__art img { width: 100%; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }

/* ---------- 9. Service phone cards + auto slider ---------- */
.rail { position: relative; overflow: hidden; padding-block: 24px 36px; touch-action: pan-y; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rail__track { display: flex; gap: clamp(14px, 2vw, 22px); width: max-content; will-change: transform; }
.rail.is-drag { cursor: grabbing; }
.rail.is-static { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x mandatory; }
.rail.is-static .pcard { scroll-snap-align: start; }

.pcard {
  --w: clamp(200px, 20vw, 244px);
  position: relative; display: block; width: var(--w); aspect-ratio: 9 / 18; flex: none; padding: 8px; border-radius: 38px;
  background: var(--ink); box-shadow: 0 30px 50px -30px rgba(31, 31, 31, .55);
  transition: transform .6s var(--ease), box-shadow .6s; user-select: none; -webkit-user-drag: none;
}
.pcard__screen {
  position: relative; height: 100%; border-radius: 30px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; background: linear-gradient(180deg, var(--accent-soft), var(--card) 75%);
}
.pcard__notch { position: absolute; left: 50%; top: 10px; width: 78px; height: 22px; border-radius: 12px; background: var(--ink); transform: translateX(-50%); z-index: 2; }
.pcard__pill { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; white-space: nowrap; z-index: 2; }
.pcard__pill .ic { width: 13px; height: 13px; color: var(--accent); }
.pcard__art { flex: 1; display: grid; place-items: center; padding: 72px 14px 0; }
.pcard__art img { width: 88%; transition: transform .8s var(--ease); pointer-events: none; }
.pcard__meta { position: relative; margin: 10px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.pcard__no { font-size: 11px; font-weight: 700; color: var(--accent-2); letter-spacing: .06em; }
.pcard__title { font: 600 1.02rem/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 4px; }
.pcard__desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__go { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transform: scale(0); transition: transform .5s var(--ease), background .3s; }
.pcard__go .ic { width: 15px; height: 15px; }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-10px); box-shadow: 0 44px 70px -30px rgba(255, 105, 0, .55); }
  .pcard:hover .pcard__art img { transform: scale(1.07) rotate(-2deg); }
  .pcard:hover .pcard__go { transform: scale(1); background: var(--accent); }
}

/* ---------- 10. Chips · tables · accordion ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; transition: border-color .3s, background .3s, color .3s; }
.chip .ic { width: 15px; height: 15px; color: var(--accent); }
a.chip:hover { border-color: var(--accent); color: var(--accent); }

.tbl-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 700 11.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 20px; background: var(--bg-2); }
.tbl td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl td:first-child { color: var(--ink); font-weight: 700; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: var(--bg); }

.acc { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; width: 100%; }
.acc__item { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc__item.is-open { border-color: var(--line-2); box-shadow: var(--shadow); }
.acc__q { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; text-align: left; font: 600 15.5px/1.35 var(--f-display); letter-spacing: -.01em; }
.acc__plus { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); flex: none; transition: transform .45s var(--ease), background .3s, color .3s; }
.acc__plus .ic { width: 15px; height: 15px; }
.acc__item.is-open .acc__plus { transform: rotate(135deg); background: var(--accent); color: #fff; }
.acc__a { height: 0; overflow: hidden; }
.acc__a p { padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }

/* ---------- 11. Contact block + form ---------- */
.cblock__card { border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1.3fr; }
.cblock__info { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; background: var(--bg-2); }
.cblock__info h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.cblock__links { display: grid; gap: 10px; margin-top: auto; }
.cblock__link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.cblock__link:hover { border-color: var(--accent); transform: translateX(4px); }
.cblock__link > span:first-child { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.cblock__link .ic { width: 19px; height: 19px; }
.cblock__link small { display: block; font-size: 12px; color: var(--muted); }
.cblock__link b { font-weight: 700; font-size: 14.5px; word-break: break-word; }
.cblock__form { padding: clamp(24px, 4vw, 52px); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
.field label i, .field .lbl i { font-style: normal; color: var(--accent-2); }
.inp { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s; }
textarea.inp { height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.inp::placeholder { color: var(--dim); }
.inp:hover { border-color: var(--line-2); }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 105, 0, .12); background: #fff; }
.field.has-err .inp, .field.has-err .csel__btn { border-color: #c0392b; }
.err { font-size: 12.5px; color: #b03a2e; }
.hp { position: absolute; left: -9999px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--dim); max-width: 40ch; }
.form__note a { text-decoration: underline; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .8s linear infinite; display: none; }
.btn.is-loading .spin { display: block; }
.btn.is-loading .ic { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.form__status { grid-column: 1 / -1; display: none; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; }
.form__status.is-ok { display: flex; background: #eef6ea; border: 1px solid #b9d8ad; color: #2e5b22; }
.form__status.is-bad { display: flex; background: #fbece9; border: 1px solid #e8b7ae; color: #8d2d20; }
.form__status .ic { width: 20px; height: 20px; margin-top: 2px; }
.form__status a, .form__status button { text-decoration: underline; font-weight: 700; }

/* custom select (service / budget dropdowns) */
.csel { position: relative; }
.csel__btn { width: 100%; height: 52px; padding: 0 8px 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.csel__btn:hover { border-color: var(--line-2); }
.csel.is-open .csel__btn, .csel__btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 105, 0, .12); outline: none; background: #fff; }
.csel__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel__val.is-ph { color: var(--dim); }
.csel__chev { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, color .3s; flex: none; }
.csel__chev .ic { width: 16px; height: 16px; }
.csel.is-open .csel__chev { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.csel__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: min(340px, 56vh); overflow-x: hidden; overflow-y: auto; padding: 6px;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;   /* scrolls, but NO scrollbar is drawn */
  border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.csel__list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.csel.is-open .csel__list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease), visibility 0s; }
.csel.is-up .csel__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom; }
.csel__opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.csel__opt .ic { width: 16px; height: 16px; color: var(--accent); }
.csel__opt:hover, .csel__opt.is-active { background: var(--bg); color: var(--ink); }
.csel__opt[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }

/* ---------- 12. WhatsApp button + footer ---------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; height: 56px; min-width: 56px;
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 0;   /* icon stays on the right, label grows to the left */
  padding: 0 7px; border-radius: 99px; overflow: hidden; background: #1f8f4e; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 30px -12px rgba(31, 143, 78, .6);
  transition: transform .4s var(--ease), box-shadow .4s, background .3s;
}
.wa__ic { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.wa__ic svg { width: 22px; height: 22px; }
.wa__txt { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.wa:focus-visible .wa__txt { max-width: 120px; opacity: 1; margin-left: 14px; }
@media (hover: hover) {
  .wa:hover { transform: translateY(-3px); background: #187a42; }
  .wa:hover .wa__txt { max-width: 120px; opacity: 1; margin-left: 14px; }
}

.ftr { margin-top: clamp(40px, 6vw, 70px); background: var(--ink); color: #e9e3d8; padding: clamp(50px, 7vw, 80px) 0 28px; border-radius: 34px 34px 0 0; }
.ftr .wrap { position: relative; }
.ftr__big { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); margin: 0; font: 700 clamp(3rem, 11.2vw, 10.4rem)/.85 var(--f-display); letter-spacing: -.06em; text-align: center; color: rgba(255, 249, 242, .09); white-space: nowrap; pointer-events: none; user-select: none; z-index: 0; }
.ftr__grid, .ftr__bottom { position: relative; z-index: 1; }
.ftr__grid { display: grid; grid-template-columns: minmax(21rem, 1.3fr) 0.6fr 1fr 1fr 1.3fr; gap: 30px 34px; }
.ftr .logo img { height: 92px; }
.ftr__addr { font-style: normal; color: #d8d1c5; font-size: 14px; line-height: 1.6; max-width: 34ch; }
.ftr__hours { display: flex; gap: 10px; align-items: flex-start; color: #d8d1c5; font-size: 14px; line-height: 1.5; }
.ftr__hours .ic, .ftr__list .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--gold); }
.ftr__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ftr__list a, .ftr__list span { min-width: 0; overflow-wrap: anywhere; }
.ftr__brand { display: grid; gap: 12px; align-content: start; }
.ftr__brand p { color: #a9a296; font-size: 14px; max-width: 34ch; }
.ftr__brand .ftr__pos { color: #fff; font-weight: 700; max-width: none; white-space: nowrap; font-size: clamp(11px, 3.5vw, 14px); line-height: 1.4; }
.ftr h3 { font: 700 11.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #8d867a; margin-bottom: 16px; }
.ftr__list { display: grid; gap: 10px; font-size: 14px; }
.ftr__list a, .ftr__list span { color: #d8d1c5; transition: color .25s; }
.ftr__list a:hover { color: var(--gold); }
.ftr__social { display: flex; gap: 8px; flex-wrap: wrap; }
.ftr__social a:hover { border-color: var(--gold); color: var(--gold); }
.ftr__social a { padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8d867a; }
.ftr__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr__legal a:hover { color: #fff; }

/* ---------- 13. Shared cards ---------- */
/* project card (home + portfolio + service pages) */
.wcard { display: grid; gap: 18px; align-content: start; scroll-margin-top: 110px; }
.wcard__media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wcard--wide .wcard__media { aspect-ratio: 16 / 9; }
.wcard__over { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px; opacity: 0; transition: opacity .4s; }
.wcard__go { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transform: scale(.6) rotate(-45deg); transition: transform .5s var(--ease); }
.wcard__go .ic { width: 20px; height: 20px; }
.wcard__media:hover .wcard__over { opacity: 1; }
.wcard__media:hover .wcard__go { transform: none; }
.wcard__ind { font-size: 12.5px; font-weight: 700; color: var(--accent-2); letter-spacing: .02em; }
.wcard__name { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-top: 4px; }
.wcard__desc { color: var(--muted); max-width: 56ch; margin-top: 8px; font-size: 15px; }
.wcard__svc { margin-top: 14px; }
.wcard__svc .chip { min-height: 30px; font-size: 12.5px; }
.wcard__link { margin-top: 16px; }
/* placeholder "browser window" artwork used until real screenshots are added */
.part { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-soft), var(--bg-2)); transition: transform 1s var(--ease); }
.part::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(31, 31, 31, .09) 1px, transparent 1px); background-size: 20px 20px; }
.part__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.part__frame { position: relative; width: 74%; aspect-ratio: 16 / 10; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(8%) rotate(-2deg); transition: transform 1s var(--ease); }
.part__bar { height: 24px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.part__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.part__body { padding: 7% 8%; display: grid; gap: 8px; }
.part__body b { font: 700 clamp(24px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.05em; color: var(--accent); }
.part__body span { font: 600 clamp(12px, 1.2vw, 15px)/1.2 var(--f-display); }
.part__body em { display: block; height: 7px; width: 70%; border-radius: 4px; background: var(--bg-2); }
.part__body em + em { width: 45%; }
.wcard__media:hover .part, .wcard__media:hover .part__img { transform: scale(1.04); }
.wcard__media:hover .part__frame { transform: translateY(4%) rotate(0); }

/* blog card */
.bcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; }
.bart { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-soft), var(--bg-2)); transition: transform 1s var(--ease); }
.bart__ring { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 105, 0, .4); }
.bart__ic { position: relative; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.bart__ic .ic { width: 28px; height: 28px; }
.bcard:hover .bart { transform: scale(1.06); }
.bcard__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.bcard__cat { color: var(--accent-2); font-weight: 700; background: var(--accent-wash); padding: 3px 10px; border-radius: 99px; }
.bcard__title { font-size: 1.28rem; line-height: 1.28; letter-spacing: -.02em; }
.bcard__title a::after { content: ''; position: absolute; inset: 0; }
.bcard__ex { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--dim); }
.bcard__go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, transform .5s var(--ease); }
.bcard__go .ic { width: 15px; height: 15px; }
.bcard:hover .bcard__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .mega__grid { grid-template-columns: repeat(3, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__brand p { max-width: 60ch; }
  .ftr__contact { grid-column: 1 / -1; }
  .ftr__contact .ftr__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; align-items: start; }
  .ftr__contact .ftr__list li:first-child { grid-row: span 3; }
}
@media (max-width: 980px) {
  .nav, .hdr__cta .btn { display: none; }          /* desktop nav hides … */
  .burger { display: grid; }                        /* … burger shows */
  .mega { display: none; }
  .hdr { padding-left: 20px; }
  .cblock__card { grid-template-columns: 1fr; }
  .phero__card { grid-template-columns: 1fr; gap: 20px; padding: 40px 24px; }
  .phero__art { justify-self: start; width: min(60%, 240px); order: -1; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 68px; }
  .hdr.is-compact { --hdr-h: 62px; }
  .logo img, .mnav .logo img { height: 46px; }
  .ftr .logo img { height: 76px; }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__contact .ftr__list { grid-template-columns: 1fr; }
  .ftr__contact .ftr__list li:first-child { grid-row: auto; }
  .ftr__bottom { margin-top: 32px; }
  .ftr { padding-bottom: 88px; }   /* keeps the legal links clear of the WhatsApp button */
  .wa { right: 14px; bottom: 14px; }
  .phero { padding-inline: 8px; }
  .phero__card { padding: 32px 20px; border-radius: 26px; }
  .phero__art { width: 150px; }
}
@media (max-width: 380px) {
  .mnav__svc { grid-template-columns: 1fr; }
  .mnav__cta { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .curtain { display: none; }
}
