/* Basic reset and typography */
* {
  box-sizing: border-box;
}

:root {
  --magenta: #d81b60;
  --turquoise: #00a6a6;
  --marigold: #f2a007;
  --cobalt: #1b3a6b;
  --terracotta: #d64550;
  --bg: #fff8f0;
  --bg-alt: #fdecd8;
  --ink: #2b1b12;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  text-align: center;
}

section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Decorative stripe, papel picado style */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--magenta) 0 40px,
    var(--marigold) 40px 80px,
    var(--turquoise) 80px 120px,
    var(--cobalt) 120px 160px
  );
}

/* Nav bar */
nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  background: var(--bg-alt);
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: bold;
}

nav a:hover {
  color: var(--magenta);
}

/* Home / hero */
header {
  text-align: center;
  padding: 120px 20px 100px;
  background: linear-gradient(135deg, var(--magenta), var(--terracotta) 45%, var(--marigold));
  color: #fff8f0;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.2rem;
  color: #fff2e2;
}

/* Alternating section backgrounds */
#gallery {
  background: var(--bg-alt);
  max-width: 100%;
}

#about {
  max-width: 100%;
}

#contact {
  background: var(--bg-alt);
  max-width: 100%;
}

#gallery > *, #about > *, #contact > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section headings */
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--magenta);
  display: inline-block;
}

#about h2 {
  border-bottom-color: var(--turquoise);
}

#contact h2 {
  border-bottom-color: var(--marigold);
}

/* Gallery carousel */
.carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(43, 27, 18, 0.2);
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  height: 240px;
  object-fit: cover;
  background: #eee;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--magenta);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.carousel-btn:hover {
  background: var(--terracotta);
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

.carousel-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(43, 27, 18, 0.2);
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: var(--marigold);
}

/* About */
#about p {
  max-width: 640px;
}

/* Contact */
#contact a {
  color: var(--magenta);
  text-decoration: underline;
  font-weight: bold;
}

/* Footer */
footer {
  padding: 30px 20px;
  background: var(--ink);
  color: #e8d9c8;
  font-size: 0.85rem;
}
