/* CSS Variables for Grunge & Distressed Theme */
:root {
    --charcoal: #2A2A2A;
    --rust: #8B3E2F;
    --moss-green: #4A5C4A;
    --tan: #D4C7A5;
    --off-white: #F8F8F8;
    --dark-text: #1A1A1A;
    --grain-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKkFgAAAADklEQVQIHWNgGAUMAwABBgQCJgUf3AAAAABJRU5ErkJggg=='); /* Subtle noise */
    --brush-stroke-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAAAIBADIAAAADklEQVQIHWNgYGBgYAAAAAUBAhYAAAAASUVORK5CYII='); /* 2x2 px semi-transparent brush */
    --torn-edge-svg-bottom-charcoal: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q25,0 50,5 T100,5 L100,10 L0,10 Z" fill="%232A2A2A"/></svg>'); /* Charcoal torn edge */
    --torn-edge-svg-bottom-moss: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q25,0 50,5 T100,5 L100,10 L0,10 Z" fill="%234A5C4A"/></svg>'); /* Moss green torn edge */
    --torn-edge-svg-top-charcoal: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q25,10 50,5 T100,5 L100,0 L0,0 Z" fill="%232A2A2A"/></svg>'); /* Charcoal torn edge for top */
    --torn-edge-svg-top-moss: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q25,10 50,5 T100,5 L100,0 L0,0 Z" fill="%234A5C4A"/></svg>'); /* Moss green torn edge for top */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Special Elite', cursive;
    line-height: 1.7;
    color: var(--tan);
    background-color: var(--charcoal);
    background-image: var(--grain-texture);
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--off-white);
    letter-spacing: 0.1em;
    margin-bottom: 0.8em;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--rust);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

h3 {
    font-size: 1.8rem;
    color: var(--rust);
    letter-spacing: 0.08em;
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3em auto;
    font-style: italic;
    color: var(--tan);
    font-size: 1.15rem;
}

a {
    color: var(--rust);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tan);
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For pseudo-elements */
}

.textured-section {
    background-color: var(--moss-green);
    background-image: var(--grain-texture), url('images/image_20.jpg'); /* Example background texture */
    background-blend-mode: overlay, multiply;
    background-size: auto, cover;
    background-position: center;
    background-attachment: fixed;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
}
.textured-section h2, .textured-section h3, .textured-section p {
    color: var(--off-white);
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--rust);
    color: var(--off-white);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--rust);
}

.button:hover {
    background-color: var(--charcoal);
    color: var(--rust);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.grunge-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--brush-stroke-texture);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.grunge-button:hover::before {
    opacity: 1;.5;
}

/* Torn Edge Sections */
.torn-edge-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px; /* Adjust height for desired tear size */
    background: var(--torn-edge-svg-bottom-charcoal) repeat-x; /* Default for charcoal below */
    transform: translateY(100%); /* Position below current section */
    z-index: 2; /* Ensure it overlaps next section if needed */
}
/* Specific section adjustment to make torn edge background match next section */
.mission-section.torn-edge-bottom::after {
    background: var(--torn-edge-svg-bottom-moss) repeat-x; /* Match the next section's background color (moss) */
}
.clients-section.torn-edge-bottom::after {
    background: var(--torn-edge-svg-bottom-moss) repeat-x; /* Match the next section's background color (moss) */
}


.torn-edge-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px; /* Adjust height for desired tear size */
    background: var(--torn-edge-svg-top-moss) repeat-x; /* Default for moss above */
    transform: translateY(-100%); /* Position above current section */
    z-index: 2;
}
/* Specific section adjustment to make torn edge background match previous section */
.solutions-section.torn-edge-top::before {
    background: var(--torn-edge-svg-top-charcoal) repeat-x; /* Match the previous section's background color (charcoal) */
}
.support-section.torn-edge-top::before {
    background: var(--torn-edge-svg-top-charcoal) repeat-x; /* Match the previous section's background color (charcoal) */
}


