/* ============================================
   ŠIMON KUČERA — simonkucera.com
   Minimalist gallery aesthetic
   ============================================ */

:root {
  --black: #0a0a0a;
  --white: #f8f8f6;
  --grey-light: #e8e8e4;
  --grey-mid: #b0b0aa;
  --grey-dark: #555550;
  --accent: #0a0a0a;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --transition: 0.3s ease;
  --max-width: 1400px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; }

.label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: normal;
  transition: background var(--transition), padding var(--transition);
  /* White by default — sits over dark hero */
  color: var(--white);
}

nav.scrolled {
  background: rgba(248, 248, 246, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 40px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--black);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  /* Invert to white when over dark hero */
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
nav.scrolled .nav-logo-img {
  filter: none;
}
.nav-logo-text {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

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

nav.scrolled .nav-links a {
  color: var(--grey-dark);
}
nav.scrolled .nav-links a:hover {
  color: var(--black);
}

.nav-links a.nav-shop {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 1px;
}

nav.scrolled .nav-links a.nav-shop {
  color: var(--black);
  border-bottom-color: var(--black);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

nav.scrolled .nav-hamburger span {
  background: var(--black);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: 300;
}

@media (max-width: 768px) {
  nav { padding: 20px; }
  nav.scrolled { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 40px 60px;
  position: relative;
  overflow: hidden;
}

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

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

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.45) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin-bottom: 28px;
  color: var(--white);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-dark);
  writing-mode: vertical-rl;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--grey-mid);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

@media (max-width: 768px) {
  #hero { padding: 0 20px 48px; }
  .hero-geo { width: 260px; height: 260px; right: -20px; top: 30%; opacity: 0.3; }
  .hero-scroll { display: none; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
  padding: 120px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.section-link {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.section-link:hover { opacity: 0.5; }

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
}

/* ============================================
   YEAR CARDS GRID
   ============================================ */
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 8px;
}

.year-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--grey-light);
  outline: none;
}

.year-card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.year-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.82);
}

.year-card:hover .year-card-img img,
.year-card:focus .year-card-img img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.year-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.year-card-year {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.year-card-count {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.year-card-collab-badge {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2px 7px;
  border-radius: 20px;
}

.year-card--collab .year-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(40,40,60,0.18) 0%, transparent 60%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .year-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .year-grid { grid-template-columns: repeat(2, 1fr); }
  .year-card { aspect-ratio: 1; }
}

/* ============================================
   YEAR MODAL
   ============================================ */
#year-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#year-modal.open {
  opacity: 1;
  pointer-events: all;
}

.year-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(4px);
}

.year-modal-inner {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow-y: auto;
  transform: translateY(32px);
  transition: transform 0.35s ease;
  padding: 0 0 60px;
}

#year-modal.open .year-modal-inner {
  transform: translateY(0);
}

.year-modal-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--grey-light);
}

.year-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--grey-dark);
  padding: 8px;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--black); }

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px 0;
}

.modal-work {
  cursor: pointer;
  background: var(--grey-light);
}

.modal-work-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.modal-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.modal-work:hover .modal-work-img img {
  transform: scale(1.04);
}

.modal-work-title {
  font-size: 0.85rem;
  font-weight: 400;
  padding: 12px 16px 2px;
}

.modal-work-info {
  font-size: 0.7rem;
  color: var(--grey-dark);
  padding: 0 16px 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .year-modal-inner { max-width: 100%; }
  .year-modal-header { padding: 20px; }
  .modal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .modal-grid { grid-template-columns: 1fr; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.93);
}

.lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px 40px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color var(--transition);
  z-index: 2;
}
.lb-close:hover { color: white; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 3rem;
  cursor: pointer;
  padding: 16px 20px;
  line-height: 1;
  transition: color var(--transition);
  z-index: 2;
}
.lb-nav:hover { color: white; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lb-caption {
  text-align: center;
  padding-top: 16px;
  color: rgba(255,255,255,0.75);
}

.lb-caption p:first-child {
  font-size: 0.9rem;
  font-weight: 400;
  color: white;
  margin-bottom: 4px;
}

.lb-caption p:last-of-type {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

#lb-counter {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

/* sold-out shop item */
.shop-item--sold-out .shop-item-image img {
  filter: grayscale(30%) opacity(0.75);
}

/* ============================================
   PORTFOLIO — year-based layout
   ============================================ */
#portfolio {
  background: var(--white);
  padding-bottom: 80px;
}

.portfolio-year-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding: 48px 0 16px;
  border-top: 1px solid var(--grey-light);
  margin-top: 8px;
}

.portfolio-row {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--grey-light);
  flex-shrink: 0;
}

