/* Calimero's Hair Studio — Styles (ckm:design-system tokens) */
@import url("../design-tokens.css");

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-sm);
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-name {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--navy-soft);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  position: relative;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-desktop a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

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

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--cream);
  padding: var(--space-lg);
  transform: translateX(100%);
  transition: transform 300ms ease-out;
  z-index: 999;
  overflow-y: auto;
}

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

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.nav-mobile .btn {
  margin-top: var(--space-md);
  width: 100%;
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 24, 41, 0.82) 0%,
    rgba(26, 39, 68, 0.55) 50%,
    rgba(15, 24, 41, 0.75) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 169, 98, 0.2);
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-light);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  max-width: 14ch;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.35s forwards;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-light);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.65s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Services ── */
.services {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.services--first {
  padding-top: calc(var(--header-h) + var(--space-xl));
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.service-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}

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

.service-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.service-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  min-height: 44px;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ── Values ── */
.values {
  padding: var(--space-2xl) 0;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.values::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.value-item {
  padding: var(--space-lg);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), background var(--transition);
}

.value-item:hover {
  border-color: rgba(201, 169, 98, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--gold-light);
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

.values .section-label { color: var(--gold); }
.values .section-title { color: var(--white); }

/* ── About ── */
.about {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

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

.about-image {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  width: 45%;
  padding: var(--space-md);
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-accent p {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gold-light);
}

.about-content .motto {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: italic;
  font-weight: 500;
  color: var(--navy-soft);
  padding: var(--space-md);
  border-left: 3px solid var(--gold);
  margin: var(--space-lg) 0;
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.about-content p strong {
  color: var(--navy);
  font-weight: 600;
}

/* ── Products ── */
.products {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

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

.product-card {
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.product-card .product-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201, 169, 98, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

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

.products-highlight {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-md);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.products-highlight p {
  font-size: 1rem;
  max-width: 60ch;
  color: var(--text-light);
}

.products-highlight strong {
  color: var(--gold-light);
}

/* ── Contact ── */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--cream-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}

.contact-block p,
.contact-block a {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.6;
}

.contact-block a:hover {
  color: var(--gold-dark);
}

.contact-block a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(26, 39, 68, 0.1);
}

.hours-table td {
  padding: 0.65rem 0;
  font-size: 0.9375rem;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--navy);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours-table tr.closed td:last-child {
  color: #b04040;
  font-style: italic;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  background: var(--cream);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-cta-bar {
  margin-top: var(--space-xl);
  text-align: center;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-cta-bar p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

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

.footer-brand .logo-name {
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}

.social-links a:hover {
  background: rgba(201, 169, 98, 0.15);
  border-color: var(--gold);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-light);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Legal pages ── */
.legal-page {
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-2xl);
  min-height: 60vh;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-page p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  max-width: 70ch;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: var(--space-lg);
  min-height: 44px;
}

.legal-back:hover {
  color: var(--navy);
}

/* ── Gallery (ckm:design — visual composition) ── */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-md);
  }

  .gallery-item:nth-child(1) { grid-row: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }
  .gallery-item:nth-child(6) { grid-row: span 2; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

@media (min-width: 768px) {
  .gallery-item { aspect-ratio: auto; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 24, 41, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after,
.gallery-item:focus-within::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--white);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Visual accent strip (ckm:ui-styling canvas) ── */
.visual-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary-deep), var(--color-accent), var(--color-primary));
}
