/*
 Theme Name: Corticlasse Clone PX (No Divi)
 Theme URI: https://corticlasse.pt/
 Author: You
 Description: Replica fiel do site original usando Gutenberg/FSE, sem shortcodes Divi.
 Version: 1.0.0
 Requires at least: 6.2
 Tested up to: 6.6
 Requires PHP: 7.4
 License: GPL-2.0-or-later
 Text Domain: corticlasse-clone-px
*/

:root {
  --cc-accent: #FFD000;
  --cc-dark: #1E1E1E;
  --cc-mid: #2B2B2B;
  --cc-bg: #F5F6F7;
  --cc-border: #E6E8EB;
  --cc-text: #1F1F1F;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;

  /* Prevent text inflation on mobile */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

.cc-lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  color: var(--cc-mid);
  margin: 0 0 0.75em;
  line-height: 1.1;
}

p {
  margin: 0 0 1.2em;
}

.pc-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.6rem, 4vw, 3rem);
}

.wp-block-group.cc-section,
.cc-section {
  margin-top: 0 !important;
}

/* --------- ALTERAÇÃO 1 (regras de gap) --------- */
/* manter sem gap quando um cover vem antes de section ou quando cover segue cover */
.wp-block-cover + .cc-section,
.wp-block-cover + .wp-block-cover {
  margin-top: 0 !important;
}
/* quando uma section vem antes de um cover, também sem margem (espaço será dentro da section) */
.cc-section + .wp-block-cover {
  margin-top: 0 !important;
}
/* ----------------------------------------------- */

.cc-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cc-section--tight {
  padding: clamp(2rem, 4.5vw, 3rem) 0;
}

.cc-feature-wrap.nudge-top {
  margin-top: 0;
}

.cc-white {
  background: #fff;
}

.cc-mid {
  background: var(--cc-mid);
  color: #fff;
}

.cc-dark {
  background: var(--cc-dark);
  color: #fff;
}

.cc-grey {
  background: #F1F3F5;
}

.cc-yellow {
  background: var(--cc-accent);
}

.pc-card {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: clamp(1.75rem, 3vw, 2.3rem);
}

.cc-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.cc-heading--bar {
  position: relative;
  padding-top: 20px;
}

.cc-heading--bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 6px;
  background: var(--cc-accent);
  border-radius: 3px;
}

.has-text-align-center.cc-heading--bar::before {
  left: 50%;
  transform: translateX(-50%);
}

.cc-dash {
  height: 6px;
  width: 68px;
  border: 0;
  border-radius: 3px;
  background: var(--cc-accent) !important;
  margin: 0 0 1.5rem;
}

.wp-block-button__link {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.wp-block-button__link.has-accent-background-color {
  background: var(--cc-accent);
  color: #111;
}

.wp-block-button.is-style-cc-outline-light .wp-block-button__link {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.wp-block-button.is-style-cc-outline-accent .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--cc-accent);
  color: var(--cc-accent);
}

/* Header */
.cc-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(1.2rem, 2.5vw, 1.8rem) 0;
}

.cc-header__navwrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  margin-left: auto;
}

.cc-header__logo {
  display: flex;
  align-items: center;
}

.cc-header__logo img {
  max-width: 200px;
  height: auto;
}

.cc-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.cc-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--cc-dark);
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  z-index: 1100;
  padding: 0;
}

.cc-nav__toggle-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.cc-nav__toggle-icon--close {
  display: none;
}

.cc-nav.is-open .cc-nav__toggle {
  color: #fff;
}

.cc-nav.is-open .cc-nav__toggle-icon--open {
  display: none;
}

.cc-nav.is-open .cc-nav__toggle-icon--close {
  display: block;
}

.cc-nav__overlay {
  display: none;
}

.cc-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.8vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-nav__item {
  position: relative;
}

.cc-nav__link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 14px;
  color: #5c5c5c;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cc-nav__link:hover,
.cc-nav__link:focus {
  color: #222;
}

.cc-nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background 0.2s ease;
}

.cc-nav__link:hover::before,
.cc-nav__link:focus::before {
  background: var(--cc-accent);
}

.cc-nav__link[aria-current="page"] {
  color: var(--cc-accent);
  font-weight: 700;
}

.cc-nav__link[aria-current="page"]::before {
  background: var(--cc-accent);
}

.cc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-nav__item--has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.cc-nav__item--has-submenu > .cc-nav__link {
  padding-right: 0;
}

.cc-nav__item--has-submenu > .cc-nav__link::after {
  content: "\25BE";
  font-size: 0.9em;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease, color 0.2s ease;
  transform-origin: center;
  transform: rotate(0deg);
}

.cc-nav__item--has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  background: transparent;
  z-index: 5;
}

.cc-nav__item--has-submenu:hover > .cc-nav__link::after,
.cc-nav__item--has-submenu:focus-within > .cc-nav__link::after {
  transform: rotate(180deg);
  color: var(--cc-accent);
}

.cc-nav__subtoggle {
  display: none;
  margin-left: 0.25rem;
}

.cc-nav__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 240px;
  padding: 1.35rem 1.8rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.cc-nav__submenu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--cc-accent);
  border-radius: 14px 14px 0 0;
}

.cc-nav__submenu li {
  list-style: none;
}

.cc-nav__submenu a {
  font-size: 0.98rem;
  font-weight: 600;
  color: #3a3a3a;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cc-nav__submenu a:hover,
.cc-nav__submenu a:focus {
  color: var(--cc-accent);
  transform: translateX(4px);
}

.cc-nav__submenu {
  overflow: visible;
}

.cc-subnav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.4rem 0;
  list-style: none;
}

.cc-subnav__item > a {
  flex: 1 1 auto;
  color: #2d2d2d;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cc-subnav__item > a:hover,
.cc-subnav__item > a:focus {
  background: rgba(0, 0, 0, 0.05);
  color: #1f1f1f;
}

.cc-subnav__item.is-expanded > a {
  background: rgba(0, 0, 0, 0.05);
  color: #1f1f1f;
}

.cc-subnav__item--has-submenu > a::after {
  content: "\25B8";
  font-size: 0.7em;
  margin-left: 0.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.cc-subnav__item--has-submenu:hover > a::after,
.cc-subnav__item--has-submenu:focus-within > a::after {
  transform: translateX(3px);
  color: var(--cc-accent);
}

.cc-subnav__item--has-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  right: -24px;
  width: 24px;
  height: 100%;
  background: transparent;
  pointer-events: auto;
}

.cc-subnav__toggle {
  display: none;
}

.cc-subnav__item--has-submenu > .cc-subnav__submenu {
  position: absolute;
  top: -1rem;
  left: calc(100% + 24px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 220px;
  padding: 1.1rem 1.4rem;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1001;
}

.cc-subnav__item--has-submenu > .cc-subnav__submenu::before {
  display: none;
}

.cc-subnav__item--has-submenu:hover > .cc-subnav__submenu,
.cc-subnav__item--has-submenu:focus-within > .cc-subnav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.cc-nav__item--has-submenu:hover > .cc-nav__submenu,
.cc-nav__item--has-submenu:focus-within > .cc-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cc-nav__link:focus-visible {
  outline: none;
  color: #222;
}

.cc-header__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: clamp(0.8rem, 2vw, 1.6rem);
}

.cc-header__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #5c5c5c;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cc-header__search svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cc-header__search:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #222;
  transform: translateY(-1px);
}

body.cc-nav-lock {
  overflow: hidden;
}

