/* ============================================================
   Cobbo — Public site brand-refinement layer
   Loaded AFTER style.css (Qleviq template) so these win on
   equal/greater specificity. No structural changes — this only
   tightens color, type, spacing, radii, shadows, and adds the
   restrained invoice/ledger signature (crimson top-accent on
   cards, soft hover-lift) from invoice-landing.css.
   Tokens mirror public/assets/invoice-landing.css :root.
   ============================================================ */

:root {
  --cobbo-crimson:        #8B1313;
  --cobbo-crimson-hover:  #630F0E;
  --cobbo-crimson-active: #540C0D;
  --cobbo-crimson-tint:   #FBEAEA;

  --cobbo-navy:           #1A1A2E;
  --cobbo-black:          #0C0D12;
  --cobbo-slate:          #15283A;

  --cobbo-fg:             #15283A;
  --cobbo-fg-body:        #3F444B;
  --cobbo-fg-muted:       #6B7280;
  --cobbo-fg-faint:       #9CA3AF;

  --cobbo-bg:             #FFFFFF;
  --cobbo-bg-alt:         #F4F4F5;
  --cobbo-bg-soft:        #F9FAFB;
  --cobbo-border:         #E5E7EB;
  --cobbo-border-strong:  #D1D5DB;
  --cobbo-paper:          #FAF7F1;
  --cobbo-paper-rule:     rgba(139, 19, 19, 0.05);

  --cobbo-font-display:   "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cobbo-font-body:      "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --cobbo-radius-sm: 8px;
  --cobbo-radius-md: 12px;
  --cobbo-radius-lg: 16px;
  --cobbo-radius-pill: 999px;

  --cobbo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --cobbo-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --cobbo-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --cobbo-shadow-cta: 0 4px 16px rgba(139, 19, 19, 0.35);
  --cobbo-shadow-focus: 0 0 0 3px rgba(139, 19, 19, 0.25);

  --cobbo-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cobbo-ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Rendering polish ---------- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Accessible focus (quality floor) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.primary-btn1:focus-visible {
  outline: none;
  box-shadow: var(--cobbo-shadow-focus);
  border-radius: var(--cobbo-radius-sm);
}

/* ============================================================
   Buttons — pill shape, hover lift, brand shadow.
   Scoped to #smooth-content so the shared header/footer chrome
   (which lives outside #smooth-content) stays exactly as the
   template shipped it — per "leave header/footer as-is".
   ============================================================ */
#smooth-content .primary-btn1 {
  border-radius: var(--cobbo-radius-pill);
  padding: 18px 36px;
  transition: transform 200ms var(--cobbo-ease),
              box-shadow 200ms var(--cobbo-ease),
              background-color 200ms var(--cobbo-ease);
  will-change: transform;
}
#smooth-content .primary-btn1:not(.two):not(.transparent) {
  box-shadow: 0 2px 10px rgba(139, 19, 19, 0.22);
}
#smooth-content .primary-btn1:hover {
  transform: translateY(-2px);
}
#smooth-content .primary-btn1:not(.two):not(.transparent):hover {
  background-color: var(--cobbo-crimson-hover);
  box-shadow: var(--cobbo-shadow-cta);
}
#smooth-content .primary-btn1 span {
  letter-spacing: 0.04em;
}

/* ============================================================
   Section eyebrow + heading rhythm
   ============================================================ */
.section-title > span {
  border-radius: var(--cobbo-radius-pill);
  padding: 7px 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.section-title > span.black {
  background-color: var(--cobbo-navy);
}
.section-title h2 {
  letter-spacing: -0.01em;
}

/* ============================================================
   Signature: crimson top-accent + soft hover-lift on cards.
   Applied to the template's marketing card surfaces. Match the
   template's nested specificity so these take effect.
   ============================================================ */

/* Home — "what sets us apart" feature cards */
.home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list {
  position: relative;
  border-radius: var(--cobbo-radius-lg);
  transition: transform 250ms var(--cobbo-ease-out-quint),
              box-shadow 250ms var(--cobbo-ease-out-quint);
}
.home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cobbo-crimson);
  border-radius: var(--cobbo-radius-lg) var(--cobbo-radius-lg) 0 0;
  opacity: 0;
  transition: opacity 250ms var(--cobbo-ease);
}
.home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list:hover {
  transform: translateY(-4px);
  box-shadow: var(--cobbo-shadow-lg);
}
.home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list:hover::before {
  opacity: 1;
}

/* Home — about list items: gentle lift */
.home1-about-section .about-list-wrap .single-about-list {
  transition: transform 250ms var(--cobbo-ease-out-quint);
}
.home1-about-section .about-list-wrap .single-about-list:hover {
  transform: translateX(4px);
}

/* Projects / Products grid — image zoom + crimson accent on hover */
.home2-project-section .project-card {
  overflow: hidden;
  border-radius: var(--cobbo-radius-md);
  box-shadow: var(--cobbo-shadow-md);
  transition: transform 300ms var(--cobbo-ease-out-quint),
              box-shadow 300ms var(--cobbo-ease-out-quint);
}
.home2-project-section .project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cobbo-crimson);
  z-index: 10;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--cobbo-ease-out-quint);
}
.home2-project-section .project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cobbo-shadow-lg);
}
.home2-project-section .project-card:hover::after {
  transform: scaleX(1);
}
.home2-project-section .project-card img {
  transition: transform 500ms var(--cobbo-ease-out-quint);
}
.home2-project-section .project-card:hover img {
  transform: scale(1.04);
}

/* ============================================================
   Breadcrumb banner — keep the template's hero image but tidy
   the chip and tighten the heading.
   ============================================================ */
.breadcrumb-section .banner-content h1 {
  letter-spacing: -0.01em;
  font-weight: 700;
}
.breadcrumb-section .banner-content .breadcrumb-list {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Legal pages (policy / terms) already use the template's
   .terms-and-conditions styling, which renders clean and
   on-brand — no override needed there. */

/* ============================================================
   Respect reduced-motion (quality floor)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #smooth-content .primary-btn1,
  .home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list,
  .home1-about-section .about-list-wrap .single-about-list,
  .home2-project-section .project-card,
  .home2-project-section .project-card img {
    transition: none !important;
  }
  #smooth-content .primary-btn1:hover,
  .home6-ai-feature-section .feature-list-wrapper .feature-list-wrap .single-feature-list:hover,
  .home1-about-section .about-list-wrap .single-about-list:hover,
  .home2-project-section .project-card:hover,
  .home2-project-section .project-card:hover img {
    transform: none !important;
  }
}
