/*
Theme Name:  RMW Theme
Theme URI:   https://www.robynmerkelwalsh.com
Description: Custom parent theme for Robyn Merkel-Walsh, replicating the look and feel of the live Wix site.
Author:      MKAdvantage
Author URI:  https://www.mkadvantage.com
Version:     1.0.0
License:     GNU General Public License v2 or later
Tags:        one-column, custom-header, custom-menu, custom-logo, full-width-template
Text Domain: rmw
*/

/* ================================================================
   BRAND COLOR PALETTE  (extracted directly from www.robynmerkelwalsh.com Wix CSS)
   --color_0  : #FFFFFF  white
   --color_3  : #ED1C24  brand red (logo)
   --color_4  : #0088CB  blue accent
   --color_11 : #F0FAFF  page background (very light blue)
   --color_12 : #CADDE6  light blue
   --color_13 : #9AAEB8  medium blue-gray
   --color_14 : #515E65  dark blue-gray (nav hover)
   --color_15 : #292F33  primary dark text
   --color_18 : #00E689  accent green (CTAs / active)
   --color_35 : #102B43  deep navy
   --color_44 : #205685  dark blue
================================================================ */

/* ================================================================
   GOOGLE FONTS  (loaded in functions.php via wp_enqueue_style)
   - Libre Baskerville : headings  (matches Wix)
   - Questrial         : body text (matches Wix, proxima-nova substitute)
   - Poppins 700       : navigation all-caps (lulo-clean substitute)
================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F0FAFF;
    color: #292F33;
    font-family: 'Questrial', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #00E689;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #009955;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #292F33;
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2.4em; }
h2 { font-size: 2em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

ul, ol { padding-left: 1.5em; }
ul li, ol li { margin-bottom: 0.3em; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* ----------------------------------------------------------------
   LAYOUT WRAPPERS
---------------------------------------------------------------- */
.rmw-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.rmw-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

/* ----------------------------------------------------------------
   HEADER
---------------------------------------------------------------- */
#site-header {
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo img {
    width: 140px;
    height: auto;
}

.site-logo .site-name {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #292F33;
    line-height: 1.2;
}

/* ----------------------------------------------------------------
   PRIMARY NAVIGATION
---------------------------------------------------------------- */
#site-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Desktop nav */
.nav-primary {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    height: 50px;
}

.nav-primary > li {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(41, 47, 51, 0.18);
}

.nav-primary > li:first-child {
    border-left: none;
}

.nav-primary > li > a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #292F33;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-primary > li > a:hover,
.nav-primary > li:hover > a {
    color: #515E65;
}

.nav-primary > li.current-menu-item > a,
.nav-primary > li.current-menu-ancestor > a,
.nav-primary > li.current-page-ancestor > a {
    color: rgb(255, 64, 64);
}

/* Dropdown indicator */
.nav-primary > li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 8px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Dropdown sub-menu */
.nav-primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #F0FAFF;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    min-width: 220px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-top: 4px;
}

.nav-primary > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.nav-primary .sub-menu li {
    display: block;
    border-left: none;
}

.nav-primary .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #292F33;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-primary .sub-menu li a:hover {
    color: #515E65;
    background-color: rgba(202, 221, 230, 0.4);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 30px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #292F33;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile nav open state */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* ----------------------------------------------------------------
   PAGE MAIN CONTENT
---------------------------------------------------------------- */
.site-main {
    width: 100%;
}

/* For standard pages (non-builder) */
.page-content-wrap {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
#site-footer {
    background-color: #292F33;
    color: #FFFFFF;
    font-family: 'Questrial', Arial, sans-serif;
    font-size: 15px;
    text-align: center;
    line-height: 1.7;
}

.footer-top {
    padding: 40px 20px 30px;
    max-width: 980px;
    margin: 0 auto;
}

.footer-top p {
    margin-bottom: 0.5em;
    color: #FFFFFF;
}

.footer-top a {
    color: #9AAEB8;
    text-decoration: underline;
}

.footer-top a:hover {
    color: #FFFFFF;
}

