/* ===========================================================
   MJCS — Mass Junior Contractors & Suppliers
   Static design system (mirrors the React app tokens)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 240 20% 99%;
  --foreground: 252 30% 10%;
  --card: 0 0% 100%;
  --card-foreground: 252 30% 10%;
  --primary: 252 100% 56%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 258 100% 70%;
  --primary-deep: 250 90% 40%;
  --secondary: 252 40% 96%;
  --secondary-foreground: 252 60% 20%;
  --muted: 252 20% 95%;
  --muted-foreground: 252 10% 40%;
  --accent: 258 100% 70%;
  --accent-foreground: 0 0% 100%;
  --border: 252 20% 90%;
  --input: 252 20% 90%;
  --ring: 252 100% 56%;
  --radius: 0.875rem;

  --gradient-primary: linear-gradient(135deg, hsl(252 100% 56%), hsl(268 100% 65%));
  --gradient-hero:
    radial-gradient(ellipse at top left, hsl(252 100% 56% / 0.25), transparent 60%),
    radial-gradient(ellipse at bottom right, hsl(268 100% 65% / 0.2), transparent 60%);

  --shadow-glow: 0 20px 60px -20px hsl(252 100% 56% / 0.45);
  --shadow-soft: 0 10px 40px -15px hsl(252 60% 30% / 0.2);
  --shadow-elevated: 0 30px 80px -30px hsl(252 100% 56% / 0.5);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
  --background: 252 30% 6%;
  --foreground: 240 20% 98%;
  --card: 252 30% 9%;
  --card-foreground: 240 20% 98%;
  --primary: 258 100% 68%;
  --primary-foreground: 252 30% 6%;
  --primary-glow: 268 100% 75%;
  --secondary: 252 25% 14%;
  --secondary-foreground: 240 20% 98%;
  --muted: 252 25% 12%;
  --muted-foreground: 252 15% 65%;
  --accent: 268 100% 70%;
  --border: 252 25% 18%;
  --input: 252 25% 18%;
  --ring: 258 100% 68%;
  --gradient-primary: linear-gradient(135deg, hsl(258 100% 68%), hsl(268 100% 75%));
  --gradient-hero:
    radial-gradient(ellipse at top left, hsl(258 100% 60% / 0.35), transparent 60%),
    radial-gradient(ellipse at bottom right, hsl(280 100% 60% / 0.25), transparent 60%);
  --shadow-glow: 0 20px 60px -20px hsl(258 100% 60% / 0.6);
  --shadow-soft: 0 10px 40px -15px hsl(0 0% 0% / 0.5);
  --shadow-elevated: 0 30px 80px -30px hsl(258 100% 60% / 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: 5rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1,h2,h3,h4,h5 { font-family: 'Space Grotesk','Inter',sans-serif; letter-spacing: -0.02em; line-height: 1.1; }

.container-x { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container-x { padding: 0 2.5rem; } }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====== buttons ====== */
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: 9999px;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform .3s, box-shadow .3s;
  border: none;
}
.btn-hero:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-elevated); }

.btn-ghost-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / .3);
  color: hsl(var(--primary)); font-weight: 600;
  transition: background .3s;
}
.btn-ghost-brand:hover { background: hsl(var(--primary) / .1); }

/* ====== cards ====== */
.glow-card {
  position: relative;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .5s, box-shadow .5s;
}
.glow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ====== navbar ====== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 5rem;
  transition: background .5s, border-color .5s, backdrop-filter .5s;
  background: transparent;
}
.navbar.scrolled {
  background: hsl(var(--background) / .75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(var(--border) / .6);
}
.navbar nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.nav-brand img { height: 2.5rem; width: 2.5rem; transition: transform .5s; }
.nav-brand:hover img { transform: rotate(6deg); }
.nav-brand-title { font-family:'Space Grotesk'; font-weight:700; font-size:1.125rem; }
.nav-brand-sub { font-size:10px; text-transform:uppercase; letter-spacing:.2em; color: hsl(var(--muted-foreground)); }

.nav-links { display: none; gap: .25rem; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: .5rem 1rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  color: hsl(var(--foreground) / .7);
  transition: color .2s;
}
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link.active { color: hsl(var(--primary)); }
.nav-link.active::after {
  content: ''; position: absolute; left: .75rem; right: .75rem; bottom: -2px;
  height: 2px; background: var(--gradient-primary); border-radius: 9999px;
}

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  height: 2.5rem; width: 2.5rem; border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--card) / .6); transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: scale(1.1); background: hsl(var(--card)); }
.nav-cta { display: none; padding: .625rem 1.25rem !important; font-size: .875rem; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out-expo); }
.mobile-menu.open { max-height: 30rem; }
.mobile-menu-inner {
  display: flex; flex-direction: column; gap: .25rem;
  padding-bottom: 1.5rem;
  background: hsl(var(--background) / .95); backdrop-filter: blur(20px);
  border-top: 1px solid hsl(var(--border));
}
.mobile-menu-inner a {
  padding: .75rem 1rem; border-radius: .75rem;
  color: hsl(var(--foreground) / .8); font-weight: 500;
}
.mobile-menu-inner a.active { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }

