@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: #2D2D2D;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ========================================
   VARIABLES
   ======================================== */
:root {
  --navy: #1B3A5C;
  --navy-dark: #142d48;
  --orange: #E87722;
  --orange-dark: #d66a1a;
  --gray-text: #2D2D2D;
  --gray-600: #6B7280;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #ffffff;

  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-navy {
  color: var(--navy);
}

.text-orange {
  color: var(--orange);
}

.text-gray-600 {
  color: var(--gray-600);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--gray-100);
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

@media (min-width: 768px) {
  .section-title h2 {
    font-size: 2.25rem;
  }
}

.section-title p {
  font-size: 1.125rem;
  max-width: 42rem;
  color: var(--gray-600);
}

.section-title .bar {
  height: 0.375rem;
  width: 5rem;
  margin-top: 1.5rem;
  margin-left: 0;
  margin-right: auto;
  background: var(--orange);
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.section-title.light .bar {
  background: var(--white);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.header.transparent {
  background: transparent;
}

.header.solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.logo-img {
  height: 3rem;
  width: auto;
  transition: opacity 0.3s ease;
  display: block;
}

.logo-white {
  position: absolute;
  top: 0;
  left: 0;
  height: 3rem;
  width: auto;
  max-width: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (min-width: 768px) {
  .logo-img {
    height: 4rem;
  }
  .logo-white {
    height: 4rem;
  }
}

/* Header transparente: logo branco visível, logo-img oculto */
.header.transparent .logo-white {
  opacity: 1;
}
.header.transparent .logo-img {
  opacity: 0;
}

/* Header sólido: logo branco oculto, logo-img visível */
.header.solid .logo-white {
  opacity: 0;
}
.header.solid .logo-img {
  opacity: 1;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.header.transparent .nav-link {
  color: rgba(255,255,255,0.8);
}

.header.transparent .nav-link:hover {
  color: var(--white);
}

.header.solid .nav-link {
  color: var(--gray-text);
}

.header.solid .nav-link:hover {
  color: var(--navy);
}

.nav-link.active {
  color: var(--navy);
}

.nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.header.transparent .mobile-toggle {
  color: var(--white);
}

.header.solid .mobile-toggle {
  color: var(--navy);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu .close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  text-align: left;
  text-transform: capitalize;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--orange);
}

/* Mobile/Desktop visibility helpers */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* ========================================
   HEADER
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://www.transparenttextures.com/patterns/graphy.png');
  opacity: 0.2;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero-content {
  color: var(--white);
  max-width: 48rem;
}

.hero-visual {
  display: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
  }
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: #fb923c;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  font-size: 1.125rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid transparent;
  transition: all 0.3s ease;
}

.card:hover {
  border-bottom-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.625;
}

/* ========================================
   GRID HELPERS
   ======================================== */
.grid-1 { display: grid; gap: 2rem; }
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 2rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   SERVICE PREVIEW CARD
   ======================================== */
.service-card {
  cursor: pointer;
}

.service-card .image-wrap {
  position: relative;
  height: 16rem;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,58,92,0.8), transparent);
}

.service-card .image-title {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.service-card .link {
  color: var(--orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card:hover .link {
  text-decoration: underline;
}

/* ========================================
   AUTHORITY SECTION
   ======================================== */
.authority {
  background: var(--navy);
  color: var(--white);
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.authority::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: var(--white);
  opacity: 0.05;
  transform: translateX(50%) skewX(-12deg);
}

.authority-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .authority-inner {
    flex-direction: row;
  }
}

.authority-quote {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .authority-quote {
    font-size: 2.8rem;
    width: 50%;
  }
}

.authority-stats {
  width: 100%;
  border-left: 2px solid var(--orange);
  padding-left: 2rem;
}

@media (min-width: 768px) {
  .authority-stats {
    width: 50%;
  }
}

.authority-stats p {
  font-size: 1.25rem;
  color: #dbeafe;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  gap: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  font-family: var(--font-mono);
  margin-top: 0;
}

@media (max-width: 767px) {
  .authority-stats .stat-number {
    font-size: 1.125rem;
    margin: 0 0 10px 0;
  }
  .authority-stats .stat-label {
    font-size: 0.5rem;
    margin: 0;
  }
}

/* ========================================
   PORTFOLIO CARD
   ======================================== */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 400px;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-card .tag {
  background: var(--orange);
  color: var(--white);
  font-size: 0.625rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.portfolio-card .desc {
  color: #d1d5db;
  font-size: 0.875rem;
  max-width: 28rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .desc {
  opacity: 1;
}

/* ========================================
   PORTFOLIO DETAIL CARD (portfolio.html)
   ======================================== */
.work-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-detail-card .image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 400px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.work-detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-detail-card:hover img {
  transform: scale(1.05);
}

.work-detail-card .cat-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.625rem;
  font-family: var(--font-mono);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

@media (min-width: 768px) {
  .work-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.work-meta .label {
  font-size: 0.625rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.work-meta .label-accent {
  color: var(--orange);
}

.work-meta p {
  font-size: 0.875rem;
  color: #374151;
}

/* ========================================
   FILTER BAR
   ======================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ========================================
   CAROUSEL
   ======================================== */
.carousel {
  position: relative;
}

.carousel-main {
  position: relative;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--gray-100);
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .carousel-main {
    height: 600px;
  }
}

.carousel-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-main img.active {
  opacity: 1;
}

.carousel-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}

.carousel:hover .carousel-zoom {
  background: rgba(0,0,0,0.1);
}

.carousel-zoom-icon {
  opacity: 0;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-radius: 9999px;
  color: var(--white);
  transition: opacity 0.3s;
}

.carousel:hover .carousel-zoom-icon {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,0.9);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: all 0.2s;
  z-index: 5;
}

.carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--orange);
  color: var(--white);
}

.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  height: 0.375rem;
  border-radius: 9999px;
  transition: all 0.3s;
  border: none;
  background: rgba(255,255,255,0.5);
}

.carousel-dot.active {
  width: 2rem;
  background: var(--orange);
}

.carousel-dot:not(.active) {
  width: 0.5rem;
}

.carousel-thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.carousel-thumb {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
}

.carousel-thumb:hover,
.carousel-thumb.active {
  opacity: 1;
  border-color: var(--orange);
  transform: scale(1.05);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--orange);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 72rem;
  aspect-ratio: 16 / 9;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  transition: color 0.2s;
  background: none;
}

