/* ==========================================================================
   ABD Creatives - site header and footer
   Same notebook palette as the gallery: paper white, soft grey band, graphite ink
   ========================================================================== */

:root {
    --ab-ink: #23231F;
    --ab-muted: #77776F;
    --ab-line: #E2E2DF;
    --ab-band: #F6F6F5;
    --ab-paper: #FFFFFF;
}

/* ---------------------------------------------------------------- header -- */

.ab-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ab-paper);
    border-bottom: 1px solid var(--ab-line);
}
.ab-header::after {
    content: "";
    display: block;
    height: 3px;
    background-image: radial-gradient(circle, #E8E8E5 0 1.6px, transparent 1.7px);
    background-size: 14px 3px;
    background-repeat: repeat-x;
}

.ab-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ab-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ab-ink);
    flex: none;
}
.ab-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    color: var(--ab-ink);
}
.ab-logo-icon svg { display: block; fill: none; stroke: currentColor; }
.ab-logo-text {
    font-size: 1.22rem;
    letter-spacing: -0.3px;
    line-height: 1;
    white-space: nowrap;
}
.ab-logo-text b { font-weight: 800; }
.ab-logo-text span { font-weight: 400; color: #4A4A47; }

.ab-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.ab-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ab-menu > li { position: relative; margin: 0; }
.ab-menu > li > a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    color: #4A4A47;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    white-space: nowrap;
}
.ab-menu > li > a:hover { background: #F4F4F2; color: var(--ab-ink); }
.ab-menu > li.is-current > a { background: var(--ab-ink); color: #fff; }

/* dropdown */
.ab-has-sub > a { padding-right: 30px; }
.ab-sub-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: 0;
    color: #8A8A84;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ab-sub-toggle svg { display: block; fill: none; stroke: currentColor; transition: transform .18s ease; }
.ab-has-sub.is-open .ab-sub-toggle svg { transform: rotate(180deg); }

.ab-sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--ab-paper);
    border: 1px solid var(--ab-line);
    border-radius: 6px;
    box-shadow: 0 20px 36px -24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.ab-has-sub:hover .ab-sub,
.ab-has-sub.is-open .ab-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ab-sub li { margin: 0; }
.ab-sub a {
    display: block;
    padding: 9px 12px;
    border-radius: 4px;
    color: #4A4A47;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.ab-sub a:hover { background: #F4F4F2; color: var(--ab-ink); }
.ab-sub .ab-sub-all {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--ab-line);
    font-weight: 700;
}

/* search */
.ab-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px 0 14px;
    height: 40px;
    background: var(--ab-paper);
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    flex: none;
}
.ab-search:focus-within { border-color: #BDBCB6; }
.ab-search input[type="search"] {
    width: 150px;
    border: 0;
    outline: 0;
    background: none;
    font-size: 0.88rem;
    color: var(--ab-ink);
    padding: 0;
    box-shadow: none;
}
.ab-search input[type="search"]::placeholder { color: #A3A29C; }
.ab-search button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--ab-ink);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: none;
}
.ab-search button:hover { background: #3A3A35; }
.ab-search button svg { display: block; fill: none; stroke: currentColor; }

/* burger */
.ab-burger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: var(--ab-paper);
    border: 1px solid var(--ab-line);
    border-radius: 50%;
    color: var(--ab-ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ab-burger svg { display: block; fill: none; stroke: currentColor; }
.ab-burger .ab-x { display: none; }
.ab-burger[aria-expanded="true"] .ab-bars { display: none; }
.ab-burger[aria-expanded="true"] .ab-x { display: block; }

@media (max-width: 900px) {
    .ab-header-inner { height: 64px; gap: 12px; }
    .ab-burger { display: inline-flex; }
    .ab-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin: 0;
        padding: 18px 20px 24px;
        background: var(--ab-paper);
        border-bottom: 1px solid var(--ab-line);
        box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.5);
        display: none;
    }
    .ab-nav.is-open { display: flex; }
    .ab-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .ab-menu > li > a { display: block; padding: 12px 14px; border-radius: 6px; }
    .ab-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 1px dashed var(--ab-line);
        border-radius: 0;
        margin: 2px 0 6px 18px;
        padding: 0 0 0 10px;
        display: none;
    }
    .ab-has-sub.is-open .ab-sub { display: block; }
    .ab-has-sub:hover .ab-sub { display: none; }
    .ab-has-sub.is-open:hover .ab-sub { display: block; }
    .ab-search { width: 100%; }
    .ab-search input[type="search"] { width: 100%; }
}

