/* ============================================================
   DemoPro — Main Stylesheet (mobile-first)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
    --orange:        #FF5405;
    --orange-dark:   #DD2B00;
    --white:         #FFFFFF;
    --off-white:     #F8F8F8;
    --text:          #333333;
    --text-muted:    #666666;
    --text-on-orange: rgba(255, 255, 255, 0.92);
    --nav-large:     88px;
    --nav-small:     56px;
    --max-width:     1080px;
    --section-pad:   64px 0;
    --h-pad:         24px;
    --radius:        10px;
    --transition:    0.25s ease;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

h2 {
    font-family: 'Raleway', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a:not(.no-style) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:not(.no-style):hover { opacity: 0.75; }

strong { font-weight: 600; }

/* ---- Header / Nav ---- */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-large);
    background: var(--white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: height var(--transition), box-shadow var(--transition);
}

#header.small {
    height: var(--nav-small);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 36px;
    height: 36px;
    transition: width var(--transition), height var(--transition);
}

#header.small .logo img { width: 28px; height: 28px; }

.logo-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--orange);
}

/* Nav */
#nav {
    display: none; /* shown on desktop */
    flex: 1;
}

#nav ul {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

#nav a {
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

#nav a:hover,
#nav a.active {
    color: var(--orange);
    background: rgba(255, 51, 0, 0.08);
}

/* Language switcher */
.lang-switcher {
    display: none; /* shown on desktop */
    margin-left: 8px;
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    transition: all var(--transition);
}

.lang-switcher a:hover {
    color: var(--text);
    border-color: var(--text);
}

/* Hamburger */
#menubutton {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

#menubutton:hover { opacity: 1; }
#menubutton img { width: 22px; height: 22px; filter: brightness(0); }

/* Mobile nav drawer */
#mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-large);
    left: 0; right: 0;
    background: var(--orange-dark);
    z-index: 99;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

#header.small + #mobile-nav { top: var(--nav-small); }

#mobile-nav.open { display: block; }

#mobile-nav ul { padding: 0 24px; }

#mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
#mobile-nav li:last-child { border-bottom: none; }

#mobile-nav a {
    display: block;
    padding: 14px 0;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
}

#mobile-nav a.active { color: var(--white); font-weight: 600; }

#mobile-nav .mobile-lang {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

#mobile-nav .mobile-lang a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
}

/* ---- Main Layout ---- */
main { padding-top: var(--nav-large); }

/* ---- Sections ---- */
section {
    padding: var(--section-pad);
}

section.orange {
    background: var(--orange);
    color: var(--text-on-orange);
}

section.white { background: var(--white); }
section.white + section.white { padding-top: 0; }
section.off-white { background: var(--off-white); }

section.orange h2 {
    color: var(--white);
}

section.orange p {
    color: var(--text-on-orange);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--h-pad);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.container.centered {
    align-items: center;
    text-align: center;
    gap: 12px;
}

.text-content { flex: 1; }

.visual img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.visual.no-frame img,
section.orange .visual.no-frame img {
    border-radius: 0;
    box-shadow: none;
}

section.orange .visual img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ---- Download Section ---- */
.appstore-btn {
    display: inline-block;
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition);
}

.appstore-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.appstore-btn img { height: 50px; width: auto; }

.requirement {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0;
}

/* ---- FAQ Page ---- */
.faq-list { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--h-pad); }

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #E8E8E8;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-item p { color: var(--text-muted); font-size: 0.95rem; }

.faq-item a { color: var(--orange); }

.faq-header {
    max-width: var(--max-width);
    margin: 0 auto 8px;
    padding: 0 var(--h-pad);
}

.faq-header h2 { margin-bottom: 0; }

/* ---- Contact Page ---- */
.contact-intro {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    padding: 0 var(--h-pad);
}

.contact-form {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--h-pad);
    width: 100%;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 51, 0, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #E03030;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    font-size: 0.8rem;
    color: #E03030;
    display: none;
}

.form-error.visible { display: block; }

.form-submit {
    margin-top: 8px;
}

.btn-send {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-send:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.btn-send:active { transform: translateY(0); }

.form-success {
    display: none;
    padding: 20px;
    background: #F0FFF4;
    border: 1px solid #68D391;
    border-radius: 8px;
    color: #276749;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.visible { display: block; }

/* ---- Footer ---- */
footer {
    background: var(--off-white);
    border-top: 1px solid #EBEBEB;
    padding: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Responsive: 800px+ ---- */
@media (min-width: 800px) {
    :root { --section-pad: 80px 0; --h-pad: 40px; }

    #nav { display: flex; }
    .lang-switcher { display: block; }
    #menubutton { display: none; }
    .header-inner { padding: 0 40px; }

    h2 { font-size: 2.1rem; }

    .container {
        flex-direction: row;
        align-items: center;
        gap: 56px;
    }

    .container.centered { flex-direction: column; }

    .container.reverse { flex-direction: row-reverse; }

    .text-content { min-width: 0; }
    .visual { flex-shrink: 0; width: 48%; }

    .form-row { flex-direction: row; }
}

/* ---- Responsive: 1080px+ ---- */
@media (min-width: 1080px) {
    :root { --section-pad: 96px 0; }

    h2 { font-size: 2.4rem; }
}