/* Header & Navigation */
.site-header {
    background-color: rgba(42, 42, 42, 0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--rust);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-family: 'Rock Salt', cursive;
    font-size: 2.2rem;
    color: var(--tan);
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--off-white);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--rust);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh; /* Compact height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--charcoal);
    background-image: url('images/image_21.jpg'), var(--grain-texture); /* Subtle background image */
    background-size: cover, auto;
    background-position: center;
    background-blend-mode: overlay, normal;
    color: var(--off-white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.4em;
    color: var(--tan); /* Make H1 stand out */
    text-shadow: 3px 3px 7px rgba(0,0,0,0.8);
}

.hero-content p {
    font-family: 'Special Elite', cursive;
    font-size: 1.25rem;
    margin-bottom: 1.5em;
    color: var(--off-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* About Us Section */
.about-us-section {
    background-color: var(--moss-green);
    background-image: var(--grain-texture);
    background-blend-mode: overlay;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
    padding: 100px 0;
    color: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 0.8em;
}
.about-text h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
}
.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5em;
}
.about-text li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    font-family: 'Special Elite', cursive;
    color: var(--tan);
}
.about-text li::before {
    position: absolute;
    left: 0.3em;
    color: var(--rust);
    font-weight: bold;
}


.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 5px solid var(--rust);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    filter: grayscale(20%) saturate(120%) contrast(110%);
}


/* Mission Section (Card Grid) */
.mission-section {
    background-color: var(--charcoal);
    color: var(--tan);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 30px;
    margin-top: 40px;
}

.mission-cards .card {
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for card */
    border: 2px solid var(--rust);
    padding: 30px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-cards .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--brush-stroke-texture);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}
 .mission-cards .card:hover::before {
    opacity: 1;.3;
}


.mission-cards .card h3 {
    color: var(--tan);
    font-family: 'Rock Salt', cursive;
    margin-bottom: 1em;
    font-size: 1.6rem;
}

.mission-cards .card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 1.5em;
    border: 1px solid var(--moss-green);
    filter: brightness(0.9) contrast(1.1);
}

.mission-cards .card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--off-white);
}

/* Services Section (Tabbed Interface) */
.services-section {
    background-color: var(--moss-green);
    color: var(--off-white);
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--rust);
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    padding: 20px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-button {
    background-color: var(--charcoal);
    color: var(--tan);
    padding: 12px 25px;
    border: 1px solid var(--rust);
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--brush-stroke-texture);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tab-button:hover::before {
    opacity: 1;.5;
}

.tab-button.active {
    background-color: var(--rust);
    color: var(--off-white);
    border-color: var(--tan);
}

.tab-button:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--rust);
}

.tab-pane {
    display: none;
    padding: 20px;
    color: var(--off-white);
    line-height: 1.7;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--tan);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.2em;
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px; /* Text and image side-by-side */
    gap: 30px;
    align-items: flex-start;
}
.tab-content-grid .tab-text p {
    margin-bottom: 1.2em;
}
.tab-content-grid .tab-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5em;
}
.tab-content-grid .tab-text li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    color: var(--tan);
}
.tab-content-grid .tab-text li::before {
    content: '•';
    position: absolute;
    left: 0.3em;
    color: var(--rust);
    font-weight: bold;
}

.tab-content-grid .tab-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--tan);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    filter: grayscale(10%) contrast(105%);
}

/* Solutions Section (Comparison Table) */
.solutions-section {
    background-color: var(--charcoal);
    color: var(--tan);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border: 2px solid var(--rust);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure table doesn't get too narrow on small screens */
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    border: 1px solid var(--moss-green);
    text-align: left;
    font-size: 1rem;
    color: var(--off-white);
}

.comparison-table th {
    background-color: rgba(0, 0, 0, 0.6);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--tan);
}

.comparison-table tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.3);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.comparison-table td:first-child {
    font-weight: bold;
    color: var(--rust);
}

/* Gallery Section (Masonry Layout) */
.gallery-section {
    background-color: var(--moss-green);
    color: var(--off-white);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: minmax(50px, auto); /* Allow rows to size naturally */
    gap: 15px;
    margin-top: 40px;
}

.masonry-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 2px solid var(--tan);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9) contrast(1.1) grayscale(5%);
}

.masonry-grid img:hover {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.2) grayscale(0%);
}

