/* ============================================================
   RITUAL STUDIO — Brand Stylesheet
   Silent Luxury · Sintra, Portugal
   ============================================================ */

/* ------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500&display=swap');


/* ------------------------------------------------------------
   2. DESIGN TOKENS — CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Paleta Principal */
  --color-bg:           #F9F8F5;
  --color-bg-alt:       #F2F0EB;
  --color-text:         #2C302E;
  --color-text-muted:   #7A7E7C;
  --color-border:       rgba(44, 48, 46, 0.12);

  /* Acentos */
  --color-moss:         #4A5C4E;       /* Verde musgo profundo */
  --color-moss-light:   #6B7E6F;
  --color-bronze:       #8B7355;       /* Bronze mate */
  --color-bronze-light: #A89070;
  --color-white:        #FFFFFF;

  /* Tipografia */
  --font-serif:         'Cormorant Garamond', Georgia, serif;
  --font-sans:          'Montserrat', 'Inter', sans-serif;

  /* Pesos */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;

  /* Escala tipográfica */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.375rem;   /* 22px */
  --text-xl:   1.75rem;    /* 28px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3rem;       /* 48px */
  --text-4xl:  4rem;       /* 64px */
  --text-5xl:  5.5rem;     /* 88px */

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Bordas & Raios */
  --border-thin:   0.5px solid var(--color-border);
  --border-fine:   1px solid var(--color-border);
  --border-accent: 1px solid var(--color-moss);
  --radius-sm:     2px;
  --radius-md:     4px;

  /* Transições */
  --ease-silk:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --duration-sm: 200ms;
  --duration-md: 400ms;
  --duration-lg: 700ms;

  /* Sombras */
  --shadow-soft: 0 4px 32px rgba(44, 48, 46, 0.06);
  --shadow-card: 0 2px 16px rgba(44, 48, 46, 0.08);
}


/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-sm) var(--ease-silk);
}

ul, ol {
  list-style: none;
  margin-bottom: 0;
}

/* Selecção de texto */
::selection {
  background: var(--color-moss);
  color: var(--color-bg);
}




/* ------------------------------------------------------------
   5. TIPOGRAFIA
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.serif       { font-family: var(--font-serif); }
.sans        { font-family: var(--font-sans); }

.label-caps {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.label-caps--accent {
  color: var(--color-moss);
}

.label-caps--on-dark {
  color: rgba(249, 248, 245, 0.5);
}

.text-muted   { color: var(--color-text-muted); }
.text-moss    { color: var(--color-moss); }
.text-bronze  { color: var(--color-bronze); }


/* ------------------------------------------------------------
   6. ANIMAÇÕES DE ENTRADA (Intersection Observer)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-lg) var(--ease-expo),
              transform var(--duration-lg) var(--ease-expo);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 350ms; }
.reveal--delay-4 { transition-delay: 500ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--duration-lg) var(--ease-expo),
              transform var(--duration-lg) var(--ease-expo);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}


/* ------------------------------------------------------------
   7. NAVBAR
   ------------------------------------------------------------ */
.navbar-ritual {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-md) var(--ease-silk),
              padding var(--duration-md) var(--ease-silk),
              box-shadow var(--duration-md) var(--ease-silk);
  background: transparent;
}

.navbar-ritual.is-scrolled {
  background: rgba(249, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-4) var(--space-8);
  box-shadow: 0 1px 0 var(--color-border);
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--fw-light);
  letter-spacing: 0.05em;
  color: var(--color-bg);
  transition: color var(--duration-md) var(--ease-silk);
}

.nav-logo span {
  color: rgba(249, 248, 245, 0.6);
  transition: color var(--duration-md) var(--ease-silk);
}

.navbar-ritual.is-scrolled .nav-logo {
  color: var(--color-text);
}

.navbar-ritual.is-scrolled .nav-logo span {
  color: var(--color-moss);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.85);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-sm) var(--ease-silk);
}

.navbar-ritual.is-scrolled .nav-link {
  color: var(--color-text);
}

/* Hamburger sobre fundo escuro */
.nav-toggle span {
  background: var(--color-bg);
}

.navbar-ritual.is-scrolled .nav-toggle span {
  background: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--color-moss);
  transition: width var(--duration-md) var(--ease-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Menu mobile (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 0.5px;
  transition: transform var(--duration-md) var(--ease-expo),
              opacity var(--duration-md) var(--ease-expo),
              background var(--duration-md) var(--ease-silk);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile .nav-link {
  color: var(--color-text);
  text-align: center;
}

.nav-mobile .nav-link::after {
  left: 50%;
  transform: translateX(-50%);
}

.nav-mobile .nav-link:hover::after,
.nav-mobile .nav-link.active::after {
  left: 50%;
  transform: translateX(-50%);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-20) var(--space-8);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-md) var(--ease-silk);
}

