*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #b91c1c;
    color: #000000;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Landing Wrapper */
.landing-wrapper {
    max-width: 1000px;
    width: 100%;
    background-color: #ffffff;
    border: 4px solid #000000;
    box-shadow: 10px 10px 0px 0px #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #ffffff;
}

.logo-area {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-accent {
    color: #b91c1c;
}

.header-address {
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid #000000;
    padding: 5px 10px;
    background-color: #eeeeee;
    box-shadow: 3px 3px 0px 0px #000000;
}

/* Marquee Band */
.marquee-band {
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    border-bottom: 4px solid #000000;
    font-family: 'Arial Black', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    padding: 50px 30px;
    background-color: #ffffff;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

.badge-status {
    display: inline-block;
    background-color: #22c55e;
    color: #000000;
    border: 3px solid #000000;
    padding: 6px 14px;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 3px 3px 0px 0px #000000;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 0.05em;
    color: #000000;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.15;
}

.hero-content .text-highlight {
    color: #b91c1c;
    display: inline-block;
}

.description {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta-btn {
    display: inline-block;
    background-color: #b91c1c;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 28px;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    text-transform: uppercase;
    border: 4px solid #000000;
    box-shadow: 6px 6px 0px 0px #000000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-cta-btn:hover {
    background-color: #a01925;
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 8px 8px 0px 0px #000000;
}

.hero-cta-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px 0px #000000;
}

.hero-image-container {
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px 0px #000000;
    object-fit: cover;
}

.hero-badge-floating {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #fef08a;
    color: #000000;
    border: 3px solid #000000;
    padding: 8px 16px;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px 0px #000000;
    transform: rotate(5deg);
    transition: transform 0.2s ease;
}

.hero-image-wrapper:hover .hero-badge-floating {
    transform: rotate(-5deg) scale(1.05);
}

/* Posts Section */
.posts-section {
    padding: 50px 30px;
    background-color: #f3f4f6;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 25px 15px;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    border: 4px solid #000000;
    box-shadow: 5px 5px 0px 0px #000000;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background-color: #fcfcfc;
    transform: scale(1.04) rotate(1deg);
    box-shadow: 8px 8px 0px 0px #000000;
}

.btn:nth-child(even):hover {
    transform: scale(1.04) rotate(-1deg);
}

.btn:active {
    transform: translate(5px, 5px);
    box-shadow: 0px 0px 0px 0px #000000;
}

.btn-num {
    font-size: 2.2rem;
    color: #eeeeee;
    position: absolute;
    top: 5px;
    right: 10px;
    font-weight: 900;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.btn:hover .btn-num {
    color: #f4dddd;
}

.btn-title {
    font-size: 1.4rem;
    z-index: 2;
    margin-top: 10px;
}

.btn-sub {
    font-size: 0.8rem;
    font-weight: 900;
    color: #be1e2d;
    margin-top: 6px;
    text-transform: uppercase;
    z-index: 2;
}

/* EHRLE Technology Section */
.ehrle-section {
    padding: 50px 30px;
    background-color: #ffffff;
}

.ehrle-header {
    text-align: center;
    margin-bottom: 35px;
}

.ehrle-header h2 {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
}

.ehrle-brand {
    color: #b91c1c;
}

.ehrle-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: 5px;
}

.ehrle-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ehrle-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .ehrle-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: #eeeeee;
    border: 3px solid #000000;
    padding: 25px;
    box-shadow: 5px 5px 0px 0px #000000;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: 8px 8px 0px 0px #000000;
}

.feature-card h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #b91c1c;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 600;
    color: #1f2937;
}

/* Gallery styling */
.gallery-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

.gallery-main {
    width: 100%;
}

.gallery-img-large {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px 0px #000000;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-img-thumb {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border: 3px solid #000000;
    box-shadow: 5px 5px 0px 0px #000000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-img-thumb:hover {
    transform: scale(1.03);
    box-shadow: 8px 8px 0px 0px #000000;
}

