:root {
    --primary-bg: black;
    --primary-text: white;
    --accent-red: #E00000;
    --accent-lime: #00FF00;
    --accent-cobalt: #0000FF;

    /* Brutalist Fonts */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Oswald', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Minimal animation/transition for brutalist "instant cuts" */
    transition: all 0.05s linear;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    overflow-x: hidden; /* Prevent horizontal scroll from brutalist effects */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--primary-text);
    margin-bottom: 0.5em; /* Small margin for brutalist feel */
    line-height: 1.1;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }

a {
    color: var(--accent-lime);
    text-decoration: none;
    font-family: var(--font-heading);
}

a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Maintain aspect ratio */
}

/* Helper Classes */
.section-title {
    text-align: center;
    padding: 1em 0;
    background-color: var(--accent-red); /* Bold section separators */
    color: var(--primary-bg);
    margin-top: -20px; /* Overlap with previous section for brutalist */
    position: relative;
    z-index: 2; /* Ensure it overlaps */
    padding-bottom: 0.5em;
    font-size: 3em;
}

/* For FAQ, Newsletter, Connect titles to be strong but visually distinct */
.section-title-alt {
    display: block;
    text-align: center;
    padding: 1em 0;
    background-color: var(--accent-cobalt); /* Bold section separators, different accent */
    color: var(--primary-bg);
    margin-top: -20px; /* Overlap with previous section for brutalist */
    position: relative;
    z-index: 2; /* Ensure it overlaps */
    padding-bottom: 0.5em;
    font-size: 3em;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.section-intro {
    max-width: 800px;
    margin: 1em auto 2em;
    text-align: center;
    font-size: 1.1em;
    padding: 0 1em;
    color: white;
}

.anchor-button {
    display: inline-block;
    background-color: var(--accent-cobalt);
    color: var(--primary-text);
    padding: 15px 30px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 1.2em;
    border: 3px solid var(--primary-text);
    text-align: center;
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--accent-red); /* Exposed structure */
    transition: all 0.05s linear;
}

.anchor-button:hover {
    background-color: var(--accent-red);
    color: var(--primary-bg);
    border-color: var(--primary-bg);
    box-shadow: 5px 5px 0 var(--accent-cobalt);
    transform: translate(1px, 1px);
}

/* Header */
.site-header {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    padding: 1em 0;
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--primary-text);
    text-decoration: none;
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* Stronger gaps for brutalist spread */
}

.main-nav a {
    color: var(--primary-text);
    font-size: 1.1em;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.05s linear, color 0.05s linear;
}

.main-nav a:hover {
    color: var(--accent-lime);
    border-color: var(--accent-lime);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    min-height: 70vh; /* Compact height for minimalist banner */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
    border-bottom: 5px solid var(--accent-cobalt); /* Strong border */
}

.hero-section::before { /* Subtle background */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_15.jpg') no-repeat center center/cover;
    opacity: 1;.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2em;
    background-color: rgba(0, 0, 0, 0.7); /* Background for text clarity */
    border: 3px solid var(--accent-lime); /* Exposed structure */
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 0.2em;
    letter-spacing: 3px;
    color: var(--primary-text);
}

.hero-content p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 1.5em;
    line-height: 1.4;
    font-family: var(--font-body);
}

/* General Section Styling */
section {
    padding: 40px 0;
    position: relative;
    overflow: hidden; /* For brutalist effects */
    z-index: 1;
    background-color: var(--primary-bg);
    color: var(--primary-text);
}

section:nth-of-type(even) {
    background-color: #1a1a1a; /* Slight variation for brutalist sections */
    border-top: 3px solid var(--accent-cobalt);
    border-bottom: 3px solid var(--accent-cobalt);
}
section:nth-of-type(odd) {
    border-top: 3px solid var(--accent-lime);
    border-bottom: 3px solid var(--accent-lime);
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Stronger gaps */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card-grid > * {
    background-color: #222;
    padding: 30px;
    border: 2px solid var(--accent-red);
    box-shadow: 8px 8px 0 var(--accent-cobalt); /* Strong shadow for blocky look */
    text-align: center;
    transition: all 0.05s linear;
}

.card-grid > *:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 var(--accent-lime);
    border-color: var(--accent-lime);
}

.card-title {
    color: var(--accent-red);
    margin-bottom: 0.8em;
    font-size: 1.5em;
}

