/* ==========================================================================
   Amberlodge Theme – WordPress-specific overrides & custom styles
   ========================================================================== */

/* ── Mobile Menu ── */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
}
#mobile-menu-overlay.active { display: block; }

#mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 20rem;
    max-width: 85vw;
    background: #ffffff;
    z-index: 50;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}
#mobile-menu-drawer.open { transform: translateX(0); }

/* ── Custom Logo ── */
.site-logo-wrap .custom-logo { height: 10rem; width: auto; }

/* ── Active nav link ── */
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a { color: #ec811b !important; text-transform: uppercase !important;}

.footer-nav .current-menu-item > a { color: #ec811b !important; text-transform: uppercase !important; }

/* ── WP Alignment helpers ── */
.wp-block-image img { max-width: 100%; height: auto; }

/* ── ACF image aspect wrappers ── */
.aspect-4-5  { aspect-ratio: 4/5; }
.aspect-sq   { aspect-ratio: 1/1; }
.aspect-vid  { aspect-ratio: 16/9; }

/* ── Review / Gallery CPT cards ── */
.review-card {
    background: linear-gradient(135deg, rgba(236,129,27,.05) 0%, rgba(115,105,138,.05) 100%);
}
.review-stars { color: #ec811b; }

/* ── CF7 Form reset to match HTML styles ── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccdbdb;
    font-family: Poppins, sans-serif;
    outline: none;
    transition: border-color .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { border-color: #ec811b; }

.wpcf7-form input[type="submit"] {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg,#ec811b 0%,#ff9a3d 100%);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: Raleway, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(236,129,27,.4);
    transition: all .3s;
}
.wpcf7-form input[type="submit"]:hover {
    box-shadow: 0 8px 24px rgba(236,129,27,.5);
    transform: scale(1.05);
}

.wpcf7-not-valid-tip { color: #e53e3e; font-size: .875rem; margin-top: .25rem; }
.wpcf7-response-output { margin-top: 1rem; padding: .75rem 1rem; border-radius: .5rem; }

/* ── Gradient text helper ── */
.gradient-text {
    background: linear-gradient(135deg,#ec811b 0%,#73698a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg,#ec811b 0%,#ff9a3d 100%);
    color: #fff;
    border-radius: 9999px;
    font-family: Raleway, sans-serif;
    box-shadow: 0 4px 14px rgba(236,129,27,.35);
    transition: all .3s;
    text-decoration: none;
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(236,129,27,.5);
    transform: scale(1.05);
    color: #fff;
}
nav a {
  text-transform: uppercase;
}


/* =============================================
   CONTACT FORM 7 CUSTOM STYLES
   Copy this entire CSS block to your website
   ============================================= */

/* Main Container */
.cf7-custom-container {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Glass Card Effect */
.cf7-glass-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

@media (min-width: 640px) {
    .cf7-glass-card {
        padding: 3rem;
    }
}

/* Two Column Grid Layout */
.cf7-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cf7-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Group */
.cf7-form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
.cf7-label {
    display: block;
    color: #73698a;
    margin-bottom: 0.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Input Fields */
.cf7-input,
.cf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccdbdb;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #ffffff;
}

.cf7-input:focus,
.cf7-textarea:focus {
    border-color: #ec811b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 129, 27, 0.1);
}

/* Textarea Specific */
.cf7-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Submit Button Wrapper */
.cf7-submit-wrapper {
    text-align: center;
    margin-top: 0.5rem;
}

/* Submit Button */
.cf7-submit-btn {
    background: linear-gradient(135deg, #ec811b 0%, #ff9a3d 100%);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(236, 129, 27, 0.25);
    display: inline-block;
}

.cf7-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(236, 129, 27, 0.35);
    background: linear-gradient(135deg, #e07010 0%, #ff8a2e 100%);
}

.cf7-submit-btn:active {
    transform: scale(0.98);
}

/* Error Messages */
.wpcf7-not-valid-tip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #dc3232;
    margin-top: 0.25rem;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
    border-color: #dc3232;
}

/* Response Message */
.wpcf7-response-output {
    margin-top: 1.5rem !important;
    border-radius: 2rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    padding: 0.8rem 1rem !important;
}

/* Loading Spinner */
.wpcf7-spinner {
    position: relative;
    top: 2px;
    margin-left: 12px;
}

/* Placeholder Styling */
.cf7-input::placeholder,
.cf7-textarea::placeholder {
    color: #b9afcd;
    font-weight: 300;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cf7-submit-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .cf7-glass-card {
        padding: 1.5rem;
    }
}


/* Contact Form 7 - Glass Form Styling */
.cf7-glass-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Field wrapper */
.cf7-glass-form .cf7-field {
    margin-bottom: 1.5rem;
}

/* Labels */
.cf7-glass-form label {
    display: block;
    color: #73698a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
}

/* Input fields */
.cf7-glass-form .cf7-input,
.cf7-glass-form input[type="text"],
.cf7-glass-form input[type="email"],
.cf7-glass-form input[type="tel"],
.cf7-glass-form input[type="url"],
.cf7-glass-form input[type="number"],
.cf7-glass-form .wpcf7-text,
.cf7-glass-form .wpcf7-email,
.cf7-glass-form .wpcf7-tel {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccdbdb;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Textarea */
.cf7-glass-form .cf7-textarea,
.cf7-glass-form textarea,
.cf7-glass-form .wpcf7-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccdbdb;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus states */
.cf7-glass-form .cf7-input:focus,
.cf7-glass-form input:focus,
.cf7-glass-form textarea:focus,
.cf7-glass-form .wpcf7-text:focus,
.cf7-glass-form .wpcf7-email:focus,
.cf7-glass-form .wpcf7-tel:focus,
.cf7-glass-form .wpcf7-textarea:focus {
    outline: none;
    border-color: #ec811b;
    box-shadow: 0 0 0 3px rgba(236, 129, 27, 0.1);
}

/* Submit button wrapper */
.cf7-glass-form .cf7-submit-wrapper {
    margin-top: 2rem;
}

/* Submit button */
.cf7-glass-form .cf7-submit,
.cf7-glass-form input[type="submit"],
.cf7-glass-form .wpcf7-submit {
    width: 100%;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgb(236, 129, 27) 0%, rgb(255, 154, 61) 100%);
    color: #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cf7-glass-form .cf7-submit:hover,
.cf7-glass-form input[type="submit"]:hover,
.cf7-glass-form .wpcf7-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, rgb(226, 119, 17) 0%, rgb(245, 144, 51) 100%);
}

/* Required field asterisk */
.cf7-glass-form .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-family: 'Poppins', sans-serif;
}

/* Response messages */
.cf7-glass-form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
}

.cf7-glass-form .wpcf7-validation-errors {
    border: 2px solid #dc2626;
    background: #fee2e2;
    color: #991b1b;
}

.cf7-glass-form .wpcf7-mail-sent-ok {
    border: 2px solid #16a34a;
    background: #dcfce7;
    color: #14532d;
}

/* Spinner */
.cf7-glass-form .wpcf7-spinner {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    background-color: #ec811b;
}

/* Placeholder styling */
.cf7-glass-form ::placeholder {
    color: #a0a0a0;
    opacity: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.cf7-glass-form :-ms-input-placeholder {
    color: #a0a0a0;
}

.cf7-glass-form ::-ms-input-placeholder {
    color: #a0a0a0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cf7-glass-form {
        padding: 1.5rem;
    }
    
    .cf7-glass-form .cf7-submit,
    .cf7-glass-form input[type="submit"],
    .cf7-glass-form .wpcf7-submit {
        padding: 0.875rem 1.5rem;
    }
}

.wpcf7-spinner {
    position: relative;
    top: 2px;
    margin-left: 12px;
    display: none;
}