/* ----------------------------- Tokens ----------------------------- */
:root {
  --navy-900: #14233a;
  --navy-800: #192d4a;  /* header bg tint, subtle fills */
  --navy-700: #1e3a5f;
  --navy-600: #2c4a6e;
  --blue-500: #2f5d8a;
  --gray-700: #4a5568;
  --gray-500: #6b7280;
  --gray-400: #9aa3af;  /* placeholder, disabled text */
  --gray-300: #d6dbe3;
  --gray-200: #e7ebf1;
  --gray-100: #f2f4f8;
  --bg:       #fafbfc;
  --surface:  #ffffff;
  --text:     #1f2937;
  --text-soft:#5b6472;
  --white:    #ffffff;

  /* Focus ring — one definition, used everywhere */
  --focus-ring: 0 0 0 3px rgba(47, 93, 138, .45);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 35, 58, .06), 0 1px 3px rgba(20, 35, 58, .05);
  --shadow-md: 0 10px 30px rgba(20, 35, 58, .08);
  --shadow-lg: 0 24px 60px rgba(20, 35, 58, .12);
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* -------- Skip link -------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-6);
  padding: var(--sp-2) var(--sp-5);
  background: var(--navy-700);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 0; outline: none; box-shadow: var(--focus-ring); }

/* -------- Global focus-visible ring -------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* Elevated interactive elements get the box-shadow ring instead */
.btn:focus-visible,
.nav a:focus-visible,
.nav .nav-cta:focus-visible,
.nav-toggle:focus-visible,
.nav-mobile a:focus-visible,
.hero-social-link:focus-visible,
.btn-ghost-card:focus-visible,
.modal-carousel__arrow:focus-visible,
.modal-carousel__dot:focus-visible,
.project-modal__close:focus-visible,
.footer-social a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-6); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: var(--sp-3);
}
/* Use on dark backgrounds */
.eyebrow--light { color: rgba(255, 255, 255, .55); }

/* ----------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
  /* Ensure minimum accessible touch target */
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }


.btn-primary { background: var(--navy-700); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary .ico { width: 18px; height: 18px; fill: var(--white); }

.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--navy-700); }
.btn-outline:hover { border-color: var(--navy-700); transform: translateY(-2px); }

/* Outlined dark variant — sits beside btn-primary on light backgrounds */
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-700);
  font-weight: 600;
}
.btn-outline-dark:hover { background: var(--navy-700); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { padding: 10px 0; color: var(--navy-700); font-size: .92rem; }
.btn-ghost .arrow { transition: transform .25s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* Ghost variant for use inside cards — no heavy border, reads as a text-link action */
.btn-ghost-card {
  background: none;
  border: none;
  padding: var(--sp-2) 0;
  color: var(--blue-500);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.btn-ghost-card:hover { color: var(--navy-700); gap: 10px; }
.btn-ghost-card .arrow { transition: transform .25s var(--ease); }
.btn-ghost-card:hover .arrow { transform: translateX(4px); }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 252, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--navy-900);
  /* Minimum touch target */
  padding: var(--sp-2) 0;
}
.brand:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 4px; border-radius: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--gray-700);
  padding: var(--sp-2) 0;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--navy-900); }
.nav .nav-cta {
  background: var(--navy-700);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  min-height: 40px;
}
.nav .nav-cta:hover { background: var(--navy-900); color: var(--white); }

/* nav-toggle: 44×44 minimum touch target */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  /* Center the visual within the larger tap area */
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
}
.nav-mobile a {
  padding: 14px var(--sp-6);
  font-weight: 500;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-100);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-mobile a:hover { color: var(--navy-900); background: var(--gray-100); }
.nav-mobile.open { max-height: 280px; }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 93, 138, .07), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--navy-900);
  margin-bottom: var(--sp-4);
}
.hero-headline {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -.01em;
  margin-bottom: var(--sp-4);
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 44ch;
  margin-bottom: var(--sp-8);
}
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-buttons.center { justify-content: center; }

