/*
Theme Name: CloudLine
Theme URI: https://cloudline.com.au
Author: CloudLine
Description: Lightweight block theme for CloudLine: business VoIP, SIP trunking and business numbers.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cloudline
*/

html{scroll-behavior:smooth}
:where(a,button,summary,input,select,textarea):focus-visible{outline:3px solid var(--wp--preset--color--sky);outline-offset:3px;border-radius:4px}

/* Header */
.cl-header{position:sticky;top:0;z-index:50}
body.admin-bar .cl-header{top:32px}
@media (max-width:782px){body.admin-bar .cl-header{top:0}}
.cl-header .wp-block-navigation__submenu-container{border-radius:12px;border:1px solid var(--wp--preset--color--line)!important;padding:8px!important;box-shadow:0 12px 30px rgba(14,20,70,.12)}
.cl-header .wp-block-navigation a:hover{text-decoration:none;color:var(--wp--preset--color--blue)}
.cl-phone a{color:var(--wp--preset--color--navy);font-weight:700;white-space:nowrap}
.cl-header .cl-login a{color:var(--wp--preset--color--navy);font-weight:600}
@media (max-width:960px){.cl-hide-mobile{display:none!important}}

/* Text helpers */
.is-style-eyebrow{font-size:var(--wp--preset--font-size--small)!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--wp--preset--color--blue)}
.is-style-pill{display:inline-flex;width:fit-content;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid #CFE6F7;font-size:13px;font-weight:700;color:var(--wp--preset--color--navy)}
.is-style-pill::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--wp--preset--color--sky)}
.cl-strong{font-weight:700;color:var(--wp--preset--color--navy);line-height:1.35}
.cl-price{font-size:var(--wp--preset--font-size--price);font-weight:800;letter-spacing:-.02em;line-height:1;color:var(--wp--preset--color--navy)}
.cl-price .cl-per{font-size:15px;font-weight:600;letter-spacing:0;color:var(--wp--preset--color--slate);margin-left:4px}
.cl-step-num{font-weight:800;color:var(--wp--preset--color--blue)}
.cl-measure>*{max-width:44rem}

