/* ── CSS Custom Properties (change colors here) ───────────── */
:root {
  --color-black: #0A0A0A;
  --color-gold: #D4AF37;
  --color-gold-lt: #E8C547;
  --color-white: #F5F0E8;
  --color-gray: #B0A895;
  --color-gray-dk: #1A1A1A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-height: 64px;
  --transition: .3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

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

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

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, .15);
  transition: background var(--transition);
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--color-gold);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--color-gold-lt);
  box-shadow: 0 0 20px rgba(212, 175, 55, .4);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-gold);
  color: var(--color-black);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray);
  border: 1px solid rgba(212, 175, 55, .3);
  padding: .6rem 1.5rem;
  font-size: .85rem;
}

.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .3) 0%, rgba(10, 10, 10, .9) 100%),
    url(img/Kofibanner.png) center/cover no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__rule {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-gold));
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.hero__tagline {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--color-gray);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Section Common ──────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section--about {
  background: var(--color-gray-dk);
  text-align: center;
}

.section--gallery {
  background: var(--color-black);
  text-align: center;
}

.section--commission{
  background: var(--color-black);
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: .8rem auto 0;
}

/* ── About ───────────────────────────────────────────── */
.about__inner {
  max-width: 1500px;
  margin: 0 auto;
}

.about__grid {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  text-align: left;
}

.about__text {
  flex: 1 1 340px;
  font-weight: 300;
  color: var(--color-gray);
  line-height: 1.8;
}

.about__text p+p {
  margin-top: 1rem;
}

.about__image {
  flex: 0 0 clamp(400px, 25vw, 300px);
  height: clamp(400px, 25vw, 300px);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2718 100%);
  border: 2px solid rgba(212, 175, 55, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-gray);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ── Tabs ────────────────────────────────────────────── */
.tabs {
  display: inline-flex;
  gap: 0;
  margin: 2.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: .7rem 1.8rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gray);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.tab:hover {
  color: var(--color-white);
}

.tab:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.tab.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* ── Gallery Grid ───────────────────────────────────── */
.gallery {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

#gallery-tos,
#gallery-howto {
  max-width: 900px;
  grid-template-columns: 1fr;
}

#gallery-prices {
  max-width: 900px;
  grid-template-columns: 1fr;
  padding: 2rem;
}

#gallery-prices img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  margin: 0 auto;
}

.tos-content {
  text-align: center;
}

.gallery.active {
  display: grid;
}

.card {
  background: var(--color-gray-dk);
  border: 1px solid rgba(212, 175, 55, .1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  aspect-ratio: 1/1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  border-color: rgba(212, 175, 55, .3);
}

.card figcaption {
  display: none;
}

/* ── Card Images ─────────────────────────────────────── */
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2718 50%, #1a1a1a 100%);
  background-size: 600% 600%;
  animation: shimmer 3s ease-in-out infinite;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2718 50%, #1a1a1a 100%);
  overflow: hidden;
}

.carousel__track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel__slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity var(--transition);
  display: none;
}

.carousel__slide.active {
  opacity: 1;
  z-index: 1;
  display: flex;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, .3);
  background: rgba(10, 10, 10, .6);
  color: var(--color-gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  display: none;
}

.carousel__btn.active {
  display: block;
}

.carousel__btn:hover {
  background: rgba(212, 175, 55, .2);
  border-color: var(--color-gold);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.carousel__prev {
  left: 10px;
}

.carousel__next {
  right: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Contact ─────────────────────────────────────────── */
.section--contact {
  background: var(--color-gray-dk);
}

.contact__grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.contact__info p {
  font-weight: 300;
  color: var(--color-gray);
  line-height: 1.8;
  max-width: 460px;
}

.contact__email {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--color-gold);
  font-weight: 500;
  align-items: center;
  gap: .5rem;
}

.contact__email:hover {
  text-underline-offset: 3px;
}

.contact__socials {
  flex: 1;
}

.contact__label {
  display: block;
  font-size: .85rem;
  color: var(--color-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-top: .3rem;
}

.contact__icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  border: 1px solid rgba(212, 175, 55, .15);
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
}

.contact__icon:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, .08);
}

.contact__icon::after {
  content: attr(data-url);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-black);
  color: var(--color-white);
  font-size: .75rem;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  border: 1px solid rgba(212, 175, 55, .2);
  z-index: 10;
}

.contact__icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ACGgoods icon — big A */
.acggoods-icon span {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

/* Ko-Fi coffee cup icon */
.contact__icon.coffee-icon svg {
  width: 24px;
  height: 24px;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(212, 175, 55, .1);
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: .85rem;
  color: var(--color-gray);
  letter-spacing: .5px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    padding-top: .5rem;
    padding-bottom: .5rem;
    gap: .25rem 0;
  }

  .nav__brand {
    font-size: 1.1rem;
  }

  .nav__links {
    gap: .75rem;
  }

  .nav__links a {
    font-size: .75rem;
    letter-spacing: .5px;
  }

  .about__grid {
    text-align: center;
    flex-direction: column-reverse;
    align-items: center;
  }

  .contact__grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact__icons {
    justify-content: center;
  }

  .about__image {
    margin: 0 auto;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Animations on scroll helpers ────────────────────── */
.gallery.active .card:nth-child(1) {
  animation: fadeUp .5s ease both;
}

.gallery.active .card:nth-child(2) {
  animation: fadeUp .5s ease .08s both;
}

.gallery.active .card:nth-child(3) {
  animation: fadeUp .5s ease .16s both;
}

.gallery.active .card:nth-child(4) {
  animation: fadeUp .5s ease .24s both;
}

.gallery.active .card:nth-child(5) {
  animation: fadeUp .5s ease .32s both;
}

.gallery.active .card:nth-child(6) {
  animation: fadeUp .5s ease .40s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}