/* style/tintc.css */

/* Custom properties for colors */
:root {
    --b66-primary: #11A84E;
    --b66-secondary: #22C768;
    --b66-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --b66-card-bg: #11271B;
    --b66-background: #08160F;
    --b66-text-main: #F2FFF6;
    --b66-text-secondary: #A7D9B8;
    --b66-border: #2E7A4E;
    --b66-glow: #57E38D;
    --b66-gold: #F2C14E;
    --b66-divider: #1E3A2A;
    --b66-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-tintc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--b66-text-main); /* Default text color for dark background */
    background-color: var(--b66-background); /* Body background is dark */
}

/* Sections */
.page-tintc__section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-tintc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--b66-background); /* Ensure hero section has a background */
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-tintc__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above image if any layering issue */
    padding: 0 20px;
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--b66-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tintc__hero-description {
    font-size: 1.1rem;
    color: var(--b66-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-tintc__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--b66-text-main);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.page-tintc__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--b66-button-gradient);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-tintc__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--b66-text-secondary);
    text-align: justify;
}

/* Card Grid */
.page-tintc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tintc__card {
    background-color: var(--b66-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--b66-border);
}

.page-tintc__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-tintc__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--b66-divider);
}

.page-tintc__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--b66-text-main);
    padding: 20px 25px 10px;
    margin: 0;
}

.page-tintc__card-text {
    font-size: 0.95rem;
    color: var(--b66-text-secondary);
    padding: 0 25px 20px;
    flex-grow: 1;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button text wrapping */
    word-wrap: break-word; /* Button text wrapping */
}

.page-tintc__btn-primary {
    background: var(--b66-button-gradient);
    color: var(--b66-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: var(--b66-primary);
    border: 2px solid var(--b66-primary);
}

.page-tintc__btn-secondary:hover {
    background-color: var(--b66-primary);
    color: var(--b66-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Button group responsive */
    max-width: 100%; /* Button group responsive */
    box-sizing: border-box;
}

/* List styles */
.page-tintc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tintc__list-item {
    background-color: var(--b66-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--b66-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.page-tintc__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--b66-primary);
    margin-bottom: 15px;
}

.page-tintc__list-text {
    font-size: 1rem;
    color: var(--b66-text-secondary);
}

.page-tintc__numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 30px;
}

.page-tintc__numbered-list .page-tintc__list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

.page-tintc__numbered-list .page-tintc__list-item:hover {
    transform: none;
    box-shadow: none;
}

.page-tintc__list-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--b66-gold);
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1;
}

.page-tintc__numbered-list .page-tintc__list-text {
    font-size: 1.05rem;
    color: var(--b66-text-secondary);
    text-align: left;
}

/* Background color classes for contrast */
.page-tintc__dark-bg {
    background-color: var(--b66-background);
    color: var(--b66-text-main);
}

.page-tintc__light-bg {
    background-color: #f0f0f0; /* A lighter background for contrast */
    color: #333333; /* Dark text for light background */
}

/* Specific text colors */
.page-tintc__text-main {
    color: var(--b66-text-main);
}

.page-tintc__text-secondary {
    color: var(--b66-text-secondary);
}

.page-tintc__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__hero-section {
        padding: 40px 15px;
    }
    .page-tintc__hero-image {
        margin-bottom: 20px;
    }
    .page-tintc__hero-content {
        padding: 0 15px;
    }
    .page-tintc__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-tintc__section {
        padding: 40px 15px;
    }
    .page-tintc__section-title {
        margin-bottom: 30px;
    }
    .page-tintc__grid {
        gap: 20px;
    }
    .page-tintc__list {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-tintc__image,
    .page-tintc__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow aspect ratio to adjust */
    }

    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tintc__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-tintc__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-tintc__hero-description {
        font-size: 1rem;
    }
    .page-tintc__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-tintc__grid {
        grid-template-columns: 1fr;
    }
    .page-tintc__list {
        grid-template-columns: 1fr;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tintc__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tintc__list-item {
        padding: 20px;
    }
    .page-tintc__numbered-list .page-tintc__list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-tintc__list-number {
        margin-bottom: 10px;
    }
}