@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-col-500: #141414;
    --system-blue-900: #242935;
    --system-blue-800: #2E3443;
    --system-blue-700: #333947;
    --system-blue-600: #3C414E;
    --system-blue-300: #1282F2;
    --system-blue-100: #00A3FF;
    --dark-blue-800: #1F2126;
    --danger-200: #e30202;
    --neutral-400: #D9D9D9;
    --neutral-0: #ffffff;
    --black-700: #302E2E;
    
    /* New color variables for the design */
    --cream: #e0d3c2;
    --cream-light: #cbbca7;
    --cream-dark: #a89d8a;
    --black-bg: #000000;
    --card-bg: #111111;
    --card-border: rgba(224, 211, 194, 0.1);
    --card-shadow: rgba(255, 255, 255, 0.05);
    
    --max-width: 1200px;
    --font-family-primary: "Italiana", serif;
    --font-family-secondary: "Crimson Text", serif;
    --font-family-base: "Crimson Text", serif;

    --line-height-sm: 105%;
    --line-height-md: 135%;
    --line-height-lg: 160%;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 9999px;
    
    /* Animation durations */
    --animation-fast: 0.3s;
    --animation-normal: 0.4s;
    --animation-slow: 1.2s;
}

* {
    box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, span, body, html, figure {
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-family-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: var(--black-bg);
    color: var(--cream);
}

main {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    flex: 1;
    width: 100%;
}

button {
    color: black;
}

/* Container */
.container-grid {
    --padding-inline: clamp(3rem, 3vw + 1rem, 64px);
    --padding-block: 24px;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(auto, var(--max-width));
    justify-items: center;
    justify-content: center;
    padding-inline: var(--padding-inline);
    padding-block: var(--padding-block);
}

.container-grid__div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* ===== HERO SECTION ===== */
.home-hero {
    background: url('../images/hero.png') center/cover no-repeat;
    text-align: left;
    padding: 200px 5% 180px;
    margin-top: -80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
}

.hero-title {
    font-family: var(--font-family-primary);
    font-size: 128px;
    font-weight: 400;
    line-height: var(--line-height-sm);
    color: var(--cream);
    margin-bottom: 25px;
    animation: fadeUp var(--animation-slow) ease;
}

.hero-subtitle {
    max-width: 520px;
    font-size: 18px;
    color: var(--cream-light);
    margin-top: 20px;
    font-family: var(--font-family-secondary);
    line-height: var(--line-height-lg);
    animation: fadeUp 1.5s ease;
}

.hero-button {
    margin-top: 40px;
    animation: fadeUp 1.8s ease;
}

/* ===== MEMORIES SECTION ===== */
.home-memories {
    background: var(--black-bg);
    padding: 120px 5%;
    width: 100%;
}

.memories-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.memories-text {
    flex: 1 1 500px;
    animation: fadeInLeft var(--animation-slow) ease;
}

.memories-title {
    font-family: var(--font-family-primary);
    font-size: 64px;
    margin-bottom: 25px;
    color: var(--cream);
    line-height: 1.1;
    font-weight: 400;
}

.memories-description {
    font-size: 17px;
    color: var(--cream-light);
    line-height: var(--line-height-lg);
    margin-bottom: 30px;
    font-family: var(--font-family-secondary);
}

.memories-button {
    margin-top: 20px;
}

.memories-image {
    flex: 1 1 400px;
    text-align: right;
    animation: fadeInRight var(--animation-slow) ease;
}

.memories-image img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== PRODUCTS SECTION ===== */
.home-products {
    background: var(--black-bg);
    padding: 120px 5%;
    text-align: center;
    width: 100%;
}

.products-title {
    font-family: var(--font-family-primary);
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--cream);
    font-weight: 400;
}

