/* Brand look for the plain fallback templates and the Hello Elementor shell:
   links, a readable column, the cubas-* markup and core blocks. Values come from
   tokens.css only. site.css, loaded after this file, holds the base type, the
   focus ring, the layout values (--cb-font, --cb-shell, --cb-prose) and the
   design system, so they are not repeated here. Elementor pages style themselves
   from the kit. */

button,
input,
select,
textarea {
  font-family: var(--cb-font);
}

/* Film grain over the whole document, as the live site does (effects.css values). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Links and focus */
a {
  color: var(--cb-orange);
  text-decoration: none;
  transition: color 0.2s var(--cb-ease);
}
a:hover,
a:active,
a:focus {
  color: var(--cb-orange-hover);
}
.skip-link:focus {
  background-color: var(--cb-orange);
  color: var(--cb-white);
}

/* Headings: site.css sets h1 to h4. The fallback content adds its own spacing,
   which skips cubas-ui markup (cb-* classes): components set their own. */
h5,
h6 {
  color: var(--cb-white);
}
:where(body:not([class*="elementor-page-"])) .site-main h2:not([class*="cb-"]) {
  margin: 3rem 0 1rem;
}
:where(body:not([class*="elementor-page-"])) .site-main h3:not([class*="cb-"]) {
  margin: 0 0 0.75rem;
}
:where(body:not([class*="elementor-page-"])) .site-main li {
  font-size: 1.05rem;
}
:where(body:not([class*="elementor-page-"])) .site-main strong {
  color: var(--cb-white);
}

/* Layout: the live site's 1200px shell, with the same gutters, and a 68ch reading measure */
body:not([class*="elementor-page-"]) .site-main,
body .site-header .header-inner,
body .site-footer .footer-inner {
  width: 100%;
  max-width: var(--cb-shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}
body:not([class*="elementor-page-"]) .site-main {
  padding-block: 3rem 5rem;
}
@media (min-width: 768px) {
  body:not([class*="elementor-page-"]) .site-main,
  body .site-header .header-inner,
  body .site-footer .footer-inner {
    padding-inline: 2rem;
  }
}
.page-header .entry-title,
.cubas-header .entry-title {
  margin: 0 0 1.5rem;
}
body .page-header .entry-title {
  max-width: none;
  padding-inline: 0;
}
.page-content > p,
.page-content > ul,
.page-content > ol,
.cubas-single section > p,
.cubas-body > p,
.cubas-list,
.cubas-links,
.cubas-lead,
.cubas-item p {
  max-width: var(--cb-prose);
}

/* Hello Elementor header and footer: minimal token styling */
.site-header,
.site-footer {
  background-color: var(--cb-bg);
  color: var(--cb-body);
}
.site-header {
  border-bottom: 1px solid var(--cb-border-dark);
}
.site-footer {
  border-top: 1px solid var(--cb-border-dark);
  color: var(--cb-muted);
}
.site-header .site-title a {
  color: var(--cb-white);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-header .site-title a:hover {
  color: var(--cb-orange);
}
.site-footer p {
  color: var(--cb-muted);
  font-size: 0.9rem;
}

/* Imported page content: core blocks the importer writes into post_content */
.page-content .cubas-answer,
.cubas-single .cubas-answer {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background-color: var(--cb-card);
  border: 1px solid var(--cb-border-dark);
  border-radius: 12px;
  color: var(--cb-white);
  font-size: 1.05rem;
  line-height: 1.7;
}
.page-content .cubas-answer::before,
.cubas-single .cubas-answer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
.wp-block-group.cubas-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background-color: var(--cb-card);
  border: 1px solid var(--cb-border-dark);
  border-radius: 14px;
  transition:
    border-color 0.3s var(--cb-ease),
    transform 0.3s var(--cb-ease);
}
.wp-block-group.cubas-item:hover {
  border-color: rgba(255, 91, 46, 0.35);
  transform: translateY(-2px);
}
.wp-block-group.cubas-item h3 {
  font-size: 1.2rem;
}
.wp-block-group.cubas-item h3 a {
  color: var(--cb-white);
}
.wp-block-group.cubas-item h3 a:hover {
  color: var(--cb-orange);
}
.wp-block-group.cubas-item > :last-child {
  margin-bottom: 0;
}
.page-content ul,
.cubas-body ul {
  padding-left: 1.25rem;
}
.page-content li::marker,
.cubas-body li::marker {
  color: var(--cb-orange);
}

/* Fallback single templates (template-parts/cubas-single.php) */
.cubas-single section {
  margin-top: 3rem;
}
.cubas-lead {
  font-size: 1.1rem;
}
.cubas-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cb-border-dark);
}
.cubas-details dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cb-muted);
}
.cubas-details dd {
  margin: 0;
  color: var(--cb-white);
}
.cubas-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cubas-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cubas-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cubas-card {
  padding: 1.5rem;
  background-color: var(--cb-card);
  border: 1px solid var(--cb-border-dark);
  border-radius: 14px;
  transition:
    border-color 0.3s var(--cb-ease),
    transform 0.3s var(--cb-ease);
}
.cubas-card:hover {
  border-color: rgba(255, 91, 46, 0.35);
  transform: translateY(-2px);
}
.cubas-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.cubas-card > :last-child {
  margin-bottom: 0;
}

