/*
Theme Name: Dragons PME Acquisition
Theme URI: https://example.com/
Author: OpenAI for ELund
Author URI: https://openai.com/
Description: An English-language WordPress theme for direct business acquisition, succession, and advisory websites. Built to closely mirror the section flow of vendre-entreprise.ch while remaining an original implementation.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dragonspme
*/

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f5f5f3;
    --text: #151515;
    --muted: #5d5d58;
    --line: #e6e3da;
    --primary: #1d3f39;
    --primary-dark: #15312c;
    --accent: #b38745;
    --shadow: 0 18px 40px rgba(18, 25, 23, 0.06);
    --radius: 24px;
    --radius-small: 18px;
    --container: 1180px;
    --narrow: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.68;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.28rem; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.narrow-container,
.narrow-flow { width: min(var(--narrow), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; }
.section--soft { background: var(--surface-soft); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(29, 63, 57, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.lead {
    font-size: 1.16rem;
    max-width: 62ch;
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 227, 218, 0.9);
}
.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.site-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}
.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--text);
    font-weight: 600;
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.header-phone {
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}
.language-switcher ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.button:hover { background: var(--primary-dark); color: #fff; }
.button--ghost {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}
.button--ghost:hover { background: rgba(29, 63, 57, 0.06); color: var(--primary); }
.button--small { padding: 0.82rem 1rem; }

.hero-section--replica {
    padding: 7rem 0 5.25rem;
}
.hero-wrap {
    display: flex;
    justify-content: center;
}
.hero-copy {
    width: min(860px, 100%);
    text-align: center;
}
.hero-copy h1 {
    max-width: 11ch;
    margin-inline: auto;
}
.hero-copy .lead {
    margin-inline: auto;
}
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
}
.section-heading { margin-bottom: 2rem; }
.section-heading--center {
    text-align: center;
    margin-inline: auto;
    max-width: 760px;
}
.timeline-grid,
.criteria-grid,
.guarantees-grid {
    display: grid;
    gap: 1rem;
}
.timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.criteria-grid--four,
.guarantees-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.criteria-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline-card,
.criteria-card,
.guarantee-card,
.post-card,
.contact-card,
.sidebar-card,
.prose-content article,
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.timeline-card,
.criteria-card,
.guarantee-card,
.post-card,
.contact-card,
.sidebar-card { padding: 1.55rem; }
.timeline-number {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}
.timeline-card p,
.criteria-card p,
.guarantee-card p,
.about-copy p,
.post-card p,
.sidebar-card p,
.contact-card p,
.entry-content,
.entry-content p { color: var(--muted); }
.concern-box {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
}
.concern-actions { display: flex; align-items: center; }
.about-copy {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
}
.cta-region__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.content-grid,
.two-col-grid,
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1.3rem;
}
.page-header { margin-bottom: 1.5rem; }
.prose-content article { padding: 2rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2,
.entry-content h3 { margin-top: 1.8rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    background: var(--surface-soft);
}
.faq-list details {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-small);
    margin-bottom: 0.8rem;
}
.faq-list summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.post-card h2 { font-size: 1.45rem; }
.post-meta {
    margin-bottom: 0.7rem;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.site-footer {
    padding: 3.4rem 0 2rem;
    background: #181814;
    color: #ebe8df;
}
.site-footer a,
.site-footer h3,
.site-footer h4 { color: #fff; }
.site-footer__grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
.site-footer__bottom {
    padding-top: 1.2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
}
.site-footer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .menu li + li { margin-top: 0.4rem; }

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

@media (max-width: 1100px) {
    .criteria-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem 0;
    }
    .main-nav .menu { flex-wrap: wrap; justify-content: center; }
    .site-header__actions { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 820px) {
    .section { padding: 4.3rem 0; }
    .timeline-grid,
    .criteria-grid--four,
    .guarantees-grid,
    .content-grid,
    .two-col-grid,
    .site-footer__grid,
    .cta-region__inner,
    .concern-box {
        grid-template-columns: 1fr;
    }
    .hero-section--replica { padding-top: 5.2rem; }
    .hero-copy h1 { max-width: none; }
}

@media (max-width: 620px) {
    .container,
    .narrow-container,
    .narrow-flow { width: min(100%, calc(100% - 1.25rem)); }
    .button,
    .button--small { width: 100%; }
    .hero-actions,
    .site-header__actions { width: 100%; }
    .main-nav { width: 100%; }
    .main-nav .menu {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

/* v1.2 reliability + mobile navigation patch */
.site-header {
    box-shadow: 0 8px 24px rgba(18, 25, 23, 0.04);
}
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.language-switcher:empty {
    display: none;
}
@media (max-width: 820px) {
    .site-header {
        position: sticky;
    }
    .site-header__inner {
        min-height: 76px;
        grid-template-columns: 1fr auto;
        display: grid;
        align-items: center;
    }
    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }
    .main-nav {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        order: 4;
    }
    .site-header__actions {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        order: 5;
        padding-top: 0.25rem;
        border-top: 1px solid var(--line);
    }
    body.menu-open .main-nav,
    body.menu-open .site-header__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    body.menu-open .main-nav .menu,
    body.menu-open .main-nav .page-menu,
    body.menu-open .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 0.75rem;
        border: 1px solid var(--line);
        border-radius: 18px;
        overflow: hidden;
        background: #fff;
    }
    body.menu-open .main-nav a,
    body.menu-open .main-nav .page_item a {
        display: block;
        padding: 0.95rem 1rem;
        border-bottom: 1px solid var(--line);
    }
    body.menu-open .main-nav li:last-child a,
    body.menu-open .main-nav .page_item:last-child a {
        border-bottom: 0;
    }
    body.menu-open .site-header__actions {
        gap: 0.75rem;
        margin-top: 0.85rem;
    }
    body.menu-open .header-phone,
    body.menu-open .button--small,
    body.menu-open .language-switcher {
        width: 100%;
    }
    body.menu-open .header-phone {
        display: block;
        text-align: center;
        padding: 0.95rem 1rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
    }
    body.menu-open .language-switcher ul {
        width: 100%;
        justify-content: center;
    }
    body.menu-open .nav-toggle span:nth-child(2) {
        transform: translateY(7px) rotate(45deg);
    }
    body.menu-open .nav-toggle span:nth-child(3) {
        opacity: 0;
    }
    body.menu-open .nav-toggle span:nth-child(4) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


/* v1.3 visual polish and stronger responsiveness */
:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-soft: #ebe6dc;
    --text: #161616;
    --muted: #5f5b54;
    --line: #ded8cb;
    --primary: #1f4c43;
    --primary-dark: #173a34;
    --accent: #b99052;
    --shadow: 0 24px 60px rgba(17, 28, 24, 0.08);
    --shadow-soft: 0 14px 30px rgba(17, 28, 24, 0.06);
    --radius: 28px;
    --radius-small: 20px;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    background:
        radial-gradient(circle at top left, rgba(185, 144, 82, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 76, 67, 0.07), transparent 26%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.site-main {
    overflow: clip;
}
.container {
    width: min(var(--container), calc(100% - 2.5rem));
}
.narrow-container,
.narrow-flow {
    width: min(var(--narrow), calc(100% - 2.5rem));
}
.site-branding img {
    width: auto;
    max-height: 52px;
}
.site-title {
    letter-spacing: -0.03em;
}
.main-nav .menu,
.main-nav .page-menu,
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}
.main-nav .page_item {
    list-style: none;
}
.main-nav a,
.main-nav .page_item a {
    position: relative;
    color: var(--text);
    font-weight: 600;
}
.main-nav a::after,
.main-nav .page_item a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav .page_item a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    transform: scaleX(1);
}
.button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(19, 46, 41, 0.16);
}
.button--ghost {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(8px);
}
.hero-section--replica {
    position: relative;
    padding: 8.5rem 0 6.4rem;
}
.hero-section--replica::before,
.hero-section--replica::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}
.hero-section--replica::before {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(31, 76, 67, 0.16) 0%, rgba(31, 76, 67, 0) 68%);
}
.hero-section--replica::after {
    width: 300px;
    height: 300px;
    left: -80px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(185, 144, 82, 0.18) 0%, rgba(185, 144, 82, 0) 68%);
}
.hero-copy {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    padding: 1rem 0;
}
.hero-copy h1 {
    font-size: clamp(3.4rem, 8.1vw, 6.2rem);
    max-width: 9.6ch;
    margin-bottom: 1.15rem;
}
.hero-copy .lead {
    max-width: 58ch;
    font-size: 1.22rem;
}
.hero-proof {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 0.95rem;
    border: 1px solid rgba(31, 76, 67, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}
.hero-proof span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}
.section {
    padding: 5.8rem 0;
}
.section--soft {
    position: relative;
    background: linear-gradient(180deg, rgba(235, 230, 220, 0.7), rgba(235, 230, 220, 0.92));
}
.section-heading {
    margin-bottom: 2.4rem;
}
.timeline-card,
.criteria-card,
.guarantee-card,
.post-card,
.contact-card,
.sidebar-card,
.prose-content article,
.faq-list details,
.cta-region__inner,
.concern-box {
    border-color: rgba(31, 76, 67, 0.08);
    box-shadow: var(--shadow);
}
.timeline-card,
.criteria-card,
.guarantee-card,
.post-card,
.contact-card,
.sidebar-card {
    position: relative;
    overflow: hidden;
}
.timeline-card::before,
.criteria-card::before,
.guarantee-card::before,
.post-card::before,
.sidebar-card::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), rgba(185, 144, 82, 0.88));
    opacity: 0.92;
}
.timeline-card,
.criteria-card,
.guarantee-card {
    min-height: 100%;
}
.timeline-card:hover,
.criteria-card:hover,
.guarantee-card:hover,
.post-card:hover,
.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(18, 30, 26, 0.12);
}
.timeline-card,
.criteria-card,
.guarantee-card,
.post-card,
.sidebar-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.timeline-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(31, 76, 67, 0.08);
}
.concern-box {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,248,243,0.96) 100%),
        linear-gradient(90deg, rgba(31,76,67,0.08), rgba(185,144,82,0.08));
}
.concern-box h2,
.cta-region__inner h2 {
    max-width: 13ch;
}
.about-section {
    position: relative;
}
.about-copy {
    padding: 2.2rem 2.4rem;
    border-radius: 28px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(31, 76, 67, 0.08);
    box-shadow: var(--shadow-soft);
}
.cta-region__inner {
    background:
        linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(248,245,239,1) 100%);
}
.post-card + .post-card {
    margin-top: 1rem;
}
.entry-content > *:first-child,
.entry-content > p:first-child {
    font-size: 1.12rem;
}
.pagination-wrap,
.nav-links {
    margin-top: 1.5rem;
}
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    margin-right: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.nav-links .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.site-footer {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(185, 144, 82, 0.16), transparent 20%),
        #121310;
}
.site-footer__grid {
    gap: 2rem;
}
@media (max-width: 1100px) {
    .hero-copy h1 {
        max-width: 10ch;
    }
    .site-header__actions {
        gap: 0.65rem;
    }
}
@media (max-width: 980px) {
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    .guarantees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .content-grid,
    .two-col-grid,
    .site-footer__grid,
    .cta-region__inner,
    .concern-box {
        grid-template-columns: 1fr;
    }
    .cta-region__inner .button,
    .concern-box .button {
        width: auto;
    }
}
@media (max-width: 820px) {
    .container,
    .narrow-container,
    .narrow-flow {
        width: min(100%, calc(100% - 1.4rem));
    }
    .site-header__inner {
        gap: 0.8rem;
        padding: 0.9rem 0;
    }
    .hero-section--replica {
        padding: 6.2rem 0 4.8rem;
    }
    .hero-copy h1 {
        font-size: clamp(2.7rem, 12vw, 4.2rem);
        max-width: none;
    }
    .hero-copy .lead {
        font-size: 1.05rem;
    }
    .hero-proof {
        gap: 0.55rem;
    }
    .hero-proof span {
        font-size: 0.88rem;
    }
    .guarantees-grid,
    .criteria-grid--four,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
    body.menu-open {
        overflow: hidden;
    }
    body.menu-open .main-nav,
    body.menu-open .site-header__actions {
        padding-bottom: 0.2rem;
    }
    body.menu-open .button--small {
        width: 100%;
    }
    body.menu-open .language-switcher a {
        min-width: 0;
    }
}
@media (max-width: 620px) {
    .section {
        padding: 4.2rem 0;
    }
    .button,
    .button--small,
    .cta-region__inner .button,
    .concern-box .button {
        width: 100%;
    }
    .hero-actions,
    .site-header__actions,
    .language-switcher ul {
        width: 100%;
    }
    .hero-proof {
        justify-content: stretch;
    }
    .hero-proof span {
        width: 100%;
        justify-content: center;
    }
    .about-copy {
        padding: 1.5rem 1.25rem;
    }
    .timeline-card,
    .criteria-card,
    .guarantee-card,
    .post-card,
    .contact-card,
    .sidebar-card,
    .prose-content article {
        padding: 1.25rem;
    }
}
