:root {
  --blue-950: #071a35;
  --blue-900: #0b2d5b;
  --blue-700: #165aa8;
  --blue-100: #edf3fb;
  --ink: #162033;
  --muted: #667085;
  --line: #dce3ed;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --wine: #6d0000;
  --gold: #b89452;
  --leaf: #315f52;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Aptos", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(11, 45, 91, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: block;
  width: 320px;
  height: 104px;
  overflow: hidden;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a,
.site-footer a,
.back-link {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover,
.back-link:hover {
  color: var(--blue-700);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 94px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.lang-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--blue-900);
  color: white;
}

.hero,
.detail-hero {
  display: grid;
  align-items: center;
  padding: clamp(76px, 11vw, 150px) clamp(18px, 6vw, 92px);
  color: white;
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 148, 82, 0.18), transparent 30%),
    linear-gradient(135deg, #071a35 0%, #0b2d5b 62%, #123766 100%);
}

.simple-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.72fr);
  gap: clamp(28px, 6vw, 88px);
  min-height: calc(100vh - 105px);
}

.simple-hero .hero-copy {
  grid-column: 1;
}

.simple-hero .hero-image {
  grid-column: 2;
}

.hero-copy {
  max-width: 900px;
}

.hero-image {
  height: min(72vh, 780px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.eyebrow,
.category {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero h1,
.detail-hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.96;
  max-width: 980px;
}

.hero p:not(.eyebrow),
.detail-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: white;
  color: var(--blue-950);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
}

.profile,
.portfolio,
.contact,
.detail-layout,
.info-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.profile,
.contact,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.profile,
.detail-layout {
  background: white;
  border-bottom: 1px solid var(--line);
}

.split-detail {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  align-items: center;
}

h2 {
  margin: 10px 0 0;
  color: var(--blue-950);
  font-size: clamp(2.1rem, 4.3vw, 4.6rem);
  line-height: 1.04;
}

.profile-text p,
.contact p,
.detail-copy p,
.section-heading p:not(.eyebrow),
.info-grid p {
  margin: 0;
  color: #4f5b6b;
  font-size: 1.06rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metrics div {
  min-height: 112px;
  padding: 18px;
  background: var(--blue-100);
  border-left: 4px solid var(--blue-700);
}

.metrics strong {
  display: block;
  color: var(--blue-900);
  font-size: 2.2rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading.compact {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 26px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--blue-900);
  background: var(--blue-900);
  color: white;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.business-card {
  min-height: 440px;
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 220ms ease;
}

.business-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 90, 168, 0.36);
  box-shadow: 0 24px 70px rgba(11, 45, 91, 0.12);
}

.business-card.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.business-media,
.business-logo,
.micro-visual {
  overflow: hidden;
  background: white;
}

.business-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-media img {
  object-position: 68% 14%;
}

.atico-media img {
  object-position: center;
}

.jca-media img {
  object-position: center;
}

.redwine-media img,
.micro-media img {
  object-position: center;
}

.micro-media img {
  object-fit: contain;
  background: #c6dde9;
}

.business-logo {
  display: grid;
  place-items: center;
  padding: 28px;
}

.business-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.business-logo.medissa-logo {
  background: white;
}

.business-logo.medissa-logo img {
  max-width: 88%;
  max-height: 82%;
}

.redwine-logo {
  background: #120707;
}

.business-logo.redwine-logo img {
  max-width: 74%;
  max-height: 74%;
}

.micro-visual {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(49, 95, 82, 0.95), rgba(11, 45, 91, 0.96)),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.28), transparent 34%);
  color: white;
}

.micro-visual.large {
  min-height: 420px;
}

.micro-visual::before {
  content: "";
  position: absolute;
  inset: 20px 20px auto auto;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.micro-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 900;
}

.micro-lines {
  display: grid;
  gap: 8px;
  width: min(74%, 260px);
}

.micro-lines i {
  height: 9px;
  background: rgba(255, 255, 255, 0.24);
}

.micro-lines i:nth-child(2) {
  width: 74%;
}

.micro-lines i:nth-child(3) {
  width: 52%;
}

.micro-visual strong {
  position: relative;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.micro-visual small {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  font-weight: 800;
}

.business-content {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
}

.business-content h3,
.info-grid h3 {
  margin: 8px 0 12px;
  color: var(--blue-950);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.business-content p:not(.category) {
  margin: 0 0 24px;
  color: #4f5b6b;
}

.text-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--blue-700);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.text-link:hover {
  color: var(--wine);
}

.contact {
  background: var(--blue-950);
  color: white;
}

.contact h2 {
  color: white;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-decoration: none;
  font-weight: 750;
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero {
  min-height: 520px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.detail-media {
  min-height: 430px;
  height: min(48vw, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-copy {
  align-self: center;
}

.text-only-detail {
  grid-template-columns: minmax(0, 900px);
}

.info-section {
  background: var(--paper);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-grid article {
  min-height: 230px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  background: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: white;
}

@media (max-width: 1100px) {
  .business-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile,
  .contact,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    width: 210px;
    height: 68px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .simple-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .simple-hero .hero-copy,
  .simple-hero .hero-image {
    grid-column: auto;
  }

  .hero-image {
    min-height: 360px;
    height: 52vh;
  }

  .business-grid,
  .info-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .detail-hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .site-footer {
    flex-direction: column;
  }
}
