/* ====================================
   COUNTYLINECHURCH - CUSTOM STYLES
   ==================================== */

/* CSS Variables */
:root {
  --clc-primary: #0d6efd;
  --clc-dark: #0f1217;
  --clc-white: #ffffff;
  --clc-white-15: rgba(255, 255, 255, 0.15);
  --clc-font-display: "Funnel Display", sans-serif;
  --clc-font-body: "Nunito", sans-serif;
}

/* Aplicar fuentes globales */
body {
  font-family: var(--clc-font-body);
  background-color: #252838;
  color: var(--clc-white);
}

h1, h2, h3, h4, h5, h6,
.clc-title,
.clc-title-lg,
.clc-title-xl {
  font-family: var(--clc-font-display);
}

/* ====================================
   TYPOGRAPHY
   ==================================== */

.clc-title {
  font-family: var(--clc-font-display);
  text-transform: none;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 3vw;
  font-weight: 400;
  line-height: 1.1em;
  display: inline-block;
}

.clc-title-lg {
  font-family: var(--clc-font-display);
  text-transform: uppercase;
  font-size: 6vw;
  line-height: 0.87em;
  font-weight: 700;
}

.clc-title-xl {
  font-family: var(--clc-font-display);
  text-transform: uppercase;
  font-size: 9vw;
  line-height: 0.87em;
  font-weight: 400;
    letter-spacing: -5px !important;
}

.clc-text {
  font-family: var(--clc-font-body);
  font-size: 1.3vw;
  font-weight: 400;
  line-height: 1.5em;
  color: var(--clc-white);
}

.clc-image-card.text-block .clc-text {
  font-size: 1.2vw;
  font-weight: 400;
  line-height: 1.6em;
  letter-spacing: 0.02em;
}

.clc-text-lg {
  font-family: var(--clc-font-body);
  font-size: 2vw;
  line-height: 1.3em;
}

