:root {
    --header-height: 70px;
    --width-container:1000px;
}

*:before,
*:after {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding-top: var(--header-height);
}

h1 {
    margin:5px;
    padding:10px;
    font-family: "Montserrat", sans-serif;
    color: #008e42;   
    font-size:2rem;
    font-weight:bolder;
    display:block;
    text-align: center;
}

ul {
    font-family: "Montserrat", sans-serif;
    color:#000000;
    font-size:1rem;
    font-weight:normal;
    list-style: disc;
    margin-left:20px;
    padding:0;
}

li {
    margin-bottom: 5px;   
}

.css_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    width: 100%;
    height: var(--header-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: filter 0.3s ease;
    border-bottom:5px solid #eaab22;
}

body.menu-open .css_header {
    filter: grayscale(1);
}

.css_logo img {
    height: 60px;
    width: auto;
}

@media (max-width: 800px) {
    /* Header: lasă loc pentru hamburger; logo-ul nu împinge butonul în afara ecranului */
    .css_header_inner {
        min-width: 0;
        gap: 0.35rem;
    }

    .css_logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .css_logo img {
        height: 40px;
        width: auto;
        max-width: min(260px, calc(100vw - 5.5rem));
        object-fit: contain;
        object-position: left center;
        display: block;
    }

    .css_hamburger {
        flex-shrink: 0;
        margin: 15px 8px 15px auto;
    }
}

