/* ============================================================
   SILVIDENT — style.css
   How to read this file:
   - Everything above the @media line = desktop styles
   - Everything inside @media (max-width: 768px) = mobile styles
============================================================ */


/* ===========================
   1. RESET & BASE
   Removes default browser spacing and sets base font
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1a2e4a;
    background: #ffffff;
    line-height: 1.6;
}

/* Centers content and limits max width on wide screens */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ===========================
   2. NAVBAR
=========================== */
.navbar {
    background: #1a3a5c;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* RO / RU buttons */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: #1a3a5c;
    border-color: white;
}

.lang-btn:hover:not(.active) {
    color: white;
    border-color: rgba(255, 255, 255, 0.7);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* Hamburger button — 3 horizontal bars */
.hamburger {
    display: none; /* Hidden on desktop, shown on mobile via media query */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.25s;
}

/* Animate hamburger to X when menu is open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu — hidden by default */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: #15304e;
    padding: 8px 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}


/* ===========================
   3. HERO SECTION
=========================== */
.hero {
    background: #f4f8fc;
    padding: 90px 0;
}

.hero-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4a9eda;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.2;
    margin-bottom: 18px;
    max-width: 620px;
}

.hero-sub {
    font-size: 17px;
    color: #5a7a9a;
    margin-bottom: 36px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    background: #1a3a5c;
    color: white;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2a5a8c;
}


/* ===========================
   4. SHARED SECTION STYLES
=========================== */
section {
    padding: 76px 0;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 16px;
}


/* ===========================
   5. ABOUT SECTION
=========================== */
.about {
    background: #ffffff;
}

.about-text {
    font-size: 16px;
    color: #3a5a7a;
    max-width: 720px;
    line-height: 1.85;
}


/* ===========================
   6. SERVICES SECTION
=========================== */
.services {
    background: #f4f8fc;
}

/* auto-fill = as many columns as fit, each min 240px wide */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 26px;
    border: 1px solid #dde8f0;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 4px 18px rgba(26, 58, 92, 0.09);
}

.service-icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: #5a7a9a;
    line-height: 1.65;
}


/* ===========================
   7. ACCREDITATION SECTION
=========================== */
.accreditation {
    background: #ffffff;
}

.accred-box {
    background: #f4f8fc;
    border: 1px solid #dde8f0;
    border-radius: 10px;
    padding: 36px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dashed box — placeholder until real badge arrives */
.badge-placeholder {
    font-size: 14px;
    color: #8aacca;
    font-style: italic;
    border: 2px dashed #c8dced;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}

.accred-text {
    font-size: 15px;
    color: #3a5a7a;
    line-height: 1.75;
}


/* ===========================
   9. LEGAL SECTION
=========================== */
.legal {
    background: #ffffff;
}

.legal-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.legal-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8f0f8;
}

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

.legal-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4a9eda;
    min-width: 180px;
    padding-top: 2px;
}

.legal-value {
    font-size: 15px;
    color: #2a4a6a;
}


/* ===========================
   10. CONTACT SECTION
=========================== */
.contact {
    background: #f4f8fc;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
}

.contact-item {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4a9eda;
    min-width: 90px;
    padding-top: 2px;
}

.contact-value {
    font-size: 15px;
    color: #2a4a6a;
    line-height: 1.8;
}

.contact-link {
    text-decoration: none;
    color: #2a4a6a;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

.contact-closed {
    color: #8aacca;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hours-row {
    display: flex;
    gap: 16px;
}

.hours-day {
    font-size: 15px;
    color: #2a4a6a;
    min-width: 110px;
}

.hours-time {
    font-size: 15px;
    color: #2a4a6a;
}


/* ===========================
   11. FOOTER
=========================== */
.footer {
    background: #1a3a5c;
    padding: 26px 0;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}


/* ===========================
   10. RESPONSIVE — MOBILE
   Everything below here only applies when
   the screen is 768px wide or smaller (tablets, phones)
=========================== */
@media (max-width: 768px) {

    /* Hide desktop nav links, show hamburger button */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Smaller hero text on mobile */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 15px;
    }

    /* Sections have less vertical padding on mobile */
    section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 24px;
    }

    /* Service cards: 2 columns on mobile instead of 4 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 18px;
    }

    .service-icon {
        font-size: 24px;
    }

    /* Contact items stack vertically on mobile */
    .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .contact-label {
        min-width: unset;
    }

    /* Accreditation box less padding on mobile */
    .accred-box {
        padding: 24px;
    }
}


/* Very small phones */
@media (max-width: 380px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 26px;
    }
}
