/* ==========================================================================
   Shrish Associates — Global design system
   Shared by every page. Page-specific rules live in their own CSS file.
   ========================================================================== */

:root {
  /* Shrish Group shared identity palette */
  --navy-900: #07111f;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #24344d;
  --steel-300: #94a3b8;
  --accent-500: #10b981;
  --accent-600: #059669;
  --gold: #d4af37;
  /* legacy aliases kept so page CSS keeps working */
  --amber-500: var(--gold);
  --amber-600: #b8952c;
  --sand-100: #f8fafc;
  --sand-200: #eef2f7;
  --white: #ffffff;
  --ink: #1f2937;
  --ink-muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --danger: #ef4444;
  --success: #10b981;

  /* Semantic tokens */
  --bg: var(--white);
  --surface: var(--white);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --accent: var(--accent-500);

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);

  /* Type */
  --font-display: "Poppins", system-ui, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1200px;
  --radius: 12px;
  --radius-lg: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 34px rgba(16, 185, 129, 0.18);
  --section-y: clamp(3.5rem, 7vw, 6.25rem);
}


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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent-600); }


h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--navy-800);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1rem; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%); color: rgba(255,255,255,0.75); }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--surface { background: var(--sand-100); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.section--dark .eyebrow { color: var(--gold); }

.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.section--dark .lede { color: #a9bccd; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--accent-500); color: var(--white); box-shadow: var(--shadow-glow); }
.btn--primary:hover { background: var(--accent-600); color: var(--white); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }
.btn--ghost {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent;
}
.btn--ghost:hover { background: var(--navy-800); color: var(--white); }
.btn--onDark {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.btn--onDark:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
/* Component slot wrappers must not break sticky positioning */
[data-component="header"] { display: contents; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.topbar {
  background: var(--navy-900);
  color: #9db0c2;
  font-size: 0.78rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #c9d6e2; }
.topbar a:hover { color: var(--accent-500); }
.topbar__contact { display: flex; align-items: center; gap: 0.6rem; }
.topbar__sep { opacity: 0.4; }
.topbar__links { display: flex; align-items: center; gap: 1.1rem; }
.topbar__portal {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  opacity: 0.7;
}
.topbar__portal:hover { border-color: var(--accent-500); opacity: 1; }

.mainnav {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck .mainnav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft, 0 4px 16px rgba(15, 23, 42, 0.06));
}

.mainnav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--accent-500);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: -0.03em;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 1.02rem;
}
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-700);
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-500);
  transition: width 0.25s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link:hover,
.nav__link.is-active { color: var(--accent-600); }


.header__cta { display: inline-flex; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  margin: 4px 0;
}

/* Off-canvas */
.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 31, 0.55);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.offcanvas-backdrop.is-open { opacity: 1; }
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 86vw);
  z-index: 90;
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.82);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 1.6rem 6rem;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.35s ease;
  box-shadow: -24px 0 60px -36px rgba(0, 0, 0, 0.8);
}
.offcanvas.is-open { transform: translateX(0); }
.offcanvas__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
}
.offcanvas__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.6rem 0 0.35rem;
}
.offcanvas__nav { display: grid; }
.offcanvas__nav a {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  color: var(--white);
}
.offcanvas__nav a:hover { color: var(--accent-500); }
.offcanvas__nav--muted a { color: rgba(255, 255, 255, 0.7); }
.offcanvas .btn--wide { margin-top: 1.5rem; }

body.is-locked { overflow: hidden; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
}
@media (max-width: 620px) {
  .topbar__inner { justify-content: center; font-size: 0.72rem; }
  .topbar__contact { display: none; }
}

/* Mobile bottom app nav */
.app-nav { display: none; }
@media (max-width: 620px) {
  .app-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .app-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .app-nav a {
    display: block;
    text-align: center;
    padding: 0.7rem 0.2rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
  }
  .app-nav a.is-active { color: var(--accent-500); border-bottom-color: var(--accent-500); }

  body { padding-bottom: 56px; }
  .wa-float { bottom: 74px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-800);
  color: #9db0c2;
  padding-block: 3.5rem 1.5rem;
  font-size: 0.92rem;
}
.site-footer a { color: #c9d6e2; }
.site-footer a:hover { color: var(--accent-500); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer__title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__slogan {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}
.footer__portal {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  display: inline-block;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.83rem;
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}


/* ---------- Reusable blocks ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-600);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.card p { color: var(--text-muted); margin-bottom: 0; }
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-700);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 4px solid var(--accent-500);
}
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero p { color: #a9bccd; max-width: 62ch; margin-bottom: 0; }

.breadcrumbs { font-size: 0.8rem; color: #8ba0b3; margin-bottom: 1rem; }
.breadcrumbs a { color: #8ba0b3; }

.cta-band {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: #bccdda; margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-800);
}
.section--dark .stat__value { color: var(--accent-500); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); }
.section--dark .stat__label { color: #9db0c2; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-600);
}
.tag--live { background: rgba(35, 122, 92, 0.14); color: var(--success); }

/* Project cards (shared by home + projects pages) */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-card__media { aspect-ratio: 3 / 2; background: var(--sand-200); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-card h3 { margin: 0; font-size: 1.05rem; }
.project-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.project-card__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
}

/* Forms */
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--navy-700); }
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(225, 168, 59, 0.55);
  outline-offset: 1px;
  border-color: var(--accent-500);
}
.field textarea { min-height: 130px; resize: vertical; }
.field__error { font-size: 0.78rem; color: var(--danger); min-height: 1em; }
.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: var(--danger); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field--check label { font-weight: 500; font-size: 0.86rem; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-note { font-size: 0.82rem; color: var(--text-muted); }
.form-status { border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(35, 122, 92, 0.1); border: 1px solid rgba(35, 122, 92, 0.35); color: #17573f; }
.form-status--err { background: rgba(179, 64, 47, 0.08); border: 1px solid rgba(179, 64, 47, 0.35); color: #8a2f21; }

/* Sticky WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
}
.wa-float:hover { background: var(--accent-600); color: #fff; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 0.85rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