.products-subtitle {
    color: var(--cream-light);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family-secondary);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 260px;
    text-align: center;
    transition: transform var(--animation-normal) ease, box-shadow var(--animation-normal) ease;
    border: 1px solid var(--card-border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px var(--card-shadow);
    border-color: rgba(224, 211, 194, 0.3);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.product-name {
    margin-top: 15px;
    font-family: var(--font-family-secondary);
    font-size: 24px;
    color: var(--cream);
    font-weight: 600;
}

.product-description {
    color: var(--cream-light);
    font-size: 16px;
    margin-top: 8px;
    line-height: 1.4;
    min-height: 45px;
    font-family: var(--font-family-secondary);
}

.product-price {
    color: var(--cream);
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    font-family: var(--font-family-secondary);
}

.product-button {
    margin-top: 10px;
    width: 100%;
}

/* ===== SCANNING SECTION ===== */
.home-scanning {
    background: var(--black-bg);
    padding: 120px 5%;
    width: 100%;
}

.scanning-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.scanning-text {
    flex: 1 1 500px;
}

.scanning-title {
    font-family: var(--font-family-primary);
    font-size: 64px;
    margin-bottom: 25px;
    color: var(--cream);
    line-height: 1.1;
    font-weight: 400;
}

.scanning-description {
    font-size: 17px;
    color: var(--cream-light);
    line-height: var(--line-height-lg);
    margin-bottom: 30px;
    font-family: var(--font-family-secondary);
}

.scanning-images {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.scanning-images img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTON STYLES ===== */
.primary-button {
    background-color: var(--neutral-400);
    border-radius: var(--radius-sm);
    color: black;
    border: none;
    font-family: var(--font-family-secondary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--animation-fast) ease-in-out;
    text-align: center;
}

.primary-button_tall {
    padding-block: 18px;
}

.primary-button_alt {
    background-color: var(--system-blue-600);
    color: color-mix(in srgb, var(--neutral-0) 90%, rgba(0, 0, 0, 0) 10%);
}

.btn {
    background: none;
    border: 1px solid var(--cream);
    color: var(--cream);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
	font-weight: bold;
    transition: all var(--animation-normal) ease;
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-family-secondary);
    text-align: center;
    min-width: 160px;
    max-width: 230px;
}

.btn:hover {
    background: var(--cream);
    color: var(--black-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 211, 194, 0.2);
}

.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* ===== FOOTER ===== */
.footer {
    padding-block: 48px;
    background: var(--black-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer > div {
    gap: 0;
}

.footer__nav {
    display: flex;
    gap: clamp(1rem, 2vw, 30px);
    flex: 1 1;
    margin-left: clamp(1rem, 2vw, 30px);
    margin-right: clamp(1rem, 1vw, 30px);
}

.footer__link {
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-wrap: nowrap;
    font-family: var(--font-family-secondary);
    transition: color var(--animation-fast) ease;
}

.footer__link:active {
    text-decoration: underline;
}

@media (hover: hover) {
    .footer__link:hover {
        text-decoration: underline;
        color: var(--neutral-0);
    }
}

.footer__credits {
    font-size: 13px;
    font-weight: 600;
    opacity: .5;
    color: var(--cream-dark);
    font-family: var(--font-family-secondary);
}

/* ===== INPUT ===== */
.primary-input {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--system-blue-700);
    outline: none;
    border: none;
    color: var(--neutral-0);
    font-family: var(--font-family-secondary);
    font-size: 14px;
    line-height: var(--line-height-md);
}

.primary-input::placeholder {
    color: var(--neutral-0);
    opacity: .3;
}

/* ===== NAV ===== */
.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-button {
    font-size: 13px;
}

/* ===== TEXT STYLES ===== */
.primary-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: var(--line-height-md);
    opacity: .7;
    color: var(--cream-light);
    font-family: var(--font-family-secondary);
}

.primary-text__left {
    text-align: start;
}

.primary-header-text {
    font-size: clamp(25px, 4vw, 35px);
    font-weight: 700;
    line-height: var(--line-height-sm);
    font-family: var(--font-family-primary);
    color: var(--cream);
}

.primary-header-text_lg {
    font-size: clamp(25px, 4vw, 45px);
    font-weight: 700;
    text-align: center;
    line-height: var(--line-height-sm);
    margin-bottom: 10px;
    font-family: var(--font-family-primary);
    color: var(--cream);
}

/* ===== IMAGE CAROUSEL ===== */
.image-carusel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    width: 100%;
}

.image-carusel > * {
	scroll-snap-align: start;
    width: 282px;
    height: auto;
    border-radius: var(--radius-lg);
}

.image-carusel img {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    width: 100%;
    min-width: 240px;
}

.image-carusel_noaspect > * {
    height: 340px;
}

/* ===== LOADER ===== */
.loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-col-500);
    z-index: 999;
    transition: opacity 0.4s, display 0.4s, transform 0.4s;
    opacity: 1;
    transition-behavior: allow-discrete;
}

.loader-container.disabled {
    display: none;
    opacity: 0;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid var(--cream);
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    margin-block: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cream);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== MEMORIALS COLLECTION SECTION ===== */
.memorials-collection {
    gap: 48px;
    grid-auto-rows: min-content;
}

.title-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.title-block > div {
    flex: 3;
}

.title-block__text {
    margin-top: 12px;
    max-width: 300px;
    color: var(--cream-light);
    font-family: var(--font-family-secondary);
}

.title-block__button {
    flex-grow: 1;
    flex-basis: calc((500px - 100%) * 999);
}

.creating-flow {
    width: 100%;
    background-color: color-mix(in srgb, var(--system-blue-900) 50%, rgba(255, 255, 255, 0) 50%);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.2vw, 40px);
}

.creating-flow.active > .creating-flow__content {
    display: flex;
}

.creating-flow__content {
    gap: clamp(1rem, 2.2vw, 40px);
    display: flex;
    transition: max-height .15s ease;
}

.creating-flow__card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creating-flow__card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.creating-flow__number {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 2vw + 1rem, 68px);
    height: clamp(32px, 2vw + 1rem, 68px);
    border-radius: var(--radius-full);
    background-color: var(--system-blue-900);
    user-select: none;
    color: var(--cream);
    font-family: var(--font-family-secondary);
}

.creating-flow__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
    font-family: var(--font-family-secondary);
}

.creating-flow__text {
    font-size: 13px;
    opacity: .5;
    color: var(--cream-light);
    font-family: var(--font-family-secondary);
}

