:root {
    /* Keep in sync with PRIMARY_COLOR / SECONDARY_COLOR in config.php */
    --primary-color: #00796B;
    --secondary-color: #6c757d;
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

header {
    background: var(--primary-color);
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header nav ul {
    float: right;
    margin-top: 10px;
}

header nav ul li {
    float: left;
    display: inline;
    margin-right: 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 18px;
}

header nav ul li a:hover {
    background: #e8491d;
    display: block;
}

header .logo {
    float: left;
    font-size: 24px;
    margin-top: 10px;
}

header .hamburger-menu {
    float: right;
    margin-top: 10px;
    font-size: 24px;
    display: none;
    cursor: pointer;
}

.hero {
    background-image: url('../images/hero-banner.png');
    background-size: cover;
    background-position: center;
    height: 40vh;
    color: #000;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5em;
    margin-bottom: 40px;
}

.features {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}

.feature-block {
    display: inline-block;
    width: 25%;
    padding: 10px;
}

.feature-block img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.feature-block p {
    font-size: 1em;
    margin-bottom: 20px;
}

.screenshot-gallery {
    padding: 50px 0;
    background: #f4f4f4;
    text-align: center;
}

.carousel {
    position: relative;
}

.carousel img {
    width: 100%;
    max-width: 600px;
    display: none;
}

.carousel img.active-slide {
    display: block;
}

.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.prev-slide {
    left: 50px;
}

.next-slide {
    right: 50px;
}

.cta {
    background: var(--primary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.cta a img {
    width: 150px;
    height: auto;
}

.about-section {
    padding: 50px 0;
    background: #fff;
}

.about-section h2, .about-section h3 {
    margin-bottom: 20px;
}

.version-history {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.version-history th, .version-history td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.features-details {
    padding: 50px 0;
    background: #ffffff;
}

.feature-detail {
    background: #f4f4f4;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.feature-detail img {
    width: 75px;
    height: 75px;
    margin-bottom: 20px;
}

.faq-section {
    padding: 50px 0;
    background: #fff;
}

.faq-block {
    background: #f4f4f4;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
}

.faq-block h3 {
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    cursor: pointer;
    margin-top: 0;
}

.faq-block h3::after {
    float: right;
    content: "+";
    margin-left: 10px;
}

.faq-block.open h3::after {
    content: "-";
}

.faq-block .faq-answer {
    padding: 10px;
    display: none;
}

.contact-section {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}

.contact-section input[type="text"], .contact-section input[type="email"], .contact-section textarea {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-section button {
    width: fit-content;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-section button:hover {
    background: #e8491d;
    opacity: 0.8;
}

.social-icons {
    margin-top: 20px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

.support-section {
    padding: 50px 0;
    background: #fff;
    text-align: center;
}

.support-section ul, .support-section ol {
    padding-left: 20px;
    margin-top: 20px;
}

.support-section ul li, .support-section ol li {
    margin-bottom: 10px;
}

.changelog {
    padding: 50px 0;
    background: #fff;
}

.changelog article {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

footer .social-links img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Mobile-first Responsive Design */
@media(max-width: 768px) {
    header nav ul {
        display: none;
    }
    header .hamburger-menu {
        display: block;
    }

    .feature-block {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Honeypot field: visually removed for humans, present for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}

.form-feedback {
    margin-top: 15px;
    font-weight: bold;
}
