/*
Theme Name: Odduel
Theme URI: https://odduel.com
Author: Odduel
Author URI: https://odduel.com
Description: Block theme for odduel.com.
Version: 0.7.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: odduel
*/

/* Layout */
body{margin:0;-webkit-font-smoothing:antialiased}
.od-main{display:block}
.od-wrap,.od-section,.od-header-inner,.od-footer-inner,.od-breadcrumbs{max-width:1080px;margin-inline:auto;padding-inline:20px;box-sizing:content-box}
.od-section{padding-block:44px;border-bottom:1px solid var(--wp--preset--color--line)}
.od-section > * + *{margin-block-start:18px}
.od-section > :first-child{margin-block-start:0}
.od-hero{padding-block:56px 48px}
p,li{max-width:65ch}
h1,h2,h3{text-wrap:balance;margin:0}

/* Text roles */
.od-slogan{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--accent);font-weight:600}
.od-lead{font-size:1.2rem;line-height:1.5}
.od-services-line{font-family:var(--wp--preset--font-family--display);font-weight:600;font-size:1.15rem;max-width:none}
.od-kicker{font-size:.76rem;letter-spacing:.07em;text-transform:uppercase;color:var(--wp--preset--color--accent);font-weight:600;margin:0}
.od-more a{font-weight:600}

/* Cards and grids */
.od-grid{gap:22px}
.od-card{border-top:2px solid var(--wp--preset--color--contrast);padding-top:14px;min-width:0}
.od-card > * + *{margin-block-start:8px}
.od-card p,.od-card li{font-size:.97rem}
.od-card h3 a{color:inherit;text-decoration:none}

/* Header */
.od-header{position:sticky;top:0;z-index:10;background:var(--wp--preset--color--surface);border-bottom:1px solid var(--wp--preset--color--line)}
.admin-bar .od-header{top:32px}
.od-header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 28px;padding-block:14px}
.od-header .wp-block-site-title{font-family:var(--wp--preset--font-family--display);font-weight:800;font-stretch:118%;font-size:1.45rem;letter-spacing:-.02em;margin:0}
.od-header .wp-block-site-title a{color:var(--wp--preset--color--contrast);text-decoration:none}
.od-header .wp-block-navigation{font-size:.95rem;font-weight:500}
.od-header .wp-block-navigation a{color:var(--wp--preset--color--contrast)}
.od-header .wp-block-navigation .current-menu-item > a,.od-header .wp-block-navigation a:hover{color:var(--wp--preset--color--accent)}

/* Breadcrumbs */
.od-breadcrumbs{padding-block:18px 0;font-size:.88rem;color:var(--wp--preset--color--muted)}
.od-breadcrumbs a{color:var(--wp--preset--color--muted)}

/* FAQ */
.wp-block-rank-math-faq-block{max-width:760px}
.rank-math-faq-item{border-top:1px solid var(--wp--preset--color--line);padding-block:14px}
.rank-math-faq-item:last-child{border-bottom:1px solid var(--wp--preset--color--line)}
.rank-math-question{font-family:var(--wp--preset--font-family--body);font-size:1.02rem;font-weight:600;margin:0 0 6px}
.rank-math-answer p{font-size:.97rem;margin:0}

/* Forms */
.od-form{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));max-width:760px}
.od-form p{margin:0;max-width:none}
.od-form .od-full{grid-column:1/-1}
.od-form label{display:block;font-size:.9rem;font-weight:500}
.od-form input[type=text],.od-form input[type=email],.od-form input[type=url],.od-form input[type=tel],.od-form select,.od-form textarea{width:100%;box-sizing:border-box;margin-top:5px;font:inherit;font-size:1rem;padding:10px;border:1px solid var(--wp--preset--color--line);border-radius:4px;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--contrast)}
.od-form .wpcf7-list-item{display:inline-flex;margin:0 18px 6px 0}
.od-form .wpcf7-list-item label{display:flex;gap:8px;align-items:flex-start;font-weight:400}
.od-form .wpcf7-acceptance .wpcf7-list-item{margin:0}
.od-form input[type=submit]{font:inherit;font-weight:600;padding:13px 18px;border:0;border-radius:4px;background:var(--wp--preset--color--accent);color:var(--wp--preset--color--on-accent);cursor:pointer}
.od-form .od-note{font-size:.85rem;color:var(--wp--preset--color--muted)}
.wpcf7 form .wpcf7-response-output{margin:14px 0 0;padding:10px 12px;border-radius:4px}

