/* ---------- Custom properties ---------- */
:root {
  --blush: #F1B8B3;
  --amber: #DB901B;
  --indigo: #1B198F;
  --taupe: #CDC1C0;

  --cream: #FBF7F5;
  --ink: #24213c;

  --font-heading: "Arapey", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya Sans", Arial, sans-serif;

  --header-height: 76px;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

p {
  margin: 0 0 1.2em;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section {
  scroll-margin-top: var(--header-height);
  padding: 6rem 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.9em 2em;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blush);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--indigo);
}

.main-nav {
  display: flex;
  gap: 2.2rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 25, 143, 0.78);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--indigo);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 60vh;
  min-height: 300px;
  background-image: url("https://placehold.co/1600x900");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Gallery / Carousel ---------- */
.gallery-section {
  background: var(--cream);
}

.gallery-section h2,
.commissions-section h2,
.contact-section h2 {
  font-size: 2rem;
  text-align: center;
  color: var(--indigo);
  margin-bottom: 3rem;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-slot {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(36, 33, 60, 0.15);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.carousel-slot--center {
  width: 380px;
  height: 380px;
  z-index: 2;
}

.carousel-slot--side {
  width: 200px;
  height: 200px;
  opacity: 0.65;
  transform: scale(0.94);
  z-index: 1;
}

.carousel-slot--side:hover {
  opacity: 0.9;
}

.carousel-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-slot:hover img {
  transform: scale(1.05);
}

.carousel-track.is-animating .carousel-slot--center {
  animation: centerPop 0.4s ease;
}

.carousel-track.is-animating .carousel-slot--side {
  animation: sidePop 0.4s ease;
}

@keyframes centerPop {
  0% { transform: scale(0.82); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes sidePop {
  0% { opacity: 0; }
  100% { opacity: 0.65; }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--indigo);
  border: none;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  display: block;
  transition: color 0.2s ease;
  z-index: 3;
}

.carousel-arrow:hover {
  color: var(--amber);
}

.carousel-arrow--prev {
  left: 0;
}

.carousel-arrow--next {
  right: 0;
}

/* Overlay reused for carousel slots (hover caption) */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(36, 33, 60, 0.88) 0%, rgba(36, 33, 60, 0.2) 55%, rgba(36, 33, 60, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: left;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
}

.gallery-caption {
  display: block;
  font-size: 0.76rem;
  color: var(--blush);
  letter-spacing: 0.03em;
  margin-top: 0.3rem;
}

/* ---------- About ---------- */
.about-section {
  background: var(--indigo);
  color: var(--cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  border: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(36, 33, 60, 0.2);
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--blush);
}

.about-text p {
  color: rgba(251, 247, 245, 0.9);
}

/* ---------- Commissions ---------- */
.commissions-section {
  background: var(--taupe);
}

.commissions-inner {
  max-width: 760px;
  text-align: center;
}

.commissions-inner h2 {
  color: var(--indigo);
}

.commissions-inner > p {
  max-width: 65ch;
  margin: 0 auto 2.5rem;
  color: var(--ink);
}

.commissions-cta {
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--cream);
  color: var(--ink);
}

.contact-intro {
  text-align: center;
  max-width: 55ch;
  margin: 0 auto 3rem;
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--cream);
  padding: 2.2rem;
}

.contact-side {
  background: var(--cream);
  padding: 2.2rem;
}

.contact-form label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-top: 1rem;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--taupe);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.contact-form .btn {
  margin-top: 1.4rem;
  align-self: flex-start;
}

.form-confirmation {
  min-height: 1.2em;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--amber);
  font-weight: 400;
}

.contact-side h3 {
  font-size: 1.1rem;
  color: var(--indigo);
}

.contact-links li {
  margin-bottom: 0.9rem;
}

.contact-links a {
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-links a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blush);
  color: var(--ink);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--indigo);
  color: var(--indigo);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(36, 33, 60, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  margin: 0;
  max-width: min(90vw, 700px);
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border: 6px solid #fff;
}

.lightbox-content figcaption {
  margin-top: 1rem;
  color: #fff;
  font-family: var(--font-body);
}

.lightbox-content #lightbox-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.lightbox-content #lightbox-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--blush);
  margin-top: 0.3rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--amber);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }

  .commissions-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slot--center {
    width: 300px;
    height: 300px;
  }

  .carousel-slot--side {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 700px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--indigo);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 300px;
  }

  .main-nav a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-toggle {
    display: flex;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .section {
    padding: 4rem 0;
  }

  .carousel {
    padding: 0 3.2rem;
  }

  .carousel-track {
    gap: 0.6rem;
  }

  .carousel-slot--side {
    width: 70px;
    height: 200px;
    opacity: 0.4;
  }

  .carousel-slot--center {
    width: 220px;
    height: 280px;
  }

  .carousel-arrow {
    font-size: 1.4rem;
  }
}
