/*
Theme Name: Candybox Design
Description: The editable Candybox Design website, implemented from the supplied Figma homepage.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: candybox
*/
:root {
  --cb-ink: #0a0a0a;
  --cb-white: #fafafa;
  --cb-red: #dc2626;
  --cb-muted: #a3a3a3;
  --cb-heading: "Clash Display", "Instrument Sans", Arial, sans-serif;
  --cb-edge: clamp(20px, 4vw, 64px);
  --cb-display: clamp(28px, 5.21vw, 100px);
  --cb-space: clamp(68px, 6.25vw, 120px);
}
html { scroll-behavior: smooth; }
body, .editor-styles-wrapper { margin: 0; }
.cb-shell { width: min(1410px, calc(100% - 2 * var(--cb-edge))); margin-inline: auto; box-sizing: border-box; }
.cb-dark { color: var(--cb-white); background: var(--cb-ink); }
.cb-dark a { color: inherit; }
.cb-home p, .cb-home h1, .cb-home h2, .cb-home h3, .cb-header p, .cb-footer p, .cb-footer h2, .cb-footer h3 { margin: 0; }
.cb-home figure, .cb-header figure { margin: 0; }
.cb-home img, .cb-header img { display: block; max-width: 100%; }
.cb-header-row { min-height: 128px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.cb-header-row > .wp-block-buttons { justify-self: end; }
.cb-brand { display: flex; align-items: center; gap: 6px; font-size: 24.3px; line-height: 1; font-weight: 700; }
.cb-brand figure { flex: none; }
.cb-brand a, .cb-footer a { text-decoration: none; }
.cb-nav { --navigation-layout-justification-setting: center; font-weight: 500; }
.cb-nav .wp-block-navigation__container { gap: clamp(20px, 2.08vw, 40px); }
.cb-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--cb-ink); color: var(--cb-white); }
.cb-nav a:hover, .cb-footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.cb-dark .wp-block-button__link, .cb-contact-details summary {
  color: #fff; background: var(--cb-red); border: 1px solid transparent; border-radius: 0;
  padding: 19px clamp(19px, 2.08vw, 39px); font: 600 16px/24px var(--cb-heading);
  text-decoration: none; text-transform: uppercase;
}
.cb-dark .wp-block-button__link:hover, .cb-contact-details summary:hover { background: #b91c1c; }
.cb-dark .cb-outline .wp-block-button__link { background: transparent; border-color: currentColor; padding: 11px 23px; }
.cb-dark .cb-outline .wp-block-button__link:hover { color: var(--cb-ink); background: var(--cb-white); }
.cb-hero { text-align: center; }
.cb-hero-inner { padding-top: clamp(64px, 6.56vw, 126px); padding-bottom: clamp(104px, 13.18vw, 253px); }
.cb-home .cb-display { font: 300 var(--cb-display)/1 var(--cb-heading); text-transform: uppercase; letter-spacing: -.025em; text-align: center; }
.cb-display strong { color: var(--cb-red); font-weight: 600; }
.cb-pill { display: inline-grid; width: 1.6em; height: .69em; border-radius: 10em; border: 1px solid #525252; overflow: hidden; position: relative; vertical-align: .03em; place-items: center; }
.cb-pill img { display: block; }
.cb-mark img { width: 53%; }
.cb-reel-cover { width: 100%; height: 100%; position: absolute; object-fit: cover; filter: brightness(.6); }
.cb-triangle { width: auto; max-width: 42% !important; position: relative; transform: rotate(90deg); }
.cb-hero .cb-hero-copy { color: var(--cb-muted); max-width: 699px; margin: 40px auto; }
.cb-hero .wp-block-buttons { justify-content: center; }
.cb-solutions, .cb-testimonial { padding-block: var(--cb-space); }
.cb-home .cb-section-title { font-size: var(--cb-display); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.cb-solutions > .cb-section-title { max-width: 950px; margin: 0 auto 80px; text-align: center; }
.cb-service { display: grid; grid-template-columns: repeat(47, minmax(0, 1fr)); grid-template-rows: 12.6% auto 1fr; column-gap: 0; min-height: 0; }
.cb-service + .cb-service { margin-top: var(--cb-space); }
.cb-service-title { grid-row: 2; }
.cb-service-detail { grid-row: 3; margin-top: 24px; color: #525252; }
.cb-service-image { grid-row: 1 / 4; align-self: start; }
.cb-service-image img { width: 100%; aspect-ratio: 450 / 634; object-fit: cover; }
.cb-service-title h3 { font-size: clamp(23px, 2.08vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
.cb-home .cb-service-label { font-size: clamp(18px, 1.67vw, 32px); font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.cb-service-label::after { content: ""; display: block; width: 46px; height: 1px; background: var(--cb-red); margin-top: 18px; }
.cb-branding .cb-service-image { grid-column: 13 / 28; }
.cb-branding .cb-service-title { grid-column: 29 / 48; }
.cb-branding .cb-service-detail, .cb-ui-ux .cb-service-detail { grid-column: 33 / 48; }
.cb-ui-ux .cb-service-title { grid-column: 1 / 16; }
.cb-ui-ux .cb-service-image { grid-column: 17 / 32; }
.cb-ui-ux .cb-service-detail { align-self: end; padding-bottom: 9%; }
.cb-development .cb-service-image { grid-column: 29 / 44; }
.cb-development .cb-service-title { grid-column: 9 / 28; text-align: right; }
.cb-development .cb-service-label::after { margin-left: auto; }
.cb-development .cb-service-detail { grid-column: 9 / 24; }
.cb-development .cb-service-detail > p { text-align: right; }
.cb-capabilities { list-style: none; padding: 0; margin: 26px 0 0; columns: 2; column-gap: 24px; color: var(--cb-ink); }
.cb-capabilities li { break-inside: avoid; padding-left: 19px; position: relative; margin-bottom: 7px; }
.cb-capabilities li::before { content: ''; position: absolute; inset: .43em auto auto 0; width: 11px; height: 11px; background: url(assets/bullet.svg) left center / auto no-repeat; }
.cb-solutions { padding-bottom: max(var(--cb-space), 6.25vw); }
.cb-works-inner { min-height: clamp(780px, 80.78vw, 1551px); position: relative; }
.cb-works .cb-display { position: absolute; inset: 22.55% 0 auto; }
.cb-project { position: absolute; background: var(--cb-ink); padding-bottom: 4px; }
.cb-project img { width: 100%; object-fit: cover; }
.cb-project-1 { inset: 7.74% auto auto 0; width: 23.26%; }
.cb-project-1 img { aspect-ratio: 328 / 462; }
.cb-project-2 { inset: 44.68% 0 auto auto; width: 31.63%; }
.cb-project-2 img { aspect-ratio: 446 / 251; }
.cb-project-3 { inset: 60.15% auto auto 25.53%; width: 31.63%; }
.cb-project-3 img { aspect-ratio: 446 / 434; }
.cb-home .cb-project-name { margin-top: 12px; text-transform: uppercase; font-weight: 600; }
.cb-home .cb-project-services { color: var(--cb-muted); margin-top: 4px; }
.cb-testimonial-grid { display: grid; grid-template-columns: 810fr 570fr; gap: 30px; margin-top: 80px; align-items: center; }
.cb-review { position: relative; isolation: isolate; }
.cb-review .cb-quotation { position: absolute; top: 50%; right: 0; z-index: -1; transform: translateY(-50%); width: min(42%, 296px); pointer-events: none; }
.cb-review .cb-review-mark { display: grid; place-items: center; background: var(--cb-ink); border: 1px solid #525252; border-radius: 99px; width: min(160px, 50%); aspect-ratio: 160 / 69; }
.cb-review-mark img { width: 53%; }
.cb-home .cb-quote { font-size: clamp(20px, 1.67vw, 32px); line-height: 1.25; margin-top: 32px; }
.cb-home .cb-credit { margin-top: clamp(20px, 4.2vw, 80px); }
.cb-portrait img { aspect-ratio: 570 / 640; object-fit: cover; width: 100%; }
.cb-insights { padding: 0 0 var(--cb-space); }
.cb-insights .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 290px), 1fr)); gap: 24px; padding: 0; margin-top: 20px; }
.cb-insights .wp-block-post { padding: 16px 0; border-top: 1px solid #ddd; }
.cb-insights .wp-block-query { margin-top: 12px; }
.cb-inner { min-height: 55vh; padding-block: var(--cb-space); }
.cb-inner .wp-block-post-content { max-width: 850px; }
.cb-inner .wp-block-post-template { padding: 0; }
.cb-footer { position: relative; isolation: isolate; overflow: clip; }
.cb-contact { text-align: center; position: relative; padding-block: var(--cb-space); }
.cb-contact::before { content: ''; position: absolute; z-index: -1; inset: 0 0 -16%; background: radial-gradient(ellipse 35% 84% at 50% -42%, #f52424 0%, #a70b0b 45%, #460303 70%, transparent 100%); }
.cb-contact h2 { font-size: clamp(24px, 2.08vw, 40px); line-height: 1.2; font-weight: 600; }
.cb-contact > p { margin: 24px 0; color: #e5e5e5; }
.cb-contact-details summary { display: inline-block; list-style: none; cursor: pointer; }
.cb-contact-details summary::-webkit-details-marker { display: none; }
.cb-contact-details form { display: grid; gap: 14px; max-width: 500px; margin: 28px auto 0; text-align: left; }
.cb-contact-details label, .cb-contact-details input, .cb-contact-details textarea { display: block; width: 100%; box-sizing: border-box; }
.cb-contact-details input, .cb-contact-details textarea { margin-top: 5px; padding: 10px; font: inherit; }
.cb-contact-details form button { justify-self: start; cursor: pointer; padding: 10px 20px; background: var(--cb-red); color: white; border: 0; font: inherit; }
.cb-contact-details .cb-contact-status { margin-top: 20px; }
.cb-contact-details .cb-form-extra { position: absolute; left: -9999px; }
.cb-footer-grid { display: grid; grid-template-columns: 2.15fr repeat(4,1fr); gap: 30px; }
.cb-footer-grid .cb-footer-intro { font-weight: 600; }
.cb-footer-column h3 { font-size: 16px; }
.cb-footer .cb-footer-column p { color: #d4d4d4; margin-top: 12px; }
.cb-footer .cb-copyright { text-align: center; padding: 100px 20px 112px; color: #d4d4d4; }
.cb-footer .cb-watermark { position: absolute; pointer-events: none; z-index: -1; inset: auto 0 -.33em; text-align: center; color: rgb(250 250 250 / .10); font: 700 min(21vw, 400px)/1 "Instrument Sans", sans-serif; letter-spacing: -.025em; user-select: none; }
:focus-visible { outline: 2px solid #f04a4a; outline-offset: 4px; }
@media (max-width: 1080px) {
  .cb-service { grid-template-rows: 8% auto 1fr; }
  .cb-capabilities { font-size: 14px; column-gap: 12px; }
  .cb-service-detail { margin-top: 16px; }
  .cb-ui-ux .cb-service-detail { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .cb-header-row { min-height: 84px; grid-template-columns: 1fr auto auto; gap: 14px; }
  .cb-header-row > .cb-nav { grid-column: 3; grid-row: 1; }
  .cb-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .cb-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .cb-header-row > .wp-block-buttons { grid-column: 2; grid-row: 1; }
  .cb-brand { font-size: 19px; gap: 4px; }
  .cb-brand img { max-width: 26px; }
  .cb-dark .cb-outline .wp-block-button__link { padding: 7px 9px; font-size: 12px; }
  .cb-hero-inner { padding-top: 60px; padding-bottom: 90px; }
  .cb-hero .cb-hero-copy { margin: 28px auto; }
  .cb-triangle { max-height: 15px; }
  .cb-solutions > .cb-section-title { margin-bottom: 44px; font-size: clamp(36px, 8vw, 58px); }
  .cb-service { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 20px; }
  .cb-service .cb-service-title, .cb-service .cb-service-image, .cb-service .cb-service-detail { grid-area: auto; text-align: left; }
  .cb-service .cb-service-detail { margin: 0; }
  .cb-development .cb-service-detail > p { text-align: left; }
  .cb-development .cb-service-label::after { margin-left: 0; }
  .cb-service-image img { aspect-ratio: 4 / 4.3; }
  .cb-works-inner { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; padding-block: var(--cb-space); align-items: start; }
  .cb-works .cb-display { position: static; grid-column: 1 / -1; font-size: clamp(36px, 8vw, 58px); margin-bottom: 8px; }
  .cb-project { width: auto; position: static; }
  .cb-project-2 { margin-top: 52px; }
  .cb-project-3 { grid-column: 1 / -1; width: 72%; justify-self: center; }
  .cb-project-name, .cb-project-services { font-size: 13px; }
  .cb-testimonial .cb-section-title { font-size: clamp(36px, 8vw, 58px); }
  .cb-testimonial-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 35px; }
  .cb-portrait img { aspect-ratio: 4 / 4.2; }
  .cb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-footer-intro { grid-column: 1 / -1; }
  .cb-footer .cb-copyright { padding-block: 56px 75px; }
}
@media (max-width: 360px) {
  .cb-header-row { gap: 8px; }
  .cb-dark .cb-outline .wp-block-button__link { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
