:root {
  --wine-950: #33040a;
  --wine-900: #5d0710;
  --wine-800: #870b16;
  --wine-700: #a9111d;
  --gold-500: #d8a764;
  --cream-100: #fff9ed;
  --cream-200: #f7ead4;
  --ink-900: #1e1717;
  --ink-700: #4b3a3a;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(51, 4, 10, 0.18);
  --radius: 8px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--cream-100);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.high-contrast {
  --wine-950: #000000;
  --wine-900: #000000;
  --wine-800: #111111;
  --wine-700: #111111;
  --gold-500: #ffd43b;
  --cream-100: #ffffff;
  --cream-200: #f5f5f5;
  --ink-900: #000000;
  --ink-700: #1f1f1f;
  --white: #ffffff;
  --shadow: 0 0 0 2px #000000;
}

body.high-contrast .hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.78));
}

body.high-contrast .button.primary,
body.high-contrast .nav-menu .nav-cta,
body.high-contrast .feature-card i {
  color: #000000;
  background: #ffd43b;
}

body.high-contrast .contact,
body.high-contrast .site-footer {
  background: #000000;
}

body.high-contrast .contact-form,
body.high-contrast .feature-card,
body.high-contrast .proposal-card {
  border-color: #000000;
}

body.underline-links a:not(.button):not(.brand):not(.social-links a) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--wine-800);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.wide-gallery:focus-visible {
  outline: 3px solid rgba(216, 167, 100, 0.86);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.accessibility-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.accessibility-toggle,
.accessibility-panel button {
  color: var(--white);
  background: var(--wine-800);
  border: 1px solid rgba(255, 249, 237, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
}

.accessibility-toggle {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  box-shadow: var(--shadow);
}

.accessibility-toggle i {
  font-size: 1.3rem;
}

.accessibility-panel {
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  color: var(--ink-900);
  background: var(--cream-100);
  border: 1px solid rgba(135, 11, 22, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.accessibility-title {
  margin: 0 0 12px;
  color: var(--wine-900);
  font-weight: 900;
}

.accessibility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.accessibility-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 800;
}

.accessibility-panel button[aria-pressed="true"] {
  color: var(--wine-950);
  background: var(--gold-500);
}

.accessibility-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 700;
}

.celebration-canvas {
  position: fixed;
  inset: 0;
  z-index: 995;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thank-you-popup {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.thank-you-popup[hidden] {
  display: none;
}

.thank-you-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 4, 10, 0.34);
  backdrop-filter: blur(4px);
}

.thank-you-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 32px;
  color: var(--ink-900);
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.98), rgba(247, 234, 212, 0.97)),
    var(--cream-100);
  border: 1px solid rgba(169, 17, 29, 0.14);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(51, 4, 10, 0.2);
}

.thank-you-card h2 {
  margin: 0;
  color: var(--wine-900);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.thank-you-card p {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--ink-700);
}

.thank-you-action {
  margin-top: 24px;
}

.thank-you-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wine-900);
  background: rgba(169, 17, 29, 0.06);
  border: 1px solid rgba(169, 17, 29, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.thank-you-close:hover {
  background: rgba(169, 17, 29, 0.12);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 249, 237, 0.92);
  border-bottom: 1px solid rgba(135, 11, 22, 0.12);
  backdrop-filter: blur(18px);
}

.navbar {
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--wine-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.1;
}

.brand small {
  max-width: 210px;
  color: var(--ink-700);
  font-size: 0.76rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink-700);
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--wine-800);
  background: rgba(169, 17, 29, 0.08);
}

