/* Damteq Site Sections: shared styles, loaded once on any page that uses a section.
   Colours come from the theme palette so sections follow the brand automatically.
   Block styles (chosen in the editor sidebar under Styles) are defined here too. */

[class*="dq-"],.dqh,.dqm,.dqa,.dqs{box-sizing:border-box}
[class*="dq-"] *,.dqh *,.dqm *,.dqa *,.dqs *{box-sizing:inherit}

/* Neutralise the theme's global spacing inside Damteq sections (it adds 2rem padding under every
   paragraph and list, and indents list items by 2rem). Each section sets its own spacing instead.
   More specific than the theme's rules, so these win whichever order WordPress loads them in. */
[class*="dq-"] p{padding:0}
[class*="dq-"] :is(h1,h2,h3,h4,h5,h6){padding:0}
[class*="dq-"] ul.wp-block-list,[class*="dq-"] ol.wp-block-list{padding:0;margin:0}
[class*="dq-"] .wp-block-list > li{margin:0}

/* Section widths: inner container of a full width section.
   Pick Standard (default), Wide or Full width in the sidebar Styles panel of the inner group. */
.dq-inner,.dq-container{width:100%;max-width:1140px;margin-left:auto!important;margin-right:auto!important;padding-left:2rem;padding-right:2rem}
.dq-inner.is-style-dq-wide{max-width:1320px}
.dq-inner.is-style-dq-extra-wide{max-width:1560px}
.dq-inner.is-style-dq-full{max-width:none}
@media (max-width:767px){.dq-inner,.dq-container{padding-left:1.25rem;padding-right:1.25rem}}

/* Remove WordPress block gap margins inside our sections; spacing is set per section. */
[class*="dq-"] > *,[class*="dq-"] .wp-block-column > *{margin-block-start:0}
[class*="dq-"] .wp-block-image{margin:0}
[class*="dq-"] .wp-block-image img{display:block;max-width:100%;height:auto}
[class*="dq-"] .wp-block-buttons{gap:.75rem!important;row-gap:.75rem!important}

