:root {
  --bg: #f5f1ea;
  --bg-alt: #efe9df;
  --text: #2b211b;
  --text-muted: #3a2e27;
  --accent: #8a6a4a;
  --accent-hover: #a07b57;
  --soft-black: #1e1e1e;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(30, 30, 30, 0.08);
  --radius: 14px;
  --header-h: 72px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
  --max-wide: 1280px;
  --max-narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

#main {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  min-width: 0;
  width: 100%;
}

.brand-mark {
  text-decoration: none;
  color: inherit;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark__logo {
  height: 52px;
  width: auto;
  max-width: min(140px, 32vw);
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .brand-mark__logo {
    height: 42px;
    max-width: min(118px, 30vw);
  }

  .brand-mark__title {
    font-size: clamp(0.72rem, 3.6vw, 1.1rem);
  }
}

.brand-mark__title {
  font-family: var(--font-serif);
  font-size: clamp(0.82rem, 3.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav__list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav__list a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch__btn {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.52rem;
  cursor: pointer;
}

.lang-switch__btn:hover {
  color: var(--accent);
}

.lang-switch__btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle__bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    left: 0;
    right: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .lang-switch {
    align-self: flex-start;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 820px);
  display: grid;
  color: var(--bg);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero__img {
    transform: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Tamni overlay preko naslovnice — bolji kontrast tekstu */
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.55) 0%, rgba(30, 30, 30, 0.35) 38%, rgba(30, 30, 30, 0.2) 100%),
    linear-gradient(
      to top,
      color-mix(in srgb, var(--soft-black) 88%, transparent) 0%,
      color-mix(in srgb, var(--soft-black) 55%, transparent) 42%,
      color-mix(in srgb, var(--soft-black) 28%, transparent) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 36ch;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}

.section--what {
  background: var(--bg);
}

.section--for {
  background: var(--bg-alt);
}

.section--materials {
  background: var(--bg);
}

.section--process {
  background: var(--bg-alt);
}

.section--about {
  background: var(--bg);
}

.section {
  scroll-margin-top: calc(var(--header-h) + 12px);
  padding: clamp(3rem, 6vw, 5rem) max(1rem, env(safe-area-inset-left)) clamp(3rem, 6vw, 5rem)
    max(1rem, env(safe-area-inset-right));
  min-width: 0;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.section__inner--wide {
  max-width: var(--max-wide);
  width: 100%;
  min-width: 0;
}

.section__inner--narrow {
  max-width: var(--max-narrow);
  width: 100%;
  min-width: 0;
}

.section__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  min-width: 0;
}

@media (max-width: 900px) {
  .section__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section__header {
  margin-bottom: 2rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--soft-black);
  letter-spacing: 0.01em;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.rich-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-text .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Mini naslovi u tekstu (OGLEDALA, STOLOVI, …) — uvijek Cormorant Garamond, ne Inter */
#main .section__body.rich-text h3,
.rich-text h3 {
  font-family: var(--font-serif), "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
  color: var(--accent);
  overflow-wrap: anywhere;
}

#main .section__body.rich-text h3 strong,
.rich-text h3 strong {
  font-weight: 700;
  font-style: normal;
  color: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.rich-text p {
  margin: 0 0 1rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.process-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.process-step {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.process-step__fig {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.process-step__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-step__text {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.section--process .process-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  min-width: 0;
  width: 100%;
}

@media (max-width: 560px) {
  .section--process .process-photos {
    grid-template-columns: minmax(0, 1fr);
  }
}

.process-photos__fig {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}

.process-photos__fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.section--process .rich-text h3 {
  text-transform: none;
  letter-spacing: 0.02em;
}

.section__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.section__figure--accent {
  min-height: min(52vh, 520px);
}

.section__figure--accent img {
  width: 100%;
  min-height: min(52vh, 520px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section--materials .section__figure--accent {
  min-height: 0;
  max-height: min(38vh, 400px);
}

.section--for .section__figure--for {
  min-height: 0;
  max-height: min(42vh, 480px);
}

.section--for .section__figure--for img {
  min-height: 0;
  max-height: min(42vh, 480px);
  height: min(42vh, 480px);
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.section--materials .section__figure--accent img {
  min-height: 0;
  max-height: min(38vh, 400px);
  height: min(38vh, 400px);
  aspect-ratio: auto;
  object-fit: cover;
}

.section--gallery {
  /* Malo hladnija zona od ostatka stranice — čitljiviji raster kartica (slično katalogu). */
  background: color-mix(in srgb, var(--bg-alt) 55%, var(--bg));
}

.section--gallery .section__header {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.section--gallery .section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.section--gallery .section__subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.85rem);
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 7%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
  min-width: 0;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 20px 48px rgba(43, 33, 27, 0.1);
}

.gallery-card__fig {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: color-mix(in srgb, var(--bg-alt) 65%, var(--surface));
  overflow: hidden;
}

.gallery-card__fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-card__fig img {
  transform: scale(1.045);
}

.gallery-card__caption {
  padding: 1rem 1rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  border-top: 1px solid color-mix(in srgb, var(--text) 6%, transparent);
  flex-shrink: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section--contact {
  background: var(--bg);
}

.section--contact .section__inner {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .section--contact .section__inner {
    padding-bottom: 0;
  }
}

.contact-whatsapp[hidden],
[data-whatsapp][hidden] {
  display: none !important;
}

.contact-whatsapp {
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 12px 36px rgba(30, 30, 30, 0.06);
  backdrop-filter: blur(8px);
}

.contact-whatsapp__intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.contact-whatsapp__cta {
  width: 100%;
}

@media (min-width: 480px) {
  .contact-whatsapp__cta {
    width: auto;
  }
}

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 92%, #2d5a45) 0%,
    var(--accent) 55%,
    color-mix(in srgb, var(--accent-hover) 88%, #3a7a5c) 100%
  );
  color: var(--bg);
  border: 1px solid color-mix(in srgb, #3d8f6e 35%, var(--accent));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.btn--whatsapp::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  opacity: 0.95;
}

.btn--whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 36%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-hover) 90%, #3a7a5c) 0%,
    var(--accent-hover) 100%
  );
  color: var(--bg);
}

.whatsapp-float {
  position: fixed;
  z-index: 200;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem 0.72rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:
    0 14px 40px rgba(30, 30, 30, 0.14),
    0 2px 8px rgba(30, 30, 30, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
  animation: wa-float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 20px 48px rgba(30, 30, 30, 0.18),
    0 4px 12px rgba(30, 30, 30, 0.08);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--text);
}

.whatsapp-float:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.whatsapp-float__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--bg);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, #3d8f6e 55%, var(--accent)) 0%,
    var(--accent) 100%
  );
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}

.whatsapp-float__icon svg {
  display: block;
}

.whatsapp-float__label {
  padding-right: 0.15rem;
  max-width: 9rem;
  line-height: 1.2;
}

@media (max-width: 479px) {
  .whatsapp-float {
    padding: 0.65rem;
    gap: 0;
  }

  .whatsapp-float__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (min-width: 480px) {
  .whatsapp-float {
    padding: 0.72rem 1.15rem 0.72rem 0.72rem;
  }
}

@keyframes wa-float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }

  .whatsapp-float,
  .btn--whatsapp {
    transition: none;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.contact-form__note {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-form__note code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
  color: var(--text);
}

.contact-form__alert--error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5c1a1a;
  background: color-mix(in srgb, #c45 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #a33 35%, transparent);
}

.contact-form__alert--error[hidden] {
  display: none !important;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input[type="file"] {
  padding: 0.55rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  border: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .btn {
    width: auto;
    max-width: none;
  }
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

a.btn {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.section--thank {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-alt) 55%, var(--surface)) 0%,
    var(--bg) 42%,
    color-mix(in srgb, var(--bg) 70%, var(--bg-alt)) 100%
  );
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
}

.thank-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 520px;
  margin-inline: auto;
}

.thank-panel__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.thank-panel__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 1rem;
}

.thank-panel__body {
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}

.thank-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.thank-panel__btn {
  min-width: min(100%, 12rem);
}

.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 2.5rem 1.25rem 3rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
  min-width: 0;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

.footer__logo {
  max-width: min(220px, 70vw);
  height: auto;
  opacity: 0.95;
}

.footer__line,
.footer__copy {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer__copy {
  font-size: 0.85rem;
  opacity: 0.75;
}
