/*
Theme Name: Preston City Mela
Theme URI: https://www.prestoncitymela.co.uk/
Author: Preston City Mela
Author URI: https://prestoncitymela.co.uk
Description: A custom theme for Preston City Mela with Redux-powered theme options.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, responsive-layout
Text Domain: prestoncitymela
*/

/* --- Global Styles & Layout --- */

/*@font-face {*/
/*    font-family: 'Base05';*/
/*    src: url('../prestoncitymela/assets/fonts/base-05/Base05.ttf') format('truetype');*/
/*    font-weight: normal;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/

@font-face {
    font-family: 'Base05';
    src: url('assets/fonts/base-05/Base05.woff') format('woff'),
         url('assets/fonts/base-05/Base05.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #f1f1f1;
    color: #333;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    margin: 0px !important;
}

/* Ensure standard headings and Elementor headings use the theme font */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget-heading .elementor-heading-title {
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Responsive --- */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Add more responsive styles as needed */
@media (max-width: 768px) {
    /* Styles for tablets and smaller devices */
}

@media (max-width: 480px) {
    /* Styles for mobile phones */
}

/* --- Header --- */
.site-header {
    padding: 20px 0;
    /* border-bottom: 1px solid #eee; */
}

.site-title a {
    text-decoration: none;
    font-size: 2em;
    color: #333;
}

/* --- Main Content --- */
/* .site-content {
    padding: 40px 0;
} */

/* --- Footer --- */
.site-footer {
    padding: 60px 0 30px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.site-footer .container {
    background-color: transparent;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
/*     margin: 0 -15px 40px; */
}

.footer-widget-column {
    flex: 1;
    padding: 15px;
    min-width: 250px;
    margin-bottom: 30px;
    border-radius: 15px;
}

.footer-widget-column .widget-title {
    margin-bottom: 25px;
}

.footer-widget-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-column ul li {
    margin-bottom: 10px;
}

.footer-widget-column ul li a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-widget-column ul li a:hover {
    opacity: 0.8;
}

/* Newsletter-style widget box (3rd column styling) */
/* .footer-widget-column:last-child section.widget {
    background-color: #1a1e2f;
    padding: 30px;
    border-radius: 8px;
} */

.footer-widget-column:last-child p {
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Form styling for footer */
.site-footer input[type="email"],
.site-footer input[type="text"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fff;
    box-sizing: border-box;
}

.site-footer input[type="submit"],
.site-footer button.subscribe-btn {
    background-color: #e4009c;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    width: auto;
    text-transform: none;
}

.site-footer .site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    text-align: center;
}

.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
}

.site-header.header-solid {
    position: relative;
    background-image: linear-gradient(-80deg, #e4009b 0%, #ef6f2d 100%);
}

.site-header .container {
    background-color: transparent;
    box-shadow: none;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.85) !important;
    /* Optional: slight overlay when sticky */
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 15px;
    gap: clamp(10px, 2vw, 20px);
}

.header-logo {
    flex: 1;
    min-width: 0;
}

.main-navigation {
    flex: 2;
    text-align: right;
    min-width: 0;
}

.main-navigation ul {
    display: flex;
    justify-content: flex-end;
    gap: clamp(10px, 1.5vw, 35px) !important;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.main-navigation ul li {
    position: relative;
    white-space: nowrap;
}

.main-navigation ul li a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-navigation ul li a:hover {
    color: #ffd700;
}

.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-ancestor>a,
.main-navigation .current_page_ancestor>a {
    color: #FFD700;
}

/* --- Submenu Styles (Desktop & General) --- */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(26, 30, 47, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    justify-content: flex-start;
}

@media (min-width: 993px) {
    .main-navigation .menu-item-has-children:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: none;
	text-align: left;
}

.main-navigation .menu-item-has-children {
    display: flex;
    align-items: center;
    /* flex-wrap: wrap; */
}

.main-navigation .menu-item-has-children>a {
    display: inline-block;
}

.main-navigation .submenu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 0 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 0.8em;
    margin-left: auto;
}

.main-navigation .submenu-toggle:hover {
    color: #ffd700;
}

.main-navigation .submenu-active>.submenu-toggle {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
/*     margin-left: 15px; */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-toggle .hamburger-bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
}

.mobile-menu-close {
    display: none;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* .menu-overlay.active {
    display: block;
} */

/* Responsive */
/* Responsive */
/* Tablet Styles */
@media (min-width: 768px) and (max-width: 992px) {
    .site-header {
        position: relative;
        background-image: linear-gradient(-80deg, #e4009b 0%, #ef6f2d 100%);
    }

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-logo {
        position: static;
        transform: none;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #111;
        z-index: 1000;
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        font-size: 0.95rem;
        padding: 0 30px;
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
        width: 100%;
    }

    .main-navigation .submenu-active>.sub-menu {
        display: flex;
    }

    .main-navigation .menu-item-has-children {
        justify-content: space-between;
		width: 100% !important;
		flex-wrap: wrap;
    }

    .main-navigation .menu-item-has-children>a {
        flex: 1;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        line-height: 1;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .site-header {
        position: relative;
        background-image: linear-gradient(-80deg, #e4009b 0%, #ef6f2d 100%);
    }

    .menu-toggle {
        display: flex;
        align-self: flex-end;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column-reverse;
    }

    .header-logo {
        position: static;
        transform: none;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #111;
        z-index: 1000;
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-navigation.toggled {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        font-size: 0.95rem;
        padding: 0 30px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
        width: 100%;
    }

    .main-navigation .submenu-active>.sub-menu {
        display: flex;
    }

    .main-navigation .menu-item-has-children {
        justify-content: space-between;
		width: 100% !important;
		flex-wrap: wrap;
    }

    .main-navigation .menu-item-has-children>a {
        flex: 1;
		display: flex;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        line-height: 1;
    }
}

.mela-hero-slider {
    position: relative;
}

/* Apply gradient over the slide background, ensuring SS3 layers remain naturally above it */
.mela-hero-slider .n2-ss-slide-backgrounds::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    /* Within the backgrounds context */
    pointer-events: none;

    opacity: 0.729;
    /* background-image: linear-gradient(to bottom, #e60f8e 0%, transparent 50%), linear-gradient(-80deg, #e4009b 0%, #ef6f2d 100%); */
    background-image:
        linear-gradient(to bottom, rgba(230, 15, 142, 0.6) 0%, transparent 50%),
        linear-gradient(-80deg, rgba(228, 0, 155, 0.3) 0%, rgba(239, 111, 45, 0.3) 100%);
}

/*
 * Allow Elementor sections to be full-width.
 * This overrides the theme's .container on pages using Elementor,
 * giving width control to Elementor's own layout settings.
 */
.elementor-page .site-content>.container,
.elementor-template-full-width .site-content>.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
    background-color: transparent;
}

/* --- Contact Form 7 Styles --- */
.wpcf7-form {
    max-width: 100%;
}

/* .wpcf7-form p {
    margin-bottom: 1.5rem;
} */

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1e2f;
}

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-family: inherit;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Make placeholders smaller and slightly faded */
.wpcf7-form-control::-webkit-input-placeholder {
    font-size: 0.85rem;
    opacity: 0.7;
}

.wpcf7-form-control::-moz-placeholder {
    font-size: 0.85rem;
    opacity: 0.7;
}

.wpcf7-form-control:-ms-input-placeholder {
    font-size: 0.85rem;
    opacity: 0.7;
}

.wpcf7-form-control:-moz-placeholder {
    font-size: 0.85rem;
    opacity: 0.7;
}

.wpcf7-form-control::placeholder {
    font-size: x-small;
    opacity: 0.7;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: #e4009c;
    box-shadow: 0 0 0 3px rgba(228, 0, 156, 0.1);
    outline: none;
}

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

.wpcf7-submit {
    display: inline-block;
    background-color: #e4009c;
    color: #fff;
    font-weight: bolder;
    padding: 14px 35px;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 1rem;
}

.wpcf7-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.85rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 2em 0 0 !important;
    padding: 1em !important;
    border: 2px solid transparent !important;
    border-radius: 8px;
    font-weight: 600;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Stack fields on mobile devices */
@media (max-width: 600px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}