/* FOP Info & Legal Section */
.fop-section {
    padding: 40px 30px;
    background-color: #f3f4f6;
}

.footer-legal {
    padding-top: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
}

.footer-title {
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.fop-card {
    background-color: #ffffff;
    /* Soft white card */
    border: 4px solid #b91c1c;
    /* Bold red border to tie with brand color */
    padding: 30px;
    box-shadow: 8px 8px 0px 0px #000000;
    margin-bottom: 25px;
}

.fop-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

@media (max-width: 600px) {
    .fop-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.fop-details div {
    font-size: 1.1rem;
}

.fop-details a {
    color: #b91c1c;
    text-decoration: underline;
    font-weight: 900;
}

.fop-details a:hover {
    color: #000000;
}

.legal-links {
    margin-top: 25px;
    border-top: 3px solid #000000;
    padding-top: 20px;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.legal-links a {
    color: #000000;
    text-decoration: underline;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-links a:hover {
    color: #b91c1c;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px 0px #000;
    padding: 25px;
    overflow-y: auto;
    text-align: left;
    position: relative;
}

.modal-close {
    float: right;
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    font-weight: 900;
    border: 2px solid #000;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.2s;
}

.modal-close:hover {
    background: #a01925;
}

.modal-close:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px #000;
}

.modal h2 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 900;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.modal p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    .landing-wrapper {
        border-width: 3px;
        box-shadow: 6px 6px 0px 0px #000000;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        padding: 20px 15px;
        text-align: center;
    }

    .logo-area {
        font-size: 1.6rem;
    }

    .header-address {
        font-size: 0.85rem;
        padding: 6px 12px;
        width: auto;
        display: inline-block;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 16px;
        gap: 24px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .badge-status {
        margin-bottom: 16px;
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 12px;
        max-width: 100%;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
        color: #4b5563;
        max-width: 100%;
    }

    .hero-cta-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 15px 20px;
        font-size: 1.05rem;
        box-shadow: 4px 4px 0px 0px #000000;
    }

    .hero-cta-btn:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px 0px #000000;
    }

    .hero-image-container {
        width: 100%;
        max-width: 380px;
        margin-top: 10px;
    }

    .hero-image-wrapper {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        box-shadow: 5px 5px 0px 0px #000000;
    }

    .hero-badge-floating {
        top: -8px;
        right: -8px;
        font-size: 0.75rem;
        padding: 6px 12px;
        box-shadow: 3px 3px 0px 0px #000000;
    }

    .posts-section {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .btn {
        padding: 18px 10px;
        border-width: 3px;
        box-shadow: 4px 4px 0px 0px #000000;
    }

    .btn:active {
        transform: translate(4px, 4px);
        box-shadow: 0px 0px 0px 0px #000000;
    }

    .btn-title {
        font-size: 1.1rem;
        margin-top: 5px;
    }

    .btn-num {
        font-size: 1.4rem;
        top: 3px;
        right: 6px;
    }

    .btn-sub {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .ehrle-section {
        padding: 30px 15px;
    }

    .ehrle-header h2 {
        font-size: 1.4rem;
    }

    .ehrle-subtitle {
        font-size: 0.95rem;
    }

    .ehrle-content {
        gap: 20px;
    }

    .feature-card {
        padding: 15px;
        border-width: 2px;
        box-shadow: 4px 4px 0px 0px #000000;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .gallery-img-large {
        height: 200px;
        box-shadow: 5px 5px 0px 0px #000000;
        border-width: 3px;
    }

    .gallery-thumbs {
        gap: 8px;
    }

    .gallery-img-thumb {
        height: 80px;
        border-width: 2px;
        box-shadow: 3px 3px 0px 0px #000000;
    }

    .fop-section {
        padding: 30px 15px;
    }

    .fop-card {
        padding: 20px 15px;
        box-shadow: 5px 5px 0px 0px #000000;
        border-width: 3px;
    }

    .fop-details div {
        font-size: 0.9rem;
    }

    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}