/**
 * What Is Your OriginMark™ Section Styles
 *
 * Features:
 * - Desktop: 3-column card grid
 * - Mobile: Swipeable carousel with dot indicators
 * - Responsive images with rounded corners
 * - Learn More button with outline style
 */

/* ========================================
   1. CSS VARIABLES
   ======================================== */

:root {
    --originmark-primary: #2D5F5D;
    --originmark-text: #4E3921;
    --originmark-light-bg: #f9f7f4;
    --originmark-white: #ffffff;
    --originmark-gray: #cccccc;
    --originmark-spacing-xl: 60px;
    --originmark-spacing-lg: 40px;
    --originmark-spacing-md: 30px;
    --originmark-spacing-sm: 20px;
    --originmark-transition: 400ms ease-in-out;
    --originmark-font-serif: 'Merriweather', Georgia, serif;
    --originmark-font-sans: 'Helvetica Neue', sans-serif;
}

/* ========================================
   2. SECTION BASE STYLES
   ======================================== */

.section-originmark {
    width: 100%;
    padding: var(--originmark-spacing-xl) var(--originmark-spacing-sm);
    /* background: var(--originmark-light-bg); */
    position: relative;
}

.section-originmark .section-center-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
}

/* ========================================
   3. SECTION HEADER
   ======================================== */

.section-why-originmark .originmark-title {
    font-family: var(--originmark-font-serif);
    font-weight: 300;
    font-size: 32px;
    line-height: 1.3;
    color: var(--originmark-text);
    text-align: left;
    margin: 0 0 var(--originmark-spacing-lg) 0;
    padding-top: 20px;
}

/* ========================================
   4. CARDS CONTAINER (Desktop Grid)
   ======================================== */

.originmark-cards-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--originmark-spacing-lg);
}

.originmark-cards-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--originmark-spacing-md);
    width: 100v;
}

/* ========================================
   5. INDIVIDUAL CARD STYLES
   ======================================== */

.originmark-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

/* Card Image Wrapper */
.originmark-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;  /* Portrait orientation */
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: var(--originmark-spacing-sm);
    background: var(--originmark-gray);
}

.originmark-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--originmark-transition);
}

.originmark-card:hover .originmark-card-image {
    transform: scale(1.05);
}

/* Card Description */
.originmark-card-description {
    font-family: var(--originmark-font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--originmark-text);
    margin: 0;
    padding: 0 10px;
    text-align: left;
}

/* ========================================
   6. DOT INDICATORS (Mobile Only)
   ======================================== */

.originmark-dots {
    display: none;  /* Hidden on desktop */
    justify-content: normal;
    align-items: center;
    gap: 12px;
    margin-top: var(--originmark-spacing-sm);
}

.originmark-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    padding: 0;
    transition: all 300ms ease;
    border: 2px solid #2d5f5d;
    border-radius: 22px;
    position: relative;
    top: -3px;
}

.originmark-dot:hover {
    background: #999999;
    transform: scale(1.2);
}

.originmark-dot.active {
    background: #2d5f5d;
    width: 27px;
    height: 11px;
    border: 2px solid #2d5f5d;
    border-radius: 5px;
    top: -3px;
    position: relative;
}

/* ========================================
   7. LEARN MORE BUTTON
   ======================================== */

.originmark-cta {
    text-align: center;
    margin-top: var(--originmark-spacing-lg);
}

.btn-learn-more {
    display: inline-block;
    padding: 14px 50px;
    border: 2px solid var(--originmark-primary);
    border-radius: 50px;
    background: transparent;
    color: var(--originmark-primary);
    font-family: var(--originmark-font-sans);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all var(--originmark-transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Button background fill animation */
.btn-learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--originmark-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--originmark-transition);
    z-index: -1;
}

.btn-learn-more:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-learn-more:hover {
    color: var(--originmark-white);
    box-shadow: 0 4px 15px rgba(45, 95, 93, 0.3);
    transform: scale(1.05);
}

.btn-learn-more:active {
    transform: scale(0.98);
}

/* ========================================
   8. RESPONSIVE DESIGN
   ======================================== */

/* Tablets (< 1024px) - 2 columns */
@media (max-width: 1023px) {
    .originmark-cards-track {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--originmark-spacing-sm);
    }

    /* Hide third card on tablet */
    .originmark-card:nth-child(3) {
        /* display: none; */
    }

    .section-why-originmark .originmark-title {
        font-size: 28px;
    }

    .originmark-card-description {
        font-size: 14px;
    }
}