/* Eyebrow pill (matches the site's icon block) */
p.dq-eyebrow{display:inline-block;align-self:flex-start;width:fit-content;max-width:100%;margin:0 0 1.25rem;padding:.3rem .8rem;border-radius:9999px;font-size:var(--wp--preset--font-size--sm);font-weight:200;line-height:1.3;color:var(--wp--preset--color--slate-blue);background:linear-gradient(120deg,#f6f8fa 5%,#e9ecf0 18%,#fff 45%,#f3f5f7 95%);border:1px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.1),inset 5px 2px 7px rgba(15,26,43,.1)}
p.dq-eyebrow em{font-family:richmond-display,serif}
p.dq-eyebrow--dark{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3);box-shadow:none}

.dq-stars{color:#F5B301;letter-spacing:2px;margin-right:.35rem}

/* Button styles: Damteq primary, Damteq outline, Arrow link (sidebar > Styles on any button) */
.wp-block-button.is-style-dq-primary .wp-block-button__link,
.wp-block-button.is-style-dq-outline .wp-block-button__link{display:inline-flex;align-items:center;gap:.6rem;border-radius:.5rem;padding:18px 26px;font-size:var(--wp--preset--font-size--base);font-weight:400;line-height:1;text-decoration:none;border:1px solid transparent;transition:background-color .2s,border-color .2s,color .2s}
.wp-block-button.is-style-dq-primary .wp-block-button__link{background:var(--wp--preset--color--dam-navy);color:#fff}
.wp-block-button.is-style-dq-primary .wp-block-button__link:hover{background:var(--wp--preset--color--dam-blue);border-color:var(--wp--preset--color--dam-blue);color:#fff}
.wp-block-button.is-style-dq-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--dam-navy);border-color:var(--wp--preset--color--dam-navy)}
.wp-block-button.is-style-dq-outline .wp-block-button__link:hover{background:var(--wp--preset--color--dam-blue);border-color:var(--wp--preset--color--dam-blue);color:#fff}
.wp-block-button.is-style-dq-arrow .wp-block-button__link{display:inline-flex;align-items:center;gap:.6rem;padding:0;background:none;border:0;color:var(--wp--preset--color--dam-navy);font-weight:500;font-size:1rem;text-decoration:none}
.wp-block-button.is-style-dq-arrow .wp-block-button__link::after{content:"";flex:0 0 2.4rem;height:2.4rem;border-radius:50%;background:var(--wp--preset--color--dam-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/1.05rem no-repeat;transition:background-color .3s,transform .3s}
.wp-block-button.is-style-dq-arrow .wp-block-button__link:hover::after{background-color:var(--wp--preset--color--hover-blue);transform:translateX(3px)}

/* Glass card (sidebar > Styles on any group) */
.wp-block-group.is-style-dq-glass,.dq-card{position:relative;border-radius:1rem;background:rgba(255,255,255,.62);border:1px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.06),0 18px 40px -18px rgba(15,26,43,.28),inset 5px 2px 7px rgba(15,26,43,.05);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.wp-block-group.is-style-dq-glass{padding:1.5rem}

/* Navy panel (sidebar > Styles on any group) */
.wp-block-group.is-style-dq-navy{background:var(--wp--preset--color--dam-navy);color:var(--wp--preset--color--grey);border-radius:1rem;padding:2rem}
.wp-block-group.is-style-dq-navy :is(h1,h2,h3,h4){color:#fff}

.dq-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){[class*="dq-"] *{transition:none!important;animation:none!important}}

/* ---- Shared landing page pieces ---- */
.dq-head{max-width:46rem;margin:0 0 3rem!important}
.dq-head h2{margin:0 0 1rem!important;color:var(--wp--preset--color--dam-navy)}
.dq-head__intro{margin:0!important;font-size:1.1rem;line-height:1.6;color:var(--wp--preset--color--slate-blue)}
ul.dq-ticks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.55rem;color:var(--wp--preset--color--slate-blue)}
ul.dq-ticks li{position:relative;padding-left:1.7rem;line-height:1.45;margin:0}
ul.dq-ticks li::before{content:"";position:absolute;left:0;top:.2rem;width:1.1rem;height:1.1rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230762CB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat}
.dq-proof{display:flex!important;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
.dq-proof > *{margin:0!important}
.dq-proof__rating{flex-basis:100%;font-size:.95rem;color:var(--wp--preset--color--slate-blue)}
.dq-proof__badge img{height:44px!important;width:auto!important;max-width:none;border-radius:6px}
.dq-card__tag{font-size:.8rem;font-weight:500;color:var(--wp--preset--color--dam-blue);margin:0 0 .3rem!important}
.dq-card__desc{font-size:.95rem;line-height:1.5;color:var(--wp--preset--color--slate-blue);margin:.35rem 0 0!important}
@media (max-width:767px){.dq-head{margin-bottom:2rem!important}.dq-proof__badge img{height:36px!important}}
.dq-chat .wp-block-button__link{gap:.6rem}
.dq-faces{display:inline-flex;margin:-4px 0}
.dq-faces img{width:24px;height:24px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #fff}
.dq-faces img+img{margin-left:-8px}

/* A dt section placed straight after a full width Damteq section keeps its own top margin
   (some have -5rem to overlap a video). Cancel it so it doesn't cover the Damteq section. */
.wp-block-group.alignfull[class*="dq-"] + section.dt-section,
.wp-block-group.alignfull[class*="dq-"] + style + section.dt-section{margin-top:0!important}

/* Rotating outcome headings: give a heading the extra class "dq-rotate".
   Bold words show in brand blue. The italic part rotates through the phrases in the paragraph
   with the class "dq-rotate-words" placed straight after the heading (phrases separated by /). */
.dq-rotate strong,.dq-rotate b{font-weight:inherit;color:var(--wp--preset--color--dam-blue)}
.dq-rotate em{color:var(--wp--preset--color--dam-blue)}
.dq-rotate em:not(.dq-rotate--ready),.dq-rotate em > span{padding:0 .1em;margin:0 -.05em;background:linear-gradient(transparent 58%,rgba(7,98,203,.18) 58%,rgba(7,98,203,.18) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* All phrases share one grid cell, so the space always fits the longest one without measuring. */
.dq-rotate em.dq-rotate--ready{display:inline-grid;justify-items:start}
.dq-rotate em > span{grid-area:1/1;opacity:0;transform:translateY(.3em);transition:opacity .4s ease,transform .4s ease}
.dq-rotate em > span.is-on{opacity:1;transform:none}
.dq-rotate em > span.is-out{opacity:0;transform:translateY(-.3em)}
p.dq-rotate-words{display:none}
.editor-styles-wrapper p.dq-rotate-words{display:block;margin:-.5rem 0 1.5rem!important;padding:.5rem .75rem!important;border:1px dashed var(--wp--preset--color--grey);border-radius:.5rem;font-size:.85rem;color:var(--wp--preset--color--slate-blue)}
.editor-styles-wrapper p.dq-rotate-words::before{content:"Rotating outcomes, hidden on the live site: ";font-weight:500;color:var(--wp--preset--color--dam-blue)}

/* News pill: a paragraph with the class "dq-news" containing one link.
   Bold text becomes the blue "New" tag, italic text becomes the "See inside" arrow link.
   The round photo is set below; change the URL to use a different image. */
p.dq-news{margin:0 0 1rem!important;max-width:100%}
p.dq-news a{display:inline-flex;align-items:center;gap:.6rem;max-width:100%;padding:.3rem .95rem .3rem .3rem;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid #fff;box-shadow:0 2px 4px rgba(0,0,0,.06),0 10px 24px -14px rgba(15,26,43,.35);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);text-decoration:none!important;font-size:.85rem;line-height:1.3;font-weight:500;color:var(--wp--preset--color--dam-navy);transition:transform .2s ease,box-shadow .2s ease}
p.dq-news a::before{content:"";flex:0 0 2rem;height:2rem;border-radius:50%;box-shadow:0 0 0 2px #fff;background:var(--dq-news-photo,url("/wp-content/uploads/2026/10/dji_fly_20260911_183512_0348_1789159649754_photo-300x169.webp")) center/cover no-repeat}
p.dq-news a:hover{transform:translateY(-1px);box-shadow:0 2px 4px rgba(0,0,0,.06),0 14px 28px -14px rgba(7,98,203,.45)}
p.dq-news strong{flex:0 0 auto;display:inline-flex;align-items:center;gap:.35rem;padding:.15rem .55rem;border-radius:999px;background:var(--wp--preset--color--dam-blue);color:#fff;font-size:.72rem;font-weight:500;letter-spacing:.02em;white-space:nowrap}
p.dq-news strong::before{content:"";width:.4rem;height:.4rem;border-radius:50%;background:#fff;animation:dq-news-pulse 1.8s ease-out infinite}
p.dq-news em{font-style:normal;font-family:inherit!important;color:var(--wp--preset--color--dam-blue);white-space:nowrap}
p.dq-news em::after{content:" \2192"}
@keyframes dq-news-pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.8)}100%{box-shadow:0 0 0 .45rem rgba(255,255,255,0)}}
@media (max-width:600px){p.dq-news a{font-size:.8rem;padding-left:.35rem}p.dq-news a::before,p.dq-news em{display:none}}
@media (prefers-reduced-motion:reduce){p.dq-news strong::before{animation:none}}
