/* 1. Global Styles & Root Variables
------------------------------------- */
:root {
    --clr-primary: #603813;
    /* Dark Brown for Footer, Buttons, Headings */
    --clr-accent-green: #28a745;
    /* Bright Green for Buttons */
    --clr-light-bg: #ffffff;
    /* Main White Background */
    --clr-accent-bg: #fffbeb;
    /* Pale Yellow for Accent Panels */
    --clr-secondary: #fef3c7;
    /* Dark yellow for Sections */
    --clr-text-dark: #333333;
    /* Primary Dark Text */
    --clr-text-light: #6c757d;
    /* Lighter Gray Text */
    --clr-border: #dee2e6;
    /* Standard Border Color */
    --clr-tag-bg: #a1887f;
    /* Product Tag Background */


    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--clr-light-bg);
    color: var(--clr-text-dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--clr-text-dark);
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

h4 {
    font-size: 1rem;
    line-height: 1.4;
}


/* 2. Utility Classes
------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--clr-text-light);
}

/* Page Header for inner pages */
.page-header {
    padding: 3rem 0;
    text-align: center;
    background-color: #fafafa;
}


/* 3. Header & Navigation
------------------------------------- */
.header {
    background-color: var(--clr-light-bg);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--clr-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 80px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-dark);
    padding: 5px 0;
}

.nav-link.active,
.nav-link:hover {
    color: var(--clr-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--clr-text-dark);
}


