/*
Theme Name: Reid Alexander
Theme URI:
Author: Martin Krivosija
Author URI:
Description: A fully customizable business theme with Customizer settings, ACF hero fields, and Gutenberg support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reidalexander
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #161e3f;
    --accent: #d27653;
    --accent-hover: #b86545;
    --light-gray: #f0f1f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #555555;
    --text-muted: #aaaaaa;
    --border: #d0d4df;
    --nav-text: #ccd6f0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 13px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
}

/* ─── HEADER ─── */
header {
    background: var(--navy);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-box {
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 1.5px;
}

.logo-box img {
    height: var(--logo-height, 40px);
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

nav>a,
nav>.dropdown>.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.2s;
    padding: 8px 14px;
    display: block;
    white-space: nowrap;
}

nav>a:hover,
nav>.dropdown:hover>.nav-link {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.nav-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link::after {
    content: "▾";
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    overflow: hidden;
    z-index: 200;
    padding-top: 8px;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 11px 18px;
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--accent);
}

.header-phone {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.header-phone:hover {
    background: var(--accent-hover);
}

/* ─── HERO ─── */
.hero {
    background: var(--light-gray);
    padding: 50px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding-top: 20px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.18;
    margin-bottom: 20px;
}

.hero p,
.hero .hero-description p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.75;
}

.hero .btn {
    margin-top: 10px;
}

.hero-form {
    background: var(--white);
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    border-radius: 6px;
    position: relative;
    z-index: 2;
    margin-bottom: -160px;
}

.hero-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 22px;
}

/* ─── TEXT SECTION ─── */
.text-section {
    background: var(--white);
    padding: 32px 0 50px;
}

.home .text-section {
    padding-top: 120px;
}

.text-section p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 12px;
}

/* ─── FORMS ─── */
.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"],
.hero-form input[type="url"],
.hero-form input[type="number"],
.hero-form input[type="date"],
.hero-form textarea,
.hero-form select,
.text-section input[type="text"],
.text-section input[type="email"],
.text-section input[type="tel"],
.text-section input[type="url"],
.text-section input[type="number"],
.text-section input[type="date"],
.text-section textarea,
.text-section select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    outline: none;
    border-radius: 0;
}

.hero-form input:focus,
.hero-form textarea:focus,
.hero-form select:focus,
.text-section input:focus,
.text-section textarea:focus,
.text-section select:focus {
    border-color: var(--accent);
}

.hero-form textarea,
.text-section textarea {
    height: 100px;
    resize: vertical;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder,
.text-section input::placeholder,
.text-section textarea::placeholder {
    color: var(--text-muted);
}

.hero-form label,
.text-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.hero-form button[type="submit"],
.hero-form input[type="submit"],
.text-section button[type="submit"],
.text-section input[type="submit"] {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 13px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
}

.hero-form button[type="submit"]:hover,
.hero-form input[type="submit"]:hover,
.text-section button[type="submit"]:hover,
.text-section input[type="submit"]:hover {
    background: var(--accent-hover);
}

.hero-form form,
.text-section form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

.form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    margin-bottom: 0;
}

/* ─── GLOBAL CTA ─── */
.global-cta {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.global-cta h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.global-cta p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.global-cta-form {
    max-width: 540px;
    margin: 0 auto;
    text-align: left;
}

/* ─── FOOTER ─── */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo-box {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-logo-box img {
    height: var(--logo-height, 40px);
    width: auto;
    display: block;
}

.footer-company-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin-bottom: 10px;
}

.footer-social-icons {
    display: flex;
    gap: 8px;
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.footer-social-icon:hover {
    border-color: var(--white);
    color: var(--white);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-col-heading {
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
    margin-bottom: 14px;
    display: block;
}

.footer-link-list {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 24px;
}

.footer-link-list li {
    margin-bottom: 6px;
}

.footer-link-list li::marker {
    color: rgba(255, 255, 255, 0.5);
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    color: var(--white);
}

.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    flex-shrink: 0;
}

.footer-contact-row span,
.footer-contact-row a {
    color: var(--white);
    font-size: 15px;
    text-decoration: none;
}

.footer-contact-row a:hover {
    color: var(--accent);
}

/* ─── PAGE BANNER ─── */
.page-banner {
    background: var(--light-gray);
    padding: 35px 0;
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.page-banner--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    border-bottom: none;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: var(--navy);
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0;
}

.page-banner--image h1 {
    color: var(--white);
}

.page-banner-subtitle {
    font-size: 17px;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.6;
}

.page-banner--image .page-banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.page-banner .btn {
    margin-top: 16px;
}

.page-banner--image .btn {
    margin-top: 20px;
}

/* ─── PAGE TITLE (blog, single, 404) ─── */
.page-title-section {
    background: var(--light-gray);
    padding: 35px 0;
    border-bottom: 3px solid var(--accent);
}

.page-title-section h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--text);
}