/* Posts and work grids */
.od-posts .wp-block-post-template{gap:26px}
.od-posts .wp-block-post-title{font-size:1.15rem}
.od-posts .wp-block-post-title a{color:inherit;text-decoration:none}
.od-posts .wp-block-post-excerpt{font-size:.97rem}
.od-posts .wp-block-post-terms,.od-meta{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
.od-article{max-width:760px}

/* Footer */
.od-footer{background:var(--wp--preset--color--surface);border-top:1px solid var(--wp--preset--color--line);font-size:.92rem}
.od-footer-inner{padding-block:40px 28px}
.od-footer-closing{border-bottom:1px solid var(--wp--preset--color--line);padding-bottom:30px;margin-bottom:30px}
.od-footer-closing > * + *{margin-block-start:14px}
.od-footer-cols{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.od-footer h3{font-family:var(--wp--preset--font-family--body);font-size:.76rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--muted);margin:0 0 8px}
.od-footer ul{list-style:none;margin:0;padding:0}
.od-footer li{margin:0 0 5px}
.od-footer a{color:var(--wp--preset--color--contrast)}
.od-footer-legal{display:flex;flex-wrap:wrap;gap:6px 20px;border-top:1px solid var(--wp--preset--color--line);margin-top:30px;padding-top:16px;color:var(--wp--preset--color--muted)}
.od-footer-legal p{margin:0;max-width:none}
.od-footer-legal a{color:var(--wp--preset--color--muted)}

/* Back to top */
.od-top{position:fixed;right:16px;bottom:16px;z-index:9;width:44px;height:44px;border-radius:50%;border:1px solid var(--wp--preset--color--line);background:var(--wp--preset--color--surface);color:var(--wp--preset--color--contrast);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s}
.od-top.is-visible{opacity:1;pointer-events:auto}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.od-top{transition:none}}
:where(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--wp--preset--color--accent);outline-offset:2px}

/* Work filter, facts, placeholders, results */
.od-filter{display:flex;flex-wrap:wrap;gap:8px;max-width:none}
.od-filter a{border:1px solid var(--wp--preset--color--line);border-radius:999px;padding:5px 12px;font-size:.88rem;color:var(--wp--preset--color--contrast);text-decoration:none}
.od-filter a:hover{border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent)}
.od-facts{border-block:1px solid var(--wp--preset--color--line);padding-block:16px;gap:16px}
.od-facts p{font-size:.95rem;margin:0}
.od-slot{border:1.5px dashed var(--wp--preset--color--line);padding:16px;color:var(--wp--preset--color--muted);font-size:.95rem}
.od-slot > * + *{margin-block-start:6px}
.od-metric{font-family:var(--wp--preset--font-family--display);font-weight:800;font-size:2.4rem;line-height:1;color:var(--wp--preset--color--accent)}
.od-others{max-width:none}
.od-posts .wp-block-post-featured-image{background:var(--wp--preset--color--surface)}
.wp-block-quote{border-left:3px solid var(--wp--preset--color--accent);margin:8px 0 0;padding:4px 0 4px 18px}
.wp-block-quote p{font-size:1.2rem;line-height:1.45}
.wp-block-quote cite{font-style:normal;font-size:.88rem;color:var(--wp--preset--color--muted)}