/* ---------------------------------------------------------------- footer -- */

.ab-footer {
    margin-top: 72px;
    background: var(--ab-band);
    border-top: 1px dashed #DEDEDA;
}
.ab-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}

.ab-foot-brand .ab-logo { margin-bottom: 14px; }
.ab-foot-note {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5F5F59;
    max-width: 330px;
}
.ab-foot-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--ab-paper);
    border: 1px solid var(--ab-line);
    border-radius: 999px;
    color: #4A4A47;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.ab-foot-pill:hover { border-color: #BDBCB6; color: var(--ab-ink); }

.ab-foot-col h3 {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8A8A84;
    margin: 0 0 14px;
}
.ab-foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ab-foot-col li { margin: 0 0 9px; }
.ab-foot-col a {
    color: #4A4A47;
    text-decoration: none;
    font-size: 0.93rem;
}
.ab-foot-col a:hover { color: var(--ab-ink); text-decoration: underline; }
.ab-foot-count {
    color: #A3A29C;
    font-size: 0.82rem;
}

.ab-footer-bottom {
    border-top: 1px solid #E8E8E5;
}
.ab-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    color: #8A8A84;
}
.ab-footer-bottom a { color: #8A8A84; text-decoration: none; }
.ab-footer-bottom a:hover { color: var(--ab-ink); text-decoration: underline; }

@media (max-width: 900px) {
    .ab-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px 32px; }
    .ab-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .ab-footer-inner { grid-template-columns: 1fr; }
    .ab-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* GeneratePress leaves its own header/footer markup out now, so trim its spacing */
.site-content { padding: 0; }

/* The full-bleed hero background uses 100vw, which counts the scrollbar and left
   the page ~12px wider than the viewport. `clip` trims it without creating a
   scroll container, so the sticky header keeps working. */
html {
    overflow-x: clip;
}
body {
    overflow-x: clip;
}

/* ---------------------------------------------------------- static pages --
   About, Contact, Privacy Policy and anything else built as a WordPress page.
   Same paper typography as the rest of the site. */

.page .site-content .entry-header,
.page .site-content .entry-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.page .site-content .inside-article {
    padding: 52px 24px 72px;
}
.page .site-content .entry-title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: #1E1E1C;
    margin: 0 0 22px;
}
.page .site-content .entry-content > p:first-child {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #35352F;
}
.page .site-content .entry-content h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #1E1E1C;
    margin: 40px 0 14px;
    line-height: 1.25;
}
.page .site-content .entry-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #2B2B29;
    margin: 26px 0 10px;
}
.page .site-content .entry-content p {
    margin: 0 0 15px;
    font-size: 1.02rem;
    line-height: 1.72;
    color: #45453F;
}
.page .site-content .entry-content ul {
    margin: 0 0 18px;
    padding-left: 20px;
}
.page .site-content .entry-content li {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #45453F;
}
.page .site-content .entry-content strong { color: #23231F; font-weight: 700; }
.page .site-content .entry-content a {
    color: #23231F;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page .site-content .entry-content a:hover { color: #000; }
.page .site-content .entry-content em { color: #77776F; font-style: normal; font-size: 0.9rem; }

/* GeneratePress page furniture we do not want on these pages */
.page .site-content .entry-meta,
.page .site-content .post-navigation,
.page .site-content .comments-area,
.page .site-content .widget-area,
.page .site-content #right-sidebar,
.page .site-content #left-sidebar {
    display: none;
}
