﻿/* HERO */
.creche-hero {
  height:120vh;
  position: relative;
  overflow: hidden;
}

.creche-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.creche-slide.active {
  opacity: 1;
}

/* OVERLAY */
.creche-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);

  display: flex;
  justify-content: center;
  align-items: center;
}

.creche-overlay h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.creche-section {
    padding: 80px 0;
    background: linear-gradient(135deg,#f9fbff,#eef4ff);
}

.creche-grid {
    display: grid;
    grid-template-columns: 68% 32%;
    gap: 40px;
    align-items: start;
}

/* LEFT */
.creche-content {
    background: white;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.creche-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
}

.creche-content h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--accent);
    display: block;
    margin-top: 10px;
    border-radius: 20px;
}

.creche-content p {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #444;
}

/* RIGHT CARD */
.creche-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.creche-card h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.creche-card ul {
    list-style: none;
}

.creche-card li {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    color: var(--text);
}

.creche-card li:last-child {
    border-bottom: none;
}

/* Hover Premium */
.creche-content:hover,
.creche-card:hover {
    transform: translateY(-5px);
    transition: 0.35s ease;
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.about-buttons {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}



/* TABLET */
@media(max-width:992px){
    .creche-grid{
        grid-template-columns:1fr;
    }

    .creche-card{
        position:static;
    }
}

/* MOBILE */
@media(max-width:768px){

    .creche-section{
        padding:50px 0;
    }

    .creche-content,
    .creche-card{
        padding:25px;
    }

    .creche-content h2{
        font-size:1.5rem;
    }

    .creche-content p{
        font-size:0.95rem;
        line-height:1.8;
    }
}

/* SMALL MOBILE */
@media(max-width:480px){

    .creche-content h2{
        font-size:1.3rem;
    }

    .creche-card h3{
        font-size:1.1rem;
    }
}