.lightbox-nav:hover {
  color: var(--orange);
}

.lightbox-nav.prev { left: -1rem; }
.lightbox-nav.next { right: -1rem; }

@media (min-width: 768px) {
  .lightbox-nav.prev { left: -4rem; }
  .lightbox-nav.next { right: -4rem; }
}

.lightbox-thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.5rem;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  opacity: 0.4;
  padding: 0;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--orange);
  transform: scale(1.1);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   FORM
   ======================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.form-success-icon {
  width: 5rem;
  height: 5rem;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand p {
  color: #bfdbfe;
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 20rem;
}

.footer-brand .socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-brand .socials a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-brand .socials a:hover {
  background: var(--orange);
}

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 1rem;
}

.footer ul li a,
.footer ul li span {
  color: #bfdbfe;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #60a5fa;
}

@media (max-width: 767px) {
  .footer-bottom p {
    text-align: center;
    font-size: 0.7rem;
  }
}

.footer-bottom .badges {
  display: flex;
  gap: 2rem;
}

@media (max-width: 767px) {
  .footer-bottom .badges {
    display: none;
  }
}

.footer-bottom .badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
}

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  background: #25D366;
  color: var(--white);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-ping {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.whatsapp-ping span:first-child {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #4ade80;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.whatsapp-ping span:last-child {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #22c55e;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-text p {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-text p.secondary {
  color: var(--gray-600);
  font-size: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  padding: 1rem;
  border-left: 4px solid var(--navy);
  background: #eff6ff;
}

.pillar.orange {
  border-left-color: var(--orange);
  background: #fff7ed;
}

.pillar .label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.pillar .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 10;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  background: var(--navy);
  border-radius: 1rem;
  z-index: 0;
}