.css_header_shell {
    width: 100%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

.css_header_topbar {
    display: none;
}

.css_header_inner {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.css_header_icon {
    flex-shrink: 0;
    display: block;
}

.css_hamburger {
    margin: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.css_hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}


/* Top line tilts down */
.css_hamburger.open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

/* Middle line disappears */
.css_hamburger.open span:nth-child(2) {
    opacity: 0;
}

/* Bottom line tilts up */
.css_hamburger.open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.css_menu_mobile {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #fff;
    transition: left 0.3s ease;
    padding: 0;
    z-index: 100;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Bară sus în overlay: logo stânga, × dreapta (ca logo + hamburger în header) */
.css_menu_mobile_top {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: var(--header-height);
    box-sizing: border-box;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 6;
}

.css_menu_mobile.active .css_menu_mobile_top {
    display: flex;
}

.css_menu_mobile_logo {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}

.css_menu_mobile_logo img {
    height: 40px;
    width: auto;
    max-width: min(220px, calc(100vw - 5.5rem));
    object-fit: contain;
    object-position: left center;
    display: block;
}

.css_nav_close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: #111;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.css_nav_close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

.css_nav_close:active {
    background: rgba(0, 0, 0, 0.1);
}

.css_menu_mobile.active {
    left: 0;
    z-index: 102;
}

.css_menu_inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.css_menu_mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.css_menu_mobile ul a {
    display: block;
    padding: 10px;
    font-family: "Sofia Pro", sans-serif;
    font-size: 20px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgb(0, 0, 0);
}

.css_menu_mobile ul a:active {
    background-color:#00be62
}

/* Desktop: bară contact + logo stânga, meniu dreapta */
@media (min-width: 801px) {
    :root {
        --header-height: 100px;
    }

    .css_header {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .css_header_shell {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .css_header_topbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 6px 0 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-family: "Montserrat", sans-serif;
        font-size: 0.8125rem;
        color: #555;
    }

    .css_header_social {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.65rem;
    }

    .css_header_social_link {
        display: flex;
        align-items: center;
        color: #333;
        text-decoration: none;
        opacity: 0.75;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .css_header_social_link:hover {
        opacity: 1;
        color: #00be62;
    }

    .css_header_inner {
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 10px;
    }

    .css_logo img {
        height: 44px;
    }

    .css_hamburger {
        display: none;
    }

    .css_menu_mobile {
        position: static;
        left: auto;
        top: auto;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        z-index: auto;
        overflow: visible;
        box-shadow: none;
        display: block;
    }

    .css_menu_mobile_top {
        display: none !important;
    }

    .css_nav_close {
        display: none !important;
    }

    .css_menu_inner {
        width: auto;
        margin: 0;
        padding: 0;
        max-width: none;
        flex: none;
        min-height: 0;
        overflow: visible;
    }

    .css_menu_mobile ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem 1.25rem;
        margin: 0;
        padding: 0;
    }

    .css_menu_mobile li {
        margin: 0;
    }

    .css_menu_mobile ul a {
        border-bottom: none;
        padding: 8px 4px;
        font-family: "Montserrat", sans-serif;
        font-size: 0.95rem;
    }

    .css_menu_mobile ul a:hover {
        color: #00be62;
    }

    body.menu-open {
        overflow: initial;
    }
}

.css_footer {
    text-align: center;
    padding: 10px;
    background-color:#404040;
    color:#ffffff;
    font-size:12px;
    font-family:arial;
}

.css_footer_logo img {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}


.css_hero {
    width:100%;
}

.css_hero_content {
    width:1000px;
    margin-right:auto;
    margin-left:auto;
    margin-top:30px;
    margin-bottom:30px;    
}

.css_hero_index {
    display:block;
    color: white;
    height: 300px;
    width: 99%;
    background-color:#000000;
    padding:0;
    background-image:url("/img/index.png");
}

.css_hero_index_content {
    background-color: rgba(55, 55, 55, 0.75);
    margin:0px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size:1rem;
    color: white;
    text-align: center;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content:space-between;
}


.css_hero_index_content h1 {
    background-color: rgba(100, 100, 100, 0.4);
    margin:5px;
    text-align: center;
    font-family: "Montserrat", sans-serif;

    font-size:30px;
    color: white;
    text-align: center;
}

.css_hero_index_content p {
    background-color: rgba(200, 200, 200, 0.1);
    padding:10px;
    font-weight: bold;;
    font-size:18px;
}

.css_section {
    display: block;
    margin: 5px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #C7EFCF;
    box-sizing: border-box;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    color: #000;
    font-size: 1.1rem;
    font-weight: bolder;
}

.css_section_content {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 800px) {
    .css_section_content img {
        display:block;
        float: none !important;
        margin-top:10px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}

.css_section_content ul {
    display:block;
    margin-left:10px !important;
    list-style: disc;
    overflow: hidden;
    list-style-position: inside;
   
}

@media (min-width: 801px) {
    .css_section_content ul {
        display: block;
    }
}

.css_section_content li::marker {
    content: "➔ ";
    color: darkgreen;    
}

.css_section_img {
    display: inline-flex;
    flex-shrink: 0;
    width: 100%;
    height: 150px;
    max-width: 100%;
    padding: 0.25rem 0;
    box-sizing: border-box;
    object-fit: contain;
}

.css_section h2 {
    background-color:#e8f7ef;
    font-size:1.5rem;
    font-weight:bolder;
    color:#00be62;
    text-align:center;
    margin-top:0;
    padding-top:0;
    margin-bottom:0;
    padding-bottom:0;
}   

@media(max-width:800px) {
    .css_section h2 {
        width:98%;
        overflow: hidden;
    }
}

.css_section p {
    font-size:1.1rem;
    font-weight:normal;
    color:#000;
}

.css_button_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    text-align: center;
}

/* Pe mobil: întotdeauna centrat (inclusiv dacă există clase desktop pe wrapper) */
@media (max-width: 800px) {
    .css_button_wrap {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Desktop: aliniere opțională a rândului cu butonul */
@media (min-width: 801px) {
    .css_button_wrap--desk-start {
        justify-content: flex-start;
        text-align: left;
    }

    .css_button_wrap--desk-end {
        justify-content: flex-end;
        text-align: right;
    }
}

.css_blog_pagination_section {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.css_blog_pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.css_blog_pagination_link {
    color: #00be62;
    font-weight: 600;
    text-decoration: none;
}

.css_blog_pagination_link:hover {
    text-decoration: underline;
}

.css_blog_pagination_current {
    font-weight: 700;
    color: #000;
    min-width: 1.5rem;
    text-align: center;
}

.css_blog_pagination_disabled {
    color: #999;
    font-weight: 500;
    cursor: default;
}

.css_button {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: #00be62;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bolder;
    text-align: center;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.css_page {
    margin: 5px;
    padding: 5px;
    background-color: #fff;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    color: #000;
    font-size: 1rem;
}

.css_page_title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.css_page li {
    list-style-type: square;
    margin-left:20px;
    margin-bottom:10px;
}

/*site-web-profesionist.php*/
.css_table_1 {
    margin-top:20px;
    display: block;
    width:100%;
    border:1px solid #000;
    background-color:#fff;
    text-align:left;
    font-family: "Montserrat", sans-serif;
    color:#000;
    font-size:1rem;
}

.css_table_1 td {
    padding:0.5rem;
    border:1px solid #000;
    text-align:left;
    vertical-align: top;
    font-family: "Montserrat", sans-serif;
    color:#000;
    font-size:1rem;
}

/* contact.php */
.css_contact_page {
    max-width: min(56rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
}

.css_contact_wrap {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.css_contact_form {
    margin-top: 0.5rem;
}

.css_contact_field {
    margin-bottom: 1rem;
}

.css_contact_field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.css_contact_req {
    color: #c00;
}

.css_contact_optional {
    font-weight: normal;
    color: #555;
    font-size: 0.9em;
}

.css_contact_field input,
.css_contact_field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.css_contact_field textarea {
    resize: vertical;
    min-height: 8rem;
}

.css_contact_hint {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.css_contact_actions {
    text-align: center;
}

.css_contact_submit {
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    display: block;
}

.css_contact_alert {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.css_contact_alert--success {
    background-color: #e8f7ef;
    border: 1px solid #00be62;
    color: #0a5c36;
}

.css_contact_alert--error {
    background-color: #fdeaea;
    border: 1px solid #c00;
    color: #600;
}

.css_contact_error_list {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
    list-style: disc;
}

.css_contact_info {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.css_contact_info_heading {
    margin: 0 0 0.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.css_contact_info_sub {
    margin: 0 auto 1.75rem;
    max-width: 32rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.45;
}

.css_contact_info_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.css_contact_info_card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.css_contact_info_card_title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    font-family: "Montserrat", sans-serif;
}

.css_contact_info_card_main {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.css_contact_info_card_main--company {
    font-weight: 700;
    color: #1a1a1a;
}

.css_contact_info_card_main--address {
    margin: 0;
    color: #222;
}

.css_contact_info_card_note {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #777;
    line-height: 1.45;
}

.css_contact_info_link {
    color: #1565c0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.css_contact_info_link:hover {
    color: #0d47a1;
}

@media (min-width: 801px) {
    
    .css_hero_index {
        height: 40%;        
    }
    
    .css_hero_index_content {
        width:var(--width-container);
        margin-left:auto;
        margin-right:auto;        
    }

    .css_section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        width: auto;
        max-width: 1000px;
    }

    .css_section_img {
        width: auto;
        height: 200px;
        max-width: min(45%, 380px);
        padding: 5px;
        flex-shrink: 0;
    }

    .css_section,
    .css_page,
    .css_contact_page,
    .css_hero_index_content,
    .css_footer {
        margin: 1rem auto;
    }
}

.css_page h1 {
    color: #008e42;
    text-align: center;
    font-size: 2rem;
    font-weight: bolder;
    display: block;
    margin-bottom: 1rem;
    border-bottom: 2px dotted coral;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.css_page_title_intro {
    margin: 0 0 1rem;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: normal;
    color: #222;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.css_page h2 {
    color: #008e42;   
    text-align: center;
    font-size:1.5rem;
    font-weight:bolder;
    display:inline-block;
    margin-bottom:1rem;
    border-bottom:1px dotted #555;
    padding:5px;
}


.css_cat_link {
    color:#0a5c36;
    font-weight: bold;
}

/* Lățime față de viewport, nu doar % din părinte (evită „1000px” pe mobil când părintele e prea lat) */
.css_page_title_inner {
    width: 100%;
    max-width: min(var(--width-container), 100vw);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 801px) {
    .css_page_title_inner {
        padding-left: 0;
        padding-right: 0;
    }
}