/* Shared TAQUAR shell. Registro is the visual reference for the public site. */

@font-face {
  font-family: "Nippo";
  src: url("../fonts/Nippo/Nippo-Extralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("../fonts/Nippo/Nippo-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("../fonts/Nippo/Nippo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("../fonts/Nippo/Nippo-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nippo";
  src: url("../fonts/Nippo/Nippo-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --taquar-canvas: #cccccc;
  --taquar-paper: #eeeeec;
  --taquar-gray: #b8b8b8;
  --taquar-gray-deep: #aaaaaa;
  --taquar-ink: #4b4b4b;
  --taquar-muted: #6e6e6e;
  --taquar-line: rgba(75, 75, 75, 0.24);
  --taquar-shell: min(1180px, calc(100% - 9vw));

  /* Aliases keep Registro's page-specific CSS on the same design tokens. */
  --canvas: var(--taquar-canvas);
  --paper: var(--taquar-paper);
  --gray: var(--taquar-gray);
  --gray-deep: var(--taquar-gray-deep);
  --ink: var(--taquar-ink);
  --muted: var(--taquar-muted);
  --line: var(--taquar-line);
  --shell: var(--taquar-shell);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--taquar-canvas);
  color: var(--taquar-ink);
  font-family: "Nippo", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--taquar-line);
  background: rgba(204, 204, 204, 0.96);
  backdrop-filter: blur(10px);
}

.site-header .shell,
.site-header .header-inner {
  width: var(--taquar-shell);
  margin-inline: auto;
}

.site-header .header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header .brand img {
  width: 184px;
  height: auto;
}

.site-header .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 1.9vw, 30px);
  margin-left: auto;
  white-space: nowrap;
}

.site-header .desktop-nav a,
.site-header .mobile-nav summary,
.site-header .mobile-nav a,
.site-header .language-switcher,
.site-header .language-option {
  color: var(--taquar-ink);
  font-family: "Nippo", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  text-decoration: none;
}

.site-header .desktop-nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a[aria-current="page"],
.site-header .desktop-nav a.active,
.site-header .mobile-nav a:hover {
  color: #222;
}

.site-header .desktop-nav a[aria-current="page"],
.site-header .desktop-nav a.active {
  border-color: var(--taquar-ink);
}

.site-header .language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.site-header .language-switcher.select-menu {
  width: auto;
}

.site-header .language-switcher summary,
.site-header .language-switcher .select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  list-style: none;
}

.site-header .language-switcher summary::-webkit-details-marker {
  display: none;
}

.site-header .language-switcher summary img,
.site-header .language-switcher .option img {
  width: 22px;
  height: 13px;
  margin: 0;
  object-fit: cover;
}

.site-header .language-switcher .menu-alter-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header .language-switcher .options,
.site-header .language-switcher .language-options {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 112px;
  margin: 0;
  padding: 8px;
  gap: 2px;
  border: 1px solid var(--taquar-line);
  border-radius: 0;
  background: var(--taquar-paper);
  box-shadow: none;
  list-style: none;
}

.site-header .language-switcher:not([open]) .options,
.site-header .language-switcher:not([open]) .language-options,
.site-header .language-switcher:not(.active) .options {
  display: none;
}

.site-header .language-switcher .option,
.site-header .language-switcher .language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--taquar-ink);
  cursor: pointer;
  text-align: left;
}

.site-header .language-switcher .option:hover,
.site-header .language-switcher .language-option:hover,
.site-header .language-switcher .option:focus-visible,
.site-header .language-switcher .language-option:focus-visible {
  background: rgba(75, 75, 75, 0.1);
}

.site-header .mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
}

.site-header .mobile-nav summary {
  padding: 8px 12px;
  border: 1px solid var(--taquar-ink);
  cursor: pointer;
}

.site-header .mobile-nav summary::-webkit-details-marker {
  display: none;
}

.site-header .mobile-nav nav {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  display: grid;
  width: min(210px, calc(100vw - 40px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--taquar-line);
  background: var(--taquar-paper);
}

.site-header .mobile-language-options {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--taquar-line);
}

.site-header .mobile-language-options .language-option {
  justify-content: center;
  border: 1px solid var(--taquar-line);
  font-size: 0.72rem;
  text-align: center;
}

.main-footer {
  border-top: 1px solid var(--taquar-line);
}

.main-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 0.9fr);
}

.main-footer .footer-panel {
  min-height: 242px;
  padding: 28px clamp(18px, 2.8vw, 38px);
}

.main-footer .footer-panel h3 {
  margin: 0 0 20px;
  color: var(--taquar-ink);
  font-family: "Nippo", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.main-footer .footer-panel p {
  width: auto;
  max-width: 42ch;
  margin: 0 0 14px;
  color: var(--taquar-muted);
  font-family: "Nippo", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
}

.main-footer .footer-panel p:last-child {
  margin-bottom: 0;
}

/* Keep the legacy #footer selectors from re-expanding the shared shell. */
#footer.main-footer .footer-panel p {
  font-size: 0.9rem;
}

.main-footer .footer-panel-intro {
  background: #dcdcdc;
}

.main-footer .footer-panel-email {
  background: var(--taquar-gray);
}

.main-footer .footer-panel-phone {
  background: var(--taquar-gray-deep);
}

.main-footer .footer-panel-social {
  background: #c4c4c4;
}

.main-footer .social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-footer .social-links img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

#footer.main-footer #network .social-links img {
  width: 30px;
  height: 30px;
}

.main-footer .copyright-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 4.5vw;
  background: var(--taquar-gray);
}

.main-footer .copyright-copy p {
  width: auto;
  margin: 0;
  color: var(--taquar-ink);
  font-family: "Nippo", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.5;
}

.main-footer .copyright-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-footer .copyright-nav a {
  color: var(--taquar-ink);
  font-family: "Nippo", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 300;
  text-decoration: none;
}

.main-footer .copyright-nav a:hover {
  color: #222;
}

@media (max-width: 980px) {
  :root {
    --taquar-shell: min(100% - 8vw, 720px);
  }

  .site-header .desktop-nav {
    display: none;
  }

  .site-header .mobile-nav {
    display: block;
  }

  .site-header .header-inner {
    min-height: 68px;
    gap: 18px;
  }

  .site-header .brand img {
    width: 156px;
  }

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

  .main-footer .footer-panel-intro,
  .main-footer .footer-panel-social {
    grid-column: 1 / -1;
  }

  .main-footer .copyright-bar {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 4vw;
  }

  .main-footer .copyright-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --taquar-shell: calc(100% - 36px);
  }

  .site-header .header-inner {
    gap: 12px;
  }

  .site-header .brand img {
    width: 142px;
  }

  .site-header .language-switcher {
    margin-left: auto;
  }

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

  .main-footer .footer-panel {
    min-height: auto;
  }

  .main-footer .footer-panel-intro,
  .main-footer .footer-panel-social {
    grid-column: auto;
  }

  .main-footer .copyright-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
}

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

  .site-header a,
  .site-header summary,
  .main-footer a {
    transition: none;
  }
}