.dark-section {
  background: var(--white);
  padding-bottom: 6rem;
}

.dark-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

.dark-section p {
  color: var(--gray-600);
  line-height: 1.625;
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .dark-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   SERVICES PAGE
   ======================================== */
.service-block {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .service-block {
    flex-direction: row;
  }

  .service-block.alt {
    flex-direction: row-reverse;
  }
}

.service-block + .service-block {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .service-block + .service-block {
    margin-top: 3rem;
  }
}

.service-block .image-side {
  width: 100%;
}

@media (min-width: 768px) {
  .service-block .image-side {
    width: 33.333%;
  }
}

.service-block .image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.service-block .content-side {
  width: 100%;
  padding: 2rem;
}

@media (min-width: 768px) {
  .service-block .content-side {
    width: 66.666%;
    padding: 3rem;
  }
}

.service-block .content-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-block .content-icon {
  padding: 0.75rem;
  background: #eff6ff;
  color: var(--navy);
  border-radius: var(--radius);
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
}

.service-block .lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.service-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-details li i {
  color: var(--orange);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.service-details li span {
  color: #374151;
  font-weight: 500;
}

/* Process Flow */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-step {
  position: relative;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

/* Neutralize stacking context from data-animate on process-step itself */
.process-step[data-animate].will-animate,
.process-step[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Animate step-title instead of the card */
.process-step[data-animate] .step-title {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step[data-animate].will-animate .step-title {
  opacity: 0;
  transform: translateY(12px);
}

.process-step[data-animate].is-visible .step-title {
  opacity: 1;
  transform: translateY(0);
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  z-index: 0;
  color: var(--gray-200);
  margin-bottom: 0.5rem;
}

.process-step .step-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

.process-step .step-arrow {
  display: none;
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-200);
  z-index: 10;
}

@media (min-width: 1024px) {
  .process-step .step-arrow {
    display: block;
  }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  min-width: 0;
  align-items: center;
}

.contact-info-item .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-info-item .label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.contact-info-item .value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .contact-info-item .value {
    font-size: 0.8rem !important;
  }
  .contact-info-item .label {
    font-size: 0.65rem !important;
  }
}

.contact-form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 3rem;
  }
}

.security-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #eff6ff;
  border-left: 4px solid var(--navy);
  border-radius: 0 0.5rem 0.5rem 0;
}

.security-box h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-box p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ========================================
   PROJECT PAGE
   ======================================== */
.project-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .project-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-info .cat {
  background: #eff6ff;
  color: var(--navy);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.project-info h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .project-info h1 {
    font-size: 3rem;
  }
}

.project-info .lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .project-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.project-meta .label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.project-meta .label-solution {
  color: var(--orange);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--orange);
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].will-animate {
  opacity: 0;
  transform: translateY(20px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"].will-animate {
  transform: none;
}

[data-animate="slide-left"].will-animate {
  transform: translateX(-20px);
}

[data-animate="slide-left"].is-visible {
  transform: translateX(0);
}

[data-animate="slide-right"].will-animate {
  transform: translateX(20px);
}

[data-animate="slide-right"].is-visible {
  transform: translateX(0);
}

/* Stagger children */
[data-stagger] > [data-animate] {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: var(--gray-50);
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-section h2 {
    font-size: 2.25rem;
  }
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ========================================
   SPACING HELPERS
   ======================================== */
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.pt-24 { padding-top: 6rem; }

main {
  overflow-x: hidden;
}
.pb-24 { padding-bottom: 6rem; }

.bg-gray { background: var(--gray-50); }
.bg-white { background: var(--white); }

/* Utility for hidden elements */
.hidden { display: none !important; }

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
  .section-title h2 {
    font-size: 1.5rem;
  }

  .authority-quote {
    font-size: 1.5rem;
  }

  .service-block h3 {
    font-size: 1.5rem;
  }

  .project-info h1 {
    font-size: 1.875rem;
  }
}
