/**
 * Mento Theme - Main CSS
 * Additional styles beyond style.css
 *
 * @package Mento_Theme
 */

/* ==========================================================================
   WordPress Specific Styles
   ========================================================================== */

/* Alignments */
.alignleft {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.alignright {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Captions */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    font-size: 90%;
    color: #666;
    text-align: center;
}

/* Galleries */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

/* ==========================================================================
   Admin Bar Adjustment
   ========================================================================== */

body.admin-bar #header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #header {
        margin-top: 46px;
    }
}

/* ==========================================================================
   Form Messages
   ========================================================================== */

#form-messages,
#comment-messages {
    margin-top: 15px;
    padding: 10px;
}

#form-messages .success,
#comment-messages .success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
}

#form-messages .error,
#comment-messages .error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
}

#form-messages .loading,
#comment-messages .loading {
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    padding: 10px 15px;
    border-radius: 4px;
}

/* ==========================================================================
   Contact Form 7 Overrides
   ========================================================================== */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: #490708;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 3px;
}

.wpcf7-form input[type="submit"]:hover {
    background: #d7bf77;
    color: #490708;
}

.wpcf7-form .wpcf7-list-item {
    display: block;
    margin-bottom: 8px;
}

.wpcf7-form .wpcf7-list-item-label {
    margin-right: 8px;
}

.wpcf7-response-output {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
}

.wpcf7-validation-errors {
    border-color: #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
}

.wpcf7-mail-sent-ok {
    border-color: #c3e6cb;
    background-color: #d4edda;
    color: #155724;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px 0;
    color: #666;
}

.breadcrumbs a {
    color: #490708;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #d7bf77;
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #333;
}

/* ==========================================================================
   WordPress Pagination (scoped to avoid conflict with #slides .pagination)
   ========================================================================== */

.nav-links {
    margin: 30px 0;
    text-align: center;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #fff;
    color: #490708;
    text-decoration: none;
    border-radius: 3px;
}

.nav-links .current {
    background: #490708;
    color: #fff;
    border-color: #490708;
}

.nav-links a:hover {
    background: #d7bf77;
    color: #490708;
    border-color: #d7bf77;
}

/* ==========================================================================
   Search Results
   ========================================================================== */

.search-results .entry {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.search-results .entry-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.search-results .entry-title a {
    color: #490708;
}

.search-results .entry-title a:hover {
    color: #d7bf77;
}

.search-results .entry-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 50px 0;
}

.error-404 h1 {
    font-size: 100px;
    color: #ddd;
    margin-bottom: 0;
}

.error-404 h2 {
    margin-bottom: 20px;
}

.error-404 p {
    margin-bottom: 30px;
}

/* ==========================================================================
   Testimonials Archive
   ========================================================================== */

.testimonials-archive .testimonial-item {
    background: #f9f6f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.testimonials-archive .testimonial-logo {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.testimonials-archive .testimonial-logo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.testimonials-archive .testimonial-content {
    overflow: hidden;
}

.testimonials-archive .testimonial-author {
    font-weight: bold;
    margin-bottom: 10px;
    color: #490708;
}

/* ==========================================================================
   Newsletter Popup
   ========================================================================== */

#overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
}

#overlay > div {
    position: relative;
    max-width: 500px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

#overlay .close_modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

#overlay .close_modal:hover {
    color: #333;
}

#overlay h3 {
    margin-bottom: 20px;
    color: #490708;
}

#overlay input[type="text"],
#overlay input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#overlay .modal_submit {
    background: #490708;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

#overlay .modal_submit:hover {
    background: #d7bf77;
    color: #490708;
}

#overlay .skip_to_site {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
}

/* Thanks popup */
#thanks {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.7);
}

#thanks > div {
    position: relative;
    max-width: 500px;
    margin: 100px auto;
    background: #d4edda;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
}

#thanks h2 {
    color: #155724;
    margin-bottom: 20px;
}

#thanks .close-thanks {
    background: #155724;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}

/* ==========================================================================
   Review Form (Customers Page)
   ========================================================================== */

.mam-form {
    background: #d4c8b2;
    padding: 5px 10px 10px 10px;
}

.mam-form input[type="text"] {
    background: #ebe5d9;
    border: 1px solid #958c7d;
    width: 280px;
    padding: 5px;
    margin: 5px 0;
}

.mam-form textarea {
    background: #ebe5d9;
    border: 1px solid #958c7d;
    width: 380px;
    padding: 5px;
    margin: 5px 0;
    height: 170px;
}

.mam-form a.but {
    display: block;
    background: url('../img/tguvot-but.gif') center center no-repeat;
    width: 156px;
    height: 30px;
}

#review_error {
    color: #e85830;
    padding: 10px;
    background-color: #f2ebde;
}

#amlaza-toda {
    height: 55px;
    background: url('../img/amlaza-toda.gif') center center no-repeat;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    #header,
    #footer,
    #sidebar,
    #add_comment,
    #add_comment_btn,
    .pagination,
    #social,
    #overlay,
    #thanks {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    #main {
        width: 100%;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 80%;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #490708;
    color: #fff;
    padding: 8px;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #d7bf77;
    outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
