/* ========== Base ========== */

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #F7E5D7;
    overflow-x: hidden;
    scroll-behavior: smooth;  
}

/* ========== Header / Navigation ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;     /* nav left, logo right on desktop */
    width: 100%;
    padding: 8px 24px;
    background-color: #F7E5D7;          /* tan background */
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Logo on the right */
.logo {
    height: 56px;
    max-width: 140px;                   /* prevent logo overflow */
    width: auto;
    display: block;
}

/* Desktop navigation: always visible on large screens */
.navigation {
    flex: 0 0 auto;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}

.navigation ul li {
    margin: 0;
    padding: 0;
}

.navigation ul li a {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    color: #333;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active link */
.navigation ul li a.active {
    background-color: #de5b6c;
    color: #ffffff;
}

/* Hover state */
.navigation ul li a:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: #111;
}

/* Hamburger is hidden on desktop */
.menu-button {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-right: 12px;
}

/* ========== Mobile layout ========== */

@media (max-width: 768px) {
    .site-header {
        justify-content: center;        /* center the logo */
        padding: 10px 16px;
    }

    .logo {
        height: 48px;
        max-width: 120px;
        margin: 0 auto;
    }

    .menu-button {
        display: block;
        position: absolute;
        left: 12px;
        top: 12px;
    }

    /* Hidden by default on mobile, opened by JS with .open class */
    .navigation {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        background-color: #F7E5D7;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
        padding: 8px 0;
    }

    .navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 4px 12px;
    }

    .navigation ul li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 14px;
        border-radius: 8px;
    }

    /* When JS adds .open, show the mobile dropdown */
    .navigation.open {
        display: block;
    }
}

/* ========== Hero section ========== */

.hero {
    padding: 10px 50px;
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F7E5D7;
    border-bottom: 2px solid #dcdcdc;
    gap: 10px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 10px;
    font-family: 'Montserrat', serif;
    font-weight: 700;
}

.hero p {
    font-size: 1em;
    margin-bottom: 5px;
}

.app-store-button {
    display: inline-block;
    cursor: pointer;
    margin: 0 auto;
    text-decoration: none;
    width: 200px;
}

.app-store-button img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.app-store-button:hover {
    opacity: 0.9;
}

/* Preview database button */
.preview-database-button {
    display: inline-block;
    margin-top: -10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    background-color: #F7E5D7;
    border: 2px solid #000000;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.preview-database-button:hover {
    background-color: #e6d3c4;
    color: #000000;
    transform: scale(1.05);
}

/* Hero responsive */

@media screen and (max-width: 768px) {
    .hero {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.8em;
    }
}

/* ========== Generic container ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== Features section ========== */

.features-section {
    background-color: #f8f9fa;
    padding: 25px 10px 80px;
}

/* Section title in Features and Contact */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    color: #B5A79E;
    margin: 0;
    padding: 20px 0;
    border-bottom: 2px solid #B5A79E;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature rows */

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    position: relative;
}

/* Feature images */

.feature img {
    width: 15%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Reversed layout */

.feature.reverse img {
    left: auto;
    right: 0;
}

/* Text content */

.feature-text {
    flex: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.feature h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Features responsive */

@media screen and (max-width: 768px) {
    .feature {
        flex-direction: column;
        align-items: center;
    }

    .feature img {
        position: relative;
        left: unset;
        right: unset;
        top: unset;
        transform: unset;
        width: 80%;
        margin: 20px 0;
    }

    .feature-text {
        max-width: 100%;
    }
}

/* ========== Contact section ========== */

.contact-section {
    background-color: #ffffff;
    padding: 50px 20px;
    text-align: center;
}

/* Intro paragraph above form */

.contact-intro {
    max-width: 750px;
    margin: 0 auto 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Form layout */

.form-group {
    width: calc(100% - 40px);
    max-width: 600px;
    margin: auto;
    box-sizing: border-box;
}

/* Inputs and textarea in contact form */

input[type="text"],
input[type="email"],
textarea {
    width: calc(100% - 40px);
    max-width: 500px;
    margin: 10px 0;
    padding: 12px 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: inline-block;
}

/* Form wrapper */

form {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Submit button */

.submit-button {
    font-size: 15px;
    color: #fff;
    background-color: #000;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    margin: 10px 0;
    width: auto;
}

.submit-button:hover {
    opacity: 0.9;
}

/* Contact info beneath form */

.contact-info {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 30px;
}

/* ========== Lightbox (used by script.js on index images) ========== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ========== Footer ========== */

footer {
    background-color: #f8f9fa;
    padding: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Social section */

.social-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    color: #B5A79E;
    margin: 0;
    padding: 20px 0;
    border-bottom: 2px solid #B5A79E;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.social-section a {
    display: inline-block;
    margin: 0 10px;
    padding: 20px 0;
}

.social-section img {
    width: 40px;
    height: auto;
    margin: 20px 0;
}

/* Footer main section */

.footer-container {
    background-color: #f8f9fa;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    gap: 20px;
    margin-bottom: 0;
}

.footer-links,
.footer-support {
    text-align: center;
}

.footer-links h4,
.footer-support h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.footer-links a,
.footer-support a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
}

.footer-links a:hover,
.footer-support a:hover {
    color: #000;
}

.footer-support img {
    margin-top: 10px;
}

/* Bottom footer */

.footer-bottom {
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    margin-top: 0;
}

.footer-bottom hr {
    border: 0.5px solid #ccc;
    margin: 10px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #555;
}