/* curtiquer.es — tannery landing.
   Also loaded by Core iframe via Landing.embedCssUrl. */

:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --header-h: 4.25rem;
  --sticky-h: 4.5rem;
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bg: #f3eadc;
  --bg-2: #e6d5c0;
  --surface: #fff8ee;
  --ink: #241812;
  --ink-soft: #6a5344;
  --line: #d4c0a8;
  --accent: #7a2e22;
  --accent-ink: #faf3ea;
  --secondary: #3d4a38;
  --ok: #2f6b45;
  --danger: #9b2c2c;
  --header-bg: rgb(243 234 220 / 0.94);
  --sticky-bg: #241812;
  --sticky-ink: #f3eadc;
  --hero-veil: linear-gradient(
    to top,
    rgb(36 24 18 / 0.88) 0%,
    rgb(36 24 18 / 0.45) 42%,
    rgb(36 24 18 / 0.12) 78%,
    rgb(36 24 18 / 0.04) 100%
  );
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 1px 0 rgb(0 0 0 / 0.04), 0 14px 36px rgb(36 24 18 / 0.1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: anywhere;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

.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;
}

.wrap {
  box-sizing: border-box;
  width: min(1120px, 100%);
  padding-inline: 1rem;
  margin-inline: auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgb(36 24 18 / 0.08);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  transform: translateX(-50%);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-header.is-menu-open .nav-toggle span {
  background: transparent;
}

.site-header.is-menu-open .nav-toggle span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

body.is-nav-open {
  overflow: hidden;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.lang-toggle {
  display: inline-flex;
  gap: 0.15rem;
}

.lang-toggle a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-bottom: 2px solid transparent;
}

.lang-toggle a:hover {
  color: var(--ink);
}

.lang-toggle a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}

.btn:active,
.nav-cta:active {
  transform: scale(0.96);
}

.btn-primary,
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
.nav-cta:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 100%;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p,
li {
  text-wrap: pretty;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.section {
  padding: var(--space-8) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-6);
}

.section-head p {
  color: var(--ink-soft);
}

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  align-items: end;
  color: var(--accent-ink);
  overflow: hidden;
}

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

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

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8) var(--space-7);
}

.hero .kicker {
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.8vw, 4rem);
  font-style: normal;
}

.hero .lede {
  color: rgb(250 243 234 / 0.88);
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero .btn-ghost {
  color: var(--accent-ink);
  border-color: rgb(250 243 234 / 0.45);
}

.hero .btn-ghost:hover {
  background: rgb(250 243 234 / 0.12);
  color: var(--accent-ink);
}

.grid-4,
.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}

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

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

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

.team-quote {
  text-align: center;
  margin: 0 0 var(--space-7);
}

.team-quote blockquote {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.team-quote cite {
  display: block;
  margin: var(--space-3) auto 0;
  max-width: 32ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
}

.team-card {
  text-align: center;
}

.team-card img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-3);
  background: var(--surface);
}

.team-card h3 {
  margin-bottom: 0.35rem;
}

.team-card p {
  margin: 0.2rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.team-card .sign {
  font-size: 0.88rem;
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 420ms var(--ease);
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: rgb(36 24 18 / 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.carousel-btn.prev {
  left: 0.7rem;
}

.carousel-btn.next {
  right: 0.7rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.filters button {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 0.75rem;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms var(--ease);
}

.gallery a:hover img {
  transform: scale(1.04);
}

.gallery a.is-hidden {
  display: none;
}

.quote-band {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
}

.quote-band h2,
.quote-band p {
  color: var(--accent-ink);
}

.quote-band .lede {
  color: rgb(250 243 234 / 0.86);
}

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
}

.socials a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
}

.philosophy {
  text-align: center;
}

.philosophy blockquote {
  margin: 0 auto;
  max-width: 38ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-style: italic;
  line-height: 1.3;
}

.philosophy cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.nap p {
  margin: 0.2rem 0;
}

.map-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  margin-bottom: var(--space-3);
  background: var(--surface);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open {
  margin: 0 0 var(--space-4);
  font-size: 0.92rem;
}

.embed-shell {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
}

.embed-shell [data-core-embed],
.embed-shell [data-core-embed] iframe {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.field label {
  font-weight: 650;
  font-size: 0.92rem;
}

.req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 var(--space-4);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.form-status[data-state="ok"] {
  background: color-mix(in srgb, var(--ok) 14%, var(--surface));
  border-color: var(--ok);
}

.form-status[data-state="error"] {
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border-color: var(--danger);
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-7);
  align-items: start;
}

.category-media {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.carousel-thumb {
  display: block;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.carousel-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.carousel-thumb:hover,
.carousel-thumb:focus-visible {
  border-color: var(--ink-soft);
}

.carousel-thumb[aria-current="true"] {
  border-color: var(--ink);
}

.category-copy p {
  color: var(--ink-soft);
}

.category-copy h2 {
  margin: var(--space-5) 0 var(--space-3);
  font-size: 1.25rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0 var(--space-5);
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 38%;
  color: var(--ink);
  font-weight: 650;
}

.cat-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.cat-siblings a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}

.cat-siblings a:hover,
.cat-siblings a[aria-current="page"] {
  color: var(--ink);
}

.cat-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.cat-hub a {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cat-hub a:hover {
  color: inherit;
  border-color: var(--ink);
}

.cat-hub img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cat-hub h2 {
  margin: 0;
  padding: var(--space-4) var(--space-4) 0;
  font-size: 1.25rem;
}

.cat-hub p {
  margin: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.crumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

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

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

.env-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.env-block img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.env-block p {
  color: var(--ink-soft);
}

.site-footer {
  padding: var(--space-7) 0;
  background: var(--ink);
  color: rgb(243 234 220 / 0.78);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
}

.site-footer strong {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-logo {
  display: flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 var(--space-4);
}

.footer-logo img {
  width: 148px;
  height: auto;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-nav span {
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 0.2rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.split-legal {
  padding: var(--space-8) 0;
  max-width: 70ch;
}

.split-legal h1 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.split-legal h2 {
  font-size: 1.2rem;
  margin: var(--space-6) 0 var(--space-3);
}

.split-legal p,
.split-legal li {
  color: var(--ink-soft);
}

.split-legal .legal-updated {
  font-size: 0.88rem;
  margin-bottom: var(--space-5);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--sticky-bg);
  color: var(--sticky-ink);
}

.sticky-cta .btn {
  flex: 1;
  background: var(--sticky-ink);
  color: var(--sticky-bg);
}

.muted {
  color: var(--ink-soft);
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .header-actions {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 0 1rem;
    border-top: 1px solid var(--line);
  }

  .site-header.is-menu-open .header-actions {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .lang-toggle {
    padding: 0.35rem 0;
  }
}

@media (max-width: 860px) {
  .wrap {
    padding-inline: 1.5rem;
  }

  .hero .wrap {
    padding-inline: 1.5rem;
    padding-block: var(--space-7) var(--space-6);
  }

  .about-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .contact-grid,
  .category-layout,
  .env-block {
    grid-template-columns: 1fr;
  }

  .header-actions .nav-cta {
    display: none;
  }

  .sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: var(--sticky-h);
  }

  .site-footer {
    padding-bottom: calc(var(--sticky-h) + var(--space-6));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav-cta,
  .site-header,
  .carousel-track,
  .gallery img {
    transition: none;
  }

  .btn:active,
  .nav-cta:active {
    transform: none;
  }
}