/* Team */
.od-team-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.od-team-filter button{font:inherit;font-size:.88rem;cursor:pointer;border:1px solid var(--wp--preset--color--line);border-radius:999px;padding:6px 13px;background:transparent;color:var(--wp--preset--color--contrast)}
.od-team-filter button span{color:var(--wp--preset--color--muted);margin-left:2px}
.od-team-filter button.is-active{background:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast)}
.od-team-filter button.is-active span{color:inherit;opacity:.7}
.od-team-grid{list-style:none;margin:0;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));align-items:start}
.od-person{max-width:none;border:1px solid var(--wp--preset--color--line);border-radius:8px;background:var(--wp--preset--color--surface)}
.od-person summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px;cursor:pointer;border-radius:8px}
.od-person summary::-webkit-details-marker{display:none}
.od-avatar{flex:none;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--wp--preset--color--base);border:1px solid var(--wp--preset--color--line);font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:.9rem;color:var(--wp--preset--color--accent)}
.od-person-text{display:flex;flex-direction:column;min-width:0}
.od-person-name{font-size:.98rem;font-weight:600}
.od-person-role{font-size:.82rem;color:var(--wp--preset--color--muted);line-height:1.35}
.od-person details p{margin:0;padding:0 12px 12px;font-size:.88rem;line-height:1.45;color:var(--wp--preset--color--contrast)}
.od-person[open],.od-person details[open] summary{border-bottom-left-radius:0;border-bottom-right-radius:0}

/* Blog index */
.od-cats{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.od-cats p{margin:0}
.od-cats ul{display:contents;list-style:none;margin:0;padding:0}
.od-cats li{margin:0}
.od-cats a{display:inline-block;border:1px solid var(--wp--preset--color--line);border-radius:999px;padding:5px 12px;font-size:.88rem;color:var(--wp--preset--color--contrast);text-decoration:none}
.od-cats a:hover{border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent)}
.od-cats .od-cats-all a,.od-cats .current-cat a{background:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast)}
.od-cover-placeholder{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;width:100%;background:#1b2a4d;border:1px dashed var(--wp--preset--color--line);color:var(--wp--preset--color--muted);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.78rem}
.wp-block-post-featured-image{margin:0}
.wp-block-post-featured-image a{text-decoration:none;display:block}
.od-kicker a{color:inherit;text-decoration:none}
.od-feature{gap:24px}
.od-feature .od-feature-title{font-size:1.5rem}
.od-posts .wp-block-post-date{font-size:.78rem;color:var(--wp--preset--color--muted)}
.od-article .od-cover-placeholder{aspect-ratio:21/9}

/* Post lists use the full width of their section */
.wp-block-post-template,.wp-block-post-template > li,.wp-block-post{max-width:none}
.od-feature .wp-block-column:first-child{flex-basis:60%}
.od-feature .od-feature-title{font-size:clamp(1.5rem,3vw,2.15rem);line-height:1.12}
.od-feature .wp-block-post-excerpt{font-size:1.05rem}
.od-loadmore-button{display:block;margin:28px auto 0;border:1px solid var(--wp--preset--color--accent);background:transparent;color:var(--wp--preset--color--accent);cursor:pointer;font:inherit;font-weight:600;font-size:.95rem;padding:13px 22px;border-radius:4px}
.od-loadmore-button[disabled]{opacity:.6;cursor:default}
.od-loadmore .wp-block-query-pagination{margin-top:28px;justify-content:center}

/* Language switcher */
.od-lang{position:relative}
.od-lang summary{list-style:none;display:flex;align-items:center;gap:6px;font-size:.9rem;font-weight:500;padding:6px 8px;border:1px solid var(--wp--preset--color--line);border-radius:4px;cursor:pointer}
.od-lang summary::-webkit-details-marker{display:none}
.od-lang ul{position:absolute;right:0;top:calc(100% + 6px);list-style:none;margin:0;padding:6px;background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:4px;min-width:140px;font-size:.92rem;z-index:12}
.od-lang li{padding:6px 8px;color:var(--wp--preset--color--muted);max-width:none}
.od-lang li[aria-current]{color:var(--wp--preset--color--contrast);font-weight:600}
.od-header-inner{justify-content:flex-start}
.od-header-inner .wp-block-navigation{margin-left:auto}

/* Chat and contact widget */
.od-widget{position:fixed;right:16px;bottom:16px;z-index:20}
.od-widget summary{list-style:none;display:inline-flex;align-items:center;gap:8px;background:var(--wp--preset--color--accent);color:var(--wp--preset--color--on-accent);padding:12px 16px;border-radius:999px;font-weight:600;font-size:.92rem;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer}
.od-widget summary::-webkit-details-marker{display:none}
.od-widget[open] summary span{display:none}
.od-widget-panel{position:absolute;right:0;bottom:calc(100% + 10px);width:min(340px,calc(100vw - 32px));background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.3);overflow:hidden;font-size:.9rem}
.od-widget-head{background:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.od-widget-head span{font-size:.78rem;opacity:.75}
.od-widget-body{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.od-widget-bot{margin:0;max-width:85%;padding:8px 10px;border-radius:10px;background:var(--wp--preset--color--base);font-size:.88rem;line-height:1.4}
.od-widget-chips{display:flex;flex-wrap:wrap;gap:6px}
.od-widget-chips a{border:1px solid var(--wp--preset--color--accent);color:var(--wp--preset--color--accent);border-radius:999px;padding:4px 10px;font-size:.8rem;text-decoration:none}
.od-widget-input{display:flex;justify-content:space-between;align-items:center;margin:0 14px 12px;padding:9px 12px;border:1px solid var(--wp--preset--color--line);border-radius:8px;color:var(--wp--preset--color--muted);font-size:.86rem;text-decoration:none}
.od-widget-input strong{color:var(--wp--preset--color--accent)}
.od-widget-direct{border-top:1px solid var(--wp--preset--color--line);padding:10px 14px 14px;display:flex;flex-direction:column;gap:8px}
.od-widget-direct > span{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
.od-widget-direct div{display:flex;flex-wrap:wrap;gap:6px}
.od-widget-direct a{border:1px solid var(--wp--preset--color--line);border-radius:6px;padding:6px 10px;color:var(--wp--preset--color--contrast);text-decoration:none;font-size:.84rem;font-weight:500}
.od-top{bottom:72px}
.od-footer-inner{padding-bottom:110px}

/* Filter menu: one button that opens a list */
.od-filter-row{display:flex;justify-content:space-between;align-items:center;gap:16px}
.od-filter-row > *{margin:0}
.od-filter-menu{position:relative;width:fit-content;margin-left:auto}
.od-filter-menu summary{list-style:none;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--wp--preset--color--line);border-radius:4px;padding:8px 12px;font-size:.9rem;font-weight:500;cursor:pointer}
.od-filter-menu summary::-webkit-details-marker{display:none}
.od-filter-menu summary::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat}
.od-filter-menu[open] summary{border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent)}
.od-filter-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:8;min-width:230px;background:var(--wp--preset--color--surface);border:1px solid var(--wp--preset--color--line);border-radius:8px;padding:6px;box-shadow:0 12px 32px rgba(0,0,0,.3)}
.od-filter-panel > *{margin:0}
.od-filter-panel ul{list-style:none;margin:0;padding:0}
.od-filter-panel li,.od-filter-panel p{margin:0;max-width:none}
.od-filter-panel a{display:block;padding:8px 10px;border-radius:4px;font-size:.92rem;color:var(--wp--preset--color--contrast);text-decoration:none}
.od-filter-panel a:hover,.od-filter-panel .current-cat a{background:var(--wp--preset--color--base);color:var(--wp--preset--color--accent)}

