/*
Theme Name: Poopy Poochy
Theme URI: https://poopypoochy.thomaspublishinghouse.com
Author: Thomas Publishing House
Author URI: https://thomaspublishinghouse.com
Description: Custom theme for Poopy Poochy – Pet Waste Removal. Matches original Wix site design.
Version: 1.0.0
License: Proprietary
Text Domain: poopy-poochy
*/

/* ══════════════════════════════════════
   CSS CUSTOM PROPERTIES
   From Wix site design tokens
   ══════════════════════════════════════ */
:root {
    /* Brand colors (extracted from Wix --color_* vars) */
    --pp-purple:       #800080;
    --pp-purple-dark:  #600060;
    --pp-purple-light: #9a339a;
    --pp-blue:         #0FB1F7;   /* Wix nav hover: rgb(15,177,247) */
    --pp-blue-dark:    #0088CB;   /* Wix --color_4: rgb(0,136,203) */
    --pp-orange:       #FF3F21;   /* Wix --color_18: rgb(255,63,33) */
    --pp-black:        #000000;
    --pp-white:        #FFFFFF;
    --pp-off-white:    #F6F9F5;   /* Wix nav text: rgb(246,249,245) */
    --pp-dark-gray:    #555555;   /* Wix --color_14/40 */
    --pp-medium-gray:  #909090;   /* Wix --color_13 */
    --pp-light-gray:   #D9D9D9;   /* Wix --color_12 */

    /* Layout */
    --pp-site-width:   980px;
    --pp-header-height: auto;

    /* Typography */
    --pp-font-heading: 'Montserrat', sans-serif;  /* Closest to Proxima Nova */
    --pp-font-body:    'Work Sans', sans-serif;
    --pp-font-nav:     'Kanit', sans-serif;        /* Exact match from Wix */
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--pp-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pp-black);
    background: var(--pp-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--pp-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--pp-blue-dark);
}

/* ══════════════════════════════════════
   TYPOGRAPHY – Headings
   Matching Wix font sizes from --font_* vars
   ══════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pp-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--pp-black);
    margin-top: 0;
}

h1 { font-size: 48px; }   /* Wix --font_4: 40px, scaled up */
h2 { font-size: 32px; }   /* Wix --font_5: 25px, scaled up */
h3 { font-size: 24px; }   /* Wix --font_6: 22px */
h4 { font-size: 20px; }   /* Wix --font_7: 17px, scaled up */

p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* ══════════════════════════════════════
   HEADER
   Purple bg matching Wix footer (#800080)
   ══════════════════════════════════════ */
.site-header {
    background: var(--pp-purple);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: var(--pp-site-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

/* Branding / Logo */
.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    display: block;
    text-decoration: none;
}

.site-branding img,
.custom-logo {
    max-height: 90px;
    width: auto;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-family: var(--pp-font-heading);
    font-weight: 900;
    font-size: 24px;
    color: var(--pp-white);
}

/* Navigation – Kanit Bold (exact Wix match) */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-family: var(--pp-font-nav);
    font-weight: 700;
    font-size: 18px;
    color: var(--pp-off-white);
    text-decoration: none;
    padding: 10px 14px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--pp-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--pp-off-white);
    color: var(--pp-off-white);
    font-size: 22px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--pp-font-nav);
    line-height: 1;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════ */
.site-content {
    min-height: 50vh;
}

.entry-content {
    /* Full-width container – blocks manage their own width */
}