/* Bullets as orange dots, as the live site's prose lists do */
.cubas-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cubas-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.6rem;
}
.cubas-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--cb-orange);
}
/* FAQs: divided rows, orange accent on the question marker and hover */
.cubas-faqs {
  max-width: var(--cb-prose);
}
.cubas-faq {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cb-border-dark);
}
.cubas-faq:first-of-type {
  border-top: 1px solid var(--cb-border-dark);
}
.cubas-faq h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
  transition: color 0.2s var(--cb-ease);
}
.cubas-faq:hover h3 {
  color: var(--cb-orange);
}
.cubas-faq p {
  margin: 0;
}

.cubas-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: none;
}
/* Related links and chips: pill with the live badge colours (white 0.03 fill, 0.15 hairline) */
.cubas-links li {
  margin: 0;
}
.cubas-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--cb-white);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    border-color 0.2s var(--cb-ease),
    color 0.2s var(--cb-ease);
}
.cubas-links a:hover {
  border-color: var(--cb-orange);
  color: var(--cb-orange);
}

.cubas-cta {
  margin-top: 3rem;
  border-color: rgba(255, 91, 46, 0.35);
}
.cubas-images {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
.cubas-images figure {
  margin: 0;
}
.cubas-images img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--cb-border-dark);
  border-radius: 14px;
}
.cubas-item {
  margin-bottom: 1.5rem;
}

/* Forms: dark fields and the orange primary button (core blocks and plain inputs) */
:where(body:not([class*="elementor-page-"])) input[type="text"],
:where(body:not([class*="elementor-page-"])) input[type="email"],
:where(body:not([class*="elementor-page-"])) input[type="url"],
:where(body:not([class*="elementor-page-"])) input[type="tel"],
:where(body:not([class*="elementor-page-"])) input[type="search"],
:where(body:not([class*="elementor-page-"])) select,
:where(body:not([class*="elementor-page-"])) textarea {
  background-color: var(--cb-card);
  border: 1px solid var(--cb-border-dark);
  border-radius: 8px;
  color: var(--cb-white);
}
:where(body:not([class*="elementor-page-"])) input::placeholder,
:where(body:not([class*="elementor-page-"])) textarea::placeholder {
  color: var(--cb-muted);
}
:where(body:not([class*="elementor-page-"])) .site-main button[type="submit"],
:where(body:not([class*="elementor-page-"])) .site-main input[type="submit"],
:where(body:not([class*="elementor-page-"])) .wp-block-button__link {
  background-color: var(--cb-orange);
  border: 1px solid var(--cb-orange);
  border-radius: 8px;
  color: var(--cb-white);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 91, 46, 0.25);
}
:where(body:not([class*="elementor-page-"]))
  .site-main
  button[type="submit"]:hover,
:where(body:not([class*="elementor-page-"]))
  .site-main
  input[type="submit"]:hover,
:where(body:not([class*="elementor-page-"])) .wp-block-button__link:hover {
  background-color: var(--cb-orange-hover);
  border-color: var(--cb-orange-hover);
  color: var(--cb-white);
  box-shadow: 0 10px 30px rgba(255, 91, 46, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .cubas-card,
  .wp-block-group.cubas-item,
  .cubas-faq h3,
  a {
    transition-duration: 0.01ms;
  }
  .cubas-card:hover,
  .wp-block-group.cubas-item:hover {
    transform: none;
  }
}