/* About Section */
.about-card ul {
    list-style: none;
    padding: 1em 0;
    text-align: left;
    max-width: 80%;
    margin: 0 auto 1em;
}

.about-card ul li {
    background-color: var(--primary-bg);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-left: 5px solid var(--accent-cobalt);
    font-family: var(--font-body);
    font-size: 1.1em;
}

/* Services Section - Feature Highlights */
.service-highlight {
    display: flex;
    align-items: center;
    gap: 50px; /* Large gap */
    max-width: 1400px; /* Wider sections */
    margin: 60px auto;
    padding: 0 20px;
    background-color: #1a1a1a; /* Contrasting background */
    border: 5px solid var(--accent-cobalt);
    box-shadow: 10px 10px 0 var(--accent-red);
    overflow: hidden; /* For raw edge effects */
}

.service-highlight.reverse {
    flex-direction: row-reverse;
    border-color: var(--accent-red);
    box-shadow: 10px 10px 0 var(--accent-lime);
}

.service-text {
    flex: 1;
    padding: 40px;
    color: var(--primary-text);
}

.service-text h3 {
    color: var(--accent-lime);
    font-size: 2em;
    margin-bottom: 1em;
}

.service-text ul {
    list-style: none;
    padding: 1em 0;
}

.service-text ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--accent-cobalt);
    font-family: var(--font-body);
    font-size: 1.1em;
}
.service-text ul li:last-child {
    border-bottom: none;
}

.service-image {
    flex: 1;
    min-width: 50%; /* Image takes significant space */
    height: 500px;
    background-color: var(--primary-bg); /* Fallback */
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%); /* Raw, unpolished look */
}

/* Features Section - Comparison Table */
.comparison-table-container {
    max-width: 1000px;
    margin: 2em auto;
    padding: 0 20px;
    overflow-x: auto; /* For responsiveness */
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid var(--accent-red);
    text-align: left;
    min-width: 600px; /* Ensure table is readable on smaller screens before stacking */
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border: 1px solid var(--accent-cobalt);
    font-family: var(--font-body);
    color: var(--primary-text);
}

.comparison-table thead th {
    background-color: var(--accent-lime);
    color: var(--primary-bg);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1em;
    border-bottom: 3px solid var(--accent-red);
}

.comparison-table tbody tr:nth-child(odd) {
    background-color: #1a1a1a;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #222;
}

.comparison-table td:first-child {
    font-family: var(--font-heading);
    color: var(--accent-red);
}

/* Gallery Section - Grid with Captions */
.gallery-section {
    background-color: var(--primary-bg);
    padding-bottom: 60px;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 20px;
}

.gallery-item {
    background-color: #1a1a1a;
    border: 2px solid var(--accent-cobalt);
    box-shadow: 5px 5px 0 var(--accent-red);
    overflow: hidden;
    text-align: center;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(50%) contrast(110%);
}

.image-caption {
    background-color: var(--accent-lime);
    color: var(--primary-bg);
    padding: 10px 15px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1em;
    position: absolute; /* Overlap effect */
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%); /* Start off-screen */
    transition: transform 0.1s linear;
}

.gallery-item:hover .image-caption {
    transform: translateY(0); /* Snap into view */
}

/* Success Stories Section */
.success-stories-section {
    background-color: #1a1a1a;
}

.story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #222;
    padding: 30px;
    border: 2px solid var(--accent-lime);
    box-shadow: 8px 8px 0 var(--accent-cobalt);
}

.story-card img {
    width: 120px;
    height: 120px;
    border-radius: 0; /* Brutalist - no rounded corners */
    border: 3px solid var(--accent-red);
    margin-bottom: 1em;
    filter: grayscale(70%) brightness(120%);
}

.story-card .card-title {
    color: var(--accent-lime);
    margin-bottom: 0.5em;
}

.testimonial-quote {
    font-style: italic;
    color: #ccc;
    margin-top: 1em;
    border-top: 1px dashed var(--accent-cobalt);
    padding-top: 1em;
}

/* Testimonials Section - Card Grid */
.testimonials-section {
    background-color: var(--primary-bg);
}

.testimonial-card {
    background-color: #222;
    padding: 30px;
    border: 2px solid var(--accent-red);
    box-shadow: 8px 8px 0 var(--accent-cobalt);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 0; /* Brutalist - no rounded corners */
    border: 3px solid var(--accent-lime);
    margin-bottom: 1em;
    filter: grayscale(50%);
}