/* Footer layout: links on top, logo + closing line + legal below */
.od-footer-inner{padding-block:56px 110px}
.od-footer-top{display:grid;gap:32px;grid-template-columns:repeat(4,minmax(0,1fr))}
.od-footer-top h3{margin:0 0 10px}
.od-footer-top ul + h3{margin-top:24px}
.od-footer-nav li{margin-bottom:10px}
.od-footer-nav a{font-size:1rem}
.od-footer-top a{text-decoration:none}
.od-footer-top a:hover{color:var(--wp--preset--color--accent)}
.od-footer-bottom{display:grid;gap:32px;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:end;margin-top:56px}
.od-footer-logo{font-family:var(--wp--preset--font-family--display);font-weight:800;font-stretch:118%;font-size:2.4rem;letter-spacing:-.02em;line-height:1;text-decoration:none;color:var(--wp--preset--color--contrast)}
.od-footer .od-footer-closing{border:0;margin:0;padding:0;max-width:52ch;color:var(--wp--preset--color--muted);font-size:.95rem;line-height:1.6}
.od-footer-closing a{color:var(--wp--preset--color--contrast);font-weight:600;text-decoration:none}
.od-footer-meta{display:flex;flex-direction:column;gap:8px;font-size:.88rem}
.od-footer-meta p{margin:0;color:var(--wp--preset--color--muted)}
.od-footer-social{display:flex;gap:14px}
.od-footer-social a{display:inline-flex;color:var(--wp--preset--color--accent)}
.od-footer-meta ul li{margin:0}
@media (max-width:820px){.od-footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}.od-footer-bottom{grid-template-columns:minmax(0,1fr);align-items:start}}

