@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mulish-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --hero-logo-size-desktop: clamp(120px, 26vw, 260px);
  --hero-logo-size-mobile: clamp(110px, 36vw, 175px);
  --cream-100: #f7efe5;
  --cream-200: #f0e2d4;
  --cream-300: #e6d5c4;
  --walnut-400: #8f5a39;
  --walnut-500: #7a4729;
  --walnut-700: #4e2d1b;
  --walnut-900: #2d1a12;
  --text-main: #3f291d;
  --text-light: #f7ecdd;
  --shadow-soft: 0 16px 38px rgba(52, 30, 18, 0.18);
  --shadow-deep: 0 22px 56px rgba(26, 15, 10, 0.35);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background-color: #efddca;
}

body {
  position: relative;
  font-family: "Mulish", "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: #efddca;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.38), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(176, 123, 83, 0.14), transparent 44%),
    linear-gradient(180deg, #f3e6d8, #e7cfb6);
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(83, 49, 30, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(83, 49, 30, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px;
  background-position: 0 0, 2px 2px;
  opacity: 0.45;
  z-index: -1;
}

.page {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 84px;
  transform: scale(0.92);
  transform-origin: top center;
}

.section {
  margin-bottom: 52px;
  animation: rise-in 0.5s ease both;
}

.section-title {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.section-header p {
  margin: 0 0 26px;
  text-align: center;
  color: rgba(63, 41, 29, 0.82);
}

.hero {
  text-align: center;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: var(--hero-logo-size-desktop);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 28% 24%, #ffffff 0%, #fcf8f3 58%, #f1e2d1 100%);
  border: 2px solid rgba(124, 79, 48, 0.45);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(70, 42, 26, 0.2),
    inset 0 0 0 10px rgba(255, 255, 255, 0.7),
    inset 0 -16px 26px rgba(126, 80, 49, 0.14);
  margin: 0 auto 18px;
}

.hero-logo {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  max-width: none;
  height: 180%;
  object-fit: contain;
  transform: translate(-50%, -51%);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(1rem, 2.1vw, 1.42rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(74, 48, 33, 0.86);
}

.socials {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(var(--hero-logo-size-desktop) * 0.375);
  height: calc(var(--hero-logo-size-desktop) * 0.375);
  padding: 0;
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: transparent;
  box-shadow: 0 14px 28px rgba(71, 41, 25, 0.25);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.2s ease;
}

.social-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(170deg, #9f6d48, #6d3f26);
  z-index: 0;
}

.social-button,
.social-button:link,
.social-button:visited,
.social-button:hover,
.social-button:focus,
.social-button:focus-visible,
.social-button:active {
  color: #fff;
  text-decoration: none;
}

.social-button,
.social-button * {
  -webkit-tap-highlight-color: transparent;
}

.social-button img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.social-button-text {
  display: block;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.social-button:hover,
.social-button:focus-visible {
  box-shadow: 0 18px 30px rgba(71, 41, 25, 0.3);
}

.social-button:active {
  box-shadow: 0 12px 20px rgba(71, 41, 25, 0.26);
}

.social-button:focus-visible {
  outline: 2px solid rgba(109, 63, 38, 0.45);
  outline-offset: 6px;
  border-radius: 50%;
}

.hero-empty {
  margin-top: 20px;
}

.about-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(154, 106, 71, 0.28);
  border-radius: var(--radius-xl);
  padding: 34px clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}

.about-card p,
.order-card p {
  margin: 0;
  font-size: clamp(1.02rem, 2.25vw, 1.35rem);
  line-height: 1.62;
  border-left: 2px solid rgba(133, 82, 47, 0.45);
  padding-left: 20px;
}

.about-card strong,
.order-card strong {
  color: var(--walnut-900);
}

.order-card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(154, 106, 71, 0.28);
  border-radius: var(--radius-xl);
  padding: 34px clamp(22px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
}

.order-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(110, 66, 39, 0.25);
  background: linear-gradient(175deg, rgba(136, 82, 48, 0.95), rgba(92, 52, 30, 0.95));
  box-shadow: 0 10px 24px rgba(52, 30, 18, 0.28);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(1.02rem, 2.25vw, 1.35rem);
  line-height: 1.62;
  letter-spacing: 0;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.order-link:hover,
.order-link:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(52, 30, 18, 0.32);
}

.order-link:active {
  transform: translateY(0);
}

.order-link:focus-visible {
  outline: 2px solid rgba(109, 63, 38, 0.45);
  outline-offset: 3px;
}

.carousel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px 64px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(129, 78, 44, 0.2);
  box-shadow: var(--shadow-soft);
}

.carousel:focus-visible {
  outline: 3px solid rgba(104, 64, 39, 0.5);
  outline-offset: 4px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  touch-action: pan-y;
}

.carousel-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  transform: translateX(0);
  transition: transform 0.26s ease-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

#photo-carousel .carousel-track {
  gap: clamp(11px, 1.9vw, 23px);
  padding-inline: clamp(4px, 1.6vw, 20px);
}

#photo-carousel .carousel-slide {
  flex: 0 0 49.3%;
}

.photo-slide {
  --photo-frame-pad: clamp(4px, 0.75vw, 7px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(245, 232, 219, 0.82);
  padding: var(--photo-frame-pad);
}

#photo-carousel .photo-slide {
  padding-bottom: calc(var(--photo-frame-pad) + 5px);
  background: #f5e8db;
}

.photo-slide img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
  border: 0.5px solid rgba(130, 79, 43, 0.18);
}