.footer-contact {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    background-color: #1e252a;
    padding: 14px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

.footer-bottom-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ----------------------------------------------------------------
   SITEORIGIN PAGE BUILDER OVERRIDES
---------------------------------------------------------------- */

/* Make SO builder panels flush with page edges */
.panel-grid {
    margin: 0 !important;
}

/* Panel / row / cell full width */
.so-panel,
.panel-row-style,
.panel-grid-cell {
    width: 100% !important;
}

/* Ensure SO Hero widget headings get correct fonts */
.siteorigin-widget-hero h1,
.siteorigin-widget-hero h2,
.siteorigin-widget-hero h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
}

/* Content area for builder pages: full width, no extra padding */
.builder-page .site-main {
    padding: 0;
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn,
.button,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background-color: #00E689;
    color: #292F33;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #00C977;
    color: #292F33;
}

.btn-red {
    background-color: #ED1C24;
    color: #FFFFFF;
}

.btn-red:hover {
    background-color: #c81018;
    color: #FFFFFF;
}

/* ----------------------------------------------------------------
   FORMS
---------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CADDE6;
    border-radius: 4px;
    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    color: #292F33;
    background: #FFFFFF;
    transition: border-color 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00E689;
}

/* ----------------------------------------------------------------
   RESPONSIVE – MOBILE
---------------------------------------------------------------- */
@media (max-width: 900px) {
    .header-inner {
        min-height: 70px;
        padding: 0 16px;
    }

    .site-logo img {
        width: 110px;
    }

    /* Show burger */
    .nav-toggle {
        display: flex;
    }

    /* Hide desktop nav */
    #site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 999;
    }

    #site-header {
        position: relative;
    }

    #site-nav.nav-open {
        display: block;
    }

    .nav-primary {
        flex-direction: column;
        height: auto;
    }

    .nav-primary > li {
        border-left: none;
        border-top: 1px solid rgba(41, 47, 51, 0.1);
    }

    .nav-primary > li > a {
        height: auto;
        padding: 12px 20px;
        font-size: 10px;
    }

    .nav-primary .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        background: #E8F5FC;
        padding: 0;
    }

    .nav-primary .sub-menu li a {
        padding: 10px 32px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }
}

/* ----------------------------------------------------------------
   RMW HERO SECTION  (used in SiteOrigin text widgets on dark rows)
---------------------------------------------------------------- */
.rmw-hero {
    padding: 80px 40px;
    text-align: left;
    max-width: 860px;
    margin: 0 auto;
}

.rmw-hero h1,
.rmw-hero h2,
.rmw-hero h3 {
    color: #FFFFFF;
    font-family: 'Libre Baskerville', Georgia, serif;
}

.rmw-hero h1 {
    font-size: 2.6em;
    margin-bottom: 0.3em;
}

.rmw-hero h2 {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 1em;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Questrial', sans-serif;
}

.rmw-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05em;
    max-width: 600px;
    margin-bottom: 1.5em;
}

.rmw-hero a.rmw-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Questrial', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: opacity 0.25s ease;
}

.rmw-hero a.rmw-btn:hover {
    opacity: 0.85;
}

/* ----------------------------------------------------------------
   RMW ANNOUNCEMENT BAR  (red announcement row at top)
---------------------------------------------------------------- */
.rmw-announcement {
    color: #FFFFFF;
    text-align: center;
    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    padding: 8px 20px;
}

.rmw-announcement a {
    color: #FFFFFF;
    text-decoration: underline;
}

.rmw-announcement a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------------------
   SITEORIGIN DARK-BACKGROUND ROWS
   Any SO row with #205685 (dark blue) or #292F33 (near-black) gets white text
---------------------------------------------------------------- */
.panel-row-style[style*="background-color:#205685"] h1,
.panel-row-style[style*="background-color:#205685"] h2,
.panel-row-style[style*="background-color:#205685"] h3,
.panel-row-style[style*="background-color:#205685"] p,
.panel-row-style[style*="background-color: #205685"] h1,
.panel-row-style[style*="background-color: #205685"] h2,
.panel-row-style[style*="background-color: #205685"] p {
    color: #FFFFFF;
}