@media (max-width: 960px) {
  .cc-header__inner {
    padding: clamp(0.9rem, 4vw, 1.2rem) 0;
  }
  .cc-header__navwrap {
    gap: 0.9rem;
  }
  .cc-header__actions {
    gap: 0.8rem;
    margin-left: 0.6rem;
  }
  .cc-nav {
    gap: 0.6rem;
  }
  .cc-nav__toggle {
    display: flex;
  }
  .cc-nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 30, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  .cc-nav.is-open .cc-nav__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Full-screen overlay menu */
  .cc-nav__list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: transparent;
    padding: 5rem clamp(2rem, 8vw, 3rem) 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cc-nav.is-open .cc-nav__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .cc-nav__item {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
  }
  .cc-nav__item:last-child {
    border-bottom: 0;
  }
  .cc-nav__item:not(.cc-nav__item--has-submenu) {
    align-items: center;
  }
  .cc-nav__item--has-submenu {
    width: 100%;
  }
  .cc-nav__item--has-submenu > .cc-nav__link {
    flex: 1 1 auto;
    display: block;
    padding-right: 0;
  }
  .cc-nav__subtoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
  }
  .cc-nav__subtoggle::before {
    content: "\25BE";
    font-size: 0.75rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }
  .cc-nav__subtoggle:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .cc-nav__item--has-submenu.is-expanded > .cc-nav__subtoggle::before {
    transform: rotate(180deg);
  }
  .cc-nav__item--has-submenu.is-expanded > .cc-nav__subtoggle {
    background: rgba(255, 208, 0, 0.15);
    border-color: rgba(255, 208, 0, 0.3);
  }
  .cc-nav__link {
    display: block;
    flex: 1 1 auto;
    color: #fff;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    padding: 0.4rem 0;
    letter-spacing: 0.01em;
    opacity: 0.9;
    transition: opacity 0.2s ease;
  }
  .cc-nav__link:hover,
  .cc-nav__link:focus {
    opacity: 1;
    color: #fff;
  }
  .cc-nav__link::before {
    display: none;
  }
  .cc-nav__link::after {
    display: none !important;
  }
  .cc-nav__item--has-submenu > .cc-nav__link::after {
    display: none !important;
  }
  .cc-nav__item--has-submenu.is-expanded > .cc-nav__link {
    color: var(--cc-accent);
    opacity: 1;
  }
  .cc-nav__link[aria-current="page"] {
    color: var(--cc-accent);
    opacity: 1;
  }
  .cc-nav__submenu {
    position: static;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    margin: 0.2rem 0 0.3rem;
    padding: 0 0 0.4rem 1rem;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    gap: 0;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    z-index: auto;
    border-left: 2px solid rgba(255, 208, 0, 0.4);
  }
  .cc-nav__submenu::before {
    display: none;
  }
  .cc-nav__submenu a {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.4rem 0;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .cc-nav__submenu a:hover {
    color: var(--cc-accent);
  }
  .cc-nav__item--has-submenu.is-expanded > .cc-nav__submenu {
    display: flex;
    flex-direction: column;
  }
  .cc-subnav__item {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.35rem 0;
    padding-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
  }
  .cc-subnav__item:last-child {
    border-bottom: 0;
  }
  .cc-subnav__item:not(.cc-subnav__item--has-submenu) {
    align-items: center;
  }
  .cc-subnav__item > a {
    flex: 1 1 auto;
    display: block;
    padding: 0.3rem 0;
    background: transparent;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
  }
  .cc-subnav__item.is-expanded > a {
    color: var(--cc-accent);
    font-weight: 700;
  }
  .cc-subnav__submenu .cc-subnav__item > a {
    font-weight: 500;
  }
  .cc-subnav__submenu .cc-subnav__submenu a {
    font-size: 0.92rem;
  }
  .cc-subnav__item--has-submenu::after {
    display: none;
  }
  .cc-subnav__item--has-submenu > a::after {
    display: none;
  }
  .cc-subnav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
  }
  .cc-subnav__toggle::before {
    content: "\25BE";
    font-size: 0.75rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }
  .cc-subnav__toggle:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .cc-subnav__item.is-expanded > .cc-subnav__toggle::before {
    transform: rotate(180deg);
  }
  .cc-subnav__item.is-expanded > .cc-subnav__toggle {
    background: rgba(255, 208, 0, 0.15);
    border-color: rgba(255, 208, 0, 0.3);
  }
  .cc-subnav__item--has-submenu > .cc-subnav__submenu {
    position: static;
    flex-basis: 100%;
    width: 100%;
    order: 3;
    margin: 0.2rem 0 0.2rem;
    padding: 0 0 0 1rem;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    display: none;
    gap: 0.15rem;
    /* Reset desktop styles */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    min-width: 0;
    z-index: auto;
    border-left: 2px solid rgba(255, 208, 0, 0.25);
  }
  .cc-subnav__item.is-expanded > .cc-subnav__submenu {
    display: flex;
    flex-direction: column;
  }
  .cc-header__search {
    display: none;
  }

  /* Submenu links tappable */
  .cc-nav__submenu a,
  .cc-subnav__submenu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .cc-nav__submenu a:hover,
  .cc-subnav__submenu a:hover {
    background: rgba(255, 208, 0, 0.08);
    color: var(--cc-accent);
  }
}

/* Hero */
/* HERO (centered) */
.cc-hero {
  --cc-hero-height: 620px;
  position: relative;
  height: var(--cc-hero-height);
  min-height: var(--cc-hero-height) !important; /* override any inline min-heights saved in block markup */
  padding-block: clamp(1.1rem, 3vw, 1.8rem);
  text-align: center; /* center text */
}

.wp-block-cover.alignfull.cc-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* vertically + horizontally center the inner content */
.cc-hero > .wp-block-cover__inner-container {
  min-height: inherit;
  height: 100%;
  display: grid;
  place-items: center; /* centers both axes */
}

/* remove gap between header and hero */
.wp-site-blocks > .wp-block-template-part + .wp-block-cover.cc-hero,
.wp-site-blocks > header + .wp-block-cover.cc-hero {
  margin-top: 0 !important;
}

.cc-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: #fff;
}

.cc-hero p {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: #fff;
  max-width: 520px;
  margin-inline: auto; /* center the narrower paragraph block */
}

.cc-hero .pc-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.2rem);
}

/* center the buttons row */
.cc-hero .wp-block-buttons {
  justify-content: center;
}

/* center the yellow dash if you use it in the hero */
.cc-hero .cc-dash {
  margin-left: auto;
  margin-right: auto;
}

/* remove o gap automático entre o header e o primeiro bloco (hero) */
.wp-block-template-part[area="header"] + .wp-block-cover {
  margin-block-start: 0;
}

.cc-header { margin-bottom: 0; }

/* Feature section */
.cc-feature-wrap {
  --feature-left-width: clamp(340px, 34vw, 500px);
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff;
  width: 100%;
  padding-bottom: 0; /* CHANGED: remove extra space that appeared above services */
}

.cc-feature-wrap.nudge-top {
  margin-top: 0;
}

.cc-feature-left {
  flex: 0 0 var(--feature-left-width);
  background: linear-gradient(180deg, #ffd000 0%, #f5c400 100%);
  color: #111;
  padding: clamp(2.6rem, 5vw, 3.2rem) clamp(2.1rem, 4.2vw, 3rem) clamp(1.6rem, 3.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.4rem);
}

.cc-feature-item {
  margin: 0;
}

.cc-feature-item + .cc-feature-item {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}

.cc-feature-item h4 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  position: relative;
  padding-left: 30px;
}

.cc-feature-item h4::before {
  content: "»»";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -6px;
  color: #fff;
}

.cc-feature-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.cc-feature-right {
  flex: 1 1 auto;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.8rem, 5.5vw, 3.4rem) clamp(4rem, 7vw, 5.4rem) 0;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.cc-feature-right__content {
  width: 100%;
  max-width: clamp(720px, 62vw, 900px);
  margin: 0 auto;
  text-align: justify;
}

.cc-feature-right__content p {
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: justify;
}

.cc-feature-right__cta {
  margin-top: auto;
  background: var(--cc-mid);
  color: #fff;
  padding: clamp(1.6rem, 3.5vw, 2rem) clamp(3.8rem, 6vw, 4.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  border-radius: 0;
  position: absolute;
  left: var(--feature-left-width);
  right: 0;
  bottom: 0; /* CHANGED: flush to bottom now that wrap has no bottom padding */
  margin: 0 !important;
  margin-left: -2px;
  z-index: 2;
}

.cc-feature-right__cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: clamp(360px, 40vw, 520px);
  color: inherit;
}

.cc-feature-right__cta-text p {
  margin: 0;
  color: inherit;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
}

.cc-feature-right__cta h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  color: #fff;
}

.cc-feature-right__cta .wp-block-buttons {
  margin: 0;
}

@media (max-width: 1200px) {
  .cc-feature-left {
    flex-basis: clamp(300px, 36vw, 460px);
  }
}

@media (max-width: 960px) {
  .cc-feature-wrap {
    flex-direction: column;
    border-radius: 22px;
    background: #fff;
    padding: clamp(2.4rem, 8vw, 3.4rem) clamp(1.2rem, 7vw, 2.4rem);
    gap: clamp(1.4rem, 4vw, 2rem);
    padding-bottom: 0;
  }

  .cc-feature-left {
    flex: 1 1 auto;
    border-radius: 22px 22px 0 0;
    padding: clamp(2.4rem, 8vw, 3.2rem) clamp(1.6rem, 6vw, 2.4rem);
  }

  .cc-feature-right {
    border-radius: 0 0 22px 22px;
    align-items: flex-start;
    padding: clamp(2rem, 7vw, 2.6rem) clamp(1.6rem, 6vw, 2.2rem);
  }

  .cc-feature-right__content {
    margin: 0;
    max-width: 100%;
  }

  .cc-feature-right__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: static;
    margin: 0 !important;
  }

  .cc-feature-right__cta-text {
    max-width: 100%;
  }

  .cc-feature-right__cta .wp-block-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cc-feature-left {
    padding: clamp(2rem, 9vw, 2.6rem) clamp(1.4rem, 7vw, 2.1rem);
  }

  .cc-feature-right {
    padding: clamp(1.8rem, 8vw, 2.4rem) clamp(1.4rem, 7vw, 2.1rem);
  }

  .cc-feature-right__cta {
    padding: clamp(0.9rem, 7vw, 1.4rem) clamp(1.6rem, 7vw, 2.3rem);
  }
}

