@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

nav {
    position: fixed;
    height: 10%;
    width: 100%;
    padding: 1rem 5%;
    background-color: rgba(211, 4, 48, 0.4);
    backdrop-filter: blur(15px);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.navbar-toggle {
    z-index: 10;
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: rgb(255, 255, 255);
    transition: all 0.3s ease-in-out;
}
.nav-links.active {
    display: flex;
}
.navbar-toggle.active .bar {
    background-color: #000;
}
.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.logo {
    position: static;
    left: 5%;
}
.logo img {
    height: 95px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}
.nav-links li a:hover {
    color:rgb(231, 231, 231);
}

.container {
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}
.slider-wrapper {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}
.slider {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;

    height: 90vh;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


#slide-1 img {
    object-position: center 30%;
}

#slide-2 img {
    object-position: top;
}

#slide-3 img {
    object-position: center 70%;
}

.slider-nav {
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #fff;
    opacity: 75%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.dot.active {
    background-color: rgba(211, 4, 48, 1);
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.slider-arrow-prev {
    left: 1.5rem;
}

.slider-arrow-next {
    right: 1.5rem;
} 

.slide-content {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    max-width: 500px;

    color: white;
    z-index: 2;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active .slide-content {
    opacity: 1;
}

.slide-content h1 {
    font-size: clamp(5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.slide-content p {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.slide-content .btn {
    display: inline-block;
    padding: 1.2rem 1.8rem;
    background: #d90430;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.slide-content .btn:hover {
    background: #b80328;
}


.cat-intro {
    padding: 3rem 5%;
    text-align: left;
}
.cat-intro h2 {
    font-weight: 500;
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}
.cat-intro p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #333;
}



.categories-section {
    position: relative;
    overflow: hidden;
}

.categories-grid {
    display: grid;
    margin: 0 2rem 0 2rem;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;

    grid-auto-rows: 250px;

    max-height: calc(3 * 250px + 4rem); /* exactly 2 rows */
    overflow: hidden;
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: -100px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.1)
    );
}

.category-card:hover img {
    transform: scale(1.05);
}


.category-placeholder {
    height: 250px;
    border-radius: 20px;
    background: linear-gradient(
        110deg,
        #e5e5e5 30%,
        #f0f0f0 50%,
        #e5e5e5 70%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}


.category-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
}

.category-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.category-info span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.categories-fade {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;

    background: linear-gradient(
        to top,
        rgba(71, 71, 71, 0.9) 10%,
        rgba(255,255,255,0)
    );

    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.catalog-btn {
    background: #d90430;
    color: white;
    padding: 1.5rem 10rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;

    transition: transform 0.2s ease, background 0.3s ease;
}

.catalog-btn:hover {
    background: #b80328;
    transform: scale(1.02)
}



.identity-section {
    position: relative;
    margin-top: 0; /* overlaps into the fade */
    padding-top: 160px;

    background: #1e1c1c; /* your dark tone */
    color: white;

    z-index: 0;
    padding-bottom: 5rem;
}
.identity-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(30,28,28,1) 100%
    );

    pointer-events: none;
}
.identity-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}


.identity-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 2rem;
}

.identity-header h2 {
    font-size: 4.2rem;
    font-weight: 700;
}

.identity-logo {
    height: 260px;
    opacity: 0.95;
    margin-bottom: -50px;
}

.identity-text {
    font-size: 1.6rem;
    text-align: justify;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.identity-subtitle {
    font-size: 4.2rem;
    text-align: right;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.identity-subtitle-2 {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}


.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.pillar-card {
    background: white;
    color: #111;
    border-radius: 16px;
    padding: 1.8rem;
}

.pillar-letter {
    font-size: 4.2rem;
    font-weight: 800;
    color: #d90430;
    display: block;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 1.6rem;
    text-align: justify;
    line-height: 1.5;
}

.our-services {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.our-services h2 {
  text-align: center;
  font-size: 4.2rem;
  margin-bottom: 3rem;
}

/* cards layout */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.service-card {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark fade overlay */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
}

/* text on top */
.overlay {
  position: absolute;
  z-index: 2;
  bottom: 1.2rem;
  left: 1.5rem;
  color: white;
}

.overlay h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.overlay p {
  font-size: 1.2rem;
}

/* cta */
.cta {
  margin-top: 2rem;
  text-align: center;
}

.cta h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0a5f55;
  color: white;
  padding: 1.5rem 30%;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
}

.wa-icon {
  width: 40px;
  height: 40px;
}

.site-footer {
  background: #d6002f;
  color: white;
  padding: 2.5rem 5vw;
}

.site-footer img {
  height: 150px;
  margin-bottom: -50px;
  margin-top: -30px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-email {
  font-size: 0.95rem;
}

.site-footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.5);
  margin: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials img {
  height: 28px;
  filter: brightness(0) invert(1);
}


@media (max-width: 768px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}



/* Phone and tablets */
@media (max-width: 880px) {
    .nav-links {
        display: none;
        background-color: #ebebeb;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10 10px rgba(0,0,0,0.5);
        backdrop-filter: blur(20px);
    }
    .nav-links li a {
        color: #111;
    }
    .nav-links li a:hover {
        color: #3d3838;
    }

    .navbar-toggle {
        display: block;
    }


    .slide-content h1 {
        font-size: clamp(4rem, 5vw, 4rem);
    }
    .slider-arrow {
        display: none;
    }
    .slide-content {
        pointer-events: none;
    }

    .slide-content a {
        pointer-events: auto; /* buttons still clickable */
    }
    .slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* iphone momentum */
    }

    .catalog-btn {
        padding: 1.5rem 10%;
    }


    .identity-header {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
        text-align: center;
    }

    .identity-subtitle {
        text-align: center;
        font-size: 3rem;
    }
    .identity-subtitle-2 {
        text-align: center;
        font-size: 3rem;
    }

    .identity-logo {
        order: 2;
        margin: 0 auto;
        height: 160px;
    }

    .identity-header h2 {
        order: 1;
        font-size: 3rem;
    }


    .cta-btn {
        padding: 1.5rem 20%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin: 0 1rem;
    }
/* Disable scroll-snap on phone for better carousel control */
    .slider {
        scroll-snap-type: none;
    }

    .slide {
        scroll-snap-align: none;
    }

    
    
}

@media (min-width: 881px) {
    .nav-links {
        margin: 0 auto;
    }
}