.testimonial-text {
    font-size: 1.1em;
    margin-bottom: 1em;
    font-style: italic;
    color: #ccc;
}

.testimonial-author {
    font-family: var(--font-heading);
    color: var(--accent-cobalt);
    text-transform: uppercase;
    font-size: 1.1em;
}

/* FAQ Section - Simple List */
.faq-section {
    background-color: #1a1a1a;
    padding-bottom: 60px;
}

.faq-list {
    max-width: 900px;
    margin: 2em auto;
    list-style: none;
    padding: 0 20px;
}

.faq-list li {
    background-color: #222;
    margin-bottom: 20px;
    border: 2px solid var(--accent-cobalt);
    padding: 25px;
    box-shadow: 5px 5px 0 var(--accent-red);
}

.faq-list li h4 {
    color: var(--accent-lime);
    font-size: 1.6em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 10px;
}

.faq-list li p {
    color: #ddd;
    font-size: 1em;
    line-height: 1.8;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-bg);
    text-align: center;
    padding-bottom: 60px;
}

.newsletter-callout {
    max-width: 800px;
    margin: 2em auto;
    padding: 40px;
    border: 3px solid var(--accent-cobalt);
    background-color: #1a1a1a;
    box-shadow: 10px 10px 0 var(--accent-red);
    position: relative;
    z-index: 1;
}

.newsletter-callout p {
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 1.5em;
    color: var(--primary-text);
}


/* Contact Section - Multi Column */
.contact-section {
    background-color: #1a1a1a;
    padding-bottom: 60px;
}

.contact-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 20px;
}

.contact-info {
    background-color: #222;
    padding: 30px;
    border: 2px solid var(--accent-red);
    box-shadow: 5px 5px 0 var(--accent-lime);
    text-align: center;
}

.contact-info h3 {
    color: var(--accent-cobalt);
    font-size: 1.7em;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--accent-cobalt);
    padding-bottom: 10px;
}

.contact-info p {
    color: #ddd;
    font-size: 1em;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background-color: var(--accent-red);
    color: var(--primary-bg);
    text-align: center;
    padding: 2em 1em;
    font-family: var(--font-body);
    font-size: 0.9em;
    border-top: 5px solid var(--accent-cobalt);
    margin-top: -20px; /* Overlap */
    position: relative;
    z-index: 2;
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        margin-top: 1em;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    .section-title, .section-title-alt {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero-section {
        min-height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .card-grid,
    .contact-columns {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .service-highlight {
        flex-direction: column;
        gap: 20px;
        margin: 40px auto;
    }
    .service-highlight.reverse {
        flex-direction: column; /* Stack regardless of reverse */
    }
    .service-image {
        min-width: 100%;
        height: 300px;
    }
    .service-text {
        padding: 20px;
    }
    .comparison-table-container {
        padding: 0 10px;
    }
    .comparison-table {
        min-width: unset;
        width: 100%; /* Allow scroll for table content if it's too wide */
        display: block; /* For better mobile table handling */
        white-space: nowrap;
        overflow-x: auto;
    }
    /*
    .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td {
        display: block; /* Make table cells stack
    }
    .comparison-table tr {
        margin-bottom: 1em;
    }
    .comparison-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
        color: var(--accent-red);
    }
    .comparison-table thead {
        display: none; /* Hide header on small screens
    }
    */
    .gallery-item .image-caption {
        position: static; /* Always show caption on mobile */
        transform: translateY(0);
        margin-top: -5px; /* Brutalist "no spacing" */
    }
    .story-card, .testimonial-card, .about-card, .faq-list li, .contact-info {
        margin-bottom: 20px;
        box-shadow: 5px 5px 0 var(--accent-red);
    }
    .newsletter-callout {
        margin: 2em 10px;
        padding: 20px;
    }
}

/* Ensure comparison table data-label attributes for mobile - this applies only if the above commented out code is enabled */
/*
@media (max-width: 768px) {
    .comparison-table td:nth-of-type(1)::before { content: "Feature"; }
    .comparison-table td:nth-of-type(2)::before { content: "Essence Uncut"; }
    .comparison-table td:nth-of-type(3)::before { content: "Conventional Lifestyle Coaching"; }
}
*/

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