/* Service cards */
.cc-services {
  margin-top: 0 !important;
  padding-top: clamp(2rem, 4vw, 3rem) !important;     /* smaller top */
  padding-bottom: clamp(5rem, 8vw, 7.5rem) !important;  /* larger bottom */
  --wp--style--block-gap: 0px; /* stop Gutenberg from adding extra top margin to first child */
}

.cc-services-grid {
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: stretch;
}

.cc-services-grid > .wp-block-column {
  display: flex;
}

/* NEW: remove default margin under Columns so bottom spacing = padding only */
.cc-services .wp-block-columns {
  margin-bottom: 0;
}

.cc-service-card {
  text-align: center;
  padding: clamp(1.8rem, 3vw, 2.2rem);
  border-radius: 16px;
  border: 1px solid var(--cc-border);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
}

.cc-service-card figure {
  margin: 0;
  width: 96px;
}

.cc-service-card img {
  width: 100%;
  height: auto;
}

.cc-service-card h4 {
  font-size: 1.1rem;
}

.cc-service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.78);
}

/* Testimonials */

.cc-testimonials {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch !important;
  justify-content: center;
  column-gap: clamp(1.6rem, 2.8vw, 2.2rem) !important;
  row-gap: clamp(1.8rem, 3vw, 2.6rem) !important;
  margin-top: clamp(2.4rem, 4vw, 3rem) !important;
  margin-bottom: clamp(2.4rem, 4vw, 3rem) !important;
}

.cc-testimonials > .wp-block-column {
  display: flex;
  flex: 1 1 0;
  align-items: stretch;
  justify-content: stretch;
  margin: 0 !important;
  min-width: 280px;
}

/* Card styling */
.cc-testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  gap: 1rem;
  flex: 1 1 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: clamp(1.4rem, 2.8vw, 2rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover for desktop */
.cc-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.cc-stars {
  color: #FFC107;
  font-size: 1.6rem;
  letter-spacing: 3px;
  margin: 0 0 0.4rem;
}

.cc-testimonial p {
  margin: 0;
}

.cc-testimonial p:last-child {
  margin-top: auto;
  font-weight: 700;
}

/* RESPONSIVE TWEAKS     */

/* Medium screens (reduce card size slightly) */
@media (max-width: 1200px) {
  .cc-testimonial {
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
  }
}

/* Mobile screens (cards ~half height, compact layout) */
@media (max-width: 782px) {
  .cc-testimonials {
    flex-direction: column;
    row-gap: clamp(1.4rem, 5vw, 2rem) !important;
  }

  .cc-testimonials > .wp-block-column {
    width: 100%;
  }

  .cc-testimonial {
    min-height: 220px; /* about half the previous desktop height */
    padding: clamp(1rem, 5vw, 1.4rem);
  }

  .cc-stars {
    font-size: 1.4rem;
  }
}

/* Logos Marquee — compact, clean, production-ready */
.cc-logos {
  background: #fff;
  border-top: 0;
}

/* Viewport */
.cc-brand-marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.2rem, 3vw, 2rem);
}

/* Fade edges */
.cc-brand-marquee::before,
.cc-brand-marquee::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 80px;
  z-index: 2;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.cc-brand-marquee::after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

/* Track */
.cc-brand-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.2rem);
  width: max-content;
  animation: cc-marquee-left 28s linear infinite;
  will-change: transform;
}

/* Logo sizing */
.cc-brand-track figure {
  margin: 0;
  display: flex;
  align-items: center;
}

.cc-brand-track img,
.cc-brand-track svg {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Hover pause */
.cc-brand-marquee:hover .cc-brand-track {
  animation-play-state: paused;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .cc-brand-track {
    animation: none;
  }
}

/* Mobile sizing */
@media (max-width: 782px) {
  .cc-brand-track img,
  .cc-brand-track svg {
    height: 44px;
  }
}

/* Animation */
@keyframes cc-marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========================= */
/* CONTACT — full-bleed layout */
/* ========================= */

.cc-contact {
  background: var(--cc-bg);
  padding: 0 !important;
}
.wp-block-group.alignfull.cc-contact > .wp-block-group.pc-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cc-contact__row {
  align-items: stretch;
  gap: 0;
}

.cc-contact__left {
  background: var(--cc-accent);
  color: var(--cc-mid);
  padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 2.5vw, 1.4rem);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 1 1 0;
}
.cc-contact__left-inner {
  width: 100%;
  max-width: min(100%, clamp(640px, 60vw, 720px));
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  height: 100%;
  box-sizing: border-box;
}
.cc-contact__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--cc-mid);
}
.cc-contact__dash {
  display: block;
  width: 68px;
  height: 6px;
  border-radius: 3px;
  background: var(--cc-mid);
  background-color: var(--cc-mid);
  color: var(--cc-mid);
  margin: 0;
}

.cc-contact .cc-form .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  row-gap: clamp(0.6rem, 1.6vw, 0.85rem);
  align-items: start;
}
.cc-contact .cc-form .wpcf7-form p {
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cc-contact .cc-form .wpcf7-form p:nth-of-type(1) { grid-column: 1; }
.cc-contact .cc-form .wpcf7-form p:nth-of-type(2) { grid-column: 2; }
.cc-contact .cc-form .wpcf7-form p:nth-of-type(3) { grid-column: 1 / -1; }
.cc-contact .cc-form .wpcf7-form p:nth-of-type(4):not(:last-of-type) { grid-column: 1 / -1; }
.cc-contact .cc-form .wpcf7-form p:nth-of-type(n+5):not(:last-of-type) { grid-column: 1 / -1; }
.cc-contact .cc-form .wpcf7-form p:last-of-type {
  grid-column: 2;
  justify-self: end;
  gap: 0;
  margin-top: clamp(.4rem, 2vw, 1rem);
}

.cc-contact input,
.cc-contact textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 8px;
  padding: .7rem .85rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #111;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cc-contact input:focus,
.cc-contact textarea:focus {
  outline: 0;
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(255,208,0,.25);
}

.cc-contact .cc-form textarea {
  min-height: 110px;
  resize: vertical;
}

.cc-contact .wpcf7-submit {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  padding: .55rem 1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  box-sizing: border-box;
  max-width: 100%;
}
.cc-contact .wpcf7-submit:hover { opacity: .9; }

@media (max-width: 782px) {
  .cc-contact .cc-form .wpcf7-form { grid-template-columns: 1fr; }
  .cc-contact .cc-form .wpcf7-form p:nth-of-type(1),
  .cc-contact .cc-form .wpcf7-form p:nth-of-type(2) { grid-column: 1; }
  .cc-contact .cc-form .wpcf7-form p:last-of-type {
    grid-column: 1;
    justify-self: stretch;
    text-align: center;
  }
}

.cc-contact__right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2rem);
  color: var(--cc-mid);
  flex: 1 1 0;
  padding: clamp(1.8rem, 4vw, 2.4rem) 0 0 0;
  background: #f4f4f4;
  position: relative;
}

.cc-contact-info {
  padding: 0 clamp(1.6rem, 4vw, 2.4rem);
}
.cc-contact-info__list {
  list-style: none;
  padding: 0;
  margin: clamp(0.8rem, 2vw, 1.6rem) 0 0;
  display: grid;
  gap: .45rem;
  font-weight: 600;
}
.cc-contact-info__item {
  position: relative;
  padding-left: 2.6rem;
  line-height: 1.5;
}
.cc-contact-info__item::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-size: contain;
}
.cc-contact-info__item--address::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11c0 6-9 13-9 13S3 17 3 11a9 9 0 1 1 18 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E");
}
.cc-contact-info__item--phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.86 19.86 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.9.37 1.78.74 2.61a2 2 0 0 1-.45 2.11L8.91 9.09a16 16 0 0 0 6 6l.65-.65a2 2 0 0 1 2.11-.45c.83.37 1.71.62 2.61.74A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.cc-contact-info__item--email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2B2B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpolyline points='3,7 12,13 21,7'/%3E%3C/svg%3E");
}
.cc-contact-info a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.cc-contact-info a:hover { opacity: .75; }

.cc-contact__mapcard {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(0.8rem, 2vw, 1.4rem);
  flex: 1 1 auto;
  padding: 0;
}

