/* =========================================================
   Mayor Boats – estils del web públic
   Rèplica del tema Dawn (Shopify) amb la configuració actual
   ========================================================= */

@font-face {
  font-family: Assistant;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/assistant_n4.woff2") format("woff2"),
       url("https://gi8sqn-td.myshopify.com/cdn/fonts/assistant/assistant_n4.9120912a469cad1cc292572851508ca49d12e768.woff2") format("woff2");
}
@font-face {
  font-family: Assistant;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/assistant_n7.woff2") format("woff2"),
       url("https://gi8sqn-td.myshopify.com/cdn/fonts/assistant/assistant_n7.bf44452348ec8b8efa3aa3068825305886b1c83c.woff2") format("woff2");
}

:root {
  --navy: 10, 25, 47;            /* #0A192F */
  --bg: 248, 246, 240;           /* #F8F6F0 */
  --gold: #c5a059;
  --font: Assistant, "Helvetica Neue", Arial, sans-serif;
  --page-width: 120rem;
  --gap-h: 0.8rem;
  --gap-v: 1.2rem;
  --section-pad: 2.7rem;
}
@media (min-width: 750px) {
  :root { --section-pad: 3.6rem; }
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-columns: 100%;
  background: rgb(var(--bg));
  color: rgba(var(--navy), 0.75);
  font-family: var(--font);
  font-size: 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.06rem;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 750px) { body { font-size: 1.6rem; } }

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

a { color: rgb(var(--navy)); }

h1, h2, h3, h4, h5, .h0, .h1, .h2 {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0.06rem;
  color: rgb(var(--navy));
  line-height: 1.3;
  word-break: break-word;
}
h1, .h1 { font-size: 3rem; }
h2, .h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.5rem; }
@media (min-width: 750px) {
  h1, .h1 { font-size: 4rem; }
  h2, .h2 { font-size: 2.4rem; }
  h3 { font-size: 1.8rem; }
}

p { margin: 0 0 1.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.skip-to-content-link:focus {
  position: fixed !important; z-index: 9999; top: 1rem; left: 1rem;
  width: auto; height: auto; clip: auto; overflow: visible;
  padding: 1rem 2rem; background: #fff; color: rgb(var(--navy));
}

.center { text-align: center; }

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 750px) {
  .page-width { padding: 0 5rem; }
  .page-width--narrow { padding: 0 9rem; max-width: 72.6rem; box-sizing: content-box; }
}
@media (max-width: 749px) {
  .page-width--narrow { max-width: 72.6rem; }
}