/* 4. Footer
------------------------------------- */
.footer {
    background-color: var(--clr-primary);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 85px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links img {
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 1;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact img {
    height: 20px;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #e0e0e0;
}


.footer-bottom a {
    color: white;
}


/* 5. Homepage Styles (Not Pictured, but based on common elements)
/* --- 5. Homepage Styles --- */

.hero-section {
    padding: 4rem 0;
    background-color: var(--clr-light-bg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text .tagline {
    display: inline-block;
    padding: 6px 18px;
    background-color: #fde68a;
    /* A very light yellow */
    color: #b45309;
    /* Amber text */
    border: 1px solid var(--clr-primary);
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-text h1 {
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #4a2c0e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fde68a;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background-color: var(--clr-light-bg);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    margin-top: 4rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--clr-border);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    color: var(--clr-primary);
    font-size: 2rem;
}

.stat-item p {
    color: var(--clr-text-light);
}

.stat-item img {
    height: 30px;
    margin-bottom: 0.5rem;
}

.categories-section {
    padding: 5rem 0;
    background-color: var(--clr-secondary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    display: block;
    color: rgb(12, 11, 11);
    height: 400px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    transition: background 0.4s ease;
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 70%);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-content h3 {
    color: white;
    margin-bottom: 0.2rem;
}

.card-content p {
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    color: #131212;
}

.card-content span {
    font-weight: 500;
    white-space: nowrap;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .card-content p {
    max-height: 100px;
    opacity: 1;
}

.category-card:hover .card-content span {
    transform: translateX(0);
    opacity: 1;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.crafting-section {
    padding: 5rem 0;
}

.crafting-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.crafting-text {
    flex: 1;
}

.crafting-text h2 {
    margin-bottom: 1.5rem;
}

.crafting-text>p {
    margin-bottom: 2rem;
    color: var(--clr-text-light);
}

.crafting-gallery {
    flex: 1.2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    position: relative;
}

.crafting-gallery img {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

.crafting-gallery img:nth-child(1) {
    grid-column: 1 / 3;
}

.experience-badge {
    position: absolute;
    bottom: -1.5rem;
    right: 2rem;
    background-color: var(--clr-primary);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 4px solid var(--clr-light-bg);
}

.experience-badge strong {
    font-size: 2.5rem;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.8rem;
    line-height: 1.2;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.features-list img {
    height: 30px;
}

.home-contact-section {
    padding: 5rem 0;
    background-color: var(--clr-secondary);
}

.home-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.home-contact-details h3,
.home-contact-form h3 {
    margin-bottom: 2rem;
}

.home-contact-form {
    background-color: var(--clr-accent-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--clr-border);
}

.home-map-placeholder {
    background-color: var(--clr-accent-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
}

.home-map-placeholder img {
    height: 40px;
    margin-bottom: 1rem;
}

.home-map-placeholder h3 {
    margin-bottom: 0.2rem;
}

.nav-logo span {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Add styles for homepage-specific sections here if needed */


/* 6. Products Page Styles
------------------------------------- */
.products-section {
    padding: 4rem 0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
    font-family: var(--font-family);
}

.search-box img {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    opacity: 0.4;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--clr-border);
    background-color: transparent;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--clr-text-light);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: var(--clr-light-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--clr-primary);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-content h3 {
    margin-bottom: 0.5rem;
}

.product-card-content p {
    color: var(--clr-text-light);
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--clr-border);
    padding-top: 1rem;
    margin-top: auto;
}

.product-card-footer span {
    font-weight: 600;
    color: var(--clr-text-dark);
}

.btn-enquire {
    background-color: var(--clr-accent-green);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-enquire:hover {
    background-color: #218838;
}

.product-card.hide {
    display: none;
}


/* 7. About Us Page Styles
------------------------------------- */
.story-section {
    padding: 5rem 0;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.story-text {
    flex-basis: 50%;
}

.story-text h2 {
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1rem;
    color: var(--clr-text-light);
}

.story-image {
    flex-basis: 50%;
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

.story-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background-color: var(--clr-primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.values-section {
    padding: 5rem 0;
    background-color: var(--clr-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    text-align: center;
}

.value-card img {
    height: 50px;
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

.journey-section {
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--clr-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--clr-light-bg);
    border: 4px solid var(--clr-primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-md);
}

.timeline-content h3 {
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

.team-section {
    padding: 5rem 0;
    background-color: var(--clr-accent-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--clr-light-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    margin-bottom: 0.2rem;
}

.team-card p {
    color: var(--clr-text-light);
}


/* 8. Contact Us Page Styles
------------------------------------- */
.contact-page-section {
    padding: 5rem 0;
    background-color: var(--clr-secondary);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.get-in-touch h2,
.contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.get-in-touch>p {
    color: var(--clr-text-light);
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-info-item img {
    height: 32px;
    margin-top: 5px;
}

.contact-info-item h4 {
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    margin-bottom: 0.2rem;
    color: var(--clr-text-dark);
    line-height: 1.5;
}

.contact-info-item span {
    color: var(--clr-text-light);
    font-size: 0.8rem;
}

.contact-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #1DAA50;
}

.btn-call {
    display: inline-block;
    background-color: var(--clr-primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-call:hover {
    background-color: #4a2c0e;
}

.contact-form-container {
    background-color: var(--clr-accent-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family);
    border: 1px solid var(--clr-border);
}

.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--clr-light-bg) url('../assets/icons/chevron-down.svg') no-repeat right 15px center;
    background-size: 16px;
}

.full-width {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.response-guarantee {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fef3c7;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.response-guarantee img {
    height: 30px;
}

.response-guarantee p {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.showroom-map-section {
    padding: 5rem 0;
    background-color: var(--clr-accent-bg);
}

.map-placeholder {
    background-color: var(--clr-light-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    text-align: center;
}

.map-placeholder img {
    height: 50px;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    color: var(--clr-text-light);
    margin-bottom: 1rem;
}

.map-placeholder a {
    color: var(--clr-primary);
    font-weight: 500;
    text-decoration: underline;
}


/* 9. Responsive Media Queries
------------------------------------- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--clr-light-bg);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 3rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .story-content {
        flex-direction: column;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 0px;
    }


    .home-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons a {
        text-align: center;
    }
}

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive hero section */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .crafting-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .crafting-content {
        flex-direction: column;
    }
}

/* Remove filter from logos to show original color */
.header .nav-logo img {
    filter: opacity(0.5)
}


/* Only apply filter to social icons in the footer */
.footer .social-links img {
    filter: brightness(0) invert(1);
}