/* Secondary social/contact links below the main CTA cluster */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--gray-200);
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: var(--sp-1) 0;
  min-height: 44px;
  transition: color .2s var(--ease);
}
.hero-social-link:hover { color: var(--navy-700); }
.hero-social-link .ico { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* Hero photo */
.hero-photo { position: relative; justify-self: center; width: clamp(190px, 22vw, 280px); }
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.photo-frame img { width: 100%; height: auto; object-fit: cover; }
.photo-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.photo-badge strong { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }
.photo-badge span { font-size: .78rem; color: var(--gray-500); line-height: 1.4; }

/* -------------------------- Trust bar --------------------------- */
/* Slim keyword strip bridging hero → specialties; signals breadth at a glance */
.trust-bar {
  background: var(--surface);
  border-block: 1px solid var(--gray-200);
  padding: var(--sp-5) 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4) var(--sp-6);
}
.trust-item {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}
.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-sep { display: none; }
  .trust-item { flex: 1 1 calc(50% - var(--sp-4)); text-align: center; }
}

/* -------------------------- Especialidades ------------------------ */
.specialties-section { padding: clamp(64px, 10vw, 110px) 0; background: var(--surface); }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.specialty-card {
  background: var(--bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy-700);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.specialty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.specialty-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(47, 93, 138, .08);
  color: var(--navy-700);
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}
.specialty-icon svg { width: 22px; height: 22px; }
.specialty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -.01em;
  margin-bottom: var(--sp-2);
}
.specialty-text { color: var(--text-soft); font-size: .93rem; line-height: 1.65; }

/* ---------------------------- Projects ---------------------------- */
.projects {
  padding: clamp(64px, 10vw, 110px) 0;
  background:
    radial-gradient(800px 460px at 90% -10%, rgba(47, 93, 138, .05), transparent 60%),
    var(--gray-100);
  border-top: 1px solid var(--gray-200);
}
.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--navy-900);
  margin-bottom: var(--sp-4);
}
.section-sub { color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
/* Card media — static thumbnail (the full carousel lives in the modal) */
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card-title { font-size: 1.1rem; font-weight: 600; color: var(--navy-900); letter-spacing: -.01em; line-height: 1.3; }
.card-text { color: var(--text-soft); font-size: .94rem; line-height: 1.6; flex: 1; }

/* Featured project cards — image-led, scannable in seconds */
.project-grid--feature { grid-template-columns: repeat(2, 1fr); }
/* Image is the main focus: taller media, compact text area below */
.card-feature .card-media { aspect-ratio: 3 / 2; }
.card-feature .card-text { flex: 0 0 auto; }

/*
  Whole-card clickability:
  The .card-trigger button is the real interactive control (keyboard-focusable,
  announces the dialog). A click handler on the whole card (in script.js) is a
  pointer convenience — the card is not itself a button, so no interactive
  element is nested illegally. The whole surface shows a pointer cursor.
*/
.card-feature { position: relative; cursor: pointer; }
.card-feature:focus-within { border-color: var(--blue-500); box-shadow: var(--focus-ring), var(--shadow-lg); }

/* Platform tags — quiet metadata chips between description and action */
.card-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  padding: 0;
  list-style: none;
  /* Sits between card-text and card-actions; no extra margin needed —
     card-body gap (--sp-3) already provides the breathing room */
}
.card-platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.5;
  white-space: nowrap;
}
.card-platform-tag .tag-ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Action button — pinned to the bottom so cards align in a clean row */
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: var(--sp-2); }
.card-actions .btn { font-size: .88rem; padding: 10px 16px; min-height: 40px; }

/* ------------------- Project detail modal ------------------- */
/*
  Single shared overlay that opens when a card (or its "Ver mais" button)
  is activated. The carousel lives here; nothing carousel-specific remains
  on the card itself.
*/
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Hidden state: invisible + non-interactive */
  visibility: hidden;
  pointer-events: none;
}
.project-modal[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

/* Dimmed backdrop */
.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 58, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  cursor: pointer;
}
.project-modal[aria-hidden="false"] .project-modal__backdrop { opacity: 1; }

/* Sliding panel — rises from the bottom on mobile, centers on desktop */
.project-modal__panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
  transform: translateY(40px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  /* Scrollbar inside panel, not viewport */
  -webkit-overflow-scrolling: touch;
}
.project-modal[aria-hidden="false"] .project-modal__panel {
  transform: translateY(0);
  opacity: 1;
}
@media (min-width: 640px) {
  .project-modal { align-items: center; padding: var(--sp-8) var(--sp-6); }
  .project-modal__panel { border-radius: var(--radius); max-height: 88vh; }
}