.creating-flow__accordion-header {
    position: relative;
    width: 100%;
    display: none;
    align-items: center;
    gap: 1rem;
}

.creating-flow__hide-icon {
    position: absolute;
    right: 0;
    transition: transform var(--animation-fast) ease-in-out;
}

.creating-flow__hide-icon::after {
    position: absolute;
    content: '';
    background-color: var(--cream);
    width: 10px;
    height: 2px;
    right: 0;
    transform: translateX(3px) rotate(-45deg) ;
}

.creating-flow__hide-icon::before {
    position: absolute;
    content: '';
    background-color: var(--cream);
    width: 10px;
    height: 2px;
    right: 0;
    transform: translateX(-3px) rotate(45deg);
}

.creating-flow.active .creating-flow__hide-icon {
    transform: rotateX(180deg);
}

.graybg {
	background-color: var(--color-dark-2) !important;
}

.collection {
    --card-width: 282px;
    --card-height: 122px;
    --card-max-height: 240px;
    width: 100%;
    justify-self: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--card-width), 100%), auto));
    justify-content: center;
    gap: 24px;
}

.memorial-card {
    position: relative;
    padding: 24px;
    width: var(--card-width);
    background-color: rgb(23, 23, 23);
    color: var(--neutral-0);
    font-family: var(--font-family-secondary);
    font-size: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: height .35s ease;
    border: 1px solid var(--card-border);
}

@media (hover: hover) {
    .memorial-card_active:hover {
        --card-height: var(--card-max-height);
        border-bottom: none;
    }
    .memorial-card_active:hover .memorial-card__actions {
        opacity: 1;
    }
}

.memorial-card__image {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    max-width: 234px;
}

.memorial-card__title {
    margin-block: 24px;
    align-self: flex-start;
    width: 100%;
    text-align: left;
    z-index: 10;
    color: var(--cream);
    font-family: var(--font-family-secondary);
}

.memorial-card__title-content {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.memorial-card__actions {
    position: absolute;
    top: 70%;
    width: 100%;
    height: var(--card-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px;
    border-left: 1px solid rgb(34, 34, 34);
    border-right: 1px solid rgb(34, 34, 34);
    border-bottom: 1px solid rgb(34, 34, 34);
    background: linear-gradient(0deg, rgb(23, 23, 23) 0%, rgb(23, 23, 23) 45%, rgba(255,255,255,0) 45%);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    transition: height .45s ease, opacity .3s ease ;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
}

.memorial-card__actions > * {
    width: 90%;
}

@media (hover: none) {
    .collection {
        --card-width: 320px;
    }
    .memorial-card__actions {
        position: relative;
        opacity: 1;
        inset: 0;
        flex-direction: row;
        flex-wrap: wrap;
        background: none;
        border: none;
        height: 100%;
    }
    .memorial-card__actions > div {
        padding-inline: 12px;
        flex: 1 1 105px;
        font-size: 13px;
    }
    .memorial-card__title {
        margin-bottom: 12px;
    }
}

.collection__card-new {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--cream);
    font-family: var(--font-family-secondary);
}

.collection__card-new > * {
    transition: opacity .2s ease;
    opacity: .7;
}

.collection__card-new:hover > * {
    opacity: 1;
}

.collection__card-new > :first-child {
    font-size: 56px;
    font-weight: bold;
    line-height: 100%;
}

/* ===== TESTIMONIALS ===== */
.testimonial-quote {
    font-family: var(--font-family-secondary);
    font-style: italic;
    color: var(--cream-light);
}

.testimonial-author {
    font-family: var(--font-family-secondary);
    color: var(--cream);
}

.testimonial-designation {
    font-family: var(--font-family-secondary);
    color: var(--cream-light);
}

/* ===== BLOG SECTION ===== */
.blog-title {
    font-family: var(--font-family-primary);
    color: var(--cream);
}

.blog-date {
    font-family: var(--font-family-secondary);
    color: var(--cream-light);
}

.blog-excerpt {
    font-family: var(--font-family-secondary);
    color: var(--cream-light);
}

/* Reviews Section */
.phrase {
  padding: 80px 0;
}

.phrase-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.phrase-title {
  font-family: 'Italiana', serif;
  font-size: 64px;
  line-height: 1.18;
  color: #CEC0B3;
  margin-bottom: 25px;
}

.phrase-description {
  font-size: 24px;
  line-height: 1.3;
  color: rgba(206, 192, 179, 0.8);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(206, 192, 179, 0.5);
    border-radius: 28px;
    color: #CEC0B3;
    padding: 6px 41px;
    font-size: 20px;
    font-family: 'Crimson Text', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Slider */
.slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.slide img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: 0.3s;
}
.slide img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.slide h3 {
  font-family: "Crimson Text", serif;
  font-size: 24px;
}
.slide p {
  max-width: 500px;
  font-style: italic;
  color: #cbbca7;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  color: #e0d3c2;
  cursor: pointer;
  transition: 0.3s;
}
.slider-btn:hover { color: #fff; transform: scale(1.2) translateY(-50%); }
.prev { left: 10px; }
.next { right: 10px; }