/* Cards */
.is-style-card,.is-style-card-dark,.is-style-card-tint{border-radius:18px;padding:clamp(1.25rem,2.4vw,1.75rem)}
.is-style-card{background:#fff;border:1px solid var(--wp--preset--color--line)}
.is-style-card-dark{background:var(--wp--preset--color--navy);color:#DDE6F3}
.is-style-card-tint{background:var(--wp--preset--color--mist)}
.is-style-card-glass{background:rgba(255,255,255,.06);border:1px solid rgba(159,179,209,.22);border-radius:16px;padding:1.5rem}
.cl-cards>.wp-block-group{display:flex;flex-direction:column}
.cl-push{margin-top:auto!important}
.cl-card-foot{margin-top:auto!important;padding-top:1rem;border-top:1px solid #E7EEF6}
.cl-dashed{border:1.5px dashed var(--wp--preset--color--sky)!important}
.cl-ph{aspect-ratio:4/3;background:var(--wp--preset--color--mist);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--wp--preset--color--slate);font-size:.875rem;font-weight:600;text-align:center;padding:1rem}
.cl-step{border-top:3px solid var(--wp--preset--color--sky);padding-top:1.5rem}

/* Dark surfaces */
:is(.has-navy-background-color,.has-deep-navy-background-color,.is-style-card-dark) :where(h1,h2,h3,h4,strong){color:#fff}
:is(.has-navy-background-color,.has-deep-navy-background-color,.is-style-card-dark) .is-style-eyebrow{color:var(--wp--preset--color--sky)}
:is(.has-navy-background-color,.has-deep-navy-background-color,.is-style-card-dark) a:where(:not(.wp-element-button)){color:#6FD0FF}
:is(.has-navy-background-color,.is-style-card-dark) .is-style-outline .wp-block-button__link{border-color:#6FD0FF;color:#fff}
.is-style-card-dark .cl-price,.is-style-card-dark .cl-price .cl-per{color:#fff}
.is-style-card-dark .is-style-outline .wp-block-button__link{background:var(--wp--preset--color--sky);border-color:var(--wp--preset--color--sky);color:var(--wp--preset--color--navy)}

/* Lists */
.is-style-checks,.is-style-plain{list-style:none;padding-left:0!important}
.is-style-checks li{position:relative;padding-left:1.6em;margin-block:.45em}
.is-style-checks li::before{content:"";position:absolute;left:0;top:.3em;width:1em;height:1em;background-color:var(--wp--preset--color--blue);-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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
:is(.has-navy-background-color,.is-style-card-dark) .is-style-checks li::before{background-color:var(--wp--preset--color--sky)}
.is-style-plain li{margin-block:.55em}

/* Icons */
.cl-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:var(--wp--preset--color--navy);color:var(--wp--preset--color--sky);flex-shrink:0}
.cl-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cl-icon--light{width:44px;height:44px;border-radius:12px;background:var(--wp--preset--color--tint);color:var(--wp--preset--color--blue)}
.cl-icon--light svg{width:20px;height:20px}
.cl-icon--bare{width:auto;height:auto;background:none}
.cl-quote-mark{display:block;width:32px;height:32px;color:var(--wp--preset--color--sky)}
.cl-quote-mark svg{width:32px;height:32px;fill:currentColor}

/* FAQ (details block) */
.wp-block-details{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:16px;padding:1.25rem 1.5rem}
.wp-block-details summary{font-weight:800;font-size:1.0625rem;color:var(--wp--preset--color--navy);cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"+";font-size:1.5rem;font-weight:600;line-height:1;color:var(--wp--preset--color--blue)}
.wp-block-details[open] summary::after{content:"\2013"}
.wp-block-details>:not(summary){margin-top:.75rem;color:var(--wp--preset--color--slate)}

/* Buttons */
.wp-block-button__link{transition:background-color .15s,filter .15s}
.wp-block-button__link:hover{filter:brightness(.96)}
.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--tint)}

/* Hero visual (decorative) */
.clv{position:relative;max-width:560px;margin-left:auto;padding-bottom:100px}
.clv svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.clv-win{display:flex;background:var(--wp--preset--color--navy);border-radius:18px;box-shadow:0 30px 60px rgba(14,20,70,.22);overflow:hidden;color:#fff}
.clv-side{width:60px;flex-shrink:0;background:var(--wp--preset--color--deep-navy);display:flex;flex-direction:column;align-items:center;gap:22px;padding-top:22px;color:#9FB3D1}
.clv-side svg{width:20px;height:20px}
.clv-logo{width:34px;height:34px;border-radius:10px;background:var(--wp--preset--color--sky);color:var(--wp--preset--color--navy);display:flex;align-items:center;justify-content:center}
.clv-main{flex:1;min-width:0;padding:22px 24px;display:flex;flex-direction:column;gap:12px}
.clv-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.clv-label{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#9FB3D1}
.clv-title{display:block;font-size:20px;font-weight:800}
.clv-badge{padding:6px 10px;border-radius:8px;background:rgba(3,169,244,.16);color:#6FD0FF;font-size:12px;font-weight:700;white-space:nowrap}
.clv-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.06)}
.clv-av{width:34px;height:34px;border-radius:50%;background:var(--wp--preset--color--sky);color:var(--wp--preset--color--navy);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.clv-av2{background:#B8E6FC}.clv-av3{background:#fff}
.clv-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.clv-who b{font-size:14px}.clv-who small{font-size:12px;color:#9FB3D1}
.clv-time{font-size:13px;font-weight:700;color:#6FD0FF}
.clv-dot{width:10px;height:10px;border-radius:50%;background:#34D399}
.clv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-top:4px}
.clv-stats div{padding:12px;border-radius:12px;border:1px solid rgba(159,179,209,.25);display:flex;flex-direction:column;line-height:1.3}
.clv-stats b{font-size:20px}.clv-stats small{font-size:11px;color:#9FB3D1}
.clv-call{position:absolute;right:-8px;bottom:0;width:270px;padding:18px;border-radius:16px;background:#fff;box-shadow:0 20px 40px rgba(14,20,70,.18);display:flex;flex-direction:column;gap:12px;color:var(--wp--preset--color--navy)}
.clv-call-head{display:flex;gap:10px;align-items:center;line-height:1.35}
.clv-call-head small{display:block;font-size:12px;font-weight:600;color:var(--wp--preset--color--slate)}
.clv-call-head b{display:block;font-size:15px}
.clv-ic{width:36px;height:36px;border-radius:10px;background:var(--wp--preset--color--tint);color:var(--wp--preset--color--blue);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.clv-ic svg,.clv-chip svg{width:18px;height:18px}
.clv-btns{display:flex;gap:8px}
.clv-btns span{flex:1;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.clv-ans{background:#16A34A;color:#fff}.clv-fwd{background:#F1F4F9}
.clv-chip{position:absolute;left:-24px;bottom:76px;padding:10px 14px;border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(14,20,70,.14);display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--wp--preset--color--navy)}
.clv-chip svg{color:var(--wp--preset--color--blue)}
@media (max-width:781px){.clv{margin:0;padding:0}.clv-win,.clv-chip{display:none}.clv-call{position:static;width:auto}}

/* Footer */
.cl-footer .wp-block-site-logo img{filter:brightness(0) invert(1)}
.cl-footer a{color:#DDE6F3}
.cl-footer a:hover{color:#fff}
.cl-footer-heading{font-size:13px!important;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6FD0FF!important}

/* Mobile quick-contact bar */
.cl-mobile-cta{display:none}
@media (max-width:781px){
.cl-mobile-cta{display:flex;position:fixed;left:12px;right:12px;bottom:12px;z-index:60;gap:8px;padding:8px;background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(14,20,70,.22)}
.cl-mobile-cta a{flex:1;display:flex;align-items:center;justify-content:center;height:48px;border-radius:11px;font-weight:800;color:var(--wp--preset--color--navy);text-decoration:none}
.cl-mobile-cta a:first-child{background:var(--wp--preset--color--tint)}
.cl-mobile-cta a:last-child{background:var(--wp--preset--color--sky)}
body{padding-bottom:84px}
}

.cl-card-foot p{white-space:nowrap}


/* ---------- Inner pages (v0.2) ---------- */
.cl-breadcrumb{font-size:.875rem;font-weight:600;color:var(--wp--preset--color--slate)}
.cl-breadcrumb a{color:var(--wp--preset--color--blue)}
.cl-chip{margin:0!important;padding:.55rem 1rem;border-radius:999px;background:#fff;border:1px solid #CFE6F7;font-size:.9375rem;font-weight:700;color:var(--wp--preset--color--navy);white-space:nowrap}
.cl-request{background:#fff;border-radius:20px;padding:clamp(1.25rem,2.5vw,1.75rem)!important;box-shadow:0 24px 48px rgba(14,20,70,.12)}
.cl-request-title{font-size:1.25rem!important;font-weight:800;color:var(--wp--preset--color--navy);line-height:1.3}
.cl-rows{border:1px solid var(--wp--preset--color--line);border-radius:14px;overflow:hidden}
.cl-rows>*{margin-block:0!important}
.cl-row{padding:.85rem 1.1rem;border-top:1px solid var(--wp--preset--color--line)}
.cl-rows>.cl-row:first-child{border-top:0}
.cl-row p{margin:0}
.cl-row p:last-child{font-weight:800;color:var(--wp--preset--color--navy);text-align:right}
.cl-row.is-muted{background:var(--wp--preset--color--mist)}
.cl-request .cl-rows{background:var(--wp--preset--color--mist);border:0}
.cl-request .cl-row{border-top-color:#E3EAF3}
.cl-small-note{font-size:.8125rem!important;color:var(--wp--preset--color--slate);text-align:center}
.cl-choice{position:relative;border:1px solid var(--wp--preset--color--line);border-radius:14px;padding:.9rem 1.1rem;transition:border-color .15s,background-color .15s}
.cl-choice:hover{border-color:var(--wp--preset--color--sky);background:#F3FAFE}
.cl-choice p{margin:0}
.cl-choice-name{font-weight:800;font-size:1.0625rem;color:var(--wp--preset--color--navy)}
.cl-choice-name a{color:inherit;text-decoration:none}
.cl-choice-name a::after{content:"";position:absolute;inset:0}
.cl-choice-desc{font-size:.875rem;color:var(--wp--preset--color--slate)}
.cl-choice-price{font-weight:700;color:var(--wp--preset--color--navy);white-space:nowrap}
.wp-block-table.cl-table{overflow-x:auto;margin:0}
.wp-block-table.cl-table table{border-collapse:separate;border-spacing:0;width:100%;min-width:600px;border:1px solid var(--wp--preset--color--line);border-radius:18px;overflow:hidden;font-size:.9375rem}
.wp-block-table.cl-table thead{border:0}
.wp-block-table.cl-table th,.wp-block-table.cl-table td{border:0;border-top:1px solid var(--wp--preset--color--line);padding:1rem 1.25rem;text-align:left;vertical-align:top}
.wp-block-table.cl-table thead th{border-top:0;background:var(--wp--preset--color--mist);color:var(--wp--preset--color--navy);font-weight:800}
.wp-block-table.cl-table td:first-child{font-weight:700;color:var(--wp--preset--color--navy)}
.wp-block-table.cl-table.is-compare th:not(:first-child),.wp-block-table.cl-table.is-compare td:not(:first-child){border-left:1px solid var(--wp--preset--color--line)}
.wp-block-table.cl-table.is-compare thead th:not(:first-child){font-size:1.375rem}
.wp-block-table.cl-table.is-prices td:last-child{text-align:right;font-weight:800;color:var(--wp--preset--color--navy);white-space:nowrap}
.cl-flow{display:grid;grid-template-columns:minmax(0,1fr) 56px minmax(0,1.1fr) 56px minmax(0,1.4fr);align-items:center}
.cl-flow-box{padding:1.5rem;border-radius:18px;border:1px solid var(--wp--preset--color--line)}
.cl-flow-box.is-dark{background:var(--wp--preset--color--navy);border-color:var(--wp--preset--color--navy)}
.cl-flow small{display:block;font-size:.8125rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--wp--preset--color--slate)}
.cl-flow .is-dark small{color:#6FD0FF}
.cl-flow b{display:block;margin-top:.35rem;font-size:1.25rem;font-weight:800;line-height:1.3;color:var(--wp--preset--color--navy)}
.cl-flow .is-dark b{color:#fff}
.cl-flow-arrow{display:flex;justify-content:center;color:var(--wp--preset--color--sky)}
.cl-flow-arrow svg{width:40px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.cl-flow-outs{display:flex;flex-direction:column;gap:.75rem}
.cl-flow-out{padding:1rem 1.25rem;border-radius:14px;background:var(--wp--preset--color--tint)}
.cl-flow-out small{color:var(--wp--preset--color--blue);letter-spacing:0;text-transform:none}
.cl-flow-out b{font-size:1rem;margin-top:.1rem}
@media (max-width:781px){.cl-flow{grid-template-columns:1fr}.cl-flow-arrow{transform:rotate(90deg);padding:.4rem 0}}
.cl-rule{padding:.9rem 1.1rem;border-radius:14px;background:var(--wp--preset--color--mist)}
.cl-rule p{margin:0}
.cl-when{min-width:11rem;font-weight:800;color:var(--wp--preset--color--navy);line-height:1.35}
.cl-when span{display:block;font-weight:500;font-size:.8125rem;color:var(--wp--preset--color--slate)}
.cl-then{font-weight:700}
.cl-then::before{content:"\2192\00a0";color:var(--wp--preset--color--sky);font-weight:800}
.cl-status{display:inline-block;padding:.3rem .75rem;border-radius:999px;background:#DCFCE7;color:#166534;font-size:.8125rem;font-weight:800}
.cl-area-code{font-size:2.5rem!important;font-weight:800;letter-spacing:-.02em;line-height:1;color:var(--wp--preset--color--navy)}
.is-style-card-dark .cl-area-code{color:#fff}
.cl-warning{background:#FFF7ED;border:1px solid #FED7AA;border-radius:18px;padding:1.5rem 1.75rem!important}
.cl-warning :where(h2,h3,p){color:#7C2D12}
.clt{background:#fff;border-radius:20px;padding:1.75rem;box-shadow:0 24px 48px rgba(14,20,70,.12);color:var(--wp--preset--color--navy)}
.clt small{display:block;font-size:.8125rem;font-weight:700;color:var(--wp--preset--color--slate)}
.clt-title{display:block;font-size:1.25rem;font-weight:800}
.clt ol{list-style:none;margin:1.25rem 0;padding:0;display:flex;flex-direction:column;gap:1.1rem}
.clt li{display:flex;gap:.9rem;align-items:flex-start;line-height:1.35}
.clt li b{display:block;font-size:1rem}
.clt li span{font-size:.875rem;color:var(--wp--preset--color--slate)}
.clt li.is-next b{color:var(--wp--preset--color--slate)}
.clt-dot{width:28px;height:28px;flex-shrink:0;box-sizing:border-box;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--wp--preset--color--line)}
.clt-dot.is-done{background:#16A34A;border-color:#16A34A;color:#fff}
.clt-dot.is-now{background:var(--wp--preset--color--sky);border:4px solid #CDEEFD}
.clt-dot svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.clt-note{padding:.85rem 1rem;border-radius:12px;background:var(--wp--preset--color--mist);font-size:.875rem;color:var(--wp--preset--color--ink)}
.cl-related .is-style-card{position:relative;transition:border-color .15s,box-shadow .15s}
.cl-related .is-style-card:hover{border-color:var(--wp--preset--color--sky);box-shadow:0 12px 28px rgba(14,20,70,.08)}
.cl-related h3 a{color:var(--wp--preset--color--navy);text-decoration:none}
.cl-related h3 a::after{content:"";position:absolute;inset:0}
.cl-related .cl-go{font-weight:800;color:var(--wp--preset--color--blue)}
.cl-benefit{border-top:3px solid var(--wp--preset--color--sky);padding-top:1.5rem}

.wp-block-table.cl-table.is-prices table{min-width:0}
.wp-block-table.cl-table:not(.is-compare):not(.is-prices) table{min-width:440px}

/* Header fit */
.cl-header .wp-block-button__link{white-space:nowrap}
.cl-header .wp-block-navigation-item__content{white-space:nowrap}
@media (max-width:1180px){.cl-header .cl-phone,.cl-header .cl-login{display:none!important}.cl-header .wp-block-navigation__container{gap:1.1rem!important}}