.cc-map {
  margin: 0;
  aspect-ratio: 4 / 3;
  max-height: clamp(240px, 35vw, 360px);
  overflow: hidden;
  border-radius: 0;
}
.cc-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Dark social bar under the map */
.cc-contact-social {
  display: flex;
  justify-content: center;
  gap: .6rem;
  background: var(--cc-mid);
  padding: clamp(1rem, 2.8vw, 1.5rem) clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 0;
  margin: 0;
  list-style: none;
  align-self: stretch;
  margin-top: auto;
}
.cc-contact-social .wp-social-link {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-contact-social .wp-block-social-link__anchor,
.cc-contact-social .wp-social-link a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-mid);
}
.cc-contact-social .wp-block-social-link__label { display: none; }
.cc-contact-social .wp-social-link svg {
  width: 20px;
  height: 20px;
}
.cc-contact-social .wp-social-link a:hover { opacity: .85; }

/* ----------------------------- */
/* Contact page specific styles  */
/* ----------------------------- */
.cc-hero.cc-contact-hero h1,
.cc-hero.cc-contact-hero p {
  color: #fff;
}

.cc-contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.cc-contact-hero__copy {
  text-align: left;
  max-width: 600px;
}

.cc-contact-hero__copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0;
}

.cc-contact-hero__copy p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.cc-contact-hero__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cc-contact-hero__heading h1 {
  line-height: 1.1;
}

.cc-contact-hero__bar {
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: var(--cc-accent);
  flex-shrink: 0;
  display: block;
}

@media (min-width: 961px) {
  .wp-block-cover.cc-hero.cc-contact-hero {
    align-items: stretch;
  }

  .cc-hero.cc-contact-hero .wp-block-cover__inner-container {
    width: 100%;
    height: 100%;
  }

  .cc-hero.cc-contact-hero .pc-container {
    max-width: none;
    width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
  }

  .cc-contact-hero__grid {
    width: 100%;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 480px);
    max-width: 1280px;
  }

  .cc-contact-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.cc-contact-card {
  background: rgba(15, 15, 15, 0.92);
  color: #f6f6f6;
  border-radius: 26px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  --cc-contact-card-text-offset: 4.4rem;
}

.cc-contact-card h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cc-accent);
  width: calc(100% - var(--cc-contact-card-text-offset));
  margin-left: var(--cc-contact-card-text-offset);
  text-align: center;
}

.cc-contact-card__item {
  position: relative;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.25rem 0 0.65rem var(--cc-contact-card-text-offset);
}

.cc-contact-card__item + .cc-contact-card__item {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.7rem;
}

.cc-contact-card__item p {
  margin: 0;
}

.cc-contact-card__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: 58%;
  background-repeat: no-repeat;
  background-position: center;
}

.cc-contact-card__item--address::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11c0 6-9 13-9 13S3 17 3 11a9 9 0 1 1 18 0z'/%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3C/svg%3E");
}
.cc-contact-card__item--schedule::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.cc-contact-card__item--contacto::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpolyline points='3,7 12,13 21,7'/%3E%3C/svg%3E");
}

.cc-contact-card__label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  margin: 0 0 0.35rem;
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.cc-contact-card a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.cc-contact-card a:hover {
  text-decoration: underline;
}

.cc-contact-card small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.6);
}

.cc-contact-card__social {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  width: calc(100% - var(--cc-contact-card-text-offset));
  margin-left: var(--cc-contact-card-text-offset);
}

.cc-contact-card__social .wp-social-link {
  background: transparent;
}

.cc-contact-card__social .wp-block-social-link__anchor,
.cc-contact-card__social .wp-social-link a {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  width: auto;
  height: auto;
  color: #fff;
}

.cc-contact-card__social .wp-social-link svg {
  color: inherit;
  fill: currentColor;
}

.cc-contact-cta {
  background: #fff;
  text-align: center;
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--cc-border);
}

.cc-contact-cta__stack h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.cc-contact-cta__stack h3 span {
  color: var(--cc-accent);
}

.cc-contact-cta__note {
  font-size: 0.85rem;
  color: #7a7a7a;
}

.cc-contact-main {
  background: #fff;
}

.cc-contact-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.cc-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: #858585;
  margin-bottom: 0.4rem;
}

.cc-contact-main__form > p,
.cc-contact-main__faq > p {
  color: #5a5a5a;
}

.cc-form {
  overflow: hidden;
}

.cc-contact-main .cc-form {
  margin-top: 1.4rem;
}

.cc-contact-main__form {
  max-width: 520px;
  width: 100%;
  margin-right: auto;
}

.cc-contact-main__form > * {
  max-width: 520px;
  width: 100%;
}

.cc-contact-main .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  row-gap: clamp(0.6rem, 1.6vw, 0.85rem);
  align-items: start;
}

.cc-contact-main .wpcf7-form p {
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cc-contact-main .wpcf7-form p:nth-of-type(1) {
  grid-column: 1;
}

.cc-contact-main .wpcf7-form p:nth-of-type(2) {
  grid-column: 2;
}

.cc-contact-main .wpcf7-form p:last-of-type {
  grid-column: 2;
  justify-self: end;
  gap: 0;
  margin-top: clamp(0.4rem, 2vw, 1rem);
}

.cc-contact-main input,
.cc-contact-main textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-contact-main input:focus,
.cc-contact-main textarea:focus {
  border-color: var(--cc-accent);
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
  outline: none;
}

.cc-contact-main .wpcf7-submit {
  border-radius: 10px;
  background: var(--cc-dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.cc-contact-main .wpcf7-submit:hover {
  opacity: 0.9;
}

.cc-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.cc-faq__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1rem 1.25rem 1rem 1.5rem;
  background: #fafafa;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.05);
}

.cc-faq__item summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding-left: 2rem;
}

.cc-faq__item summary::-webkit-details-marker { display: none; }
.cc-faq__item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--cc-accent);
}

.cc-faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 0.05rem;
  width: 1.3rem;
  height: 1.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='28.5' fill='%23f4f4f4' stroke='%232b2b2b' stroke-width='3'/%3E%3Cpath d='M32 14v36M14 32h36' stroke='%232b2b2b' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M32 19v26M19 32h26' stroke='%23989898' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.35s ease;
  transform: rotate(120deg);
}

.cc-faq__item[open] summary::after {
  transform: rotate(-120deg);
}

.cc-faq__item p {
  margin: 0.75rem 0 0;
  color: #4d4d4d;
  font-size: 0.95rem;
}

.cc-contact-map iframe {
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  display: block;
}

@media (max-width: 960px) {
  .cc-contact-hero__grid,
  .cc-contact-main__grid {
    grid-template-columns: 1fr;
  }

  .cc-contact-main__form,
  .cc-contact-main__form > * {
    max-width: none;
  }

  .cc-contact-card {
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .cc-contact-main .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .cc-contact-main .wpcf7-form p:nth-of-type(1),
  .cc-contact-main .wpcf7-form p:nth-of-type(2),
  .cc-contact-main .wpcf7-form p:last-of-type {
    grid-column: 1;
    justify-self: stretch;
  }

  .cc-contact-main .wpcf7-submit {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cc-contact-card {
    --cc-contact-card-text-offset: 3.6rem;
  }

  .cc-contact-card__item::before {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .cc-contact-card h3 {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .cc-contact-card__social {
    width: 100%;
    margin-left: 0;
  }

  .cc-contact-cta__stack {
    text-align: left;
  }
}

/* ----------------------------- */
/* Sobre nós page               */
/* ----------------------------- */
.cc-about-hero__content {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 720px;
}

.cc-about-hero__bar {
  width: 6px;
  height: 90px;
  border-radius: 3px;
  background: var(--cc-accent);
  flex-shrink: 0;
}

.cc-about-hero .cc-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.cc-about-saw {
  position: relative;
  height: 0;
  margin: 0 auto;
  transform: translateY(-75%);
  pointer-events: none;
  z-index: 5;
}

.cc-about-saw__track {
  position: relative;
  height: 0;
}

.cc-about-saw__blade {
  position: absolute;
  top: 50%;
  left: 0;
  width: 74px;
  height: 74px;
  transform: translate(-50px, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.cc-about-saw__blade img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
  pointer-events: none;
}



.cc-about-history__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  font-size: 1rem;
}

.cc-about-history {
  margin-top: clamp(-2.5rem, -6vw, -3rem);
}

.cc-about-history__grid p {
  color: #4d4d4d;
}

.cc-about-highlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.2rem);
  align-items: stretch;
}

.cc-about-highlight__list ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cc-about-highlight__list li {
  background: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.6rem 1.4rem 3.2rem;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.cc-about-highlight__list li::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.4rem;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23fdf4c5' stroke='%23d7b550' stroke-width='2'/%3E%3Cpath d='M8 16h16M16 8v16' stroke='%23998506' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cc-about-highlight__list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cc-about-highlight__list p {
  margin: 0;
  color: #4b4b4b;
}

.cc-about-highlight__media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.cc-about-highlight__media figure {
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
  flex: 1 1 auto;
  min-height: 0;
}

.cc-about-highlight__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cc-about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
  margin-top: auto;
}

.cc-about-stats > div {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
  text-align: center;
}

.cc-about-stats > div:nth-child(2n) {
  border-right: 0;
}

.cc-about-stats > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.cc-about-stats h3 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.cc-about-stats p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #6b6b6b;
}