.panel-row-style[style*="background-color:#292F33"] h1,
.panel-row-style[style*="background-color:#292F33"] h2,
.panel-row-style[style*="background-color:#292F33"] h3,
.panel-row-style[style*="background-color:#292F33"] p {
    color: #FFFFFF;
}

.panel-row-style[style*="background-color:#ED1C24"] h1,
.panel-row-style[style*="background-color:#ED1C24"] h2,
.panel-row-style[style*="background-color:#ED1C24"] p,
.panel-row-style[style*="background-color:#ED1C24"] a {
    color: #FFFFFF;
}

/* ----------------------------------------------------------------
   SITEORIGIN GENERAL WIDGET OVERRIDES
---------------------------------------------------------------- */

/* SO panels full-width stretch wrapper */
.siteorigin-panels-stretch {
    width: 100%;
}

/* SO panel layout – remove default outer margin */
.panel-layout {
    margin: 0 auto;
}

/* Panel row padding defaults */
.panel-row-style {
    width: 100%;
}

/* SO CTA widget */
.siteorigin-widget-cta h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
}

/* Ensure hero section rows have no margin top/bottom gap */
#pg-4446-0,
#pg-4446-1 {
    margin-bottom: 0 !important;
}

/* ----------------------------------------------------------------
   SECTION HEADING STYLE  (used in content sections)
---------------------------------------------------------------- */
.rmw-section-heading {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 2em;
    color: #292F33;
    text-align: center;
    margin-bottom: 0.5em;
}

.rmw-section-divider {
    width: 60px;
    height: 4px;
    background: #9AAEB8;
    margin: 0 auto 2em;
    border-radius: 2px;
}

/* ----------------------------------------------------------------
   CONTACT FORM 7 OVERRIDES
---------------------------------------------------------------- */
.wpcf7-form {
    max-width: 680px;
    margin: 0 auto;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
    border: 1px solid #CADDE6;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Questrial', sans-serif;
    font-size: 15px;
    color: #292F33;
    width: 100%;
    margin-bottom: 12px;
}

.wpcf7-form input[type="submit"] {
    background: #ED1C24;
    color: #FFFFFF;
    font-family: 'Questrial', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    padding: 14px 36px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.25s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #c81018;
}

/* ----------------------------------------------------------------
   FOOTER NAV LIST
---------------------------------------------------------------- */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav-list li a {
    color: #9AAEB8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.footer-nav-list li a:hover {
    color: #FFFFFF;
}

/* ----------------------------------------------------------------
   SOCIAL ICONS AREA  (in footer)
---------------------------------------------------------------- */
.footer-social {
    margin-top: 16px;
}

.footer-social a {
    display: inline-block;
    margin: 0 8px;
    color: #9AAEB8;
    font-size: 20px;
    transition: color 0.25s ease;
}

.footer-social a:hover {
    color: #FFFFFF;
}

/* ----------------------------------------------------------------
   TESTIMONIAL CARD STYLES
---------------------------------------------------------------- */
.rmw-testimonial {
    background: #FFFFFF;
    border-left: 4px solid #ED1C24;
    padding: 24px 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.rmw-testimonial blockquote {
    font-style: italic;
    color: #515E65;
    margin-bottom: 12px;
    font-size: 1.05em;
}

.rmw-testimonial cite {
    font-weight: 700;
    color: #292F33;
    font-style: normal;
}

/* ----------------------------------------------------------------
   SERVICE CARD STYLES
---------------------------------------------------------------- */
.rmw-service-card {
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px;
    text-align: center;
    transition: box-shadow 0.25s ease;
}

.rmw-service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.rmw-service-card h3 {
    color: #205685;
    margin-bottom: 0.5em;
}

.rmw-service-card .icon {
    width: 64px;
    height: 64px;
    background: #ED1C24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #FFFFFF;
}

/* ----------------------------------------------------------------
   ABOUT PAGE STYLES
---------------------------------------------------------------- */
.rmw-bio-image {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ----------------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid #ED1C24;
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