.nav-mobile ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-left: 0;
}

.nav-mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease;
}

.nav-mobile__close:hover { opacity: 0.5; }

.nav-mobile .nav-link {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-xl), 6vw, var(--text-2xl));
  font-weight: var(--fw-light);
  letter-spacing: 0.02em;
  text-transform: none;
}


/* ------------------------------------------------------------
   8. BOTÕES
   ------------------------------------------------------------ */

/* Ghost button (principal) */
.btn-ritual {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 0.5px solid var(--color-text);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--duration-md) var(--ease-silk),
              border-color var(--duration-md) var(--ease-silk);
}

.btn-ritual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-md) var(--ease-expo);
  z-index: 0;
}

.btn-ritual:hover::before {
  transform: scaleX(1);
}

.btn-ritual:hover {
  color: var(--color-bg);
  border-color: var(--color-moss);
}

.btn-ritual span, .btn-ritual i {
  position: relative;
  z-index: 1;
}

/* Solid / filled */
.btn-ritual--solid {
  background: var(--color-moss);
  border-color: var(--color-moss);
  color: var(--color-bg);
}

.btn-ritual--solid::before {
  background: var(--color-text);
}

/* Bronze accent */
.btn-ritual--bronze {
  border-color: var(--color-bronze);
  color: var(--color-bronze);
}

.btn-ritual--bronze::before {
  background: var(--color-bronze);
}

/* Link underline */
.btn-ritual--link {
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-moss);
  position: relative;
}

.btn-ritual--link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 0.5px;
  background: var(--color-moss);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--duration-md) var(--ease-expo);
}

.btn-ritual--link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.btn-ritual--link::before { display: none; }


/* ------------------------------------------------------------
   9. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-32) var(--space-8) var(--space-20);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #4A5C4E;
  z-index: 0;
}

/* Ornamento decorativo */
.hero__ornament {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--color-moss);
  pointer-events: none;
}

.hero__ornament--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
}

.hero__ornament--2 {
  width: 300px;
  height: 300px;
  bottom: 50px;
  left: -80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero__eyebrow {
  margin-bottom: var(--space-8);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 7vw, var(--text-5xl));
  font-weight: var(--fw-light);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-bg);
}

.hero__title em {
  font-style: italic;
  color: rgba(249, 248, 245, 0.65);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--fw-light);
  color: rgba(249, 248, 245, 0.6);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto var(--space-12);
  letter-spacing: 0.01em;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 1;
}

.hero__scroll-line {
  width: 0.5px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(249, 248, 245, 0.5));
  animation: scrollPulse 2s var(--ease-silk) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}


/* ------------------------------------------------------------
   10. SECTION BASE
   ------------------------------------------------------------ */
.section {
  padding: var(--space-32) 0;
  scroll-margin-top: 60px;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-text);
  color: var(--color-bg);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-bg);
}

.section-header {
  margin-bottom: var(--space-20);
}

.section-header--center {
  text-align: center;
}

.section__eyebrow {
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--fw-light);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__lead {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 540px;
}

.section-header--center .section__lead {
  margin: var(--space-6) auto 0;
}

/* Divider ornamental */
.divider-ritual {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.divider-ritual::before,
.divider-ritual::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--color-border);
}

.divider-ritual__symbol {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-bronze);
  font-style: italic;
}


/* ------------------------------------------------------------
   11. ABOUT / STORYTELLING
   ------------------------------------------------------------ */
.about {
  padding: var(--space-32) 0;
}

.about__image-wrap {
  position: relative;
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 580px;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease-silk);
}

.about__image-wrap:hover .about__image {
  transform: scale(1.03);
}

.about__frame {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: -var(--space-4);
  bottom: -var(--space-4);
  border: 0.5px solid var(--color-moss);
  pointer-events: none;
  z-index: -1;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-12);
}

.about__quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-moss);
  border-left: 1px solid var(--color-moss);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

.about__body {
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.85;
}

.about__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: var(--border-thin);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--fw-light);
  color: var(--color-text);
  line-height: 1;
}

.stat__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}


/* ------------------------------------------------------------
   12. SERVIÇOS
   ------------------------------------------------------------ */
.services {
  background: var(--color-bg-alt);
}

