/*--------------------------------------------------------------
# Recovery Outfit Custom Blocks - UnCommons Style
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Hero Text Block
--------------------------------------------------------------*/

.ro-hero-text-block {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.ro-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ro-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.ro-hero-heading {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  text-transform: lowercase;
}

.ro-hero-subheading {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 2rem;
  text-transform: lowercase;
}

.ro-hero-description {
  font-family: var(--font-primary, "Karla", sans-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Color Themes */
.ro-hero-text-block.theme-dark .ro-hero-overlay {
  background: rgba(27, 38, 28, 0.7);
}

.ro-hero-text-block.theme-dark {
  color: #fff;
}

.ro-hero-text-block.theme-green .ro-hero-overlay {
  background: rgba(111, 144, 68, 0.8);
}

.ro-hero-text-block.theme-green {
  color: #fff;
}

.ro-hero-text-block.theme-cream .ro-hero-overlay {
  background: rgba(250, 246, 241, 0.9);
}

.ro-hero-text-block.theme-cream {
  color: #1b261c;
}

.ro-hero-text-block.theme-orange .ro-hero-overlay {
  background: rgba(218, 165, 32, 0.8);
}

.ro-hero-text-block.theme-orange {
  color: #fff;
}

/* Text Alignment */
.ro-hero-text-block.text-left .ro-hero-content {
  text-align: left;
  margin-left: 0;
}

.ro-hero-text-block.text-center .ro-hero-content {
  text-align: center;
}

.ro-hero-text-block.text-right .ro-hero-content {
  text-align: right;
  margin-right: 0;
}

/*--------------------------------------------------------------
## Feature Block - Overlapping Rectangles
--------------------------------------------------------------*/

.ro-feature-block {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin: 2rem 0;
}

.ro-feature-background {
  position: absolute;
  top: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s ease;
}

.ro-feature-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 50vh;
  padding: 4rem 0;
}

.ro-feature-text {
  width: 50%;
  padding: 3rem 2rem;
  position: relative;
  z-index: 3;
}

.ro-feature-title {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-transform: capitalize;
}

.ro-feature-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.ro-feature-button {
  display: inline-block;
}

/* Layout Variations */
.ro-feature-block.layout-left .ro-feature-background {
  left: 0;
  background: linear-gradient(90deg, var(--overlay-color, rgba(27, 38, 28, 0.8)) 0%, transparent 100%);
}

.ro-feature-block.layout-left .ro-feature-text {
  margin-left: 0;
}

.ro-feature-block.layout-right .ro-feature-background {
  right: 0;
  background: linear-gradient(-90deg, var(--overlay-color, rgba(27, 38, 28, 0.8)) 0%, transparent 100%);
}

.ro-feature-block.layout-right .ro-feature-text {
  margin-left: auto;
}

/* Color Themes */
.ro-feature-block.theme-green {
  --overlay-color: rgba(111, 144, 68, 0.85);
  color: #fff;
}

.ro-feature-block.theme-cream {
  --overlay-color: rgba(250, 246, 241, 0.95);
  color: #1b261c;
}

.ro-feature-block.theme-orange {
  --overlay-color: rgba(218, 165, 32, 0.85);
  color: #fff;
}

.ro-feature-block.theme-dark {
  --overlay-color: rgba(27, 38, 28, 0.85);
  color: #fff;
}

/*--------------------------------------------------------------
## CTA Block
--------------------------------------------------------------*/

.ro-cta-block {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
  margin: 4rem 0;
}

.ro-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ro-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 4rem 2rem;
}

.ro-cta-heading {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

.ro-cta-description {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 2.5rem;
}

.ro-cta-button {
  display: inline-block;
}

/* CTA Color Themes */
.ro-cta-block.theme-dark .ro-cta-overlay {
  background: rgba(27, 38, 28, 0.8);
}

.ro-cta-block.theme-dark {
  color: #fff;
}

.ro-cta-block.theme-green .ro-cta-overlay {
  background: rgba(111, 144, 68, 0.8);
}

.ro-cta-block.theme-green {
  color: #fff;
}

.ro-cta-block.theme-cream .ro-cta-overlay {
  background: rgba(250, 246, 241, 0.9);
}

.ro-cta-block.theme-cream {
  color: #1b261c;
}

.ro-cta-block.theme-orange .ro-cta-overlay {
  background: rgba(218, 165, 32, 0.8);
}

.ro-cta-block.theme-orange {
  color: #fff;
}

/*--------------------------------------------------------------
## Instagram Block
--------------------------------------------------------------*/

.ro-instagram-block {
  padding: 4rem 0;
  text-align: center;
  margin: 2rem 0;
}

.ro-instagram-header {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.ro-instagram-title {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 1rem;
  text-transform: lowercase;
}

.ro-instagram-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.ro-instagram-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.ro-instagram-handle i {
  font-size: 1.5rem;
}

.ro-instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.ro-instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
  position: relative;
}

.ro-instagram-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
  background-size: 20px 20px;
}

.ro-instagram-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ro-instagram-placeholder span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Instagram Color Themes */
.ro-instagram-block.theme-light {
  background-color: #fff;
  color: #1b261c;
}

.ro-instagram-block.theme-green {
  background-color: rgba(111, 144, 68, 0.05);
  color: #1b261c;
}

.ro-instagram-block.theme-cream {
  background-color: #faf6f1;
  color: #1b261c;
}

.ro-instagram-block.theme-dark {
  background-color: #1b261c;
  color: #fff;
}

.ro-instagram-block.theme-dark .ro-instagram-item {
  background: rgba(255, 255, 255, 0.1);
}

.ro-instagram-block.theme-dark .ro-instagram-placeholder {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .ro-instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .ro-instagram-block {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .ro-instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*--------------------------------------------------------------
## Info Block
--------------------------------------------------------------*/

.ro-info-block {
  padding: 3rem 0;
  text-align: center;
  margin: 2rem 0;
}

.ro-info-content {
  max-width: 600px;
  margin: 0 auto;
}

.ro-info-title {
  font-family: var(--font-display, "Butler", serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  text-transform: capitalize;
}

.ro-info-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* Info Color Themes */
.ro-info-block.theme-light {
  background-color: #f8f9fa;
  color: #1b261c;
}

.ro-info-block.theme-green {
  background-color: rgba(111, 144, 68, 0.1);
  color: #1b261c;
}

.ro-info-block.theme-cream {
  background-color: #faf6f1;
  color: #1b261c;
}

.ro-info-block.theme-dark {
  background-color: #1b261c;
  color: #fff;
}

/*--------------------------------------------------------------
## Responsive Design
--------------------------------------------------------------*/

@media (max-width: 768px) {
  .ro-feature-block {
    min-height: auto;
  }
  
  .ro-feature-content {
    flex-direction: column;
    min-height: auto;
    padding: 2rem 0;
  }
  
  .ro-feature-text {
    width: 100%;
    padding: 2rem 1rem;
  }
  
  .ro-feature-background {
    position: relative;
    width: 100%;
    height: 200px;
    order: -1;
  }
  
  .ro-feature-block.layout-left .ro-feature-background,
  .ro-feature-block.layout-right .ro-feature-background {
    background: var(--overlay-color, rgba(27, 38, 28, 0.8));
  }
  
  .ro-hero-text-block,
  .ro-cta-block {
    background-attachment: scroll;
    min-height: 50vh;
  }
  
  .ro-hero-content,
  .ro-cta-content {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .ro-hero-content,
  .ro-cta-content {
    padding: 2rem 1rem;
  }
  
  .ro-info-block {
    padding: 2rem 0;
  }
}