/* Constrain regular blocks to site width */
.entry-content > * {
    max-width: var(--pp-site-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Full-width blocks – no constraints */
.entry-content > .wp-block-cover,
.entry-content > .alignfull {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Spacers don't need horizontal padding */
.entry-content > .wp-block-spacer {
    padding-left: 0;
    padding-right: 0;
}

/* ══════════════════════════════════════
   COVER BLOCK – Hero Sections
   Full-width with overlay, matching Wix strips
   ══════════════════════════════════════ */
.wp-block-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wp-block-cover__inner-container {
    max-width: var(--pp-site-width);
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
    color: var(--pp-white) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.wp-block-cover h1 {
    font-weight: 900;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   BUTTONS – CTA Style
   Bright blue matching Wix nav hover color
   ══════════════════════════════════════ */
.wp-block-buttons {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-button__link {
    font-family: var(--pp-font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Primary button style – bright blue */
.wp-block-button__link.has-vivid-cyan-blue-background-color,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--pp-blue) !important;
    color: var(--pp-white) !important;
    border-color: var(--pp-blue) !important;
}

.wp-block-button__link.has-vivid-cyan-blue-background-color:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--pp-blue-dark) !important;
    border-color: var(--pp-blue-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 177, 247, 0.3);
}

/* Outline button style */
.is-style-outline .wp-block-button__link {
    border: 2px solid var(--pp-blue);
    color: var(--pp-blue) !important;
    background: transparent !important;
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--pp-blue) !important;
    color: var(--pp-white) !important;
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   MEDIA-TEXT BLOCK – Service Sections
   Alternating image + text layout
   ══════════════════════════════════════ */
.wp-block-media-text {
    margin-top: 20px;
    margin-bottom: 20px;
}

.wp-block-media-text__media img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.wp-block-media-text__content {
    padding: 30px 40px;
}

.wp-block-media-text__content h2 {
    color: var(--pp-purple);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.wp-block-media-text__content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--pp-blue);
}

/* ══════════════════════════════════════
   COLUMNS – Pricing Cards
   Bordered cards with hover effect
   ══════════════════════════════════════ */
.wp-block-columns {
    gap: 30px;
}

.wp-block-column {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add shadow and hover to bordered columns (pricing cards) */
.wp-block-column[style*="border"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wp-block-column[style*="border"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════
   LISTS
   Clean styling, works with embedded
   checkmark chars and plain items
   ══════════════════════════════════════ */
.wp-block-list {
    padding-left: 24px;
}

.wp-block-list li {
    padding: 5px 0;
    font-size: 16px;
    line-height: 1.5;
}

/* ══════════════════════════════════════
   TABLE – Hours of Operation
   ══════════════════════════════════════ */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--pp-font-body);
}

.wp-block-table td,
.wp-block-table th {
    padding: 8px 16px;
    border-bottom: 1px solid var(--pp-light-gray);
    font-size: 15px;
    text-align: left;
}

.wp-block-table tr:last-child td {
    border-bottom: none;
}

.wp-block-table figure {
    margin: 0;
}

/* ══════════════════════════════════════
   SEPARATOR
   Blue accent line matching Wix
   ══════════════════════════════════════ */
.wp-block-separator {
    border: none;
    border-top: 2px solid var(--pp-blue);
    max-width: 200px;
    margin: 30px auto;
    opacity: 1;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
    border-color: var(--pp-light-gray);
    border-width: 1px;
}

.wp-block-separator.has-alpha-channel-opacity {
    opacity: 1;
}

/* ══════════════════════════════════════
   FOOTER
   Purple (#800080) matching original Wix
   3-column layout: links | hours | contact
   ══════════════════════════════════════ */
.site-footer {
    background: var(--pp-purple);
    color: var(--pp-off-white);
    padding: 60px 20px 30px;
    margin-top: 0;
}

.footer-inner {
    max-width: var(--pp-site-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Footer section headings */
.footer-section h4 {
    font-family: var(--pp-font-heading);
    color: var(--pp-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pp-blue);
    display: inline-block;
}

/* Footer links column */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--pp-off-white);
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--pp-blue);
}

/* Footer hours column */
.footer-hours table {
    width: 100%;
    border-collapse: collapse;
    color: var(--pp-off-white);
    font-size: 14px;
}

.footer-hours td {
    padding: 3px 0;
    border: none;
}

.footer-hours td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Footer contact column */
.footer-contact p {
    margin: 10px 0;
    font-size: 15px;
}

.footer-contact a {
    color: var(--pp-off-white);
}

.footer-contact a:hover {
    color: var(--pp-blue);
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--pp-off-white);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--pp-blue);
}

/* Footer bottom bar */
.footer-bottom {
    max-width: var(--pp-site-width);
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .custom-logo-link {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-bottom .custom-logo-link img,
.footer-bottom .custom-logo {
    max-height: 50px;
    width: auto;
    display: inline-block;
}

.footer-bottom p {
    margin: 8px 0 0;
}

/* ══════════════════════════════════════
   PAGE-SPECIFIC: Home page content area
   Hide the duplicate footer-like content
   that's embedded in the page content
   ══════════════════════════════════════ */
.front-page-content .entry-content > .wp-block-columns:last-of-type,
.front-page-content .entry-content > p:last-of-type[style*="14px"] {
    /* These contain the inline footer from original clone – hidden now */
}

/* ══════════════════════════════════════
   WORDPRESS CORE OVERRIDES
   ══════════════════════════════════════ */

/* Admin bar offset */
body.admin-bar .site-header {
    top: 0;
}

/* Screen reader text (accessibility) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ══════════════════════════════════════
   RESPONSIVE – Tablet
   ══════════════════════════════════════ */
@media (max-width: 980px) {
    .entry-content > * {
        padding-left: 15px;
        padding-right: 15px;
    }

    .wp-block-media-text__content {
        padding: 20px 25px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE – Mobile
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        flex-wrap: wrap;
    }

    .site-branding img,
    .custom-logo {
        max-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 8px;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }

    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }

    /* Cover blocks */
    .wp-block-cover {
        min-height: 280px !important;
    }

    .wp-block-cover h1 {
        font-size: 28px !important;
    }

    /* Media-text stacked */
    .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }

    .wp-block-media-text.has-media-on-the-right {
        grid-template-columns: 1fr !important;
    }

    .wp-block-media-text__content {
        padding: 20px;
    }

    /* Columns stack */
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h4 {
        display: block;
    }

    .footer-hours td:first-child {
        text-align: left;
    }

    .footer-social {
        justify-content: center;
    }

    /* Buttons */
    .wp-block-button__link {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE – Small Mobile
   ══════════════════════════════════════ */
@media (max-width: 480px) {
    .site-branding img,
    .custom-logo {
        max-height: 55px;
    }

    .header-inner {
        padding: 10px 15px;
    }

    .wp-block-cover h1 {
        font-size: 24px !important;
    }

    .wp-block-cover h2 {
        font-size: 18px !important;
    }

    .entry-content > * {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ══════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════ */
@media print {
    .site-header,
    .site-footer,
    .wp-block-buttons,
    .menu-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .entry-content > * {
        max-width: 100%;
    }
}