/* ====== footer ====== */
.footer { margin-top: 6rem; border-top: 1px solid hsl(var(--border)); background: hsl(var(--secondary) / .4); }
.footer-grid { padding: 4rem 0; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { height: 3rem; width: 3rem; }
.footer h4 { font-weight: 600; margin-bottom: 1rem; font-family: 'Inter'; }
.footer ul { list-style: none; }
.footer .col-explore li { margin-bottom: .5rem; color: hsl(var(--muted-foreground)); }
.footer .col-explore a:hover { color: hsl(var(--primary)); }
.footer .col-reach li { display:flex; gap:.5rem; align-items:flex-start; font-size:.875rem; color: hsl(var(--muted-foreground)); margin-bottom:.75rem; }
.footer .col-reach .ico { color: hsl(var(--primary)); flex: 0 0 16px; margin-top: 2px; }
.footer-bottom { border-top: 1px solid hsl(var(--border)); }
.footer-bottom-inner { padding: 1.5rem 0; display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: space-between; font-size: .75rem; color: hsl(var(--muted-foreground)); }
@media (min-width:768px){ .footer-bottom-inner { flex-direction: row; } }
.col-span-2 { grid-column: span 1 / span 1; }
@media (min-width:768px){ .col-span-2 { grid-column: span 2 / span 2; } }
.footer .lead { margin-top: 1.25rem; max-width: 28rem; color: hsl(var(--muted-foreground)); }

/* ====== whatsapp fab ====== */
.fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  height: 3.5rem; width: 3.5rem; border-radius: 9999px;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated);
  animation: pulse-glow 2.5s ease-in-out infinite;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.1); }