/* Mobile (< 768px) - Carousel with 1 card visible */
@media (max-width: 767px) {
    .section-originmark {
        padding: var(--originmark-spacing-lg) 0;
    }

    .section-why-originmark .originmark-title {
        font-size: 24px;
        padding: 0px 0px 0px 0px;
        margin-bottom: 80px;
    }

    /* Convert to carousel */
    .originmark-cards-container {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .originmark-cards-track {
        display: flex;
        grid-template-columns: none;
        gap: 0;
    }

    /* Slick Carousel - Card styling */
    .originmark-card {
        flex-shrink: 0;
        width: 85%;  /* 85% width to show peek of next card */
        padding: 0 var(--originmark-spacing-sm);
        outline: none;  /* Remove Slick default outline */
    }

    .originmark-card:last-child {
        margin-right: 0;
    }

    /* Show dot indicators on mobile */
    .originmark-dots {
        display: block;
        text-align: center;
    }

    /* Slick dots styling */
    .originmark-dots .slick-dots {
        position: static;
        bottom: auto;
        list-style: none;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .originmark-dots .slick-dots li {
        width: auto;
        height: auto;
        margin: 0;
    }

    /* Hide default Slick buttons inside dots */
    .originmark-dots .slick-dots li button {
        display: none;
    }

    /* Larger CTA button on mobile */
    .btn-learn-more {
        padding: 16px 60px;
        font-size: 18px;
    }

    .originmark-card-description {
        font-size: 15px;
        line-height: 1.7;
        padding: 0;
    }

    .originmark-card-image-wrapper {
        aspect-ratio: 3 / 4;  /* Taller on mobile */
    }
}

/* Extra small mobile (< 480px) */
@media (max-width: 479px) {
    .originmark-title {
     color: var(--Brown, #4E3921);
     font-feature-settings: 'liga' off, 'clig' off;
     font-family: Merriweather;
     font-size: 24px;
     font-style: normal;
     font-weight: 300;
     line-height: normal;
     text-transform: capitalize;
     padding-bottom: 20px;
     padding-left: 20px;
    }

    .originmark-card {
        width: 90vw;
        margin-right: 0px;
        padding-right: 0px;
        margin-left: -11px;
    }

    .originmark-card-description {
        font-size: 17px;
    }

    .btn-learn-more {
        padding: 14px 50px;
        font-size: 16px;
    }
}

/* ========================================
   9. ACCESSIBILITY
   ======================================== */

/* Focus visible for keyboard navigation */
.originmark-dot:focus-visible,
.btn-learn-more:focus-visible {
    outline: 3px solid var(--originmark-primary);
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .originmark-card-image,
    .originmark-cards-track,
    .btn-learn-more,
    .originmark-dot {
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   10. PRINT STYLES
   ======================================== */

@media print {
    .section-originmark {
        page-break-inside: avoid;
    }

    .originmark-dots {
        display: none;
    }

    .originmark-cards-track {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .originmark-card {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

.reasons-box-structure {
    display: flex;
    /* width: 207px; */
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reasons-box-icon img {
    width: 24px;
    height: unset;
}

.reasons-box-title {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;

/* Paragraph/P7 */
    font-family: "Helvetica Neue";
    font-size: 23px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    margin-bottom: 2px;
    margin-top: 4px;
}

.reasons-box-description {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-family: Raleway;
    font-size: 17px;
    font-style: italic;
    font-weight: 300;
    line-height: 35px; /* 291.667% */
    margin-top: -1px;
    line-height: 23px;
}
.reasons-box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
h2.mine-subtitle {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Raleway;
    font-size: 18px;
    font-style: italic;
    font-weight: 300;
    line-height: normal;
}

h2.mine-title {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;

/* Heading/H2 */
    font-family: Merriweather;
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
}

.mine-description {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-family: Raleway;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 29px; /* 233.333% */
}

.mine-description-2 {
    color: var(--Brown, #4E3921);
    font-family: Raleway;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
    margin-top: 20px;
    margin-bottom: 150px;
}

.mine-header {
    margin-bottom: 50px;
}

.mine-image-structure {
}

.mine-image-wrapper {margin-left: -50px;}

img.mine-image-1 {
    transition: all 1s ease;
    left: 0px;
    position: relative;
    will-change: left; /* Optimize for animation */
}

/* Animation when image is visible on scroll */
img.mine-image-1.animate-slide {
    left: -100px !important; /* Ensure it takes precedence */
}

/* Debug: Add visual indicator when class is applied */
img.mine-image-1.animate-slide::after {
    content: '';
    /* This won't show but helps verify class is being applied in devtools */
}

.section.section-mine {
    margin-top: 50px;
}
.story-hero-title-logo svg path {
    fill: var(--Brown, #4E3921);
}

.story-hero-title-logo-text {
    color: #fefbfb;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Merriweather;
    font-size: 35px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    margin-left: 4px;
}

.story-hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0px;
    justify-content: center;
    position: absolute;
    z-index: 9;
    width: 100%;
    top: 54px;
}

.story-hero-img-wrapper {
    position: relative;
    /* top: 80px; */
    /* left: 0px; */
    width: 100%;
    top: 0px;
}

img.story-hero-img {
    width: 100%;
}

.section.section-story-hero {
    padding: 0px;
    max-height: 500px;
    overflow: hidden;
    background-color: #c8c2b6;
    position: relative;
}

.page-story .mainStructure {
    padding-top: 70px;
}

h2.what-is-originmark-title svg path {
    fill: var(--Brown, #4E3921);
}

h2.what-is-originmark-title {
    color: #4e3921;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Merriweather;
    font-size: 26px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 12px;
    text-align: center;
}

svg {}

h2.what-is-originmark-title svg {
    width: 157px;
    height: unset;
    position: relative;
    top: 7px;
}

h2.what-is-originmark-desc {
    color: var(--Brown, #4E3921);
    text-align: center;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 291.667% */
}

.section.section-what-is-originmark {
    padding-top: 43px;
}
h2.originmark-title svg path {
    fill: var(--Brown, #4E3921);
}

h2.originmark-title svg {
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    width: 164px;
    height: unset;
    position: relative;
    top: 7px;
    /* display: block; */
}
.originmark-title {
     color: var(--Brown, #4E3921);
     font-feature-settings: 'liga' off, 'clig' off;
     font-family: Merriweather;
     font-size: 24px;
     font-style: normal;
     font-weight: 300;
     line-height: normal;
     text-transform: capitalize;
     padding-bottom: 20px;
     padding-left: 20px;
    }