.service-card {
  padding: var(--space-10) var(--space-8);
  border: var(--border-thin);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration-md) var(--ease-silk),
              border-color var(--duration-md) var(--ease-silk);
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--color-moss), var(--color-bronze));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-md) var(--ease-expo);
}

.service-card:hover {
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-moss);
  margin-bottom: var(--space-6);
  stroke-width: 1;
}

.service-card__number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: var(--fw-light);
  color: var(--color-border);
  line-height: 1;
  pointer-events: none;
  transition: color var(--duration-md) var(--ease-silk);
}

.service-card:hover .service-card__number {
  color: rgba(74, 92, 78, 0.1);
}

.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: var(--border-thin);
}

.service-card__price {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-bronze);
}

.service-card__duration {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-moss);
  text-decoration: none;
  transition: gap 200ms ease, color 200ms ease;
}

.service-card__link::after {
  content: '→';
  transition: transform 200ms ease;
}

.service-card__link:hover {
  color: var(--color-text);
  gap: var(--space-3);
}


/* ------------------------------------------------------------
   13. GALERIA
   ------------------------------------------------------------ */
.gallery {
  background: var(--color-bg);
}

/* Grelha editorial CSS Grid assimétrica */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--space-3);
}

/* Linha 1 */
.gallery-item--tall        { grid-column: 1 / 8;  grid-row: 1; }
.gallery-item--small-top   { grid-column: 8 / 13; grid-row: 1; align-self: start; }
.gallery-item--small-bottom { display: none; } /* integrado no layout abaixo */

/* Linha 2 */
.gallery-item--wide        { grid-column: 1 / 10; grid-row: 2; }
.gallery-item--portrait    { grid-column: 10 / 13; grid-row: 2; }

/* Linha 3 */
.gallery-item--medium:nth-of-type(6) { grid-column: 1 / 7;  grid-row: 3; }
.gallery-item--medium:nth-of-type(7) { grid-column: 7 / 13; grid-row: 3; }

/* Item base */
.gallery-item__wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Alturas das linhas */
.gallery-item--tall        .gallery-item__wrap { height: 480px; }
.gallery-item--small-top   .gallery-item__wrap { height: 480px; }
.gallery-item--wide        .gallery-item__wrap { height: 340px; }
.gallery-item--portrait    .gallery-item__wrap { height: 340px; }
.gallery-item--medium      .gallery-item__wrap { height: 300px; }

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 900ms var(--ease-silk);
}

.gallery-item__wrap:hover .gallery-item__img {
  transform: scale(1.06);
}

/* Caption */
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(to top, rgba(44,48,46,0.55) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--duration-md) var(--ease-silk),
              transform var(--duration-md) var(--ease-silk);
}

.gallery-item__wrap:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item__caption span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.9);
}

/* Mobile — grelha 2 colunas */
@media (max-width: 767.98px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .gallery-item--tall,
  .gallery-item--small-top,
  .gallery-item--small-bottom,
  .gallery-item--wide,
  .gallery-item--portrait,
  .gallery-item--medium {
    grid-column: span 1;
    grid-row: auto;
  }

  /* Sobrepor especificidade dos seletores nth-of-type do desktop */
  .gallery-item--medium:nth-of-type(6),
  .gallery-item--medium:nth-of-type(7) {
    grid-column: span 1;
    grid-row: auto;
  }

  .gallery-item--tall        .gallery-item__wrap,
  .gallery-item--small-top   .gallery-item__wrap,
  .gallery-item--small-bottom .gallery-item__wrap,
  .gallery-item--wide        .gallery-item__wrap,
  .gallery-item--portrait    .gallery-item__wrap,
  .gallery-item--medium      .gallery-item__wrap { height: 220px; }

  /* Imagem destaque ocupa as duas colunas */
  .gallery-item--tall { grid-column: 1 / -1; }
  .gallery-item--tall .gallery-item__wrap { height: 300px; }

  /* Mostrar small-bottom em mobile */
  .gallery-item--small-bottom { display: block; }
}


/* ------------------------------------------------------------
   14. TESTIMONIALS
   ------------------------------------------------------------ */
.testimonials {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-32) 0;
}

.testimonials .section__title { color: var(--color-bg); }
.testimonials .label-caps     { color: rgba(249,248,245,0.4); }

.testimonial-item {
  padding: var(--space-10);
  border: 0.5px solid rgba(249, 248, 245, 0.1);
  height: 100%;
  position: relative;
}

.testimonial-item__quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-moss-light);
  margin-bottom: var(--space-4);
  display: block;
}

.testimonial-item__text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.6;
  color: rgba(249, 248, 245, 0.85);
  margin-bottom: var(--space-8);
}