/* ====================================
   HEADER
   ==================================== */

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Logo Hover Effect */
.logohover {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.logohover li {
  position: relative;
  overflow: hidden;
}

/* Navbar Styles */
.navbar-brand {
  font-size: 1.5rem;
  color: #2c3e50;
}

.nav-link {
  font-weight: 500;
  color: #555;
  margin: 0 1rem;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #0d6efd;
}

.btn-primary {
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
}

/* ====================================
   HERO SECTION
   ==================================== */

.floating-care {
    position: absolute;
    top: 20px;
    left: 0;
    color: white;
    font-weight: 100;
    font-size: 1.2vw;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: initial;
}

.clc-arrow-right {
  width: 116px;
}

.clc-hero-section {
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  padding-top: 6vw;
  padding-bottom: 6vw;
  display: flex;
  position: relative;
  overflow: hidden;  
}

.clc-heading-container {
  grid-column-gap: 3vw;
  grid-row-gap: 3vw;
  filter: drop-shadow(0px 0px 80px var(--clc-dark));
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  z-index: 10;
  position: relative;
}

.clc-subtitle {
  font-family: var(--clc-font-display);
  text-transform: none;
  vertical-align: text-top;
  margin-top: 3.25vw;
  margin-right: 1.5vw;
  font-size: 1.5vw;
  font-weight: 300;
  line-height: 0;
  display: inline-block;
}

.clc-highlight {
  display: inline-block;
  position: relative;
}

.clc-highlight em {
  font-style: italic;
  color: var(--clc-primary);
}

.clc-icon-inline {
  background-position: 0 0;
  background-size: 100% 100%;
  width: 6.2vw;
  height: 6.2vw;
  margin-left: 1vw;
  margin-right: 1vw;
  display: inline-block;
  position: relative;
}

.clc-icon-inline.small {
  width: 4.4268vw;
}

/* ====================================
   IMAGE GALLERY CLOUD EFFECT
   ==================================== */

.clc-gallery-wrap {
  pointer-events: none;
  width: 100%;
  height: 150vh;
  position: absolute;
  top: 0;
  left: 0;
  overflow: clip;
}

.clc-gallery-rows {
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.clc-gallery-rows.back {
  z-index: 1;
}

.clc-gallery-rows.back .clc-image-card {
  opacity: 0.85;
}

.clc-gallery-rows.front .clc-image-card {
  opacity: 1;
}

.clc-gallery-rows.front {
  grid-column-gap: 42vw;
  grid-row-gap: 42vw;
}

.clc-gallery-column {
  box-sizing: content-box;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 14vw;
  display: flex;
  position: relative;
  will-change: transform;
}

.clc-image-card {
  aspect-ratio: 1;
  width: 100%;
  margin-bottom: 14vw;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  opacity: 1;
}

.clc-image-card img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.clc-image-card.text-block {
  text-align: left;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.clc-image-card.offset-large {
  margin-left: -4vw;
  margin-right: 4vw;
}

.clc-image-card.offset-small {
  margin-left: -2vw;
  margin-right: 2vw;
}

.clc-gradient-overlay {
  background-image: linear-gradient(0deg, var(--clc-dark), rgba(15, 18, 23, 0));
  opacity: 1;
  width: 100%;
  height: 50vh;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
}

/* ====================================
   CONTAINER FLUID CUSTOM
   ==================================== */

.container-fluid {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: calc(100% - 12vw);
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-right: auto;
  margin-left: auto;
}

/* ====================================
   SECTION LAYOUT
   ==================================== */

.clc-section {
  width: 100vw;
  padding-top: 6vw;
  padding-bottom: 6vw;
  position: relative;
  color: var(--clc-white);
}

.section-mod h2 {
  font-family: var(--clc-font-display);
  font-size: 3vw;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: white;
}

/* Text Styles */
.clc-text-small {
  font-family: var(--clc-font-body);
  font-size: 1vw;
  font-weight: 300;
  line-height: 1.4em; 
}

.clc-text-display {
  font-family: var(--clc-font-display);
  font-size: 2vw;
  font-weight: 400;
  line-height: 1.3em;
  margin-bottom: 0;
}

/* Link Style */
.clc-link {
  border: 0px;
    border-bottom: 1px solid var(--clc-white);
  color: var(--clc-white);
  cursor: pointer;
  background-color: transparent;
  height: 2.5vw;
  padding: 0.5vw 0 0;
  font-size: 1vw;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  font-family: var(--clc-font-body);
}

.clc-link:hover {
  padding-top: 0;
  color: var(--clc-white);
}

/* Fade up animation class */
.clc-fade-up {
  /* GSAP manejará la animación */
}

/* ====================================
   NEXT EVENTS SECTION
   ==================================== */

.section-mod {
  padding-top: 6vw;
  padding-bottom: 6vw;
}

.sticky-div h2 {
  font-family: var(--clc-font-display);
  font-size: 3vw;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: white;
}

.sticky-div p {
  font-family: var(--clc-font-body);
  font-size: 1.2vw;
  font-weight: 300;
  line-height: 1.6em;
  color: rgba(255,255,255,0.8);
}

.next--events--carousel {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3vw;
}

.next--events--carousel li {
  position: relative;
  height: 80vh;
}

.next--events--carousel li a {
  text-decoration: none;
  display: block;
}

.next--events--carousel li a:hover div.nec--info img {
  transform: rotate(0deg);
}

.next--events--carousel p {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
  color: white;
}

.nec--info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0px 5px;
}

.clc-arrow-right2 {
  width: 20px;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.parallax {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  filter: blur(4px);
  opacity: 0.5;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

.parallax.in-view {
  filter: blur(0px);
  opacity: 1;
}

.parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.3);
}

/* ====================================
   RESOURCES SECTION
   ==================================== */

.list--books {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.list--books li {
  width: calc(33.33% - 20px);
}

.list--books li a {
  text-decoration: none;
  display: block;
}

.list--books li img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.list--books li p {
  font-size: 18px;
  color: white;
  font-family: var(--clc-font-body);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Roll Up Effect */
.roll-up-effect {
  height: 20px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid white;
  display: inline-flex;
}

.roll-up-effect small {
  display: block;
  font-size: 16px;
  color: white;
  font-family: var(--clc-font-body);
  letter-spacing: 0.1em;
  transition: transform 0.4s ease;
}

.roll-up-effect small:first-child {
  transform: translateY(0);
}

.roll-up-effect small:last-child {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.list--books li a:hover .roll-up-effect small:first-child {
  transform: translateY(-100%);
}

.list--books li a:hover .roll-up-effect small:last-child {
  transform: translateY(0);
}

.mb-40 {
  margin-bottom: 40px;
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.clc-contact-title {
  position: relative;
}

.clc-contact-title span.one {
  position: relative;
  right: -160px;
}

.clc-contact-title span.two {
  position: relative;
  right: 140px;
}

.clc-contact-left {
  position: relative;
}

.clc-contact-intro-text {
  max-width: 80%;
}

.clc-contact-intro-text .clc-text {
  font-size: 1.3vw;
  line-height: 1.5em;
}

.clc-large-icon {
  max-width: 150px; 
}

/* Form Styles */
.clc-contact-form {
  width: 100%;
}

.clc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(44, 50, 65, 0.3);
}

.clc-form-cell {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove right border on even cells (last in row) */
.clc-form-cell:nth-child(2n) {
  border-right: none;
}

/* Full width cell for textarea */
.clc-form-cell-full {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  height: 200px;
}

.clc-form-input {
  background-color: transparent;
  border: none;
  color: var(--clc-white);
  font-family: var(--clc-font-body);
  font-size: 1vw;
  padding: 2rem 1.5rem;
  width: 100%;
  transition: background-color 0.3s ease;
}

.clc-form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.clc-form-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.05);
}

.clc-form-textarea {
  resize: none;
  min-height: 200px;
  font-family: var(--clc-font-body);
}

.clc-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.clc-submit-btn {
  display: inline-block;
  margin-top: 1rem;
}

.clc-form-success,
.clc-form-error {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 8px;
}

.clc-form-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.clc-form-error {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ====================================
   FOOTER
   ==================================== */

.clc-footer {
  width: 100vw;
  padding: 4vw 0; 
}

.clc-footer-logo img {
  max-width: 150px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.clc-footer-logo:hover img {
  opacity: 1;
}

.clc-footer-text {
  font-family: var(--clc-font-body);
  font-size: 0.9vw;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.clc-footer-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.5rem;
}

.clc-heart-icon {
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  transform-origin: center; 
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.2);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  56% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

.clc-footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 0;
  display: inline;
}

.clc-footer-link:hover {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.clc-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.clc-cover.tone-down {
  filter: saturate(70%) brightness(0.9);
  opacity: 0.9;
}

.clc-cover.grayscale {
  filter: saturate(0%);
}

.clc-container-custom {
  width: 100%;
  padding-left: 6vw;
  padding-right: 6vw;
  position: relative;
}

/* ====================================
   ANIMATIONS
   ==================================== */

/* Animación para todas las columnas - SUBEN con loop infinito sin saltos */
@keyframes clc-scroll-up {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

/* GSAP maneja las animaciones fade-in */
.clc-animate-fade-in {
  /* Estado inicial - GSAP lo animará */
}

/* Aplicar animaciones a TODAS las columnas - diferentes velocidades */
.clc-gallery-rows.front .clc-gallery-column:nth-child(1) {
  animation: clc-scroll-up 40s linear infinite;
}

.clc-gallery-rows.front .clc-gallery-column:nth-child(2) {
  animation: clc-scroll-up 50s linear infinite;
}

/* Columnas del fondo (back) aún más lentas para profundidad */
.clc-gallery-rows.back .clc-gallery-column:nth-child(1) {
  animation: clc-scroll-up 60s linear infinite;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .clc-gallery-column {
    animation: none !important;
    transform: none !important;
  }

  .clc-animate-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====================================
   STAY CLOSE INSTAGRAM SECTION
   ==================================== */

.clc-stay-close-section {
  position: relative;
  width: 100vw;
  height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clc-instagram-collage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  z-index: 1;
}

.clc-insta-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.clc-insta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.7);
}

.clc-stay-close-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #252838 0%, rgba(37, 40, 56, 0.8) 20%, rgba(37, 40, 56, 0.6) 40%, rgba(37, 40, 56, 0.6) 60%, rgba(37, 40, 56, 0.8) 80%, #252838 100%);
  z-index: 2;
  pointer-events: none;
}

.clc-stay-close-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vw;
  width: 100%; 
}

.clc-rotating-text-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.clc-rotating-text {
  display: inline-flex;
  align-items: center;
  gap: 3vw;
  font-family: var(--clc-font-display);
  font-size: 8vw;
  font-weight: 500;
  text-transform: uppercase;
  color: white;
  margin: 0;
  white-space: nowrap;
  will-change: transform;
}

.clc-rotate-item {
  display: inline-block;
  white-space: nowrap;
}

.clc-rotate-icon {
  display: inline-block;
  width: 4vw;
  height: 4vw;
  flex-shrink: 0;
}

.clc-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background-color: white;
  color: #252838;
  font-family: var(--clc-font-display);
  font-size: 2.5vw;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1.5vw 3vw;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s ease;
  letter-spacing: 0.05em;
}

.clc-follow-btn:hover {
  background-color: #f0f0f0;
  color: #252838;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.clc-instagram-icon {
  width: 2.5vw;
  height: 2.5vw;
  flex-shrink: 0;
}

.clc-instagram-icon rect,
.clc-instagram-icon circle {
  stroke: #252838;
}

.clc-instagram-icon circle:last-child {
  fill: #252838;
}

/* ====================================
   ADDITIONAL BOOTSTRAP OVERRIDES
   ==================================== */

/* Bootstrap Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--clc-font-display);
  font-weight: 700;
}

.lead {
  font-family: var(--clc-font-body);
  font-weight: 300;
}

.navbar-brand {
  font-family: var(--clc-font-display) !important;
  font-weight: 700 !important;
}

.nav-link {
  font-family: var(--clc-font-body);
}

.btn {
  font-family: var(--clc-font-body);
  font-weight: 500;
}

.btn-primary {
  background-color: var(--clc-primary);
  border-color: var(--clc-primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.card-title {
  font-family: var(--clc-font-display);
  font-weight: 600;
}

.card-text {
  font-family: var(--clc-font-body);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: var(--clc-primary);
  color: var(--clc-white);
}

::-moz-selection {
  background-color: var(--clc-primary);
  color: var(--clc-white);
}
