/* J&co. — minimal professional theme */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #121214;
  --text: #e8e6eb;
 
  --text-muted: #8c8896;
  --accent: #322f3e;
  --border: #2a2834;
  --highlight: #6b6579;
  --font: "DM Sans", system-ui, sans-serif;
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

main,
.site-header,
.site-footer {
  max-width: 100vw;
}

.app,
main,
section,
div,
article,
header,
footer,
nav {
  min-width: 0;
}

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  width: 100px;
    height: 30px;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* Slight lift so dark logo reads on dark background */
  filter: brightness(1.15) contrast(1.05);
}

.logo .logo-text {
  display: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

/* Main */
main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

/* Hero */
.hero {
  margin-bottom: 5rem;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
  opacity: 0.9;
}

.hero-logo .logo-text {
  display: none;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.hero-tag {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hero-desc {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* Sections */
.section {
  margin-bottom: 6rem;
}

.section-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* Work list */

.work{
  margin-bottom: 0;
}
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.work-name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.work-detail {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 520px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .section-work{
    margin-bottom: -50px;
  }
  .portfolio-title{
    margin-top: 35px;
  }
  .portfolio-nav.prev{
    top: 340px;
  }
  .portfolio-nav.next{
    top: 340px;
  }
  .section-label{
    top: 340px;
    color: #ffffff;
    font-size: 1.5rem;
    text-align: center;

  }
  .hero-title{
    font-size: 2.4rem;
    line-height: 1.1;
  }
}


@media (max-width: 420px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.25;
    }
}

/* Portfolio carousel */
/* Portfolio carousel */
#portfolio.section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 0;
  overflow: hidden;
}

.portfolio-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0.5rem 3rem;
  perspective: 1200px;
  overflow: visible;
}

.portfolio-track {
  position: relative;
  width: 100%;
  max-width: 52rem;
  min-height: 21rem;
  overflow: visible;
}

.portfolio-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(36rem, 74vw);
  transform-origin: center center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f1015;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 520ms ease,
              filter 520ms ease;
  will-change: transform, opacity, filter;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-meta {
  padding: 0.9rem 1rem 1rem;
}

.portfolio-meta h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.portfolio-meta p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.portfolio-card.role-active {
  opacity: 1;
  z-index: 5;
  transform: translateX(-50%) translateZ(0) scale(1) rotateY(0deg);
  filter: blur(0);
}

.portfolio-card.role-prev {
  opacity: 0.45;
  z-index: 3;
  transform: translateX(-108%) translateZ(-90px) scale(0.82) rotateY(14deg);
  filter: blur(2px);
}

.portfolio-card.role-next {
  opacity: 0.45;
  z-index: 3;
  transform: translateX(8%) translateZ(-90px) scale(0.82) rotateY(-14deg);
  filter: blur(2px);
}

.portfolio-card.role-hidden-left {
  opacity: 0;
  z-index: 1;
  transform: translateX(-140%) translateZ(-160px) scale(0.68) rotateY(20deg);
  filter: blur(4px);
}

.portfolio-card.role-hidden-right {
  opacity: 0;
  z-index: 1;
  transform: translateX(40%) translateZ(-160px) scale(0.68) rotateY(-20deg);
  filter: blur(4px);
}

.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 20, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 8;
}

.portfolio-nav:hover {
  border-color: var(--highlight);
  background: rgba(36, 35, 45, 0.92);
}

.portfolio-nav.prev { left: 0.35rem; }
.portfolio-nav.next { right: 0.35rem; }

.portfolio-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.95rem;
  position: relative;
  z-index: 9;
}

.portfolio-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  background: #6a6680;
  opacity: 0.7;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  padding-bottom: 20px;
  margin-bottom: 20px;
  margin-top: 100px;
}

