/*
Theme Name: NestWise
Theme URI: https://www.devarix.com
Author: DEVARIX LTD
Author URI: https://www.devarix.com
Description: A custom WordPress theme for NestWise Real Estate.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nestwise
*/

/* 
 * Base styles are handled by Tailwind CSS. 
 * specific overrides can be added here.
 */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    font-family: 'Manrope', sans-serif;
}

.text-primary {
    --tw-text-opacity: 1;
    color: #c26d51 !important;
}

/* Contact Form 7 Styles */
.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #374151;
    /* gray-700 */
}

/* Dark mode label override */
.dark .wpcf7-form label {
    color: #d1d5db;
    /* gray-300 */
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid #d1d5db;
    /* border-gray-300 */
    background-color: #ffffff;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Dark mode input overrides */
.dark .wpcf7-form input[type="text"],
.dark .wpcf7-form input[type="email"],
.dark .wpcf7-form input[type="tel"],
.dark .wpcf7-form textarea,
.dark .wpcf7-form select {
    background-color: #374151;
    /* bg-gray-700 */
    border-color: #4b5563;
    /* border-gray-600 */
    color: #ffffff;
    /* text-white */
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: #c26d51;
    /* primary */
    border-color: #c26d51;
    /* primary */
}

.wpcf7-form input[type="submit"] {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    /* rounded-lg */
    font-size: 1rem;
    /* text-base */
    font-weight: 700;
    /* font-bold */
    color: #ffffff;
    /* text-white */
    background-color: #c26d51;
    /* bg-primary */
    cursor: pointer;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.wpcf7-form input[type="submit"]:hover {
    opacity: 0.9;
}

.wpcf7-form input[type="submit"]:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: #c26d51;
    /* primary */
}

/* Spinner adjustment */
.wpcf7-spinner {
    margin-top: 10px;
}

/* ==============================
   NestWise Legal Page Styling
   ============================== */

.legal-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.8;
    color: #2c2c2c;
}

/* Main Title */
.legal-page h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 3px solid #e5e5e5;
    padding-bottom: 15px;
}

/* Section Titles */
.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Paragraphs */
.legal-page p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Lists */
.legal-page ul {
    margin: 15px 0 20px 20px;
}

.legal-page ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Horizontal Divider */
.legal-page hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

/* Links */
.legal-page a {
    color: #0d3b66;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Strong Text */
.legal-page strong {
    font-weight: 600;
    color: #000;
}

/* Mobile Optimisation */
@media (max-width: 768px) {
    .legal-page {
        margin: 30px auto;
        padding: 0 15px;
    }

    .legal-page h1 {
        font-size: 26px;
    }

    .legal-page h2 {
        font-size: 20px;
    }

    .legal-page p,
    .legal-page ul li {
        font-size: 15px;
    }
}

/* ==============================
   NestWise Legal Page Styling
   ============================== */

.legal-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.8;
    color: #2c2c2c;
}

.legal-page h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 3px solid #0d3b66;
    padding-bottom: 15px;
}

.legal-page h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.legal-page p {
    margin-bottom: 15px;
    font-size: 16px;
}

.legal-page ul {
    margin: 15px 0 20px 20px;
}

.legal-page ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.legal-page hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0;
}

.legal-page a {
    color: #0d3b66;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page strong {
    font-weight: 600;
    color: #000;
}

@media (max-width: 768px) {
    .legal-page {
        margin: 30px auto;
        padding: 0 15px;
    }

    .legal-page h1 {
        font-size: 26px;
    }

    .legal-page h2 {
        font-size: 20px;
    }

    .legal-page p,
    .legal-page ul li {
        font-size: 15px;
    }
}

@media (max-width: 1023px) {
    #hero-title {
        font-size: 1.6rem !important;
    }

    #hero-desc {
        font-size: 1rem !important;
    }
}

.nav-links {
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: inherit;
}

/* All page items */
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f3f4f6; /* light gray */
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover */
.nav-links a.page-numbers:hover {
    background: #e5e7eb;
}

/* Active page */
.nav-links .current {
    background: #c26d51;
    color: #fff;
}

/* Prev / Next buttons */
.nav-links .prev,
.nav-links .next {
    background: #c26d51;
    color: #fff;
}

/* Hover prev/next */
.nav-links .prev:hover,
.nav-links .next:hover {
    background: #ea580c;
}

/* ICON FIX (important) */
.nav-links .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tags Class vertical align */
.fp-nest-tags-class {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    flex-wrap: wrap;
}

/* ============================== */