:root {
  --bg: #faf5ef;
  --accent: #c96b2c;
  --text: #2b2b2b;
  --card-bg: #ffffff;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0d6c8;
  z-index: 10;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
}

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

.section {
  padding: 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.hero p {
  margin-bottom: 1.25rem;
}

.hero-logo {
  display: block;
  width: min(90vw, 460px);
  height: auto;
  margin: 0.5rem auto 0.25rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card h3 {
  margin-top: 0;
}

.package-price {
  margin: -0.35rem 0 0.75rem;
  color: #8e512f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 600;
}

.package-fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.package-fieldset legend {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.package-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid #d3c7b7;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.package-option input {
  appearance: none;
  display: grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: 0;
  padding: 0;
  place-content: center;
  border: 1px solid #a99a88;
  border-radius: 0.2rem;
  background: #fff;
  cursor: pointer;
}

.package-option input::before {
  width: 0.55rem;
  height: 0.55rem;
  transform: scale(0);
  background: var(--accent);
  content: "";
  transition: transform 120ms ease-in-out;
}

.package-option input:checked {
  border-color: var(--accent);
}

.package-option input:checked::before {
  transform: scale(1);
}

.package-option input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.package-option span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.package-option strong {
  color: #6b5b4a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}

input,
select,
textarea {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d3c7b7;
  font: inherit;
}

textarea {
  min-height: 80px;
}

.addons-fieldset {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-honeypot {
  display: none;
}

.addons-fieldset legend {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.addon-option {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid #d3c7b7;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.addon-option input {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.addon-option span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  width: 100%;
}

.addon-option strong {
  color: #6b5b4a;
  white-space: nowrap;
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #6b5b4a;
}

/* Larger screens */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    padding: 1rem 2rem;
  }

  .section {
    padding: 2rem 2rem;
  }
}

.gallery-section {
  width: min(100% - 2rem, 1180px);
  max-width: none;
  margin: 2rem auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #efe5d6;
  border-radius: 1.25rem;
}

.gallery-heading {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: #8e512f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: #382c22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.section-subtitle {
  margin: 0.85rem auto 0;
  color: #6b5b4a;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 25vw, 245px);
  gap: 0.75rem;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #d6c6b2;
  isolation: isolate;
}

.gallery-card-featured {
  grid-row: span 2;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.gallery-card::after {
  position: absolute;
  z-index: 0;
  inset: 25% 0 0;
  background: linear-gradient(transparent, rgba(28, 22, 17, 0.72));
  content: "";
}

.gallery-card figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  display: grid;
  gap: 0.2rem;
  color: #fff;
}

.gallery-card figcaption span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.gallery-card figcaption small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.75rem;
}

.gallery-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(91, 68, 48, 0.2);
  color: #594636;
  font-size: 0.9rem;
}

.gallery-note a {
  color: #8e512f;
  font-weight: 700;
  text-decoration: none;
}

.gallery-note a:hover {
  color: #63371f;
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(175px, 22vw, 250px));
  }
}

@media (max-width: 480px) {
  .gallery-section {
    width: calc(100% - 1rem);
    padding: 2rem 1rem;
  }

  .gallery-grid {
    gap: 0.5rem;
    grid-auto-rows: 155px;
  }

  .gallery-card figcaption {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
  }

  .gallery-card figcaption small {
    font-size: 0.67rem;
  }

  .gallery-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card img {
    transition: none;
  }
}