/* ─── MOBILE HAMBURGER ─── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a,
.mobile-nav .mobile-dropdown-toggle {
    display: block;
    padding: 12px 24px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.mobile-nav a:hover,
.mobile-nav .mobile-dropdown-toggle:hover {
    color: var(--accent);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-toggle .arrow {
    transition: transform 0.3s;
    font-size: 10px;
}

.mobile-dropdown-toggle.active .arrow {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    display: none;
    background: rgba(0, 0, 0, 0.15);
}

.mobile-sub-menu.active {
    display: block;
}

.mobile-sub-menu a {
    padding-left: 40px;
    font-size: 12.5px;
    text-transform: none;
}

/* ─── GUTENBERG BLOCK STYLES ─── */
.text-section h2,
.text-section h3,
.text-section h4 {
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 16px;
    margin-top: 32px;
}

.text-section h2 {
    font-size: 29px;
    font-weight: 800;
}

.text-section h3 {
    font-size: 23px;
    font-weight: 700;
}

.text-section h4 {
    font-size: 19px;
    font-weight: 600;
}

.text-section ul,
.text-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-light);
    line-height: 1.75;
}

.text-section li {
    margin-bottom: 6px;
}

.text-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.text-section .wp-block-button .wp-block-button__link {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 13px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.2s;
}

.text-section .wp-block-button .wp-block-button__link:hover {
    background: var(--accent-hover);
}

.text-section .wp-block-columns {
    gap: 30px;
    margin-bottom: 24px;
}

.text-section .wp-block-group {
    margin-bottom: 24px;
}

.text-section figure {
    margin: 0 0 16px;
}

.text-section figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─── BLOG ─── */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card-category {
    background: var(--accent);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 10px;
    margin-top: 0;
}

.blog-card-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 14px;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.blog-card-link:hover {
    color: var(--accent-hover);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.blog-pagination a {
    color: var(--navy);
    background: var(--light-gray);
}

.blog-pagination a:hover {
    background: var(--accent);
    color: var(--white);
}

.blog-pagination .current {
    background: var(--navy);
    color: var(--white);
}

.post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-meta-sep {
    margin: 0 6px;
}

/* ─── CHAT WIDGET ─── */
.eq-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.eq-widget-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, box-shadow 0.2s;
}

.eq-widget-toggle:hover {
    background: var(--accent);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.eq-widget-toggle.eq-widget-open {
    border-radius: 50%;
    padding: 14px;
}

.eq-widget-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-widget-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 370px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eq-widget-header {
    background: var(--navy);
    color: var(--white);
    padding: 22px 24px;
}

.eq-widget-header-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.eq-widget-header-sub {
    font-size: 13px;
    opacity: 0.7;
}

.eq-widget-body {
    padding: 20px 24px 24px;
}

.eq-widget-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-widget-form input,
.eq-widget-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.eq-widget-form input:focus,
.eq-widget-form textarea:focus {
    border-color: var(--accent);
}

.eq-widget-form input::placeholder,
.eq-widget-form textarea::placeholder {
    color: var(--text-muted);
}

.eq-widget-form textarea {
    resize: vertical;
    min-height: 70px;
}

.eq-widget-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.eq-widget-submit:hover {
    background: var(--accent-hover);
}

.eq-widget-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.eq-widget-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
    gap: 14px;
}

.eq-widget-success-icon {
    color: #22c55e;
}

.eq-widget-success p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.eq-widget-error p {
    font-size: 13px;
    color: #dc2626;
    margin: 0;
    text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-form {
        margin-bottom: -100px;
    }

    .home .text-section {
        padding-top: 120px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-phone {
        font-size: 11px;
        padding: 8px 16px;
    }

    header .container {
        flex-wrap: wrap;
    }

    .page-title-section h1,
    .page-banner h1 {
        font-size: 24px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .eq-widget {
        bottom: 16px;
        right: 16px;
    }

    .eq-widget-toggle-label {
        display: none;
    }

    .eq-widget-toggle {
        border-radius: 50%;
        padding: 14px;
    }

    .eq-widget-panel {
        width: calc(100vw - 32px);
        right: 0;
        bottom: 65px;
    }
}