.portfolio-item--half       { flex: 1 1 50%; aspect-ratio: 4/3; }
.portfolio-item--third      { flex: 1 1 33.333%; aspect-ratio: 4/3; }
.portfolio-item--two-thirds { flex: 2 2 66.666%; aspect-ratio: 4/3; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.72) 0%, transparent 100%);
  color: white;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item:hover .portfolio-item-info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item-info h3 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.portfolio-item-info span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .portfolio-row { flex-direction: column; }
  .portfolio-item--half,
  .portfolio-item--third,
  .portfolio-item--two-thirds { flex: unset; width: 100%; aspect-ratio: 4/3; }
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  background: var(--black);
  color: var(--white);
}

#about .section-title { color: var(--white); }
#about .label { color: var(--grey-mid); }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.about-photo-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
}

.about-text {
  max-width: 540px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: #c8c8c4;
  font-weight: 300;
  margin-bottom: 24px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-details {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-detail-block h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.about-edu-item {
  margin-bottom: 16px;
}

.about-edu-item .year {
  font-size: 0.75rem;
  color: var(--grey-mid);
  margin-bottom: 2px;
}

.about-edu-item .school {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 300;
}

.about-social {
  display: flex;
  gap: 24px;
}

.about-social a {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  border-bottom: 1px solid var(--grey-dark);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.about-social a:hover { color: var(--white); border-color: var(--white); }

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 240px 1fr; gap: 48px; }
  .about-details { grid-column: 2; }
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; }
  .about-photo-img { aspect-ratio: 3/2; object-position: center 20%; }
  .about-text { max-width: 100%; }
  .about-details { grid-column: 1; }
}

/* ============================================
   EXHIBITIONS
   ============================================ */
#exhibitions {
  background: var(--white);
}

.exhibitions-list {
  display: flex;
  flex-direction: column;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-light);
  transition: background var(--transition);
}

.exhibition-item:first-child { border-top: 1px solid var(--grey-light); }

.exhibition-year {
  font-size: 0.75rem;
  color: var(--grey-mid);
  font-weight: 400;
}

.exhibition-name {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.exhibition-name strong {
  font-weight: 500;
}

.exhibition-detail {
  font-size: 0.75rem;
  color: var(--grey-dark);
  text-align: right;
  white-space: nowrap;
}

.exhibition-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--grey-light);
  color: var(--grey-dark);
  margin-left: 8px;
}

.exhibition-tag.solo { border-color: var(--black); color: var(--black); }
.exhibition-tag.finalist { border-color: var(--grey-mid); color: var(--grey-dark); font-style: italic; }

@media (max-width: 768px) {
  .exhibition-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .exhibition-detail { display: none; }
}

/* ============================================
   SHOP
   ============================================ */
#shop {
  background: var(--grey-light);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.shop-item {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}

.shop-item:hover { transform: translateY(-2px); }

.shop-item-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--grey-light);
}

.shop-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-item:hover .shop-item-image img {
  transform: scale(1.04);
}

.shop-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.shop-item-info {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.shop-item-name {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.shop-item-medium {
  font-size: 0.7rem;
  color: var(--grey-dark);
}

.shop-item-price {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.shop-item-price.sold-out {
  color: var(--grey-mid);
  text-decoration: line-through;
}

/* Snipcart button */
.snipcart-add-item {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}

.snipcart-add-item:hover { background: #333; }
.snipcart-add-item:disabled {
  background: var(--grey-light);
  color: var(--grey-mid);
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--white);
}

.contact-left p {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 360px;
}

.contact-right {
  padding-top: 8px;
}

.contact-info-block {
  margin-bottom: 40px;
}

.contact-info-block h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 12px;
}

.contact-info-block a,
.contact-info-block p {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 300;
  line-height: 1.7;
}

.contact-info-block a:hover { color: var(--grey-mid); }

.contact-social {
  display: flex;
  gap: 20px;
  margin-top: 48px;
}

.contact-social a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  border-bottom: 1px solid var(--grey-dark);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.contact-social a:hover { color: var(--white); border-color: var(--white); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-row label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.contact-form-row input,
.contact-form-row select,
.contact-form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  appearance: none;
}

.contact-form-row input::placeholder,
.contact-form-row textarea::placeholder {
  color: #444;
}

.contact-form-row input:focus,
.contact-form-row select:focus,
.contact-form-row textarea:focus {
  border-bottom-color: var(--white);
}

.contact-form-row select option {
  background: var(--black);
  color: var(--white);
}

.contact-form-row textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form-submit {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--white);
  color: var(--black);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.contact-form-submit:hover {
  background: var(--grey-light);
}

.contact-form-success {
  font-size: 1rem;
  color: var(--white);
  font-weight: 300;
  line-height: 1.7;
  padding: 24px 0;
  border-top: 1px solid #333;
}

.contact-form-error {
  font-size: 0.85rem;
  color: #e07070;
  margin-bottom: 16px;
}

/* Enquire button in shop */
.btn-enquire {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--grey-light);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-enquire:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--black);
  border-top: 1px solid #1a1a1a;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--grey-dark);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

footer a {
  color: var(--grey-dark);
  transition: color var(--transition);
}
footer a:hover { color: var(--grey-mid); }

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--grey-light);
  margin: 48px 0;
}

.divider.dark { background: #333; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { background: #333; }
