/* Neo-Brutalist Portfolio — responsive, bold, high-contrast */

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

:root {
  --bg: #F7F3EB;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --border: #1A1A1A;
  --b: 3px;
  --accent: #FF6B35;
  --accent-hover: #E55A2B;
  --lime: #C8FF00;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --space-xs: clamp(0.5rem, 2vw, 0.75rem);
  --space-sm: clamp(1rem, 3vw, 1.25rem);
  --space-md: clamp(1.5rem, 4vw, 2rem);
  --space-lg: clamp(2rem, 5vw, 3rem);
  --space-xl: clamp(2.5rem, 6vw, 4rem);
  --text-sm: clamp(0.875rem, 2vw, 0.95rem);
  --text-base: clamp(1rem, 2.5vw, 1.1rem);
  --text-lg: clamp(1.25rem, 3vw, 1.5rem);
  --text-xl: clamp(1.5rem, 4vw, 2rem);
  --text-2xl: clamp(1.75rem, 5vw, 2.5rem);
  --touch: 44px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a:focus-visible,
button:focus-visible {
  outline: var(--b) solid var(--ink);
  outline-offset: 2px;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: var(--b) solid var(--border);
  padding: var(--space-sm) clamp(1rem, 4vw, var(--space-md));
}

.header::after {
  content: "";
  display: block;
  height: 6px;
  background: var(--ink);
  margin-top: -1px;
}

.top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.btn {
  min-height: var(--touch);
  padding: 0.6rem 1.25rem;
  border: var(--b) solid var(--border);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: var(--ink);
}

.btn-call {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
}

.btn-call:hover {
  background: var(--accent-hover);
}

.hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero .logo {
  width: clamp(4rem, 12vw, 5.5rem);
  height: clamp(4rem, 12vw, 5.5rem);
  margin: 0 auto var(--space-sm);
  background: var(--ink);
  color: var(--lime);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--b) solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tagline {
  font-size: var(--text-base);
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-info a {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: var(--b) solid var(--border);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .contact-info {
    flex-direction: column;
  }
  .contact-info a {
    width: 100%;
    text-align: center;
  }
}

.contact-info a:hover {
  background: var(--lime);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.badge {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  border: var(--b) solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Services intro */
.services-intro {
  padding: var(--space-xl) clamp(1rem, 4vw, var(--space-md));
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.intro-card {
  background: var(--surface);
  padding: var(--space-md);
  border: var(--b) solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.intro-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.intro-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.intro-card p {
  font-size: var(--text-sm);
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (min-width: 480px) {
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Services */
.services {
  padding: var(--space-xl) clamp(1rem, 4vw, var(--space-md));
  max-width: 1200px;
  margin: 0 auto;
}

.services > h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

@media (max-width: 380px) {
  .filter-btn {
    flex: 1 1 45%;
    min-width: 0;
  }
}

.filter-btn {
  min-height: var(--touch);
  padding: 0.5rem 1rem;
  border: var(--b) solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-btn:hover {
  background: var(--bg);
}

.filter-btn.active {
  background: var(--ink);
  color: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
}

.filter-btn.active:hover {
  background: var(--ink);
  color: var(--lime);
}

.filter-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card {
  background: var(--surface);
  padding: var(--space-md);
  border: var(--b) solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:not(.hidden):hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card.hidden {
  display: none;
}

.card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.card p {
  font-size: var(--text-sm);
  color: var(--ink);
  opacity: 0.85;
  flex-grow: 1;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card-btn {
  align-self: flex-start;
  min-height: var(--touch);
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: var(--b) solid var(--border);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.card-btn:hover {
  text-decoration: none;
  background: var(--accent-hover);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.card-btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

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

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* Clients */
.clients {
  padding: var(--space-xl) clamp(1rem, 4vw, var(--space-md));
  max-width: 1200px;
  margin: 0 auto;
}

.clients-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: var(--space-md);
}

.clients-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.clients-header p {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* Client grid: 1 col mobile → 2 → 3 → 4 side by side on large */
.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.client-item {
  background: var(--ink);
  border: var(--b) solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
}

/* All four client images: fixed 150px height, same size */
.client-item img {
  width: auto;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  display: block;
}

.client-item:hover img {
  filter: grayscale(0%);
}

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

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

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

@media (max-width: 359px) {
  .client-grid {
    gap: var(--space-sm);
  }
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-xl) clamp(1rem, 4vw, var(--space-md));
  border-top: var(--b) solid var(--border);
  margin-top: var(--space-lg);
}

.footer a {
  color: var(--lime);
}

.footer a:hover {
  color: var(--surface);
  text-decoration: underline;
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.footer h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.08em;
  color: var(--surface);
}

.footer-inner > p:not(.copyright) {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-contact a {
  font-weight: 600;
  font-size: var(--text-sm);
}

.footer-cta {
  margin-bottom: var(--space-md);
}

.footer-cta strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  color: var(--surface);
}

.footer-cta a {
  display: inline-block;
  margin: 0 0.5rem;
  font-weight: 600;
}

@media (max-width: 380px) {
  .footer-cta a {
    display: block;
    margin: 0.5rem 0;
  }
  .footer-contact {
    flex-direction: column;
  }
}

.copyright {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: 0;
}

/* Safe areas (notches, home indicator) */
@supports (padding: max(0px)) {
  .header,
  .services-intro,
  .services,
  .clients,
  .footer {
    padding-left: max(clamp(1rem, 4vw, var(--space-md)), env(safe-area-inset-left));
    padding-right: max(clamp(1rem, 4vw, var(--space-md)), env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