/* Client strip */
.od-clients{border-bottom:1px solid var(--wp--preset--color--line);padding-block:22px;overflow:hidden}
.od-clients-label{max-width:1080px;margin:0 auto 12px;padding-inline:20px;font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--muted);box-sizing:content-box}
.od-clients-track{display:flex;width:max-content;animation:od-marquee 40s linear infinite}
.od-clients:hover .od-clients-track{animation-play-state:paused}
.od-clients ul{display:flex;list-style:none;margin:0;padding:0}
.od-clients li{max-width:none;margin:0 14px;padding:14px 26px;border:1px dashed var(--wp--preset--color--line);border-radius:6px;font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:1rem;color:var(--wp--preset--color--muted);white-space:nowrap}
@keyframes od-marquee{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.od-clients-track{animation:none;width:auto;flex-wrap:wrap}.od-clients-track ul[aria-hidden]{display:none}.od-clients ul{flex-wrap:wrap;gap:10px;padding-inline:20px}.od-clients li{margin:0}}

/* Testimonials */
.od-testimonials-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 24px}
.od-ratings{display:flex;gap:18px;margin:0;font-size:.92rem;color:var(--wp--preset--color--muted);max-width:none}
.od-ratings strong{color:var(--wp--preset--color--contrast);font-size:1.1rem}
.od-testimonials-grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-top:22px}
.od-testimonial{margin:0;padding:20px;border:1px solid var(--wp--preset--color--line);border-radius:8px;background:var(--wp--preset--color--surface);display:flex;flex-direction:column;gap:12px}
.od-stars{color:var(--wp--preset--color--accent);letter-spacing:2px;font-size:.95rem}
.od-testimonial blockquote{margin:0;padding:0;border:0}
.od-testimonial blockquote p{margin:0;font-size:1rem;line-height:1.5}
.od-testimonial figcaption{display:flex;flex-direction:column;gap:2px;font-size:.86rem;color:var(--wp--preset--color--muted);margin-top:auto}
.od-testimonial figcaption strong{color:var(--wp--preset--color--contrast);font-size:.95rem}
.od-testimonial-source{margin-top:6px;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase}

/* Case study */
.single-case_study .od-article{max-width:1080px}
.od-case-part{border-top:1px solid var(--wp--preset--color--line);padding-top:28px;margin-top:28px}
.od-case-part > * + *{margin-block-start:16px}

/* Services carousel */
.od-carousel-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.od-carousel-nav{display:flex;gap:8px}
.od-carousel-nav button{width:42px;height:42px;border-radius:50%;border:1px solid var(--wp--preset--color--line);background:transparent;color:var(--wp--preset--color--contrast);display:flex;align-items:center;justify-content:center;cursor:pointer}
.od-carousel-nav button:hover{border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--accent)}
.od-carousel{list-style:none;margin:22px 0 0;padding:0 0 6px;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.od-carousel::-webkit-scrollbar{display:none}
.od-service-card{flex:0 0 min(300px,82%);max-width:none;margin:0;scroll-snap-align:start}
.od-service-card a{display:flex;flex-direction:column;gap:10px;height:100%;min-height:210px;box-sizing:border-box;padding:22px;border:1px solid var(--wp--preset--color--line);border-radius:10px;background:var(--wp--preset--color--surface);color:var(--wp--preset--color--contrast);text-decoration:none}
.od-service-card a:hover{border-color:var(--wp--preset--color--accent)}
.od-service-card h3{font-size:1.25rem}
.od-service-card p{margin:0;font-size:.95rem;color:var(--wp--preset--color--muted)}
.od-service-more{margin-top:auto;font-size:.9rem;font-weight:600;color:var(--wp--preset--color--accent)}
.od-hero h1{max-width:none}