.testimonial-item__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid rgba(249,248,245,0.2);
}

.testimonial-item__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-bg);
  letter-spacing: 0.05em;
}

.testimonial-item__role {
  font-size: var(--text-xs);
  color: rgba(249, 248, 245, 0.4);
  letter-spacing: 0.1em;
}


/* ------------------------------------------------------------
   15. CONTACTO / CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--color-moss);
  color: var(--color-bg);
  padding: var(--space-24) 0;
  text-align: center;
  scroll-margin-top: 60px;
}

.cta-banner__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--fw-light);
  color: var(--color-bg);
  margin-bottom: var(--space-4);
}

.cta-banner__subtitle {
  font-size: var(--text-md);
  font-weight: var(--fw-light);
  color: rgba(249, 248, 245, 0.7);
  margin-bottom: var(--space-10);
}

.btn-ritual--on-dark {
  color: var(--color-bg);
  border-color: rgba(249, 248, 245, 0.5);
}

.btn-ritual--on-dark::before {
  background: var(--color-bg);
}

.btn-ritual--on-dark:hover {
  color: var(--color-moss);
}


/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--color-text);
  color: rgba(249, 248, 245, 0.6);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  color: var(--color-bg);
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249,248,245,0.35);
  margin-bottom: var(--space-8);
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.9;
  color: rgba(249, 248, 245, 0.5);
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.35);
  margin-bottom: var(--space-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: 0;
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(249, 248, 245, 0.5);
  transition: color var(--duration-sm) var(--ease-silk);
}

.footer__link:hover {
  color: var(--color-bg);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0.5px solid rgba(249, 248, 245, 0.15);
  color: rgba(249, 248, 245, 0.4);
  transition: color var(--duration-sm) var(--ease-silk),
              border-color var(--duration-sm) var(--ease-silk);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__social-link:hover {
  color: var(--color-bg);
  border-color: rgba(249, 248, 245, 0.4);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  margin-top: var(--space-16);
  border-top: 0.5px solid rgba(249, 248, 245, 0.08);
}

.footer__copy,
.footer__legal {
  font-size: var(--text-xs);
  color: rgba(249, 248, 245, 0.3);
  letter-spacing: 0.05em;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  color: rgba(249, 248, 245, 0.3);
  transition: color var(--duration-sm) var(--ease-silk);
}

.footer__legal a:hover {
  color: rgba(249, 248, 245, 0.7);
}


/* ------------------------------------------------------------
   17. UTILITIES
   ------------------------------------------------------------ */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.aspect-portrait { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.aspect-landscape { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.aspect-square    { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.border-top    { border-top: var(--border-thin); }
.border-bottom { border-bottom: var(--border-thin); }
.border-left   { border-left: var(--border-thin); }

.mt-section { margin-top: var(--space-32); }
.mb-section { margin-bottom: var(--space-32); }

.bg-bg     { background: var(--color-bg); }
.bg-alt    { background: var(--color-bg-alt); }
.bg-moss   { background: var(--color-moss); }
.bg-bronze { background: var(--color-bronze); }
.bg-dark   { background: var(--color-text); }


/* ------------------------------------------------------------
   18. SCROLL TOP
   ------------------------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 990;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 0.5px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--duration-md) var(--ease-expo),
              transform var(--duration-md) var(--ease-expo),
              background var(--duration-sm) var(--ease-silk),
              border-color var(--duration-sm) var(--ease-silk),
              color var(--duration-sm) var(--ease-silk);
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-moss);
  border-color: var(--color-moss);
  color: var(--color-bg);
}

/* ------------------------------------------------------------
   19. RESPONSIVIDADE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .about__content {
    padding: var(--space-8) var(--space-4);
  }

  .about__stats {
    gap: var(--space-6);
  }
}

@media (max-width: 767.98px) {
  :root {
    --text-5xl: 3.5rem;
    --text-4xl: 2.5rem;
    --text-3xl: 2.25rem;
  }

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

  .hero {
    padding: var(--space-24) var(--space-4) var(--space-16);
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .about__image {
    height: 380px;
  }

  .about__stats {
    flex-wrap: wrap;
  }

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

  .navbar-ritual {
    padding: var(--space-4) var(--space-6);
  }

  .navbar-ritual.is-scrolled {
    padding: var(--space-3) var(--space-6);
  }

}

@media (max-width: 575.98px) {
  .service-card {
    padding: var(--space-8) var(--space-6);
  }

  .testimonial-item {
    padding: var(--space-8) var(--space-6);
  }

  .footer__legal {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left {
    opacity: 1;
    transform: none;
  }
}