.portfolio-dot.active {
  background: #f1ecff;
  opacity: 1;
  transform: scale(1.2);
}
.portfolio-title{
    margin-top: 120px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

@media (max-width: 680px) {
  #portfolio.section {
    left: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .section-label{
    top: 340px;
    color: #ffffff;
  }
  .portfolio-title{
    margin-top: 35px;
  }

  .portfolio-shell {
    min-height: 20.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 0.35rem;
  }

  .portfolio-track {
    max-width: 100%;
    min-height: 18.5rem;
    overflow: hidden;
  }

  .portfolio-card {
    width: calc(100% - 0.8rem);
    max-width: 430px;
  }

  .portfolio-card.role-prev {
    opacity: 0.33;
    transform: translateX(-92%) translateZ(-60px) scale(0.82) rotateY(12deg);
  }

  .portfolio-card.role-next {
    opacity: 0.33;
    transform: translateX(-8%) translateZ(-60px) scale(0.82) rotateY(-12deg);
  }

  .portfolio-nav {
    width: 2rem;
    height: 2rem;
    top: auto;
    bottom: -0.4rem;
    transform: none;
  }
  .portfolio-dots{
    margin-top: -40px;
  }
  .hero-title{
    font-size: 2.2rem;
    line-height: 1.1;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-card {
    transition: none;
  }
}


/* Demos */
.demo-grid {
  display: grid;
  gap: 1.5rem;
}
.demo-grid-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 20px;
}
.demo-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.demo-card-inner {
  padding: 1.5rem;
}

.demo-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.demo-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.btn-demo {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-demo:hover {
  background: var(--accent);
  border-color: var(--highlight);
}

/* Careers */
.careers-hero {
  margin-bottom: 4rem;
}

.careers-list {
  display: grid;
  gap: 1rem;
}

.career-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.career-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.career-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.career-card .career-type {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.application-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.application-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.application-link {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.application-modal[hidden] {
  display: none;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.application-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.application-dialog {
  position: relative;
  width: min(38rem, 100%);
  max-height: min(90vh, 48rem);
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.application-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.application-dialog-header .hero-tag {
  margin-bottom: 0.4rem;
}

.application-dialog-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.application-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0d0d12;
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.application-form {
  display: grid;
}

.application-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.application-form .btn[disabled] {
  cursor: wait;
  opacity: 0.65;
}

/* Services grid */
.services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Clients */
.clients-wrap {
  display: grid;
  gap: 1rem;
}

.client-group {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.client-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.client-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.client-item {
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.client-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

/* Reviews */
.reviews-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.review-form,
.reviews-list {
  margin: 0;
}

.review-form {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.field-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field-row label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #0d0d12;
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.field-row textarea {
  resize: vertical;
}

.field-help {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.rating-stars {
  display: flex;
  gap: 0.35rem;
}

.star-btn {
  border: 0;
  background: transparent;
  color: #555061;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.star-btn.active {
  color: #ffd45e;
}

.review-message {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.reviews-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.reviews-summary strong {
  font-size: 1.5rem;
}

.reviews-summary span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reviews-admin-toggle {
  margin-left: auto;
  border: 1px solid var(--border);
  background: #0d0d12;
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.reviews-admin-toggle.active {
  color: #9cf6b8;
  border-color: #2f7a4a;
}

.reviews-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-height: 430px;
  overflow: auto;
}

.review-item,
.review-empty {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.review-stars {
  color: #ffd45e;
  font-size: 0.95rem;
}

.review-item p,
.review-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.review-delete-btn {
  margin-left: auto;
  border: 1px solid #5e2b35;
  background: #2b1419;
  color: #ffb7c4;
  border-radius: 7px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  .reviews-wrap {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-section {
  padding-top: 1rem;
}

.contact-intro {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-link:hover {
  color: var(--highlight);
}

.contact-address {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
  margin-top: 0.18rem;
}

.icon-mail {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6zm2 .5v.511l8 5.334 8-5.334V6.5H4zm16 2.311-7.445 4.963a1 1 0 0 1-1.11 0L4 8.811V18h16V8.811z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6zm2 .5v.511l8 5.334 8-5.334V6.5H4zm16 2.311-7.445 4.963a1 1 0 0 1-1.11 0L4 8.811V18h16V8.811z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.icon-phone {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.054 15.054 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V21a1 1 0 0 1-1 1C10.3 22 2 13.7 2 3a1 1 0 0 1 1-1h4.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.054 15.054 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 0 1 1 1V21a1 1 0 0 1-1 1C10.3 22 2 13.7 2 3a1 1 0 0 1 1-1h4.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.icon-pin {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 1 7 7c0 4.97-7 13-7 13S5 13.97 5 9a7 7 0 0 1 7-7zm0 9.5A2.5 2.5 0 1 0 12 6a2.5 2.5 0 0 0 0 5.5z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 1 7 7c0 4.97-7 13-7 13S5 13.97 5 9a7 7 0 0 1 7-7zm0 9.5A2.5 2.5 0 1 0 12 6a2.5 2.5 0 0 0 0 5.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
  opacity: 0.85;
}

.footer-logo .logo-text {
  display: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Global mobile refinements */
@media (max-width: 900px) {
  .site-header {
    padding: 1rem;
    gap: 0.9rem;
  }

  .logo img {
    height: 58px;
  }

  .nav {
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  main {
    padding: 3rem 1rem 4rem;
  }

  .hero {
    margin-bottom: 3.25rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .section {
    margin-bottom: 3rem;
  }

  .contact-link {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.8rem;
  }
   .hero-title {
    font-size: 3.5rem;
    line-height: 1.25;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    height: 54px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav a {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.32rem 0.15rem;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  main {
    padding: 2.1rem 0.78rem 3rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .career-card {
    grid-template-columns: 1fr;
  }

  .application-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .application-dialog {
    padding: 1rem;
  }

  .clients-wrap {
    gap: 0.75rem;
  }

  .client-group {
    padding: 1rem;
  }

  .review-form {
    padding: 1rem;
  }

  .reviews-list {
    max-height: none;
  }

  .site-footer {
    padding: 1.6rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 4rem;
    line-height: 1.25;
  }

  .hero-desc,
  .section-intro,
  .contact-intro {
    font-size: 0.9rem;
  }

  .portfolio-nav {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
  }

  .reviews-admin-toggle {
    margin-left: 0;
  }
}
