/*
Theme Name: Montoya Child
Theme URI: https://montoya.clapat-themes.com/
Description: Responsive Wordpress Theme
Template: montoya
Version: 1.0
Author: You
Author URI: https://your site
License: Themeforest
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: montoya-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/

/* Fullscreen black background for password-protected pages */
body.post-password-required {
    background: #000 !important;
}

/* Center the form nicely */
.post-password-form {
    max-width: 400px;
    margin: 150px auto;
    padding: 40px 30px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
}

/* Hide the default ugly paragraph */
.post-password-form p {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Style the password input */
.post-password-form input[type="password"] {
    width: 100%;
    padding: 14px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #111;
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Button styling */
.post-password-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Hover effect */
.post-password-form input[type="submit"]:hover {
    background: #ccc;
}

/* Hide the original WP message */
.post-password-form > p:first-of-type {
    display: none !important;
}

/* Add your custom message */
.post-password-form::before {
    content: "Access full case study";
    white-space: pre-line;
    display: block;
    color: #fff;
    font-size: 26px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.request-access-link {
    margin-top: 8px !important;
    text-align: center !important;
}

.request-access-link a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: underline !important;
    font-size: 15px !important;
}

/* Make the portfolio section anchorable */
.portfolio-anchor {
    position: relative;
    scroll-margin-top: 120px; /* prevents header overlap – adjust if needed */
}

/* Creates an offset so anchor scroll lands neatly */
.portfolio-anchor::before {
    content: "";
    display: block;
    height: 120px; /* same as scroll-margin-top */
    margin-top: -120px;
    visibility: hidden;
}

#portfolio-anchor {
    scroll-margin-top: 400px; /* adjust until perfect */
}