.nav-menu .nav-cta {
  color: var(--white);
  background: var(--wine-800);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus-visible {
  color: var(--white);
  background: var(--wine-700);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--wine-800);
  background: transparent;
  border: 1px solid rgba(135, 11, 22, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.section {
  padding: 92px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-900);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(51, 4, 10, 0.92) 0%, rgba(51, 4, 10, 0.68) 46%, rgba(51, 4, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(51, 4, 10, 0.75) 0%, rgba(51, 4, 10, 0) 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 128px;
  padding-bottom: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 10vw, 7.8rem);
}

h2 {
  max-width: 760px;
  color: var(--wine-900);
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h3 {
  margin: 0;
  color: var(--wine-900);
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 900;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button:focus-visible {
  outline: 3px solid rgba(216, 167, 100, 0.78);
  outline-offset: 3px;
}

.button.primary {
  color: var(--white);
  background: var(--wine-700);
  box-shadow: 0 14px 32px rgba(51, 4, 10, 0.24);
}

.button.secondary {
  color: var(--wine-950);
  background: var(--cream-200);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow),
.about p,
.contact p {
  color: var(--ink-700);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.contact-form {
  background: var(--white);
  border: 1px solid rgba(135, 11, 22, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 250px;
  padding: 26px;
}

.feature-card i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--wine-800);
  border-radius: var(--radius);
}

.feature-card p,
.proposal-card p {
  margin-bottom: 0;
  color: var(--ink-700);
}

.about,
.proposals {
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 167, 100, 0.2), transparent 34%),
    var(--cream-200);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-700);
}

.check-list i {
  color: var(--wine-800);
  margin-top: 5px;
}

.image-frame,
.wide-gallery {
  margin: 0;
  overflow: hidden;
  background: var(--wine-900);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}

.wide-gallery {
  overflow-x: auto;
  border: 1px solid rgba(135, 11, 22, 0.12);
  scrollbar-color: var(--gold-500) var(--cream-200);
  scrollbar-width: thin;
}

.wide-gallery:focus-visible {
  border-color: var(--gold-500);
}

.wide-gallery img {
  width: 100%;
  height: auto;
  min-width: 920px;
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proposal-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(135, 11, 22, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proposal-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.proposal-card div {
  padding: 22px;
}

.proposal-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-500);
  font-weight: 900;
}

.contact {
  background: var(--wine-950);
}

.contact h2,
.contact p,
.contact .eyebrow {
  color: var(--white);
}

.contact p {
  opacity: 0.84;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-200);
  font-weight: 800;
}

.contact-list i {
  color: var(--gold-500);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.anti-spam-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  color: var(--wine-950);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink-900);
  background: var(--cream-100);
  border: 1px solid rgba(135, 11, 22, 0.18);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wine-700);
  outline: 3px solid rgba(169, 17, 29, 0.14);
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--wine-700);
  background: #fff5f5;
}

.error-message {
  min-height: 18px;
  color: var(--wine-700);
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--wine-800);
  font-weight: 900;
}

.contact .form-status {
  padding: 12px 14px;
  color: var(--wine-950);
  background: var(--cream-200);
  border: 1px solid rgba(135, 11, 22, 0.18);
  border-radius: var(--radius);
  opacity: 1;
}

.contact .form-status:empty {
  display: none;
}

.contact .form-status.is-success {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.contact .form-status.is-error {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

.site-footer {
  padding: 42px 0 24px;
  color: var(--cream-200);
  background: var(--wine-950);
  border-top: 1px solid rgba(255, 249, 237, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand strong,
.footer-brand small {
  color: var(--cream-100);
}

.site-footer nav,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer nav a {
  color: var(--cream-200);
  font-weight: 800;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wine-950);
  background: var(--gold-500);
  border-radius: var(--radius);
}

.copyright {
  width: var(--container);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 249, 237, 0.72);
  font-size: 0.92rem;
}

.copyright span {
  display: inline-block;
  margin-left: auto;
  color: rgba(255, 249, 237, 0.48);
  font-size: 0.82rem;
  text-align: right;
}

.copyright a {
  color: rgba(216, 167, 100, 0.72);
  font-weight: 700;
}

.copyright a:hover,
.copyright a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .card-grid,
  .proposal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .image-frame img {
    height: 420px;
  }

  .copyright {
    flex-direction: column;
    gap: 6px;
  }

  .copyright span {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--cream-100);
    border: 1px solid rgba(135, 11, 22, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    width: 100%;
  }

  .hero {
    min-height: 92vh;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(51, 4, 10, 0.94) 0%, rgba(51, 4, 10, 0.58) 100%);
  }

  .hero-media img {
    object-position: 32% center;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 52px;
  }

  .section {
    padding: 68px 0;
  }

  .card-grid,
  .proposal-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .wide-gallery img {
    min-width: 860px;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
