/**
 * AC Property V3 — responsive overrides (Phase 6).
 * Stacks sections, fluid gutters, clamp typography, WPBakery resets.
 */

/* WP adds .page to body on static front page — never hide the document */
body.acp-v3-shell {
  display: block !important;
}

:root {
  --acp-gutter: clamp(20px, 4.2vw, 56px);
  --acp-gutter-tight: clamp(16px, 3vw, 40px);
}

/* Page IDs from mockup → body classes from acp_v3_body_classes() */
body.home #page-home,
body.acp-page-home {
  /* hook for home-only rules */
}

body.acp-page-agents .hero-image-col,
#page-agents .hero-image-col {
  overflow: visible;
  transform: translateX(-200px);
  z-index: 0;
}

body.acp-page-agents .hero-image-col img,
#page-agents .hero-image-col img {
  width: 130%;
  max-width: none;
  mix-blend-mode: multiply;
  opacity: 0.75;
}

body.acp-page-agents .hero-content,
#page-agents .hero-content {
  position: relative;
  z-index: 1;
}

body.home .hero-with-image,
body.acp-page-home .hero-with-image,
#page-home .hero-with-image {
  align-items: stretch;
}

body.home .hero-image-col,
body.acp-page-home .hero-image-col,
#page-home .hero-image-col {
  align-items: stretch;
}