@media (max-width: 960px) {
  .cc-about-history__grid,
  .cc-about-highlight__grid {
    grid-template-columns: 1fr;
  }

  .cc-about-hero__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-about-hero__bar {
    height: 6px;
    width: 60px;
  }

  .cc-about-stats {
    grid-template-columns: 1fr;
  }

  .cc-about-stats > div {
    border-right: 0;
  }

  .cc-about-saw {
    margin: 1rem auto;
  }
}
/* Patterns support */
.cc-cta {
  background: var(--cc-mid);
  color: #fff;
  padding: clamp(2rem, 4vw, 2.6rem) 0;
}

.cc-cta .wp-block-button__link {
  border: 2px solid var(--cc-accent);
  background: transparent;
  color: var(--cc-accent);
}

.cc-brand-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
}

.cc-brand-gallery img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.cc-brand-gallery img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.cc-brand-marquee {
  overflow: hidden;
  position: relative;
}

.cc-brand-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: cc-marquee-rtl 28s linear infinite;
}

.cc-brand-marquee img {
  max-height: 56px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.cc-brand-marquee:hover .cc-brand-track {
  animation-play-state: paused;
}

@keyframes cc-marquee-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Stats (Sobre Nós) */
.cc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
}

.cc-stats > div {
  padding: 1.8rem 2rem;
  text-align: center;
}

.cc-stats .y {
  background: linear-gradient(180deg, #FFD000 0%, #f5c300 100%);
  color: #111;
}

.cc-stats .d {
  background: var(--cc-dark);
  color: #fff;
}

.cc-stats .l {
  background: #fff;
  color: #fff;
}

/* Misc */
.wp-site-blocks {
  background: var(--cc-bg);
}

.wp-block-template-part[area="footer"] {
  background: #fff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
}

@media (max-width: 782px) {
  .cc-feature-grid {
    flex-direction: column;
  }

  .cc-feature-col,
  .cc-feature-content,
  .cc-feature-banner {
    border-radius: 20px;
  }

  .cc-feature-banner {
    justify-content: center;
    text-align: center;
  }

  .cc-services-grid {
    flex-direction: column;
  }

  .cc-logos-grid .wp-block-column {
    flex: 1 1 45%;
  }

  .cc-topbar__inner {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .cc-topbar__contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-services-grid .wp-block-column,
  .cc-testimonials > .wp-block-column {
    flex-basis: 100%;
  }

  .cc-logos-grid .wp-block-column {
    flex: 1 1 100%;
  }
}
.wp-site-blocks > * + * {
  margin-top: 0 !important;
}

/* cobre apenas este cover "history" (o 1.º cover já é .cc-hero) */
/* Secondary banner ("history") — fully centered */
.wp-block-cover.is-dark:not(.cc-hero) {
  min-height: clamp(700px, 85vh, 1100px) !important;
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  text-align: center;       /* center headings/paragraphs */
}

.wp-block-cover.is-dark:not(.cc-hero) .wp-block-cover__inner-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;      /* center inner blocks */
  justify-content: center;
}

.wp-block-cover.is-dark:not(.cc-hero) .pc-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;      /* center the group’s children */
}

.wp-block-cover.is-dark:not(.cc-hero) .wp-block-buttons {
  justify-content: center;  /* <-- centers the CTA row */
}

/* Global focus improvements (optional but nice) */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ */
/* Serviços page */
.cc-hero.cc-servicos-hero h1,
.cc-hero.cc-servicos-hero p {
  color: #fff;
}

.cc-servicos-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.cc-hero.cc-servicos-hero .cc-servicos-hero__grid,
.cc-hero.cc-contact-hero .cc-contact-hero__grid {
  align-items: center;
  height: 100%;
}

.cc-servicos-hero__copy p {
  font-size: 1.05rem;
  max-width: 560px;
}

.cc-servicos-panel {
  background: rgba(20, 20, 20, 0.92);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-servicos-panel__eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  margin-bottom: 1.8rem;
  color: var(--cc-accent);
}

.cc-servicos-panel__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
}

.cc-servicos-panel__item + .cc-servicos-panel__item {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-servicos-panel__item figure {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.cc-servicos-panel__item img {
  max-width: 36px;
  height: auto;
}

.cc-servicos-panel__item h4 {
  margin: 0 0 0.3rem;
  color: #fff;
}

.cc-servicos-panel__item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.cc-servicos-cta {
  background: #fff;
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
  box-shadow: 0 25px 80px rgba(18, 18, 18, 0.08);
}

.cc-servicos-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cc-servicos-cta__eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: #888;
  margin-bottom: 0.9rem;
}

.cc-servicos-details {
  background: linear-gradient(180deg, #fdfdfd 0%, #f4f5f7 100%);
}

.cc-servico-detail {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cc-servico-detail:last-child {
  margin-bottom: 0;
}

.cc-servico-detail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: var(--cc-accent);
}

.cc-servico-detail__inner {
  padding: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.6rem, 5vw, 3.4rem);
}

.cc-servico-detail p {
  font-size: 1rem;
  color: #404040;
}

.cc-servicos-projects {
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--cc-border);
}

.cc-servicos-projects p {
  max-width: 620px;
  margin: 0 auto clamp(1.2rem, 3vw, 1.8rem);
  color: #6d6d6d;
}

@media (max-width: 960px) {
  .cc-servicos-hero__grid {
    grid-template-columns: 1fr;
  }

  .cc-servicos-panel {
    order: 2;
  }

  .cc-servicos-hero__copy {
    order: 1;
  }
}

@media (max-width: 640px) {
.cc-servicos-panel {
  padding: 1.4rem;
  }

  .cc-servicos-panel__item {
    align-items: flex-start;
  }

  .cc-servicos-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------ */
/* WooCommerce: produto */
.cc-product-body {
  background: var(--cc-bg);
}

.cc-single-product {
  margin: 0;
}

.cc-product-hero {
  padding-top: clamp(2.8rem, 6vw, 4rem);
  padding-bottom: clamp(2.8rem, 6vw, 4rem);
}

.cc-breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c8c8c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.cc-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.cc-breadcrumb__sep {
  opacity: 0.5;
}

.cc-product__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: stretch;
}

.cc-product__gallery,
.cc-product__summary {
  flex: 1 1 320px;
}

.cc-product__gallery .woocommerce-product-gallery,
.cc-product__gallery .woocommerce-product-gallery__wrapper,
.cc-product__gallery .woocommerce-product-gallery__image {
  float: none !important;
  width: 100% !important;
}

.cc-product__gallery .woocommerce-product-gallery {
  margin: 0;
}

.cc-product__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.cc-product__summary .product_title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 0.4rem;
}

.cc-product__summary .woocommerce-product-rating {
  margin-bottom: 1rem;
}

.cc-product__summary .price {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cc-mid);
  font-weight: 700;
  margin-bottom: 1.1rem;
  display: block;
}

.cc-product__summary .woocommerce-product-details__short-description {
  color: #4b4b4b;
  font-size: 1rem;
}

.cc-product__summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cc-product__summary form.cart .quantity {
  margin: 0;
}

.cc-product__summary form.cart .button,
.cc-product__summary .single_add_to_cart_button {
  background: var(--cc-accent);
  color: #111;
  border-radius: 12px;
  border: none;
  padding: 0.95rem 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.cc-product__summary .variations_form table.variations {
  width: 100%;
  margin-bottom: 1rem;
}

.cc-product__support {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--cc-bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cc-product__support p {
  margin: 0;
  flex: 1 1 220px;
  color: #4f4f4f;
}

.cc-product__support .wp-block-buttons {
  width: 100%;
}

.cc-product__support .wp-block-button__link {
  width: 100%;
  text-align: center;
}

.cc-product-details {
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.cc-product-details .pc-card {
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.cc-product-details .woocommerce-tabs {
  margin-bottom: 2rem;
}

.cc-product-details .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--cc-border);
  padding: 0 0 0.5rem;
  margin: 0 0 1.5rem;
}

.cc-product-details .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.cc-product-details .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #5a5a5a;
}

.cc-product-details .woocommerce-tabs ul.tabs li.active a {
  background: var(--cc-accent);
  color: #111;
}

.cc-product-details .woocommerce-tabs ul.tabs::before,
.cc-product-details .woocommerce-tabs ul.tabs::after,
.cc-product-details .woocommerce-tabs ul.tabs li::before,
.cc-product-details .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.cc-product-details .woocommerce-Tabs-panel {
  padding: 0;
  color: #4a4a4a;
}

.cc-product-details .related,
.cc-product-details .upsells {
  margin-top: 2.5rem;
}

.cc-product-details .related ul.products,
.cc-product-details .upsells ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
  justify-content: flex-start;
}