/* ====== reveal on scroll ====== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ====== HERO (home) ====== */
.hero { position: relative; overflow: hidden; }
.hero .bg-hero { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero .blob1, .hero .blob2 { position: absolute; border-radius: 9999px; filter: blur(64px); }
.hero .blob1 { top: -8rem; right: -8rem; width: 500px; height: 500px; background: hsl(var(--primary) / .2); }
.hero .blob2 { bottom: -8rem; left: -8rem; width: 400px; height: 400px; background: hsl(var(--accent) / .2); }
.hero-grid {
  position: relative; display: grid; gap: 3rem; align-items: center;
  padding: 5rem 0;
}
@media (min-width:768px){ .hero-grid { padding: 8rem 0; } }
@media (min-width:1024px){ .hero-grid { grid-template-columns: 7fr 5fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid hsl(var(--primary) / .2); background: hsl(var(--primary) / .05);
  padding: .375rem 1rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: hsl(var(--primary));
}
.hero h1 {
  margin-top: 1.5rem;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: .95;
}
.hero p.lead {
  margin-top: 1.5rem; max-width: 36rem;
  font-size: 1.125rem; color: hsl(var(--muted-foreground));
}
@media (min-width:768px){ .hero p.lead { font-size: 1.25rem; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.hero-card {
  position: relative; aspect-ratio: 1/1;
  border-radius: 1.5rem; padding: 4px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-elevated);
}
.hero-card-inner {
  position: relative; height: 100%; width: 100%;
  border-radius: 22px; background: hsl(var(--card));
  overflow: hidden;
}
.hero-card-inner img {
  position: absolute; inset: 0; margin: auto;
  height: 66%; width: 66%; object-fit: contain;
  animation: float 5s ease-in-out infinite;
}
.dotgrid {
  position: absolute; inset: 0; padding: 2rem;
  display: grid; grid-template-columns: repeat(13, minmax(0,1fr)); gap: .75rem;
  opacity: .4; pointer-events: none;
}
.dotgrid .dot {
  display: block; aspect-ratio: 1/1; border-radius: 9999px;
  background: var(--gradient-primary);
  opacity: .6;
}

/* ====== generic sections ====== */
section { position: relative; }
.py-20 { padding: 5rem 0; }
.py-24 { padding: 6rem 0; }
.py-16 { padding: 4rem 0; }
.py-12 { padding: 3rem 0; }
.pb-24 { padding-bottom: 6rem; }

.section-title {
  font-family: 'Space Grotesk'; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); text-align: center;
}
.muted { color: hsl(var(--muted-foreground)); }
.center { text-align: center; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width:1024px){ .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 2rem; text-align: center; }
.stat .value {
  font-family:'Space Grotesk'; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* draw lines panel */
.two-col { display: grid; gap: 4rem; align-items: center; }
@media (min-width:1024px){ .two-col { grid-template-columns: 1fr 1fr; } }
.draw-panel {
  position: relative; aspect-ratio: 1/1;
  border-radius: 1.5rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / .5); backdrop-filter: blur(8px);
  padding: 1.5rem; color: hsl(var(--primary));
}
.eyebrow-text { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; color: hsl(var(--primary)); }

/* projects grid */
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width:768px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width:640px){ .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width:1024px){ .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.proj-card { overflow: hidden; }
.proj-img { aspect-ratio: 4/3; overflow: hidden; }
.proj-img img { height: 100%; width: 100%; object-fit: cover; transition: transform .7s; }
.proj-card:hover .proj-img img { transform: scale(1.1); }
.proj-body { padding: 1.5rem; }
.proj-body h3 { font-family:'Space Grotesk'; font-size:1.25rem; font-weight:600; }
.proj-body p { margin-top:.5rem; font-size:.875rem; color: hsl(var(--muted-foreground)); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}

/* feature cards */
.feature { padding: 2rem; }
.feature .ico-tile {
  height: 3rem; width: 3rem; border-radius: .75rem;
  background: var(--gradient-primary); color: hsl(var(--primary-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
}
.feature h3 { margin-top: 1.25rem; font-family:'Space Grotesk'; font-size: 1.125rem; font-weight: 600; }
.feature p { margin-top: .5rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: 1.5rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  padding: 3rem 1.5rem; text-align: center;
  box-shadow: var(--shadow-elevated);
}
@media (min-width:768px){ .cta-banner { padding: 5rem; } }
.cta-banner h2 { font-family:'Space Grotesk'; font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem); max-width: 48rem; margin: 0 auto; line-height:1.1; }
.cta-banner p { margin: 1.25rem auto 0; max-width: 36rem; color: rgba(255,255,255,.9); font-size: 1.125rem; }
.cta-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: hsl(var(--primary)); font-weight: 600;
  padding: .875rem 1.75rem; border-radius: 9999px;
  box-shadow: var(--shadow-elevated); transition: transform .2s;
}
.btn-white:hover { transform: scale(1.05); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(255,255,255,.4); padding: .875rem 1.75rem; border-radius: 9999px; font-weight: 600;
  transition: background .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

/* ===== Page hero (sub pages) ===== */
.page-hero { position: relative; overflow: hidden; }
.page-hero .bg-hero { position: absolute; inset: 0; background: var(--gradient-hero); }
.page-hero-inner { position: relative; padding: 5rem 0 3rem; max-width: 56rem; }
.page-hero h1 {
  margin-top: 1.25rem; font-family:'Space Grotesk'; font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05;
}
.page-hero p { margin-top: 1.5rem; max-width: 38rem; color: hsl(var(--muted-foreground)); font-size: 1.125rem; }

/* ===== About: values + team marquee + dialog ===== */
.values-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 3.5rem; }
@media (min-width:640px){ .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px){ .values-grid { grid-template-columns: repeat(4, 1fr); } }

.story-grid { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width:1024px){ .story-grid { grid-template-columns: 1fr 1fr; } }
.story-text p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; line-height:1.7; }
.story-text .strong { color: hsl(var(--foreground)); font-weight: 600; }
.story-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.story-images img { aspect-ratio: 3/4; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-soft); }
.story-images img + img { margin-top: 2.5rem; }

