:root {
  --cream: #f6efdf;
  --cream-light: #fffaf0;
  --red: #b1201f;
  --red-dark: #80101a;
  --ink: #39231c;
  --muted: #836b5c;
  --serif: "the-seasons", Georgia, serif;
  --sans: "neue-haas-grotesk-display", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5.4vw, 5.25rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 112px;
  padding: 1.2rem var(--gutter);

  .header-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
}

.brand {
  display: block;
  width: 12rem;
  aspect-ratio: 1;
  margin-top: 0rem;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 3rem);
  padding-top: 1rem;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .035em;
}

.main-nav a {
  text-decoration: none;
  transition: color .2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
}

.container {
  max-width: 1320px;
  padding: 0 1rem;
  margin: auto;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 3.5rem;
}

.hero {
  min-height: min(760px, 92vh);
  min-height: min(760px, 92svh);
  position: relative;
  background: linear-gradient(105deg, #f8efdf, #c9aa85 100%);
}

#inici {
  background-image: url(hero-v2.jpg);
  background-size: cover;
  background-position: center right;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 1.5rem;
      display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--red);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.section-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

.hero h1 {
  color: var(--red);
  font-size: clamp(3.8rem, 6vw, 5.3rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 2rem;
  width: min-content;
}

.button {
  display: inline-flex;
  gap: 1.3rem;
  align-items: center;
  border-radius: 99px;
  padding: .9rem 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .03em;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-red {
  background: var(--red);
  color: white;
}

.button-red:hover {
  background: var(--red-dark);
}

.image-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #c5a986, #e8d4b7 48%, #a88a69);
  color: rgba(65, 39, 25, .78);
  overflow: hidden;
}

.image-placeholder span {
  font: 400 1.35rem var(--serif);
}

.image-placeholder small {
  font-size: .68rem;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 57%;
  height: 100%;
  background: linear-gradient(120deg, rgba(221, 197, 160, .4), rgba(77, 50, 30, .18)), radial-gradient(ellipse at 55% 45%, #644833 0 19%, transparent 20%), linear-gradient(90deg, #e1c9a7, #80664c);
}

.hero-image span {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
}

.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 1.2rem;
  z-index: 2;
  color: #fff9ee;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tomato-image {
  background: linear-gradient(145deg, #e5d0ad, #fff4de 54%, #b79b77);
  position: relative;
  img {
    position: absolute;
    width: 100%; height: 100%; object-fit: cover;
  }
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 6rem;
  > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

.intro-copy h2 {
  color: var(--red);
  max-width: 620px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: .98;
  margin: 0 0 1.3rem;
  letter-spacing: -.035em;
}

.intro-copy p:not(.eyebrow) {
  max-width: 580px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
  margin: .8rem 0;
  max-width: 35ch;
}

.section-pad {
  padding: clamp(3.6rem, 7vw, 6.25rem) var(--gutter);
}

.ritual {
  background: var(--cream-light);
}

.section-heading {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-heading .eyebrow {
  margin-bottom: .45rem;
}

.section-heading h2 {
  color: var(--red);
  text-transform: uppercase;
  font-size: clamp(2.7rem, 5.5vw, 5.3rem);
  line-height: .98;
  margin: 0;
  letter-spacing: -.035em;
}

.section-subtitle {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  margin: .5rem 0 0;
}

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

.ritual-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  img {
    max-width: 100%;
    mix-blend-mode: multiply;
  }
}

.ritual-step:nth-child(2) .ritual-image {
}

.ritual-step:nth-child(3) .ritual-image {
}

.ritual-step:nth-child(4) .ritual-image {
}

.ritual-step h3 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 1rem;
  margin: .8rem .35rem .25rem;
}

.ritual-step h3 span {
  margin-right: .25rem;
}

.ritual-step p {
  font-size: 1rem;
  margin: 0 .35rem;
  line-height: 1.4;
}

.gallery {
  padding-top: 2.8rem;
  padding-bottom: 3.1rem;
}

.compact-heading {
  margin-bottom: 1.4rem;
}

.compact-heading h2 {
  text-transform: none;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, .8fr) 1.35fr;
  gap: .28rem;
}

.gallery-image {
  min-height: 210px;
  aspect-ratio: .8;
  background: linear-gradient(145deg, #43632f, #bd3528 48%, #ebc47f);
}

.gallery-image span {
  color: #fffaf0;
  text-shadow: 0 1px 5px #47321e;
}

.gallery-image:nth-child(2),
.gallery-image:nth-child(4) {
  background: linear-gradient(135deg, #bea27d, #7d5639 45%, #a92a24);
}

.gallery-image:nth-child(3),
.gallery-image:nth-child(5) {
  background: linear-gradient(135deg, #e4cda9, #b73a2e 60%, #58472f);
}

.gallery-wide {
  aspect-ratio: .8;
}

.closing-banner {
  position: relative;
  height: clamp(260px, 38vw, 510px);
  background: #8f1a20;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.closing-image {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(120deg, #4c2b1e, #a41f25 50%, #5a321e);
}

.closing-image span {
  color: rgba(255, 255, 255, .8);
}

.closing-sticker {
  z-index: 1;
  width: clamp(150px, 27vw, 310px);
  filter: drop-shadow(0 10px 20px rgba(55, 10, 10, .25));
}

.site-footer {
  min-height: 76px;
  padding: 1.3rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--cream-light);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  > * { 
    flex: 1;
    justify-content: center;
    &:first-child { justify-content: start; }
    &:last-child { justify-content: end; }    
  }
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.footer-links,
.social-links {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  text-decoration: none;
  font-size: .65rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .site-header {
    min-height: 84px;
    align-items: flex-center;
  }

  .brand {
    width: 10rem;
    margin-top: 0rem;
    @media (max-width: 576px) { 
      width: 8rem;
    }
  }

  #inici { background-position: center left;}

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 7;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 0;
    background: var(--cream-light);
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-toggle span {
    height: 1.5px;
    width: 100%;
    background: var(--red);
    transition: transform .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    inset: 0 0 auto;
    padding: 6rem var(--gutter) 2rem;
    background: var(--cream-light);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    font-size: .9rem;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: 0 12px 25px #39231c1a;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 9rem var(--gutter) 3rem;
  }

  .hero-wrapper { grid-template-columns: 1fr;}

  .hero-image {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 48%;
  }

  .hero-copy {
    padding-top: .4rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 15vw, 6.2rem);
  }

  .hero-caption {
    bottom: 1rem;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .tomato-image {
    img { position:static;}
  }

  .intro-copy {
    padding: 3rem var(--gutter) 3.5rem;
  }

  .ritual-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    @media (max-width: 576px) {
          grid-template-columns: repeat(1, 1fr);
    }
  }

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

  .gallery-image {
    min-height: 150px;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
      > * { 
      flex: initial;
      justify-content: center;
      &:first-child { justify-content: center; }
      &:last-child { justify-content: center; }    
    }
  }

  .footer-links {
    order: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 2;
  }

  .social-links {
    order: 3;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .section-heading h2 {
    font-size: 2.55rem;
  }

  .section-subtitle {
    font-size: 1.45rem;
  }

  .ritual-grid {
    gap: .6rem;
    row-gap: 2rem;
  }

  .ritual-step p {
    font-size: 1.2rem;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-image {
    min-height: 135px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* WordPress legal page templates */
.legal-page .container { max-width: 980px; }
.legal-page .intro-copy { padding-top: 8rem; padding-bottom: 8rem; }
.legal-page .intro-copy > div { width: 100%; }
.legal-page h3 { color: var(--red); font-size: 1.15rem; margin: 1.25rem 0 .25rem; }
@media (max-width: 768px) { .legal-page .intro-copy { padding: 6rem 0 3rem; } }