.cc-product-details .related ul.products li.product,
.cc-product-details .upsells ul.products li.product {
  flex: 1 1 min(240px, 24%);
  max-width: calc(25% - clamp(1rem, 2vw, 1.6rem));
}

.cc-product-details .related h2,
.cc-product-details .upsells h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .cc-product__support {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-product__summary form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-product__summary form.cart .button {
    width: 100%;
    text-align: center;
  }
}

/* ------------------------------------------------------------ */
/* WooCommerce: catálogo */
.cc-catalog-body {
  background: var(--cc-bg);
}

.cc-catalog-hero h1 {
  margin-bottom: 0.75rem;
}

.cc-catalog-hero__intro {
  max-width: 760px;
  color: #4c4c4c;
  font-size: 1rem;
}

.cc-catalog-hero__intro p {
  margin-bottom: 0.8rem;
}

.cc-catalog-hero__layout {
  display: flex;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cc-catalog-hero__content {
  flex: 1 1 380px;
  min-width: 300px;
}

.cc-catalog-hero__stats {
  display: flex;
  gap: 1.2rem;
  margin: 1.5rem 0 1rem;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.cc-catalog-hero__stats li {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  padding: 0.9rem 1.3rem;
  min-width: 180px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.cc-stat__label {
  display: block;
  font-size: 0.85rem;
  color: #6a6a6a;
  margin-bottom: 0.2rem;
}

.cc-stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.cc-catalog-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.15);
  color: #111;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.85rem;
}

.cc-catalog-hero__support {
  flex: 0 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cc-support__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--cc-accent);
  margin: 0;
}

.cc-catalog-hero__support .wp-block-button__link {
  width: 100%;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .cc-catalog-hero__stats li {
    flex: 1 1 140px;
  }

  .cc-catalog-hero__support {
    width: 100%;
  }
}

/* ------------------------------------------------------------ */
/* Projetos de Clientes */
.cc-projects-banner p {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: #111;
}

.cc-projects-banner a {
  color: inherit;
  text-decoration: underline;
}

.cc-projects-intro__text {
  max-width: 760px;
  color: #4a4a4a;
}

.cc-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  row-gap: clamp(3rem, 5vw, 4rem);
  column-gap: clamp(0.6rem, 1vw, 1rem);
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .cc-projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cc-projects-list .pc-container {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(0.75rem, 2vw, 1.2rem);
  padding-right: clamp(0.75rem, 2vw, 1.2rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.cc-projects-list {
  padding-left: clamp(0.8rem, 1vw, 1.4rem);
  padding-right: clamp(0.8rem, 1vw, 1.4rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}

.cc-project-card {
  gap: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cc-project-card__media {
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.cc-project-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.cc-project-card__title {
  margin-bottom: 0.4rem;
}

.cc-project-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cc-project-card__contact {
  margin: 0;
  color: #4b4b4b;
  font-size: 0.95rem;
  font-weight: 600;
}

.cc-project-card__excerpt {
  color: #4b4b4b;
  margin: 0;
}

.cc-project-card__meta {
  margin-top: auto;
  border-top: 1px solid var(--cc-border);
  padding-top: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.cc-project-card__date {
  font-size: 0.9rem;
  color: #6a6a6a;
}

.cc-project-card__btn {
  background: var(--cc-accent);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  min-width: 115px;
  text-align: center;
}

.cc-projects-pagination {
  margin-top: 2rem;
  gap: 0.6rem;
}

.cc-projects-pagination a,
.cc-projects-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cc-border);
}

.cc-projects-pagination span {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #111;
}

.cc-projects-empty {
  text-align: center;
  color: #4a4a4a;
}

.cc-projects-cta {
  position: relative;
  overflow: hidden;
  min-height: clamp(240px, 40vh, 320px) !important;
  color: #111;
}

.cc-projects-cta .wp-block-cover__background {
  opacity: 1;
  background: linear-gradient(120deg, #ffe67c 0%, #ffd53d 50%, #ffbe0b 100%);
}

.cc-projects-cta .wp-block-cover__inner-container {
  display: flex;
  align-items: center;
  padding: clamp(2.6rem, 6vw, 3.8rem) 0;
}

.cc-projects-cta .pc-container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.cc-projects-cta h2 {
  margin-bottom: 0.55rem;
  color: #111;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cc-projects-cta p {
  color: #2e2e2e;
  margin-bottom: 1.4rem;
}

.cc-projects-cta .wp-block-buttons {
  justify-content: center;
}

.cc-projects-cta .wp-block-button__link {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  max-width: 100%;
}

.cc-projects-cta .wp-block-button.is-style-cc-outline .wp-block-button__link {
  border: none;
}

.cc-projects-cta::before,
.cc-projects-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  filter: blur(24px);
  z-index: 0;
}

.cc-projects-cta::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -80px;
}

.cc-projects-cta::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: -60px;
}

@media (max-width: 1100px) {
  .cc-hero {
    --cc-hero-height: 560px;
  }
}

@media (max-width: 720px) {
  .cc-project-card__media img {
    height: 180px;
  }

  .cc-project-slider {
    padding: 0 1.5rem;
  }

  .cc-carousel__slide {
    flex-basis: 85%;
  }

  .cc-carousel__nav {
    width: 38px;
    height: 38px;
  }

  .cc-projects-cta .wp-block-cover__inner-container {
    padding: clamp(2.2rem, 8vw, 2.8rem) 0;
  }

  .cc-projects-cta h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .cc-projects-cta p {
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  /* Responsive hero height */
  .cc-hero {
    --cc-hero-height: clamp(420px, 60vh, 520px);
    min-height: var(--cc-hero-height) !important;
  }

  .cc-hero .pc-container,
  .cc-projects-hero .pc-container {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    text-align: center;
  }

  .cc-hero h1,
  .cc-projects-hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
  }

  .cc-hero p,
  .cc-projects-hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
  }

  .cc-dash {
    width: 50px;
    margin: 0 auto 1rem;
  }

  /* Buttons in hero */
  .cc-hero .wp-block-buttons {
    margin-top: 1.5rem;
  }

  .cc-hero .wp-block-button__link {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
  }

  .cc-projects-list,
  .cc-projects-list .pc-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cc-projects-grid {
    grid-template-columns: 1fr;
    row-gap: 2.4rem;
    column-gap: 1rem;
  }

  .cc-project-card {
    padding: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 0;
  }

.cc-projects-banner p {
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
    margin: 0;
    padding: 0.25rem 0;
  }

  .cc-projects-intro__text h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .cc-projects-intro__text p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .cc-header__inner {
    padding: 0.9rem 0;
  }

  .cc-header__logo img {
    max-width: clamp(140px, 34vw, 180px);
    height: auto;
  }

  .cc-header__navwrap {
    gap: 0.6rem;
  }

  .cc-nav {
    flex-wrap: wrap;
  }

  .cc-nav__toggle {
    display: flex;
  }

  /* ========================================
     TOUCH TARGET OPTIMIZATIONS (44x44px minimum)
     ======================================== */

  /* Navigation touch targets */
  .cc-nav__toggle {
    min-width: 48px;
    min-height: 48px;
  }

  .cc-nav__subtoggle,
  .cc-subnav__toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .cc-nav__link {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .cc-header__search {
    min-width: 44px;
    min-height: 44px;
  }

  /* Carousel controls */
  .cc-carousel__nav {
    min-width: 44px;
    min-height: 44px;
  }

  /* Lightbox controls */
  .cc-lightbox__nav {
    min-width: 48px;
    min-height: 48px;
  }

  .cc-lightbox__controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
  }

  .cc-lightbox__close {
    min-width: 48px;
    min-height: 48px;
  }

  /* Buttons */
  .wp-block-button__link {
    min-height: 48px;
    padding: 0.75rem 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* WooCommerce */
  .single_add_to_cart_button {
    min-height: 48px;
    padding: 0.75rem 1.5rem;
  }

  /* ========================================
     FORM IMPROVEMENTS (prevent iOS zoom)
     ======================================== */

  /* All form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  textarea,
  select {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 16px !important; /* Prevent iOS zoom on focus */
  }

  /* Contact Form 7 specific */
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="url"],
  .wpcf7-form textarea {
    width: 100%;
    font-size: 16px !important;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--cc-border);
    transition: border-color 0.2s ease;
  }

  .wpcf7-form input:focus,
  .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--cc-accent);
    box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.1);
  }

  .wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
  }

  .wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .wpcf7-form .wpcf7-submit {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 1rem;
  }

  /* Error messages more visible */
  .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.25rem;
    display: block;
  }

  .wpcf7-validation-errors {
    background: #fee2e2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .cc-projects-list,
  .cc-projects-list .pc-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .cc-projects-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    column-gap: 0;
  }

  .cc-project-card {
    padding: clamp(1rem, 5vw, 1.4rem);
    margin-bottom: 0.4rem;
  }

  .cc-project-card__media img {
    height: 140px;
  }
}