.team-section { padding: 5rem 0; overflow: hidden; }
.team-marquee {
  margin-top: 3.5rem; position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.team-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: marquee 40s linear infinite;
}
.team-marquee:hover .team-track { animation-play-state: paused; }
.team-card {
  width: 280px; flex-shrink: 0; overflow: hidden; text-align: left;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  border-radius: 1rem; box-shadow: var(--shadow-soft);
  transition: transform .5s, box-shadow .5s;
}
@media (min-width: 640px){ .team-card { width: 320px; } }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.team-card .photo { aspect-ratio: 4/5; overflow: hidden; }
.team-card .photo img { height: 100%; width: 100%; object-fit: cover; transition: transform .7s; }
.team-card:hover .photo img { transform: scale(1.1); }
.team-card .body { padding: 1.25rem; }
.team-card .body h3 { font-family:'Space Grotesk'; font-size: 1.125rem; font-weight: 600; }
.team-card .body .role { color: hsl(var(--primary)); font-size:.875rem; font-weight:500; margin-top:.25rem; }
.team-card .body .hint { margin-top:.5rem; font-size:.75rem; color: hsl(var(--muted-foreground)); }

/* dialog */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.8); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
  animation: fade-in .3s ease-out;
}
.dialog-overlay.open { display: flex; }
.dialog {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem; max-width: 42rem; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-elevated);
  animation: scale-in .25s ease-out;
}
.dialog-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width:640px){ .dialog-grid { grid-template-columns: 1fr 1fr; } }
.dialog-photo { aspect-ratio: 1/1; background: hsl(var(--muted)); overflow: hidden; }
.dialog-photo img { height: 100%; width: 100%; object-fit: cover; }
.dialog-body { padding: 2rem; }
.dialog-body h3 { font-family:'Space Grotesk'; font-size: 1.5rem; font-weight: 700; }
.dialog-body .role { color: hsl(var(--primary)); font-size:.875rem; font-weight:600; margin-top:.25rem; }
.dialog-body .about { margin-top: 1rem; font-size:.875rem; color: hsl(var(--muted-foreground)); line-height:1.6; }
.dialog-contacts { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; font-size:.875rem; }
.dialog-contact { display: flex; align-items: center; gap: .75rem; transition: color .2s; }
.dialog-contact:hover { color: hsl(var(--primary)); }
.dialog-contact .ico {
  height: 2.25rem; width: 2.25rem; border-radius: .5rem;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}