body.home .hero-image-col img,
body.acp-page-home .hero-image-col img,
#page-home .hero-image-col img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Shared horizontal rhythm */
body.acp-v3-shell .section,
body.acp-v3-shell .markets-v2,
body.acp-v3-shell .objection-panel,
body.acp-v3-shell .product-section,
body.acp-v3-shell .testimonials-wrap,
body.acp-v3-shell .logos-section,
body.acp-v3-shell .in-practice-section,
body.acp-v3-shell .agent-faq-section,
body.acp-v3-shell .addon-section,
body.acp-v3-shell .dev2-hero,
body.acp-v3-shell .dev2-build-section,
body.acp-v3-shell .dev2-included-section,
body.acp-v3-shell .dev2-pricing-band,
body.acp-v3-shell .dev2-trusted-section,
body.acp-v3-shell .dev2-red-banner,
body.acp-v3-shell .hero-ps,
body.acp-v3-shell .ps-how-section,
body.acp-v3-shell .ps-wyg-section,
body.acp-v3-shell .ps-pricing-section,
body.acp-v3-shell .au-locations-strip,
body.acp-v3-shell .press-hero,
body.acp-v3-shell .press-filter,
body.acp-v3-shell .press-body,
body.acp-v3-shell .acp-v3-journal-wrap {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

.dev2-ipad-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev2-ipad-col img {
  width: 100%;
  display: block;
}

body.acp-v3-shell .dev2-red-banner {
  margin-left: clamp(16px, 6vw, 88px);
  margin-right: clamp(16px, 6vw, 88px);
}

/* About — full-bleed sections inside .main-wrapper (mockup uses internal padding, not a 1200px card) */
body.acp-v3-shell.acp-page-about .acp-v3-about-content,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .entry-content,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .wpb-content-wrapper,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .vc_row,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .vc_column_container,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .vc_column-inner,
body.acp-v3-shell.acp-page-about .acp-v3-about-content .wpb_wrapper {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.acp-v3-shell.acp-page-about .au-hero,
body.acp-v3-shell.acp-page-about .au-story,
body.acp-v3-shell.acp-page-about .au-founders,
body.acp-v3-shell.acp-page-about .au-founder-cards,
body.acp-v3-shell.acp-page-about .au-hero-left,
body.acp-v3-shell.acp-page-about .au-story-section-label,
body.acp-v3-shell.acp-page-about .au-still-true {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

body.acp-v3-shell.acp-page-about .au-hero-left {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

body.acp-v3-shell.acp-page-about .au-story-section-label,
body.acp-v3-shell.acp-page-about .au-founders .au-founders-section-label,
body.acp-v3-shell.acp-page-about .au-still-true {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

body.acp-v3-shell.acp-page-about .au-founders-grid {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

body.acp-v3-shell.acp-page-about .au-founder-cards {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

body.acp-v3-shell.acp-page-about .logos-section {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

/* Developers — full-bleed sections (mockup: padding on each band, not a centred card) */
body.acp-v3-shell.acp-page-developers .acp-shell.pigeon-container,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder.pigeon-container,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .entry-content,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .wpb-content-wrapper,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .vc_row,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .vc_column_container,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .vc_column-inner,
body.acp-v3-shell.acp-page-developers .acp-page-placeholder .wpb_wrapper {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.acp-v3-shell .hero-with-image {
  padding-left: var(--acp-gutter);
  padding-right: 0;
}

body.acp-v3-shell .secondary-bar {
  padding-left: var(--acp-gutter);
  padding-right: var(--acp-gutter);
}

/* Display headings — fluid type */
body.acp-v3-shell .hero-h1:not(.hero-h1-home),
body.acp-v3-shell .dev2-hero-h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -2.5px;
  line-height: 1;
}

body.acp-v3-shell .hero-h1-home {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
}

body.acp-v3-shell .product-heading,
body.acp-v3-shell .obj2-h2,
body.acp-v3-shell .in-practice-heading,
body.acp-v3-shell .addon-heading,
body.acp-v3-shell .au-hero-h1,
body.acp-v3-shell .ps-how-title {
  font-size: clamp(28px, 3.6vw, 42px);
}

/* Developers page section headings — mockup sizes */
body.acp-v3-shell .dev2-build-h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

body.acp-v3-shell .dev2-pricing-h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

body.acp-v3-shell .dev2-included-h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

body.acp-v3-shell .market-v2-title {
  font-size: clamp(22px, 2.8vw, 32px);
}

/* WPBakery / pigeon width resets inside V3 shell */
body.acp-v3-shell .acp-v3-page .vc_row,
body.acp-v3-shell .acp-v3-page .wpb_row,
body.acp-v3-shell .acp-v3-page .vc_column_container {
  margin-left: 0;
  margin-right: 0;
}

body.acp-v3-shell .acp-v3-page .vc_row[data-vc-full-width="true"] {
  left: 0 !important;
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}

body.acp-v3-shell .acp-v3-page .wpb_wrapper > p:empty {
  display: none;
}

/* ── 1100px ── */
@media (max-width: 1100px) {
  body.acp-page-agents .hero-image-col,
  #page-agents .hero-image-col {
    transform: translateX(-80px);
  }

  .markets-v2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .market-v2-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .market-v2-card:last-child {
    border-bottom: none;
  }

  .product-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-visual {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .in-practice-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .in-practice-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .in-practice-cards {
    grid-template-columns: 1fr;
  }

  .pricing-strip {
    flex-wrap: wrap;
    gap: 0;
  }

  .pricing-strip-price {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 8px;
  }

  .pricing-strip-divider {
    display: none;
  }

  .pricing-strip-feature {
    flex: 1 1 calc(50% - 1px);
    min-width: 200px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .addons-grid-v2 {
    grid-template-columns: 1fr;
  }

  .addon-card-v2 {
    grid-template-columns: 1fr;
  }

  .addon-image-col {
    min-height: 200px;
  }

  .dev2-build-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dev2-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dev2-feature:nth-child(3) {
    border-right: none;
  }

  .dev2-feature:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }

  .dev2-pricing-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dev2-red-banner-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  body.acp-page-about .au-story-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  body.acp-page-about .au-story-card:nth-child(2n) {
    border-right: none;
  }

  body.acp-page-about .au-story-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .hero-ps {
    grid-template-columns: 1fr;
  }

  .hero-ps-image {
    min-height: 280px;
    order: -1;
  }

  .hero-ps-content {
    padding: 20px;
  }

  .ps-wyg-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 0;
  }

  .ps-wyg-left {
    padding-bottom: 32px;
  }

  .ps-wyg-right {
    margin-left: 0;
    justify-content: center;
  }

  .ps-wyg-right img {
    width: 100%;
    max-width: 100%;
  }

  .ps-steps-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .ps-step-arrow {
    display: none;
  }
}

/* ── 900px — hero stacks ── */
@media (max-width: 900px) {
  body.acp-v3-shell .hero-with-image {
    grid-template-columns: 1fr;
    padding-right: var(--acp-gutter);
    gap: 28px;
  }

  body.acp-page-agents .hero-image-col,
  #page-agents .hero-image-col {
    transform: none;
    margin-top: 8px;
  }

  body.acp-page-agents .hero-image-col img,
  #page-agents .hero-image-col img {
    width: 100%;
    opacity: 1;
    mix-blend-mode: normal;
  }

  body.acp-page-about .au-hero {
    grid-template-columns: 1fr;
  }

  body.acp-page-about .au-hero-right {
    min-height: 280px;
  }

  .hero-image-col::before {
    width: 80px;
  }

  .hero-with-image .hero-content {
    padding-bottom: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.acp-v3-shell .dev2-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 0;
    background: none !important;
  }

  body.acp-v3-shell .dev2-hero::after {
    display: none;
  }

  body.acp-v3-shell .dev2-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    order: -1;
  }

  body.acp-v3-shell .dev2-hero-left {
    max-width: none;
    padding: 32px var(--acp-gutter) 48px;
  }

  .dev2-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dev2-feature {
    border-right: 1px solid var(--border);
  }

  .dev2-feature:nth-child(2n) {
    border-right: none;
  }

  body.acp-page-about .au-story-cards {
    grid-template-columns: 1fr;
  }

  body.acp-page-about .au-story-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  body.acp-page-about .au-story-card:last-child {
    border-bottom: none;
  }

  body.acp-page-about .au-still-true-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .objection-panel .obj2-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  #page-home .hero-cta-row,
  body.acp-page-home .hero-cta-row {
    flex-wrap: wrap;
  }

  #page-home .hero-cta-row .btn-primary,
  #page-home .hero-cta-row .btn-ghost,
  body.acp-page-home .hero-cta-row .btn-primary,
  body.acp-page-home .hero-cta-row .btn-ghost {
    white-space: normal;
  }
}

/* ── 760px ── */
@media (max-width: 760px) {
  .objection-panel {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .obj2-col {
    padding: 0;
    border-left: none;
  }

  .pricing-strip-feature {
    flex: 1 1 100%;
  }

  .jrnl {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .jrnl-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dev2-features-grid {
    grid-template-columns: 1fr;
  }

  .dev2-feature {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dev2-feature:last-child {
    border-bottom: none;
  }

  .dev2-red-actions {
    flex-direction: column;
    width: 100%;
  }

  .dev2-red-sep {
    display: none;
  }
}

/* ── 720px ── */
@media (max-width: 720px) {
  body.acp-v3-shell .hero-with-image {
    padding-top: 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat {
    padding: 0;
    border-left: none;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .press-article {
    flex-direction: column;
    gap: 4px;
  }

  .press-date {
    width: auto;
  }

  .logos-strip img {
    max-height: 90px;
  }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .pricing-strip-amount {
    font-size: clamp(32px, 8vw, 44px);
  }

  .ps-pricing-section {
    text-align: left;
  }

  .ps-pricing-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -3px;
    line-height: 1;
    margin: 10px 0 10px;
    margin-bottom: 20px;
  }

  .ps-trust-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    width: 100%;
    align-items: center;
  }

  .dev2-logos-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .dev2-logo-sep {
    display: none;
  }
}

/* Legacy hero stylesheet — avoid double layout on V3 pages */
body.acp-v3-shell .acp-hero--root {
  display: none !important;
}