.section-padding { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-padding-sm { padding-top: 2.1rem; padding-bottom: 2.1rem; }
.section-padding-lg { padding-top: 3rem; padding-bottom: 3.9rem; }
@media (min-width: 750px) {
  .section-padding-sm { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .section-padding-lg { padding-top: 4rem; padding-bottom: 5.2rem; }
}

/* ---------- Text enriquit ---------- */
.rte > :first-child { margin-top: 0; }
.rte > :last-child { margin-bottom: 0; }
.rte a { text-underline-offset: 0.3rem; }
.rte ul, .rte ol { padding-left: 2rem; }
.rte img { height: auto; }
.rte iframe { max-width: 100%; }

/* ---------- Botons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  min-width: 12rem;
  padding: 0 3rem;
  border: 0;
  border-radius: 0;
  background: rgb(var(--navy));
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0.1rem rgb(var(--navy));
  transition: box-shadow .1s ease;
}
.button:hover { box-shadow: 0 0 0 0.2rem rgb(var(--navy)); }

/* ---------- Barra d'anunci ---------- */
.announcement-bar {
  border-bottom: 0.1rem solid rgba(var(--navy), 0.08);
  color: rgb(var(--navy));
}
.announcement-bar__message {
  margin: 0;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
  line-height: 1.5;
}
@media (min-width: 750px) { .announcement-bar__message { font-size: 1.3rem; } }

/* ---------- Capçalera ---------- */
.section-header {
  position: relative;
  z-index: 3;
  background: rgb(var(--bg));
  border-bottom: 0.1rem solid rgba(var(--navy), 0.08);
}
.header {
  display: grid;
  grid-template-areas: "left heading right";
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.header__burger {
  grid-area: left;
  justify-self: start;
  width: 4.4rem; height: 4.4rem;
  margin-left: -1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: rgb(var(--navy)); cursor: pointer;
}
.header__burger svg { width: 2rem; height: 2rem; }
.header__burger .icon-close { display: none; }
.header__burger[aria-expanded="true"] .icon-hamburger { display: none; }
.header__burger[aria-expanded="true"] .icon-close { display: block; }

.header__heading-link {
  grid-area: heading;
  justify-self: center;
  display: inline-block;
  padding: 0.75rem;
  text-decoration: none;
}
.header__heading-logo { max-width: 100%; height: auto; }
@media (max-width: 989px) {
  .header__heading-logo { width: auto !important; height: 90px; }
}

.header__inline-menu { display: none; }

@media (min-width: 990px) {
  .header {
    grid-template-areas: "heading navigation";
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
    padding: 20px 3rem;
    max-width: var(--page-width);
  }
  .header.page-width { padding-left: 5rem; padding-right: 5rem; }
  .header__burger { display: none; }
  .header__heading-link { justify-self: start; margin-left: -0.75rem; }
  .header__inline-menu { display: block; grid-area: navigation; margin-left: 4rem; }
  .menu-drawer { display: none !important; }
}

.list-menu { list-style: none; padding: 0; margin: 0; }
.list-menu--inline { display: inline-flex; flex-wrap: wrap; }
.list-menu--inline > li { margin-right: 35px; position: relative; }

.header__menu-item {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(var(--navy), 0.75);
  text-decoration: none;
  cursor: pointer;
}
.header__menu-item span { text-underline-offset: 0.3rem; }
.header__menu-item:hover span,
.header__menu-item:hover { color: rgb(var(--navy)); }
.header__menu-item:hover span { text-decoration: underline; }
.header__menu-item.is-active span,
.header__menu-item.is-active { color: rgb(var(--navy)); }
.list-menu--inline > li > a.is-active span,
.header__submenu-wrap > summary.is-active span { text-decoration: underline; text-decoration-thickness: 0.1rem; }

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.header__submenu-wrap > summary { padding-right: 2.7rem; position: relative; }
.icon-caret { width: 1rem; height: 0.6rem; }
.header__submenu-wrap .icon-caret { position: absolute; right: 1.2rem; top: calc(50% - 0.2rem); }
.header__submenu-wrap[open] .icon-caret { transform: rotate(180deg); }

.header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 26rem;
  padding: 2.4rem 0;
  background: rgb(var(--bg));
  border: 0.1rem solid rgba(var(--navy), 0.1);
  box-shadow: 0 0.4rem 0.5rem rgba(var(--navy), 0.05);
}
.header__submenu .header__menu-item {
  font-size: 1.4rem;
  font-weight: 400;
  padding: 0.95rem 3.5rem 0.95rem 2rem;
  line-height: 1.8;
}
.header__submenu .header__menu-item:hover,
.header__submenu .header__menu-item.is-active { text-decoration: underline; text-underline-offset: 0.3rem; }

/* Menú mòbil */
.menu-drawer {
  border-top: 0.1rem solid rgba(var(--navy), 0.08);
  background: rgb(var(--bg));
  padding: 1.2rem 0 3rem;
}
.menu-drawer__list, .menu-drawer ul { list-style: none; margin: 0; padding: 0; }
.menu-drawer__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3.2rem;
  font-size: 1.8rem;
  color: rgb(var(--navy));
  text-decoration: none;
  cursor: pointer;
}
.menu-drawer__item:hover, .menu-drawer__item.is-active { background: rgba(var(--navy), 0.04); }
.menu-drawer__item--sub { font-size: 1.6rem; padding-left: 4.8rem; color: rgba(var(--navy), 0.75); }
.menu-drawer details[open] .icon-caret { transform: rotate(180deg); }

/* ---------- Imatge amb text ---------- */
.image-with-text {
  display: grid;
  grid-template-columns: 1fr;
}
.image-with-text__media img { width: 100%; height: 100%; object-fit: cover; }
.image-with-text__text-item { display: flex; align-items: center; }
.image-with-text__content { padding: 4rem 2.5rem 5rem; width: 100%; }
@media (min-width: 750px) {
  .image-with-text { grid-template-columns: 1fr 1fr; }
  .image-with-text--right .image-with-text__media { order: 2; }
  .image-with-text__content { padding: 6rem 7rem 7rem; }
}
.section--image-text .image-with-text__heading {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  color: rgb(var(--navy));
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section--image-text .image-with-text__text,
.section--image-text .image-with-text__text p { color: rgb(var(--navy)); }
.image-with-text__content .button { margin-top: 2rem; }

/* ---------- Títol de pàgina ---------- */
.main-page-title { margin: 0 0 3rem; }
@media (min-width: 750px) { .main-page-title { margin-bottom: 4rem; } }

/* ---------- Targetes (multicolumn) ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--gap-v) var(--gap-h);
}
.grid__item { width: 100%; flex-grow: 1; }
@media (min-width: 750px) {
  .grid--2-col > .grid__item { width: calc(50% - var(--gap-h) / 2); max-width: calc(50% - var(--gap-h) / 2); }
  .grid--3-col > .grid__item { width: calc(33.33% - var(--gap-h) * 2 / 3); max-width: calc(33.33% - var(--gap-h) * 2 / 3); }
  .grid--4-col > .grid__item { width: calc(25% - var(--gap-h) * 3 / 4); max-width: calc(25% - var(--gap-h) * 3 / 4); }
  .grid--5-col > .grid__item { width: calc(20% - var(--gap-h) * 4 / 5); max-width: calc(20% - var(--gap-h) * 4 / 5); }
  .grid--6-col > .grid__item { width: calc(16.66% - var(--gap-h) * 5 / 6); max-width: calc(16.66% - var(--gap-h) * 5 / 6); }
}
@media (max-width: 749px) {
  .logos-list.grid > .grid__item { width: calc(50% - var(--gap-h) / 2); max-width: calc(50% - var(--gap-h) / 2); }
}

.multicolumn__title {
  margin: 0 0 3rem;
  text-transform: uppercase;
  color: rgb(var(--navy));
}
@media (min-width: 750px) { .multicolumn__title { margin-bottom: 5rem; } }
.multicolumn-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 35px;
}
.multicolumn-card__title { margin: 0 0 1rem; color: rgb(var(--navy)); }
.multicolumn-card .rte, .multicolumn-card .rte p { color: rgb(var(--navy)); }

/* ---------- Logotips ---------- */
.logos-band {
  background: rgb(var(--navy));
  padding: var(--section-pad) 0;
}
.logos-list__item { background: rgb(var(--bg)); display: flex; align-items: center; justify-content: center; }
.logos-list__item img { width: 100%; height: auto; }

/* ---------- Text enriquit ---------- */
.rich-text__blocks { max-width: 78rem; }
@media (min-width: 750px) { .rich-text__blocks { margin-left: 4rem; } }
.rich-text__heading { margin: 0 0 2rem; }
.rich-text__heading strong { font-weight: 700; }
.rich-text__text p { margin: 0 0 1.5rem; }
.rich-text__text strong { color: rgb(var(--navy)); }

/* ---------- Files (multirow) ---------- */
.multirow__row + .multirow__row { margin-top: 0.8rem; }
@media (min-width: 750px) {
  .image-with-text--row { grid-template-columns: 1fr 2fr; }
  .image-with-text--row.image-with-text--right { grid-template-columns: 2fr 1fr; }
  .image-with-text--row .image-with-text__media { position: relative; min-height: 30rem; overflow: hidden; }
  .image-with-text--row .image-with-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .image-with-text--row .image-with-text__text-item { align-items: center; }
  .image-with-text--row.image-with-text--right .image-with-text__content { padding: 6rem 7rem 7rem 0; }
  .image-with-text--row.image-with-text--left .image-with-text__content { padding: 6rem 0 7rem 7rem; }
}
@media (max-width: 749px) {
  .image-with-text--row .image-with-text__content { padding: 2.5rem 0 3rem; }
}
.image-with-text--row .rte, .image-with-text--row .rte p { color: rgba(var(--navy), 0.75); }
.caption-with-letter-spacing {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.13rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.multirow__heading { margin: 0 0 1.5rem; }
@media (min-width: 750px) { .multirow__heading { font-size: 2.4rem; } }

/* ---------- Textos legals ---------- */
.shopify-policy__container { padding-top: 2.7rem; padding-bottom: 4rem; }
@media (min-width: 750px) { .shopify-policy__container { padding-top: 3.6rem; padding-bottom: 5.4rem; } }
.shopify-policy__title { text-align: center; margin: 0 0 3rem; }
.section--legal h2 { margin: 3rem 0 1rem; }

/* ---------- Formulari de contacte ---------- */
.contact .title { margin: 0 0 3rem; }
.contact__fields { display: grid; gap: 0 2rem; }
@media (min-width: 750px) { .contact__fields { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 2rem; }
.field__input {
  display: block;
  width: 100%;
  height: 4.5rem;
  padding: 2.2rem 1.5rem 0.8rem;
  border: 0;
  border-radius: 0;
  background: rgb(var(--bg));
  color: rgb(var(--navy));
  font: inherit;
  font-size: 1.6rem;
  letter-spacing: 0.04rem;
  box-shadow: 0 0 0 0.1rem rgba(var(--navy), 0.55);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field__input:hover { box-shadow: 0 0 0 0.2rem rgba(var(--navy), 0.55); }
.field__input:focus { box-shadow: 0 0 0 0.2rem rgba(var(--navy), 0.75); }
textarea.field__input { height: auto; min-height: 10rem; padding-top: 2.6rem; resize: vertical; }
.field__input::placeholder { opacity: 0; }
.field__label {
  position: absolute;
  left: 1.5rem;
  top: 1.1rem;
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 0.1rem;
  color: rgba(var(--navy), 0.75);
  pointer-events: none;
  transition: top .1s ease, font-size .1s ease;
}
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label {
  top: 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.04rem;
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__privacy { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.6rem; margin: 0 0 2.5rem; }
.contact__button .button { font-size: 1.6rem; }
.contact__privacy input { margin-top: 0.6rem; }
.contact__button { margin-top: 1rem; }
.form-status { margin: 0 0 2.5rem; padding: 1.5rem 2rem; font-size: 1.6rem; }
.form-status--success { background: rgba(var(--navy), 0.05); border-left: 0.4rem solid #428445; color: rgb(var(--navy)); }
.form-status--error { background: rgba(var(--navy), 0.05); border-left: 0.4rem solid #b3261e; color: rgb(var(--navy)); }
.form-status ul { margin: 0.5rem 0 0; padding-left: 2rem; }
.form-status p { margin: 0; }

/* ---------- HTML personalitzat ---------- */
.section--html h3 { margin-top: 0; }

/* ---------- Peu ---------- */
.footer {
  border-top: 0.1rem solid rgba(var(--navy), 0.08);
  color: rgba(var(--navy), 0.75);
}
.footer__content-top { padding-top: 3.6rem; padding-bottom: 3.6rem; text-align: center; }
.footer__menu { justify-content: center; }
.footer__menu > li { margin-right: 0; }
.footer__menu a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  color: rgba(var(--navy), 0.75);
  text-decoration: none;
}
.footer__menu a:hover { color: rgb(var(--navy)); text-decoration: underline; text-underline-offset: 0.3rem; }
.footer__note { margin-top: 1.5rem; font-size: 1.4rem; }
.footer__content-bottom {
  border-top: 0.1rem solid rgba(var(--navy), 0.08);
  padding: 3rem 0;
}
.footer__copyright { display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.copyright__content { font-size: 1.1rem; }
.copyright__content + .copyright__content::before { content: "·"; margin: 0 0.8rem; }
.copyright__content a { color: currentColor; text-decoration: none; }
.copyright__content a:hover { text-decoration: underline; }
@media (max-width: 749px) { .footer__copyright { justify-content: center; } }

/* ---------- Animació d'aparició (com Dawn) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .scroll-trigger { opacity: 0.01; transform: translateY(2rem); }
  .js .scroll-trigger.is-visible {
    opacity: 1; transform: none;
    transition: opacity .6s cubic-bezier(0, 0, .3, 1), transform .6s cubic-bezier(0, 0, .3, 1);
  }
}