.dialog-close {
  position: absolute; top: 1rem; right: 1rem;
  height: 2.25rem; width: 2.25rem; border-radius: 9999px;
  background: hsl(var(--background) / .8); border: 1px solid hsl(var(--border));
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Services ===== */
.service-row {
  display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr;
  margin-bottom: 6rem;
}
@media (min-width:1024px){ .service-row { grid-template-columns: 1fr 1fr; } }
.service-row.flip > div:first-child { order: 2; }
@media (max-width:1023px){ .service-row.flip > div:first-child { order: 0; } }
.service-img-wrap { position: relative; }
.service-img-wrap::before {
  content: ''; position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: var(--gradient-primary); opacity: .2; filter: blur(32px);
}
.service-img {
  position: relative; aspect-ratio: 4/3; width: 100%; object-fit: cover;
  border-radius: 1.5rem; box-shadow: var(--shadow-elevated);
}
.service-row h2 { font-family:'Space Grotesk'; font-weight:700; font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 1.25rem; }
.service-row p.desc { margin-top: 1rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.service-row ul { margin-top: 1.5rem; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.service-row li { display: flex; gap: .75rem; align-items: flex-start; }
.service-row li::before {
  content: ''; margin-top: .5rem; height: 6px; width: 6px; border-radius: 9999px; background: hsl(var(--primary)); flex-shrink: 0;
}
.service-row .why { margin-top: 1.5rem; font-size:.875rem; font-weight:500; color: hsl(var(--primary)); }

.downloads-panel {
  border-radius: 1.5rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width:768px){ .downloads-panel { padding: 4rem; } }
.downloads-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width:768px){ .downloads-grid { grid-template-columns: repeat(3, 1fr); } }
.dl-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.dl-head { display: flex; align-items: center; gap: 1rem; }
.dl-head .ico-tile {
  height: 3rem; width: 3rem; border-radius: .75rem;
  background: hsl(var(--primary) / .1); color: hsl(var(--primary));
  display: inline-flex; align-items: center; justify-content: center;
}
.dl-head .name { font-weight: 600; }
.dl-head .meta { font-size:.75rem; color: hsl(var(--muted-foreground)); }
.dl-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.btn-pill-outline {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid hsl(var(--primary) / .3); padding: .625rem 1rem;
  border-radius: 9999px; font-size:.875rem; font-weight: 600; color: hsl(var(--primary));
  transition: background .2s;
}
.btn-pill-outline:hover { background: hsl(var(--primary) / .1); }
.btn-pill-primary {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--gradient-primary); color: hsl(var(--primary-foreground));
  padding: .625rem 1rem; border-radius: 9999px; font-size:.875rem; font-weight: 600;
  box-shadow: var(--shadow-glow); transition: transform .2s;
}
.btn-pill-primary:hover { transform: scale(1.02); }

/* ===== Portfolio ===== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .625rem 1.25rem; border-radius: 9999px;
  font-size:.875rem; font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: hsl(var(--primary) / .4); }
.chip.active {
  background: var(--gradient-primary); color: hsl(var(--primary-foreground));
  border-color: transparent; box-shadow: var(--shadow-glow);
}
.portfolio-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width:640px){ .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px){ .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card { overflow: hidden; text-align: left; }
.portfolio-card .body { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; }
.portfolio-card .body h3 { font-family:'Space Grotesk'; font-weight: 600; }
.portfolio-card .body .cat-tag { font-size:.75rem; text-transform: uppercase; letter-spacing: .15em; color: hsl(var(--primary)); }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.8); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
  animation: fade-in .3s ease-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 1rem; box-shadow: var(--shadow-elevated); }

/* ===== Events ===== */
.event { display: grid; grid-template-columns: 1fr; overflow: hidden; margin-bottom: 2.5rem; }
@media (min-width:768px){ .event { grid-template-columns: 2fr 3fr; } }
.event-img { aspect-ratio: 4/3; overflow: hidden; }
@media (min-width:768px){ .event-img { aspect-ratio: auto; } }
.event-img img { height: 100%; width: 100%; object-fit: cover; }
.event-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width:768px){ .event-body { padding: 2.5rem; } }
.event-meta { display: flex; align-items: center; gap: .75rem; font-size:.75rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--primary)); font-weight:700; }
.event-badge { background: hsl(var(--primary) / .1); padding: .25rem .75rem; border-radius: 9999px; }
.event-body h2 { margin-top: 1rem; font-family:'Space Grotesk'; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.event-loc { margin-top: .5rem; display: flex; align-items: center; gap: .375rem; color: hsl(var(--muted-foreground)); font-size:.875rem; }
.event-desc { margin-top: 1rem; color: hsl(var(--muted-foreground)); }
.event-link { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; color: hsl(var(--primary)); font-weight: 600; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 4rem 0; }
@media (min-width:1024px){ .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.5rem; }
.contact-card .ico-tile {
  height: 3rem; width: 3rem; border-radius: .75rem; flex-shrink: 0;
  background: var(--gradient-primary); color: hsl(var(--primary-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
}
.contact-card .label { font-size:.75rem; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--primary)); font-weight:700; }
.contact-card .value { margin-top: .25rem; word-break: break-word; }

.form { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width:768px){ .form { padding: 2.5rem; } }
.form h2 { font-family:'Space Grotesk'; font-size: 1.875rem; font-weight: 700; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size:.875rem; font-weight: 500; margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem 1rem;
  border-radius: .75rem; border: 1px solid hsl(var(--input));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  outline: none; font: inherit; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: hsl(var(--primary)); }
.field textarea { resize: vertical; min-height: 120px; }

.map-wrap { overflow: hidden; border-radius: 1.5rem; border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-soft); aspect-ratio: 16/7; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(20%) contrast(1.05); }

/* toast */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  padding: 1rem 1.25rem; border-radius: .75rem;
  box-shadow: var(--shadow-elevated); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.toast .t-title { font-weight: 600; }
.toast .t-desc { font-size:.875rem; color: hsl(var(--muted-foreground)); }

/* ===== Animations ===== */
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@keyframes pulse-glow { 0%,100%{ box-shadow: 0 0 0 0 hsl(var(--primary) / .4);} 50%{ box-shadow: 0 0 0 20px hsl(var(--primary) / 0);} }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* utilities */
.flex { display: flex; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-12 { margin-bottom: 3rem; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