@media (max-width: 1024px) {
  .cc-projects-grid {
    grid-template-columns: 1fr;
  }

  .cc-project-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ------------------------------------------------------------ */
/* Single Project / Blog post */
.cc-project-hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.cc-project-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.8rem);
  align-items: center;
}

.cc-project-hero__text h1 {
  margin-bottom: 0.75rem;
}

.cc-project-hero__text p {
  color: #4d4d4d;
}

.cc-project-hero__media {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.18);
}

.cc-project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.cc-project-content {
  line-height: 1.8;
  color: #3f3f3f;
}

.cc-project-content img {
  border-radius: 20px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

.cc-project-gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.cc-project-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.cc-project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-project-slider {
  position: relative;
  padding: 0 3rem;
}

.cc-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 0.5rem;
  scroll-behavior: smooth;
}

.cc-carousel__slide {
  flex: 0 0 70%;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.cc-carousel__slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  cursor: zoom-in;
}

.cc-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(17,17,17,0.85);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cc-carousel__nav span {
  font-size: 1.4rem;
  line-height: 1;
}

.cc-carousel__nav--prev { left: 0; }
.cc-carousel__nav--next { right: 0; }

.cc-carousel__nav:hover,
.cc-carousel__nav:focus {
  opacity: 0.85;
}

.cc-project-gallery--standalone {
  padding: 0;
}

.cc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: auto;
  z-index: 9999;
}

.cc-lightbox__figure {
  position: relative;
  margin: 0;
  width: min(92vw, 1100px);
  max-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 72px;
}

.cc-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  transition: transform 0.2s ease-in-out;
  transform-origin: center;
}

.cc-lightbox[hidden] {
  display: none !important;
}

.cc-lightbox__controls {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
}

.cc-lightbox__controls button {
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-lightbox__controls button[data-lightbox-zoom-reset] {
  min-width: 72px;
  padding: 0 12px;
  justify-content: center;
}

.cc-lightbox__controls button:focus,
.cc-lightbox__controls button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}

.cc-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.cc-lightbox__nav--prev { left: clamp(12px, 4vw, 28px); }
.cc-lightbox__nav--next { right: clamp(12px, 4vw, 28px); }

.cc-lightbox__nav:focus,
.cc-lightbox__nav:hover {
  background: rgba(0,0,0,0.75);
}

.cc-lightbox__close {
  position: fixed;
  top: clamp(12px, 3vw, 18px);
  right: clamp(12px, 3vw, 18px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.cc-lightbox__backdrop {
  position: fixed;
  inset: 0;
}

.cc-project-aside__card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cc-project-aside__card li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cc-project-aside__card span {
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cc-project-aside__card strong {
  font-size: 1.05rem;
  color: #1d1d1d;
}

@media (max-width: 960px) {
  .cc-project-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cc-catalog-list .woocommerce {
  width: 100%;
}

.cc-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}

.cc-shop-toolbar .woocommerce-result-count {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.cc-shop-toolbar .woocommerce-ordering select {
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  background: #fff;
}

.cc-catalog-loop ul.products {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.cc-catalog-loop ul.products li.product,
.cc-catalog-loop ul.products li.product-category {
  margin: 0;
  list-style: none;
}

.cc-product-card__inner,
.cc-category-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
  min-height: clamp(320px, 36vw, 360px);
}

.cc-product-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cc-product-card__media img,
.cc-category-card__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.cc-product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--cc-bg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-product-card__media .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cc-accent);
  color: #111;
  padding: 0.25rem 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-product-card__body h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  min-height: 2.6em;
}

.cc-product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  flex: 1 1 auto;
}

.cc-product-card__meta .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cc-mid);
}

.cc-product-card__meta .price del {
  color: #9a9a9a;
  font-weight: 500;
}

.cc-product-card__meta .star-rating {
  font-size: 0.85rem;
  color: #f8bb00;
}

.cc-product-card__actions {
  margin-top: auto;
  width: 100%;
}

.cc-product-card__actions .button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-radius: 12px;
  background: var(--cc-accent);
  color: #111;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-category-card__body h2 {
  margin-bottom: 0.2rem;
}

.cc-category-card__body .count,
.cc-category-card__body mark.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.15rem 0.6rem;
  background: var(--cc-bg);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

.cc-category-card__inner a {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
  height: 100%;
}

.related ul.products li.product,
.upsells ul.products li.product {
  display: flex;
  height: 100%;
  float: none !important;
  margin: 0 !important;
  width: auto !important;
  clear: none !important;
}

.cc-product-details .related ul.products li.product,
.cc-product-details .upsells ul.products li.product {
  flex: 1 1 min(240px, 24%);
  max-width: calc(25% - clamp(1rem, 2vw, 1.6rem));
  padding: 0;
}

@media (max-width: 1024px) {
  .cc-product-details .related ul.products li.product,
  .cc-product-details .upsells ul.products li.product {
    flex-basis: calc(50% - clamp(1rem, 2vw, 1.6rem));
    max-width: calc(50% - clamp(1rem, 2vw, 1.6rem));
  }
}

@media (max-width: 640px) {
  .cc-product-details .related ul.products,
  .cc-product-details .upsells ul.products {
    display: block;
    gap: 1.2rem;
  }

  .cc-product-details .related ul.products li.product,
  .cc-product-details .upsells ul.products li.product {
    display: block;
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1.2rem !important;
  }

  .cc-product-details .related .cc-product-card__inner,
  .cc-product-details .upsells .cc-product-card__inner {
    min-height: 320px;
    height: auto;
    justify-content: space-between;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(1.2rem, 3vw, 1.5rem);
    width: 100%;
    box-sizing: border-box;
  }

  .cc-product-details .related .cc-product-card__media,
  .cc-product-details .upsells .cc-product-card__media {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
  }

  .cc-product-details .related .cc-product-card__media img,
  .cc-product-details .upsells .cc-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cc-product-details .related .cc-product-card__body h2,
  .cc-product-details .upsells .cc-product-card__body h2 {
    min-height: auto;
  }
}

.cc-product-details .related .cc-product-card__inner,
.cc-product-details .upsells .cc-product-card__inner {
  min-height: clamp(260px, 32vw, 320px);
  height: auto;
  padding: clamp(1.35rem, 2.2vw, 1.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cc-product-details .related .cc-product-card__body,
.cc-product-details .upsells .cc-product-card__body {
  align-items: flex-start;
  gap: 0.65rem;
}

.cc-catalog-loop nav.woocommerce-pagination {
  margin-top: 2rem;
}

.cc-catalog-loop nav.woocommerce-pagination ul {
  border: none;
  gap: 0.4rem;
}

.cc-catalog-loop nav.woocommerce-pagination li {
  border: none;
}

.cc-catalog-loop nav.woocommerce-pagination a,
.cc-catalog-loop nav.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--cc-border);
}

.cc-catalog-loop nav.woocommerce-pagination span.current {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: #111;
}

