/*
Theme Name: Flower Shop Child
Theme URI: http://cmsmasters.net/flower-shop-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Flower Shop Child Theme — Lovebug Florist SEO Implementation
Template: flower-shop
Version: 2.0.0
License:
License URI:
Text Domain: flower-shop-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   LOVEBUG FLORIST — SEO ENHANCEMENT STYLES
   Based on SEO Implementation Guide V2
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header Logo Size Fix
   -------------------------------------------------------------------------- */

/* Desktop */
#header .logo_wrap a.logo img,
#header .logo_wrap a.logo .logo_retina,
.header_mid .logo_wrap a.logo img,
.header_mid .logo_wrap a.logo .logo_retina,
.logo_wrap .logo img,
.logo_wrap .logo .logo_retina {
    width: 80px !important;
    max-width: 80px !important;
    height: auto !important;
    max-height: none !important;
}

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    #header .logo_wrap a.logo img,
    #header .logo_wrap a.logo .logo_retina,
    .header_mid .logo_wrap a.logo img,
    .header_mid .logo_wrap a.logo .logo_retina,
    .logo_wrap .logo img,
    .logo_wrap .logo .logo_retina {
        width: 75px !important;
        max-width: 75px !important;
        height: auto !important;
    }
}

/* Mobile (max 768px) — center ONLY the logo, leave nav untouched */
@media (max-width: 768px) {
    #header .logo_wrap a.logo img,
    #header .logo_wrap a.logo .logo_retina,
    .header_mid .logo_wrap a.logo img,
    .header_mid .logo_wrap a.logo .logo_retina,
    .logo_wrap .logo img,
    .logo_wrap .logo .logo_retina {
        width: 90px !important;
        max-width: 90px !important;
        height: auto !important;
    }

    /* Center only the logo wrap block — NOT the full header */
    .logo_wrap {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .logo_wrap a.logo {
        display: inline-block !important;
        margin: 0 auto !important;
        float: none !important;
    }

    /* Make sure header_mid_inner stays normal (left-aligned) for nav */
    .header_mid_inner {
        display: block !important;
        text-align: left !important;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    #header .logo_wrap a.logo img,
    #header .logo_wrap a.logo .logo_retina,
    .header_mid .logo_wrap a.logo img,
    .header_mid .logo_wrap a.logo .logo_retina,
    .logo_wrap .logo img,
    .logo_wrap .logo .logo_retina {
        width: 80px !important;
        max-width: 80px !important;
        height: auto !important;
    }
}


/* --------------------------------------------------------------------------
   Breadcrumbs — SEO Guide §4.1
   -------------------------------------------------------------------------- */

.lovebug-breadcrumbs {
    padding: 10px 0 8px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.lovebug-breadcrumbs a {
    color: #c0395c;
    text-decoration: none;
}

.lovebug-breadcrumbs a:hover {
    text-decoration: underline;
}

.lovebug-breadcrumbs .sep {
    margin: 0 6px;
    color: #bbb;
}

.lovebug-breadcrumbs span[aria-current="page"] {
    color: #555;
}


/* --------------------------------------------------------------------------
   WhatsApp Floating Button — SEO Guide §10.3
   -------------------------------------------------------------------------- */

.lovebug-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px 12px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.lovebug-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    color: #fff !important;
}

.lovebug-whatsapp-btn svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .lovebug-whatsapp-btn span {
        display: none;
    }
    .lovebug-whatsapp-btn {
        padding: 14px;
        border-radius: 50%;
        bottom: 18px;
        right: 18px;
    }
}


/* --------------------------------------------------------------------------
   SEO Footer — Four Columns — SEO Guide §4.3
   -------------------------------------------------------------------------- */

.lovebug-footer-seo {
    background: #1a1a1a;
    color: #ccc;
    padding: 48px 0 0;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 40px;
}

.lovebug-footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 960px) {
    .lovebug-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 540px) {
    .lovebug-footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.lovebug-footer-col .footer-col-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c0395c;
    display: inline-block;
}

.lovebug-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lovebug-footer-col ul li {
    margin-bottom: 6px;
}

.lovebug-footer-col a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lovebug-footer-col a:hover {
    color: #f28fad;
}

.lovebug-footer-col address {
    font-style: normal;
}

.lovebug-footer-col address p {
    margin-bottom: 12px;
}


/* Newsletter Form
   -------------------------------------------------------------------------- */

.lovebug-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.lovebug-newsletter-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.lovebug-newsletter-form input[type="email"]::placeholder {
    color: #888;
}

.lovebug-newsletter-form button {
    padding: 11px 20px;
    background: #c0395c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.lovebug-newsletter-form button:hover {
    background: #a02d4c;
}


/* --------------------------------------------------------------------------
   Social Media Icons — inside Newsletter column
   -------------------------------------------------------------------------- */

.lovebug-no-spam {
    font-size: 11px;
    margin-top: 8px;
    opacity: 0.7;
}

.lovebug-footer-social {
    margin-top: 16px;
}

.lovebug-follow-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lovebug-footer-social .social_wrap_inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.lovebug-footer-social .social_wrap_inner ul li {
    margin: 0;
}

.lovebug-footer-social .cmsmasters_social_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2e2e2e;
    color: #ccc;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid #3e3e3e;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lovebug-footer-social .cmsmasters_social_icon:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Brand hover colours */
.lovebug-footer-social .cmsmasters-icon-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.lovebug-footer-social .cmsmasters-icon-instagram-1:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.lovebug-footer-social .cmsmasters-icon-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.lovebug-footer-social .cmsmasters-icon-pinterest-1:hover {
    background: #e60023;
    border-color: #e60023;
}


/* Footer Bottom Bar
   -------------------------------------------------------------------------- */

.lovebug-footer-bottom {
    text-align: center;
    padding: 16px 24px;
    margin-top: 20px;
    border-top: 1px solid #2e2e2e;
    font-size: 12px;
    color: #777;
}


/* --------------------------------------------------------------------------
   Related Pages / Internal Links — SEO Guide §8.2
   -------------------------------------------------------------------------- */

.lovebug-related-pages {
    background: #fff8f9;
    border: 1px solid #f0dde3;
    border-radius: 8px;
    padding: 24px 28px;
    margin: 40px 0;
}

.lovebug-related-pages h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: #333;
}

.lovebug-related-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lovebug-related-pages ul li a {
    display: inline-block;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #e0b8c5;
    border-radius: 20px;
    font-size: 13px;
    color: #c0395c;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.lovebug-related-pages ul li a:hover {
    background: #c0395c;
    color: #fff;
    border-color: #c0395c;
}


/* --------------------------------------------------------------------------
   Mobile-First Body Text — SEO Guide §8.1 (min 16px)
   -------------------------------------------------------------------------- */

body,
p,
li,
td,
th {
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    /* Tap targets — min 48px height for buttons/links per §8.1 */
    .button,
    button,
    input[type="submit"],
    .btn,
    a.btn {
        min-height: 48px;
        min-width: 48px;
    }
}


/* --------------------------------------------------------------------------
   Page H1 / H2 hierarchy polish — SEO Guide §6.4
   -------------------------------------------------------------------------- */

.entry-title,
h1.page-title,
h1 {
    line-height: 1.25;
    font-weight: 700;
}

h2 {
    line-height: 1.3;
}

h3 {
    line-height: 1.35;
}