/*
Theme Name: Rubirosa Barber
Theme URI: https://nx-code.de/
Author: Rubirosa Barber
Author URI: https://nx-code.de/
Description: Rubirosa Barber theme with premium hero layout.
Version: 0.1.0
License: GPL-2.0-or-later
Text Domain: rubirosa_barber
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  --rb-black: #0b0f0e;
  --rb-deep: #0f1513;
  --rb-gold: #c9a45c;
  --rb-light: #f5f1e8;
  --rb-muted: #b7aa93;
  --rb-border: rgba(201, 164, 92, 0.25);
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: var(--rb-black);
  color: var(--rb-light);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201, 164, 92, 0.35);
  pointer-events: none;
  z-index: 20;
}

body::after {
  inset: 26px;
  border-color: rgba(201, 164, 92, 0.18);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 26px;
  left: 26px;
  right: 26px;
  z-index: 10;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
  background: rgba(8, 12, 11, 0.45);
  backdrop-filter: blur(6px);
  animation: header-fade 0.8s ease-out both;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.6), transparent);
  opacity: 0.8;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 11, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rb-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.7);
  background: rgba(8, 12, 11, 0.5);
  color: var(--rb-gold);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-nav__toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav__toggle:hover {
  border-color: var(--rb-gold);
  background: rgba(201, 164, 92, 0.1);
  box-shadow: 0 0 12px rgba(201, 164, 92, 0.25);
}

.site-header.is-open .site-nav__toggle-line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .site-nav__toggle-line:nth-child(3) {
  opacity: 0;
}

.site-header.is-open .site-nav__toggle-line:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav a {
  color: var(--rb-light);
  opacity: 0.85;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rb-gold), transparent);
  transition: width 0.35s ease;
  opacity: 0.8;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--rb-gold);
  border-color: rgba(201, 164, 92, 0.8);
  background: rgba(201, 164, 92, 0.08);
  box-shadow: 0 0 12px rgba(201, 164, 92, 0.18);
}

.site-nav a:hover::after {
  width: 76%;
}

.nav-cta {
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(201, 164, 92, 0.25) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.nav-cta:hover::before {
  transform: translateX(120%);
}

.header__inner {
  position: relative;
}

.header__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.6), transparent);
  opacity: 0.8;
  animation: header-glow 3.6s ease-in-out infinite;
}

@keyframes header-fade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes rb-hero-pan {
  0% {
    background-position: 30% center;
    background-size: auto 100%;
  }
  100% {
    background-position: 82% center;
    background-size: auto 100%;
  }
}

.rb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.rb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header__inner::after,
  .site-nav a::after,
  .nav-cta::before,
  .site-nav__toggle-line,
  .hero {
    animation: none;
    transition: none;
  }

  .rb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--rb-gold);
  color: var(--rb-gold);
}

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("assets/img/background_image.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding-top: 7rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 15, 0.92) 0%,
    rgba(6, 20, 15, 0.75) 15%,
    rgba(6, 20, 15, 0.3) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-left: clamp(2rem, 8vw, 8rem);
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 4.5vw, 4.4rem);
  line-height: 1.12;
  margin: 0 0 1.2rem;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.75);
  margin: 0 0 2.2rem;
}

#services,
#ambiente,
#termin {
  scroll-margin-top: 140px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--rb-muted);
  margin: 0 0 1rem;
}

.showcase {
  position: relative;
  padding: 5rem 0 3.5rem;
  background: radial-gradient(circle at 10% 20%, rgba(201, 164, 92, 0.12), transparent 55%);
}

.showcase__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.showcase__copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.showcase__copy p {
  margin: 0;
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.7;
}

.showcase__mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 1.2rem;
}

.mosaic__item {
  position: relative;
  border: 1px solid var(--rb-border);
  overflow: hidden;
  background: rgba(10, 14, 12, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.mosaic__item--large {
  grid-column: span 4;
  grid-row: span 3;
}

.mosaic__item:not(.mosaic__item--large) {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}

.mosaic__item figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rb-light);
  background: rgba(11, 15, 14, 0.75);
  border: 1px solid rgba(201, 164, 92, 0.5);
}

.ambiente {
  padding: 3.5rem 0 6rem;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.1), rgba(15, 21, 19, 0.6));
  overflow: hidden;
}

.ambiente__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.ambiente__stack {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.stack__image {
  position: absolute;
  width: 70%;
  border: 1px solid var(--rb-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.stack__image--one {
  top: -180px;
  left: 0;
  transform: rotate(-2deg);
  z-index: 2;
}

.stack__image--two {
  bottom: 0;
  right: 0;
  transform: rotate(2deg);
  opacity: 0.45;
  filter: blur(1px) saturate(0.9);
  z-index: 0;
}

.ambiente__content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.ambiente__content p {
  margin: 0 0 1.5rem;
  color: rgba(245, 241, 232, 0.72);
  line-height: 1.7;
}

.ambiente__logo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 1px solid var(--rb-border);
  padding: 0.45rem;
  background: rgba(10, 14, 12, 0.6);
  object-fit: cover;
}

.btn-gold {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--rb-gold);
  color: var(--rb-gold);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: var(--rb-gold);
  color: #0c1512;
}

.site-footer {
  background: var(--rb-deep);
  border-top: 1px solid var(--rb-border);
  padding: 2.5rem 0;
}

.legal {
  padding: 9rem 0 5rem;
  min-height: 70vh;
  background: radial-gradient(circle at 20% 10%, rgba(201, 164, 92, 0.08), transparent 60%);
}

.legal__inner h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 1.4rem;
}

.legal__content {
  color: rgba(245, 241, 232, 0.75);
  line-height: 1.7;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.footer__text {
  margin: 0;
  color: rgba(245, 241, 232, 0.7);
  max-width: 360px;
}

.footer__meta {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.55);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rb-muted);
}

@media (max-width: 900px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal {
    padding-top: 7.5rem;
  }

  .showcase__inner,
  .ambiente__inner {
    grid-template-columns: 1fr;
  }

  .ambiente__stack {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  body::before {
    inset: 12px;
  }

  body::after {
    inset: 18px;
  }

  .hero {
    background-position: 30% center;
    background-size: auto 100%;
    animation: rb-hero-pan 18s ease-in-out infinite alternate;
  }

  .hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(6, 20, 15, 0.88) 0%,
      rgba(6, 20, 15, 0.7) 18%,
      rgba(6, 20, 15, 0.28) 36%,
      rgba(0, 0, 0, 0) 60%
    );
  }

  .hero__content {
    padding: 2rem 0;
  }

  #services,
  #ambiente,
  #termin {
    scroll-margin-top: 110px;
  }

  .showcase {
    padding: 4rem 0 3rem;
  }

  .showcase__mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
  }

  .mosaic__item--large,
  .mosaic__item:not(.mosaic__item--large) {
    grid-column: span 4;
    grid-row: span 2;
  }

  .ambiente__stack {
    min-height: auto;
  }

  .stack__image {
    position: static;
    width: 100%;
    margin-bottom: 1.2rem;
    transform: none;
  }

  .stack__image:last-child {
    margin-bottom: 0;
  }

  .site-nav {
    letter-spacing: 0.12em;
    gap: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .site-header {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .site-header.is-open .site-nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    margin-top: 0.8rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .site-nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  .site-nav {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .header__inner {
    padding: 1rem 0;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .brand__tagline {
    letter-spacing: 0.18em;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.6rem;
    letter-spacing: 0.12em;
  }

  .site-nav a {
    text-align: center;
    padding: 0.65rem 1rem;
  }

  .hero {
    min-height: 100svh;
    padding: 6.5rem 0 3rem;
  }

  .hero__content {
    padding: 0 1.2rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.1rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn-gold {
    width: 100%;
    text-align: center;
  }

  .footer__cta {
    width: 100%;
  }
}