/* Clients Section (Social Proof) */
.clients-section {
    background-color: var(--charcoal);
    color: var(--tan);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--moss-green);
    padding: 25px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--brush-stroke-texture);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}
 .testimonial-card:hover::before {
    opacity: 1;.3;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--rust);
    filter: saturate(1.2) contrast(1.1);
}

.client-info h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.2em;
    color: var(--rust);
}

.client-info .handle {
    font-family: 'Special Elite', cursive;
    color: var(--tan);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.2em;
}

.review-date {
    font-family: 'Special Elite', cursive;
    font-size: 0.85rem;
    color: rgba(212, 199, 165, 0.7);
    margin-top: 0.5em;
}

.testimonial-text {
    font-family: 'Special Elite', cursive;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--off-white);
    font-style: italic;
}

/* FAQ Section (Tabbed Interface) */
.faq-section {
    background-color: var(--moss-green);
    color: var(--off-white);
}
.faq-section .tabs-container {
    padding: 30px;
}
.faq-section .tab-pane h3 {
    text-align: left;
    margin-bottom: 0.5em; /* Specific for individual question headings */
}

.faq-item {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rust);
    margin-bottom: 15px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    overflow: hidden; /* For accordion effect */
}

.faq-question {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--tan);
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--charcoal);
    transition: background-color 0.3s ease;
    position: relative;
}
.faq-question:hover {
    background-color: rgba(0,0,0,0.8);
}

.faq-question::after {
    content: '+';
    font-family: sans-serif; /* Use a simple sans-serif font for the symbol */
    font-size: 1.5rem;
    color: var(--rust);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 25px; /* Adjust padding for content */
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--off-white);
    line-height: 1.6;
    padding-bottom: 0;
}
.faq-answer[aria-hidden="false"] {
    padding-top: 15px;
    padding-bottom: 25px;
}

.faq-answer p {
    margin-bottom: 1em;
    font-size: 1rem;
}

/* Support Section (Community Focus - re-interpreted) */
.support-section {
    background-color: var(--charcoal);
    color: var(--tan);
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.support-card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--rust);
    padding: 30px;
    text-align: center;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--brush-stroke-texture);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}
 .support-card:hover::before {
    opacity: 1;.3;
}

.support-card h3 {
    color: var(--tan);
    font-family: 'Rock Salt', cursive;
    margin-bottom: 1em;
    font-size: 1.6rem;
}

.support-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--off-white);
    margin-bottom: 1.5em;
}
.support-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
    text-align: left;
    color: var(--off-white);
}
.support-card li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    color: var(--tan);
}
.support-card li::before {
    content: '•';
    position: absolute;
    left: 0.3em;
    color: var(--rust);
    font-weight: bold;
}


/* Footer */
.site-footer {
    background-color: var(--moss-green);
    color: var(--off-white);
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 2px solid var(--rust);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.7);
    position: relative;
    background-image: var(--grain-texture);
    background-blend-mode: overlay;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col .footer-logo {
    font-family: 'Rock Salt', cursive;
    font-size: 2rem;
    color: var(--tan);
    letter-spacing: 0.05em;
    margin-bottom: 1em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--rust);
    letter-spacing: 0.08em;
    margin-bottom: 1.2em;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tan);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--off-white);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}
.footer-col ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--tan);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
}


.footer-bottom {
    text-align: center;
    border-top: 1px dashed rgba(212, 199, 165, 0.3);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(212, 199, 165, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide for smaller screens, could implement a hamburger menu if allowed, but strict instructions avoid complex JS for nav */
    }

    .main-nav {
        justify-content: center; /* Center logo if nav links are hidden */
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }
    h2::after {
        width: 60px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text h2 {
        text-align: center;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-image {
        order: -1; /* Image first on mobile */
    }


    .grid-3-cols {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .tab-button {
        width: 100%;
    }

    .tab-content-grid {
        grid-template-columns: 1fr;
    }
    .tab-content-grid .tab-image {
        order: -1; /* Image first on mobile */
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .comparison-table {
        min-width: 500px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        text-align: center;
    }
    .footer-col ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .logo {
        font-size: 1.8rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .container {
        padding: 0 1rem;
    }
}

/* 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;
}

/* Enhanced: Missing animation classes from JS */
.fade-in-left {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 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;}