#photo-carousel .carousel-control {
  background: rgba(122, 71, 41, 0.95);
}

.photo-slide-missing {
  min-height: clamp(280px, 52vw, 560px);
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
  background: linear-gradient(175deg, rgba(136, 82, 48, 0.95), rgba(92, 52, 30, 0.95));
  box-shadow: 0 8px 20px rgba(38, 21, 13, 0.28);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  transform: translateY(-50%) scale(1.06);
  filter: brightness(1.05);
}

.carousel-control:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 12px;
}

.carousel-control-next {
  right: 12px;
}

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

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(95, 56, 34, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  transform: scale(1.15);
}

.carousel-dot.is-active {
  background: var(--walnut-500);
}

.reviews {
  margin-bottom: 0;
}

.reviews .section-title {
  color: var(--text-main);
}

.reviews-carousel {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(129, 78, 44, 0.2);
}

.review-card {
  height: 320px;
  border-radius: var(--radius-xl);
  padding: 34px clamp(22px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(154, 106, 71, 0.28);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.review-card blockquote {
  margin: 0;
  font-size: clamp(1.02rem, 2.25vw, 1.35rem);
  line-height: 1.62;
  flex: 1;
  overflow: hidden;
}

.review-card footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-author {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.review-date {
  margin: 0;
  opacity: 0.82;
}

.review-stars {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--walnut-500);
}

.empty-message {
  margin: 18px 0 0;
  font-size: 1.05rem;
  text-align: center;
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .page {
    width: min(1080px, calc(100% - 26px));
    padding-top: 44px;
    transform: scale(0.96);
  }

  .section {
    margin-bottom: 34px;
  }

  .about-card {
    border-radius: 24px;
  }

  .order-card {
    border-radius: 24px;
  }

  .carousel {
    padding: 18px 22px;
    margin-bottom: 0;
  }

  .review-card {
    height: 280px;
    border-radius: 24px;
  }

  .carousel-control {
    display: none;
  }

  .carousel-dots {
    margin-top: 18px;
  }
}

@media (max-width: 600px) {
  .page {
    transform: none;
  }

  .review-card {
    height: 250px;
  }

  .hero-logo-wrap {
    width: var(--hero-logo-size-mobile);
  }

  .hero h1 {
    letter-spacing: 0.1em;
    line-height: 1.5;
  }

  .socials {
    gap: clamp(10px, 3vw, 14px);
  }

  .social-button {
    width: calc(var(--hero-logo-size-mobile) * 0.5);
    height: calc(var(--hero-logo-size-mobile) * 0.5);
  }

  .social-button-text {
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .order-link {
    width: 100%;
  }

  .order-actions {
    margin-top: 18px;
  }

  .carousel {
    padding: 14px 18px 18px;
    margin-bottom: 0;
  }

  #photo-carousel .carousel-slide {
    flex-basis: 92%;
  }

  .carousel-dots {
    margin-top: 18px;
  }

  .photo-slide img {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
