/* ===================================================
   PROMINTEL GROUP — Main Stylesheet
   =================================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.5;
}
a { color: #1a5f3a; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2d8a5a; }
img { max-width: 100%; height: auto; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
    height: 70px;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo span {
    color: #1a5f3a;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link {
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: #1a5f3a; }

.btn-login {
    padding: 10px 25px;
    background: #1a5f3a;
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(26, 95, 58, 0.2);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}
.btn-login:hover {
    background: #2d8a5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 95, 58, 0.3);
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Main Content (offset for fixed navbar) --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 20px 40px;
    gap: 30px;
}
.page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 20px 40px;
}

/* --- Cards --- */
.hero-card, .section-card {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.logo { margin-bottom: 24px; }
.logo img { max-height: 120px; width: auto; display: inline-block; }

h1 {
    color: #1a5f3a;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    font-weight: 700;
}
h2 {
    color: #1a5f3a;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 25px;
    font-weight: 700;
}
h3 { color: #1a5f3a; margin-bottom: 10px; font-weight: 600; }
p { margin-bottom: 1em; }

.tagline {
    color: #666;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    font-style: italic;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}
.contact-item {
    color: #333;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Button --- */
.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 15px 40px;
    background: #1a5f3a;
    color: white;
    border-radius: 30px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 95, 58, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    background: #2d8a5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 58, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid #1a5f3a;
    color: #1a5f3a;
    box-shadow: none;
}
.btn-outline:hover {
    background: #1a5f3a;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 58, 0.3);
}

/* --- News --- */
.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.news-item:last-child { border-bottom: none; }
.news-date { color: #999; font-size: 0.9rem; margin-bottom: 6px; }
.news-title { color: #333; font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.news-excerpt { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* --- Contact Form --- */
.form-card { max-width: 600px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5f3a;
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}
.form-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
.form-status.error { display: block; background: #fbe9e7; color: #c62828; }

/* --- Contacts Info --- */
.contacts-card { max-width: 600px; }
.contacts-row p { font-size: 1.05rem; margin-bottom: 12px; }

/* --- Footer --- */
footer {
    background: white;
    padding: 24px 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}
footer p { margin-bottom: 6px; }
.footer-links a { color: #999; margin: 0 10px; }
.footer-links a:hover { color: #1a5f3a; }

/* --- Toast Container --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}
.toast {
    background: #1a5f3a;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    line-height: 1.4;
}
.toast.toast-hide { animation: slideOut 0.3s ease-in forwards; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

/* --- Page (subpages) --- */
.page-card {
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}
.page-card h1 { text-align: center; }
.page-card p, .page-card li { color: #555; font-size: 0.95rem; }
.page-card h2 {
    color: #1a5f3a;
    margin: 24px 0 10px;
    font-size: 1.2rem;
    text-align: left;
}
.page-card ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; text-align: left; }
.page-card li { margin-bottom: 4px; }
.page-back { margin-top: 28px; text-align: center; }
.text-muted { color: #999; font-size: 0.9em; }

/* ===================================================
   Mobile (max 768px)
   =================================================== */
@media (max-width: 768px) {
    .navbar { height: 60px; padding: 10px 0; }
    .nav-logo img { height: 32px; }
    .nav-logo span { font-size: 1rem; }
    .hamburger { display: flex; }

    .main-content { padding: 80px 16px 30px; gap: 24px; }
    .page-main { padding: 80px 16px 30px; }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 72px 20px 20px;
        gap: 2px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-link {
        padding: 14px 16px;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border-radius: 8px;
    }
    .nav-link:hover, .nav-link.active { background: rgba(26,95,58,0.06); }
    .nav-menu .btn-login {
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

    .hero-card, .section-card { padding: 32px 20px; }
    .logo { margin-bottom: 16px; }
    .logo img { max-height: 72px; }
    .hero-card h1 { font-size: 1.6rem; margin-bottom: 10px; }
    .tagline { font-size: 0.95rem; margin-bottom: 16px; }
    .contacts { gap: 8px; margin-top: 16px; }
    .contact-item { font-size: 0.9rem; }
    .btn { padding: 13px 28px; font-size: 0.95rem; margin-top: 18px; }

    .page-card { padding: 32px 20px; margin: 12px 0; }
    .page-card h1 { font-size: 1.5rem; }

    .toast-container { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero-card { padding: 24px 16px; }
    .hero-card h1 { font-size: 1.35rem; }
    .logo img { max-height: 56px; }
    .section-card { padding: 20px 14px; }
    .page-card { padding: 24px 16px; }
}