/* Close button */
.project-modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy-700);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.project-modal__close:hover { background: var(--gray-200); color: var(--navy-900); }
.project-modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Modal carousel ---- */
.modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
@media (min-width: 640px) {
  .modal-carousel { border-radius: var(--radius) var(--radius) 0 0; }
}

.modal-carousel__viewport { width: 100%; height: 100%; overflow: hidden; }
.modal-carousel__track {
  display: flex;
  height: 100%;
  transition: transform .45s var(--ease);
}
.modal-carousel__slide { flex: 0 0 100%; width: 100%; height: 100%; }
.modal-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nav arrows */
.modal-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 35, 58, .55);
  color: var(--white);
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.modal-carousel__arrow--prev { left: var(--sp-4); }
.modal-carousel__arrow--next { right: var(--sp-4); }
.modal-carousel__arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal-carousel__arrow:hover { background: rgba(20, 35, 58, .82); }
.modal-carousel__arrow:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.modal-carousel__arrow[hidden] { display: none; }

/* Dot indicators */
.modal-carousel__dots {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal-carousel__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.modal-carousel__dot.is-active { background: var(--white); transform: scale(1.35); }
/* Expand hit area without changing visual size */
.modal-carousel__dot::before {
  content: "";
  display: block;
  position: absolute;
  inset: -8px;
}

/* ---- Modal body ---- */
.project-modal__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .project-modal__body { padding: var(--sp-8) var(--sp-8) var(--sp-10); gap: var(--sp-5); }
}

.project-modal__title {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -.02em;
  line-height: 1.2;
  /* Leave room for the close button */
  padding-right: var(--sp-12);
}

.project-modal__platforms { gap: var(--sp-1) var(--sp-2); }

.project-modal__description {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 68ch;
}

.project-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
}

/* Grouped per-app store links — each app shows its name + Google Play and App Store badges */
.pd-app { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.pd-app__name { font-weight: 600; font-size: .9rem; color: var(--navy-900); }
.pd-app__stores { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Compact store button — lighter than btn-outline-dark so both platforms read as peers */
.btn-store {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy-700);
  font-size: .88rem;
  padding: 10px 16px;
}
.btn-store:hover { border-color: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-store svg { width: 16px; height: 16px; }

/* Restricted notice for internal projects */
.pd-restricted {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-4);
}
.pd-restricted::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}

/* ------------------------------ CTA ------------------------------- */
.cta {
  padding: clamp(64px, 9vw, 100px) 0;
  background:
    radial-gradient(700px 400px at 15% 120%, rgba(47, 93, 138, .35), transparent 60%),
    var(--navy-900);
}
.cta-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}
/* --cta-text: navy-900 at 80% white — legible on dark bg, avoids hardcode */
.cta-sub { color: rgba(255, 255, 255, .75); font-size: 1.08rem; line-height: 1.7; margin-bottom: var(--sp-8); }
.cta .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.cta .btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

/* ----------------------------- Footer ----------------------------- */
/* --footer-text: legible warm-gray on dark navy */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding: 48px 0 28px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-footer { color: var(--white); }
.footer-note { font-size: .92rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-social a { font-size: .92rem; transition: color .2s var(--ease); min-height: 44px; display: inline-flex; align-items: center; }
.footer-social a:hover { color: var(--white); }
.footer-bottom { padding-top: 22px; font-size: .85rem; color: rgba(255, 255, 255, .4); }

/* --------------------- Scroll-reveal animations ------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .modal-carousel__track { transition: none; }
  .btn, .btn-ghost-card, .card, .specialty-card, .nav a, .footer-social a,
  .hero-social-link { transition: none; }
  .project-modal__panel, .project-modal__backdrop { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------- Responsive -------------------------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { order: 2; }
  .hero-photo { order: 1; width: clamp(170px, 45vw, 230px); margin-bottom: 24px; }
  .photo-badge { left: 0; }
  /* Extra bottom padding so the overflowing badge isn't clipped */
  .hero { padding-bottom: calc(clamp(48px, 8vw, 96px) + 18px); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .specialty-grid { grid-template-columns: 1fr; }
  .project-grid--feature { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
  .contact-buttons .btn { flex: 1 1 calc(50% - 12px); justify-content: center; }
  .photo-badge { bottom: -14px; padding: 11px 14px; }
  .hero-social { gap: var(--sp-4); }
  .hero-social-link { font-size: .82rem; }
}
