/*
Theme Name: Davenport Marketing
Theme URI: https://www.davenportmarketing.com/
Author: Anwar
Author URI: https://anwarhossanrony.com
Description: Transform your marketing into a growth engine with Davenport Marketing — strategy‑first leadership that drives measurable, lasting success Based in Melbourne, FL, United States (Florida 32934), our team is ready to help – call (321) 405‑2585 or visit davenportmarketing.com

Version: 1.1.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom‑logo, custom‑menu, clean, elementor, translation‑ready, responsive‑layout, custom‑colors
Text Domain: davenportmarketing
*/

/*
 * Base styles for Davenport Marketing
 *
 * To keep the theme as lean as possible, styles are kept minimal. Colours are defined
 * using CSS variables so they can be referenced throughout the theme. Avoid using
 * !important so Elementor’s styles can override these when needed.
 */

:root {
    --dm-text: #111111;
    --dm-muted: #555555;
    --dm-bg: #ffffff;
    --dm-border: rgba(0,0,0,0.10);

    /* Neutral link palette (Elementor-friendly). */
    --dm-link: #0b57d0;
    --dm-link-hover: #063a93;

    /* Footer */
    --dm-footer-bg: #111111;
    --dm-footer-text: #ffffff;
}

/* Prevent horizontal overflow on mobile */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--dm-text);
    background-color: var(--dm-bg);
    line-height: 1.5;
}

/* Screen reader text utility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
}

a {
    color: var(--dm-link);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--dm-link-hover);
    text-decoration: none;
}


/* Layout containers */
.site-content {
    /* Keep Elementor layouts flexible; container is applied in fallback templates. */
    width: 100%;
}

.dm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Fallback content styles (clean, readable, responsive) */
.site-main {
    width: 100%;
}

.page-header {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 0;
}

.page-title {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    color: var(--dm-text);
    letter-spacing: -0.02em;
}

.archive-description,
.search-description {
    color: rgba(0, 0, 0, 0.70);
    max-width: 70ch;
}

article {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.entry-title {
    margin: 0 0 10px;
    line-height: 1.2;
}

.entry-title a {
    color: var(--dm-text);
    text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
    text-decoration: none;
}

.entry-content {
    max-width: none;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.entry-footer a {
    color: var(--dm-text);
}

.wp-block-image img,
.entry-content img {
    border-radius: 12px;
}

.post-navigation,
.navigation {
    margin-top: 18px;
}

.error-404 .page-title {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .dm-container { padding: 22px 14px; }
    article { padding: 0; border-radius: 0; }
}

/* Header (Hello-Elementor-like: minimal + clean) */
.site-header {
    background: var(--dm-bg);
    color: var(--dm-text);
    border-bottom: 1px solid var(--dm-border);
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.site-logo .custom-logo {
    max-height: 56px;
    width: auto;
}
.site-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--dm-text);
}
.site-description {
    margin: 0;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
}

/* Navigation */
.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-navigation > ul {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-navigation a {
    display: inline-block;
    padding: 10px 10px;
    border-radius: 999px;
    color: var(--dm-text);
    text-decoration: none;
    font-weight: 600;
}
.site-navigation a:hover,
.site-navigation a:focus {
    background: rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
    background: rgba(0, 0, 0, 0.10);
}

/* Dropdown (depth 2) */
.site-navigation li {
    position: relative;
}
.site-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--dm-border);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
    z-index: 9999;
}
.site-navigation .sub-menu a {
    display: block;
    border-radius: 10px;
}
.site-navigation li:hover > .sub-menu,
.site-navigation li:focus-within > .sub-menu {
    display: block;
}

/* Footer */
.site-footer {
    background: var(--dm-footer-bg);
    color: var(--dm-footer-text);
}
.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.site-footer a {
    color: var(--dm-footer-text);
}
.site-info {
    font-weight: 600;
}


/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dm-footer-bg);
    color: var(--dm-footer-text);
    padding: 0.5rem 1rem;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Menu toggle button (mobile) */
.menu-toggle {
    display: none;
    padding: 10px 12px;
    border: 1px solid var(--dm-border);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.menu-toggle__icon {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--dm-text);
    position: relative;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--dm-text);
}
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

/* Responsive navigation */
@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-navigation { width: 100%; display: none; }
    .site-navigation.is-open { display: block; }
    .site-navigation > ul { flex-direction: column; align-items: stretch; }
    .site-navigation a { border-radius: 12px; }
    .site-navigation .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}