@media (max-width: 1024px) {
  .cc-catalog-loop ul.products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .cc-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-shop-toolbar .woocommerce-ordering {
    width: 100%;
  }

  .cc-shop-toolbar .woocommerce-ordering select {
    width: 100%;
  }

  .cc-catalog-loop ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cc-product-card__inner,
  .cc-category-card__inner {
    min-height: 300px;
  }

  .cc-product-details .related ul.products,
  .cc-product-details .upsells ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    grid-auto-rows: minmax(220px, auto);
  }

  .cc-product-details .related .cc-product-card__inner,
  .cc-product-details .upsells .cc-product-card__inner {
    height: auto;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .pc-container {
    padding: 0 clamp(1rem, 5vw, 1.4rem);
  }

  .cc-section {
    padding: clamp(1.8rem, 7vw, 2.4rem) 0;
  }

  .pc-card {
    padding: clamp(1.05rem, 4vw, 1.5rem);
    border-radius: 12px;
  }

  h1,
  h2,
  .cc-heading {
    line-height: 1.2;
  }

  h1,
  .cc-heading {
    font-size: clamp(1.6rem, 6vw, 2.05rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  .wp-block-button__link {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .cc-hero {
    --cc-hero-height: 420px;
  }

  .cc-hero .pc-container,
  .cc-projects-hero .pc-container {
    padding-top: clamp(1.8rem, 6vw, 2.4rem);
    padding-bottom: clamp(1.8rem, 6vw, 2.4rem);
    max-width: 640px;
  }

  .cc-hero h1,
  .cc-projects-hero h1 {
    font-size: clamp(1.05rem, 3.6vw, 1.3rem);
    margin-bottom: 0.7rem;
  }

  .cc-hero p,
  .cc-projects-hero p {
    font-size: clamp(0.9rem, 3.4vw, 1rem);
    max-width: 30ch;
    margin-bottom: 1rem;
  }

  .cc-servicos-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cc-servicos-cta .wp-block-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .cc-contact-cta__stack h3 {
    font-size: clamp(1.55rem, 6vw, 1.9rem);
  }

  .cc-contact-cta__note {
    font-size: 0.95rem;
  }

  .wp-block-cover.is-dark:not(.cc-hero) {
    min-height: 60vh !important;
  }

  .cc-nav__toggle-icon {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 440px) {
  .cc-header__logo img {
    max-width: 150px;
  }

  .cc-hero {
    --cc-hero-height: 380px;
  }

  .cc-hero h1,
  .cc-projects-hero h1 {
    font-size: clamp(1rem, 3.2vw, 1.2rem);
  }

  .cc-hero p,
  .cc-projects-hero p {
    font-size: 0.9rem;
    max-width: 28ch;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }
}

/* Force tighter hero + header on very small screens */
@media (max-width: 600px) {
  .cc-header__inner {
    padding: 0.75rem 0;
  }

  .cc-header__logo img {
    max-width: 160px;
  }

  .cc-hero {
    padding-block: clamp(0.6rem, 4vw, 1.1rem);
  }

  .cc-hero > .wp-block-cover__inner-container {
    padding: clamp(1.2rem, 5vw, 1.6rem) 0;
  }

  .cc-hero .pc-container {
    gap: clamp(0.6rem, 3vw, 0.9rem);
  }

  .cc-hero .cc-dash {
    width: 46px;
    height: 5px;
    margin-bottom: 0.6rem;
  }

  .cc-hero h1 {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem) !important;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
  }

  .cc-hero p {
    font-size: clamp(0.88rem, 3vw, 0.98rem) !important;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
  }

  .cc-hero .wp-block-button__link {
    padding: 0.65rem 1.05rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* Additional mobile polish (phones only) */
@media (max-width: 820px) {
  /* Avoid stretched spaces on small screens */
  .cc-feature-right__content,
  .cc-feature-right__content p {
    text-align: left;
  }

  .cc-feature-right__content p {
    font-size: 1rem;
    line-height: 1.7;
    hyphens: auto;
  }

  .cc-contact .cc-form .wpcf7-form {
    row-gap: clamp(0.75rem, 3vw, 1.05rem);
  }

  /* Hamburger icon z-index above overlay */
  .cc-nav__toggle {
    z-index: 1100;
  }
}

@media (max-width: 640px) {
  /* CTA buttons easier to tap on mobile */
  .cc-feature-right__cta {
    gap: 0.85rem;
  }

  .cc-feature-right__cta .wp-block-buttons,
  .cc-servicos-cta .wp-block-buttons {
    width: 100%;
  }

  .cc-feature-right__cta .wp-block-button__link,
  .cc-servicos-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  /* Service cards: tighter spacing so they fit better on phones */
  .cc-services {
    padding-top: clamp(1.2rem, 5vw, 1.8rem) !important;
    padding-bottom: clamp(3rem, 10vw, 4.4rem) !important;
  }

  .cc-service-card {
    padding: clamp(1.2rem, 5vw, 1.6rem);
    gap: 0.9rem;
  }

  .cc-service-card figure {
    width: 78px;
  }

  /* Contact block: reduce side padding and keep inputs/button full width */
  .cc-contact__left,
  .cc-contact__right {
    padding: clamp(1.1rem, 6vw, 1.5rem);
  }

  .cc-contact__left-inner {
    gap: clamp(0.85rem, 4vw, 1.2rem);
  }

  .cc-contact .wpcf7-submit {
    width: 100%;
  }

  .cc-contact-info {
    padding: 0 clamp(0.4rem, 6vw, 1.2rem);
  }

  .cc-contact-info__item {
    padding-left: 2.15rem;
  }

  .cc-contact-info__item::before {
    width: 1.5rem;
    height: 1.5rem;
    top: 0.2rem;
  }

  /* Smaller saw icon on Sobre Nós */
  .cc-about-saw__blade {
    width: 118px;
    height: 118px;
    transform: translate(-38px, -50%);
  }

  .cc-about-saw__blade img {
    width: 118px;
    height: 118px;
  }

  .cc-about-saw {
    transform: translateY(-55%);
  }
}

/* ========================================
   TABLET BREAKPOINT (834px) - iPad Portrait
   ======================================== */
@media (max-width: 834px) {

  .cc-hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  /* Services grid - 2 columns on tablet */
  .cc-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* WooCommerce products - 2 columns */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Testimonials - 2 columns */
  .cc-testimonials {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Projects grid - 2 columns */
  .cc-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   LARGE PHONE BREAKPOINT (480px)
   ======================================== */
@media (max-width: 480px) {
  /* Container padding reduction */
  .pc-container {
    padding: 0 clamp(1rem, 3vw, 1.6rem);
  }

  /* Section spacing */
  .cc-section {
    padding: clamp(2rem, 5vw, 3rem) 0;
  }

  /* Typography scaling */
  h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  /* Buttons stack full width */
  .wp-block-buttons {
    flex-direction: column;
    width: 100%;
  }

  .wp-block-button {
    width: 100%;
    max-width: 100%;
  }

  .wp-block-button__link {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Hero height adjustment for small screens */
  .cc-hero {
    --cc-hero-height: clamp(380px, 55vh, 450px);
  }

  .cc-hero h1 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .cc-hero p {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
  }
}

/* ========================================
   EXTRA SMALL PHONE (360px) - Galaxy S8/S9
   ======================================== */
@media (max-width: 360px) {
  /* Further reduce padding */
  .pc-container {
    padding: 0 1rem;
  }

  /* Logo scaling */
  .cc-header__logo img {
    max-width: 130px;
  }

  /* Carousel adjustments */
  .cc-carousel__slide {
    flex-basis: 90%;
  }

  .cc-carousel__nav {
    width: 40px;
    height: 40px;
  }

  /* Typography minimum sizes */
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

/* ========================================
   MOBILE HORIZONTAL SCROLL PREVENTION
   ======================================== */
@media (max-width: 960px) {
  /* Prevent any element from causing horizontal overflow */
  * {
    max-width: 100%;
  }

  img {
    height: auto;
  }

  /* Override for layout containers that need to be wider */
  .pc-container,
  .wp-block-group,
  .cc-section,
  .cc-nav__list,
  .cc-nav__overlay {
    max-width: none;
  }

  /* Ensure cover blocks don't overflow */
  .wp-block-cover__inner-container {
    overflow: hidden;
    box-sizing: border-box;
  }

  .wp-block-cover__inner-container .pc-container {
    overflow: hidden;
  }
}

/* ========================================
   SAFE AREA INSETS FOR NOTCHED DEVICES
   ======================================== */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .cc-header {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .cc-nav__list {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Hotfixes (2026-01-31)
   - Burger icon alignment
   - Home CTA full-width + rounded background on mobile
   - Contact map flush to screen edges on mobile
   ========================================================= */

/* Burger icon: SVG-based */

/* Home CTA: rounded corners everywhere */
.cc-feature-right__cta {
  border-radius: 18px;
}

@media (max-width: 960px) {
  /* Stretch CTA to container width and keep centred */
  .cc-feature-right__cta {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  /* Remove side padding so the map and CTA touch the edges */
  .cc-contact__right {
    padding-left: 0;
    padding-right: 0;
  }

  .cc-contact__mapcard,
  .cc-map {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Contact hero: let the card breathe on mobile */
@media (max-width: 960px) {
  .cc-hero.cc-contact-hero {
    height: auto;
    min-height: auto !important;
    padding-block: clamp(2.4rem, 8vw, 3.4rem);
  }

  .cc-hero.cc-contact-hero .wp-block-cover__inner-container,
  .cc-hero.cc-contact-hero .pc-container {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .cc-contact-hero__grid {
    align-items: stretch;
  }

  .cc-contact-card {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Services hero card (O que fazemos): prevent clipping */
  .cc-hero.cc-servicos-hero {
    height: auto;
    min-height: auto !important;
    padding-block: clamp(2.4rem, 8vw, 3.4rem);
  }

  .cc-hero.cc-servicos-hero .wp-block-cover__inner-container,
  .cc-hero.cc-servicos-hero .pc-container {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
}

/* Center yellow bars on mobile (contact + sobre nós) */
@media (max-width: 640px) {
  .cc-hero .cc-dash,
  .cc-contact-hero__bar,
  .cc-about-hero__bar {
    margin-left: auto;
    margin-right: auto;
  }

  .cc-contact-hero__heading,
  .cc-contact-hero__copy {
    text-align: center;
    align-items: center;
  }
}

/* Smaller saw on Sobre Nós for phones */
@media (max-width: 640px) {
  .cc-about-saw__blade,
  .cc-about-saw__blade img {
    width: 90px;
    height: 90px;
  }
  .cc-about-saw__blade {
    transform: translate(-28px, -50%);
  }
}
