/* Custom styles for Unmar LP */

:root {
    --primary: #4b7f91;
    --primary-rgb: 75, 127, 145;
    --secondary: #b89b72;
    --secondary-rgb: 184, 155, 114;
    --primary-light: #e0d1bc;
    --accent: #4a4a4a;
    --bg-light: #fcfaf7;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-light);
    color: var(--accent);
    background-image: linear-gradient(rgba(252, 250, 247, 0.94), rgba(252, 250, 247, 0.94)), url('../img/gallery_05.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* --- Section Background Creative Logic --- */

/* Glassmorphism Sections */
.bg-glass-white {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-glass-primary {
    background: rgb(75 127 145 / 20%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Deep Brand Color Sections */
.bg-brand-primary {
    background-color: var(--primary);
    color: white !important;
}

.bg-brand-primary .section-title h2 {
    color: white !important;
    opacity: 0.15 !important;
}

.bg-brand-primary .section-title .subtitle {
    color: white !important;
}

.bg-brand-primary .section-title .subtitle::after {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.bg-brand-primary .section-title .dog-icon {
    color: white !important;
}

/* Soft Tinted Sections */
.bg-soft-gold {
    background: linear-gradient(135deg, rgba(184, 155, 114, 0.05) 0%, rgba(184, 155, 114, 0.12) 100%);
}

.bg-soft-teal {
    background: linear-gradient(135deg, rgba(75, 127, 145, 0.03) 0%, rgba(75, 127, 145, 0.08) 100%);
}

/* Premium Navigation */
#header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Sophisticated Typography */
h1,
h2,
h3,
h4 {
    letter-spacing: 0.1em;
}

/* Parallax Effect */
#recommend {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@supports (-webkit-touch-callout: none) {
    #recommend {
        background-attachment: scroll;
    }
}

/* --- SV Banner Styling --- */
.sv-banner-wrapper {
    position: relative;
    z-index: 20;
    margin-top: 40px;
    margin-bottom: 40px;
}

.sv-banner-inner {
    background: linear-gradient(135deg, var(--secondary) 0%, #a4865d 100%);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(184, 155, 114, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sv-banner-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(184, 155, 114, 0.4);
}

.sv-banner-content {
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 2rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.sv-badge {
    background: white;
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sv-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 1.5rem auto;
}

@media (max-width: 767px) {
    .sv-banner-wrapper {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .sv-banner-content {
        padding: 1.5rem 1rem;
    }
}

/* --- Concept Section Editorial Styling --- */
.concept-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, clamp(30px, 4vw, 50px));
    position: relative;
}

.concept-img-item {
    position: relative;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.concept-img-item:hover {
    z-index: 10;
    transform: scale(1.05) rotate(0deg) !important;
}

.concept-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
}

.img-main {
    grid-column: 1 / 9;
    grid-row: 1 / 9;
    transform: rotate(-2deg);
}

.img-sub-1 {
    grid-column: 7 / 13;
    grid-row: 5 / 11;
    transform: rotate(3deg);
    z-index: 2;
}

.img-sub-2 {
    grid-column: 3 / 8;
    grid-row: 8 / 13;
    transform: rotate(-4deg);
    z-index: 3;
}

/* Decorative frame behind the main image */
.concept-grid-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    width: 70%;
    height: 60%;
    border: 2px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.problem-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--primary);
    padding: 1.25rem;
    transition: all 0.4s ease;
    border-radius: 0 8px 8px 0;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.problem-icon {
    font-weight: 700;
    color: var(--primary);
    font-family: serif;
    font-size: 1.25rem;
    margin-right: 1rem;
    line-height: 1;
}

/* Image utility */
img {
    max-width: 100%;
    display: block;
    /* Prevents inline spacing issues */
}

/* Swiper custom */
/* Removed .fv-swiper .swiper-slide height auto rule as it's no longer needed or might conflict */

/* Modal animation */
#gallery-modal.show {
    display: flex;
}

/* Smooth link hover */
.menu-link {
    position: relative;
    transition: color 0.3s;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.menu-link:hover::after {
    transform: scaleX(1);
}

/* Section Title decoration - Artistic Overlap Design */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 1.5rem;
    margin-bottom: 5rem;
}

.section-title .dog-icon {
    width: 32px;
    height: 32px;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.section-title h2 {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.2;
    /* Ghost background text */
    position: absolute;
    top: 50%;
    transform: translateY(-45%);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

#recommend .section-title h2 {
    opacity: 0.2;
    color: white;
}

.section-title .subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-weight: 700;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.25rem;
}

/* --- About Section Luxury Styling --- */
.about-collage-container {
    position: relative;
    height: 520px;
    width: 100%;
}

.about-img-item {
    position: absolute;
    overflow: hidden;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(184, 155, 114, 0.2);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-img-item:hover {
    transform: scale(1.03) !important;
    z-index: 10 !important;
}

.about-img-1 {
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    z-index: 1;
}

.about-img-2 {
    bottom: 0;
    right: 0;
    width: 65%;
    height: 65%;
    z-index: 2;
}

.about-deco-frame {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 60%;
    height: 60%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.about-img-item img {
    object-position: center 20%;
}

.about-text-card {
    background: #4b7f9114;
    backdrop-filter: blur(10px);
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(75, 127, 145, 0.05);
}

/* --- Service Section Luxury Layout --- */
.service-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 40px rgba(75, 127, 145, 0.03);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(75, 127, 145, 0.08);
}

.service-number {
    position: absolute;
    top: -30px;
    left: 20px;
    font-family: serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.service-deco-border {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 1px solid rgba(184, 155, 114, 0.1);
    pointer-events: none;
}

.service-img-wrapper {
    position: relative;
    z-index: 2;
}

.service-img-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary);
    opacity: 0.2;
    z-index: -1;
}

.md\:flex-row-reverse .service-img-wrapper::after {
    left: auto;
    right: -20px;
}

/* --- Message Section Glass Design --- */
.message-glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 3.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.message-glass-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: 10rem;
    line-height: 1;
    font-family: serif;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.message-portrait {
    position: relative;
    display: inline-block;
}

.message-portrait::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(184, 155, 114, 0.5);
    border-radius: 50%;
    z-index: 0;
}

.message-portrait img {
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.message-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .message-glass-card {
        padding: 2rem;
    }

    .section-title h2 {
        font-size: 3.2rem;
    }

    .section-title .subtitle {
        font-size: 1.25rem;
    }
}

/* --- Access Section Premium Styling --- */
.access-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.access-info-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(75, 127, 145, 0.1);
}

.access-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.access-label {
    min-width: 100px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.access-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.access-map-wrapper {
    position: relative;
    padding: 15px;
}

.access-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.access-map-frame {
    position: relative;
    z-index: 1;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .access-card {
        padding: 1.5rem;
    }

    .access-info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .access-label {
        min-width: auto;
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.scroll-line {
    animation: scrollDown 2.5s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

/* Animation trigger classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* --- Recommend Section Artistic Image --- */
.recommend-img-portal {
    position: relative;
    padding: 20px;
}

.recommend-img-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 110%;
    border: 1px solid var(--secondary);
    opacity: 0.4;
    z-index: 0;
}

.recommend-img-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 160px 160px 40px 40px;
    /* Sophisticated portal shape */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 8px;
}

.recommend-img-frame img {
    border-radius: 152px 152px 32px 32px;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Price Section Sophisticated Imagery --- */
.price-collage-container {
    position: relative;
    height: 600px;
    width: 100%;
}

.price-img-item {
    position: absolute;
    overflow: hidden;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.1);
    border: 6px solid white;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.price-img-item:hover {
    transform: scale(1.05) translateZ(0) !important;
    z-index: 10 !important;
}

.price-img-1 {
    top: 0;
    right: 0;
    width: 80%;
    height: 65%;
    z-index: 1;
}

.price-img-2 {
    bottom: 0;
    left: 0;
    width: 70%;
    height: 55%;
    z-index: 2;
}

.price-deco-frame {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 50%;
    height: 50%;
    border: 1px solid var(--secondary);
    opacity: 0.3;
    z-index: 0;
}

.price-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Ensure faces are visible */
}

@media (max-width: 767px) {
    .price-collage-container {
        height: 400px;
        margin-bottom: 2rem;
    }
}


@media (max-width: 767px) {
    .hide-on-sp {
        display: none;
    }

    .message-glass-card,
    .service-card,
    .about-text-card {
        padding: 40px 10px;
    }
}