/* ==========================================================================
   Google Ads landing pages (page-web-design-south-dublin.php,
   page-wordpress-website-design-dublin.php, page-website-redesign-dublin.php)
   Enqueued alongside main.css + contact.css (form styles live in contact.css).
   ========================================================================== */

/* One shared content container for every section — same width/padding as
   the site shell (.ftr-inner etc.), so all the LP sections line up. */
.lp-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* --- Hero — cream grid fading to page cream --- */

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--space-section) * 2) 0 var(--space-section);
    background-image:
        linear-gradient(#f0ead9 1px, transparent 1px),
        linear-gradient(90deg, #f0ead9 1px, transparent 1px);
    background-size: 60px 60px;
}

.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 30%, var(--bg) 96%);
}

.lp-hero .lp-inner {
    position: relative;
    z-index: 1;
}

.lp-h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    line-height: 1.15;
    max-width: 15em;
    margin: 0.5rem 0 1rem;
}

.lp-h1 .turn {
    font-style: italic;
    color: var(--color-pink);
}

.lp-sub {
    font-size: var(--text-lg);
    color: var(--muted);
    line-height: 1.6;
    max-width: 58ch;
    margin-bottom: var(--space-md);
}

/* Hero iso column: absolute, right of the H1, centred where the homepage
   hero's right column sits (75% across the --max-w content area — the calc
   tracks the content centring at any viewport, hitting ~0 offset at 1024px).
   Desktop-only — below 1024px the hero stays text-first and the static
   img under the CTA takes over. */

@media (min-width: 1024px) {
    .lp-hero-iso {
        position: absolute;
        top: 50%;
        right: calc(50% - 515px);
        width: 430px;
        height: 559px;
        transform: translateY(-50%) rotate(6deg);
        pointer-events: none;
    }

    .lp-hero--iso .lp-h1,
    .lp-hero--iso .lp-sub {
        max-width: 34rem;
    }
}

/* Below the desktop breakpoint the illustration moves under the CTA as a
   plain img instead — same placement as the homepage hero at ≤768px.
   Same URL as the desktop background, so it's one cached fetch either way. */
.lp-hero-iso-m {
    display: none;
}

@media (max-width: 1023px) {
    .lp-hero-iso-m {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 32px auto 0;
    }
}

/* --- Solid brand-colour heroes (mock: LP Hero Restructure, artboards D–G).
   One colour per LP: blue (dublin core), green (south dublin), pink
   (redesign), yellow (wordpress smb — dark text). The sheen is a top-left
   white radial over a deepening 160° gradient of the base colour. The iso
   column runs the shared hero-iso.js engine, recoloured per page via
   window.VISIBLE_ISO; below 1024px a tinted static img shows instead. --- */

.lp-hero--solid::after {
    content: none;   /* no fade-to-cream veil over a solid colour */
}

.lp-hero--solid .section-label { color: rgba(255, 255, 255, 0.9); }

.lp-hero--solid .lp-h1,
.lp-hero--solid .lp-sub { color: #fff; }

.lp-hero--solid .lp-h1 em,
.lp-hero--solid .lp-h1 .turn {
    font-style: italic;
    color: var(--color-yellow);
}

/* CTA flips to white-on-colour (dark-on-yellow on the yellow LP); the
   :hover rules re-assert bg/colour to neutralise main.css's colour-swap
   hover — hover = darken 8%, no swap. Base rules before hovers, both
   variants, for no-descending-specificity. */
.lp-hero--solid .btn {
    background: #fff;
    color: var(--text);
}

.lp-hero--yellow .btn {
    background: rgba(28, 28, 28, 0.8);
    color: #fff;
}

.lp-hero--solid .btn:hover {
    background: #fff;
    color: var(--text);
    opacity: 1;
    filter: brightness(0.92);
}

.lp-hero--yellow .btn:hover {
    background: rgba(28, 28, 28, 0.8);
    color: #fff;
}

.lp-hero--blue {
    background:
        radial-gradient(130% 110% at 18% 0%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
        linear-gradient(160deg, var(--color-blue), color-mix(in oklab, var(--color-blue) 72%, #0e4b61));
}

.lp-hero--green {
    background:
        radial-gradient(130% 110% at 18% 0%, rgba(255, 255, 255, 0.25) 0%, transparent 55%),
        linear-gradient(160deg, var(--color-green), color-mix(in oklab, var(--color-green) 72%, #0a4d00));
}

.lp-hero--pink {
    background:
        radial-gradient(130% 110% at 18% 0%, rgba(255, 255, 255, 0.26) 0%, transparent 55%),
        linear-gradient(160deg, var(--color-pink), color-mix(in oklab, var(--color-pink) 72%, #5e1637));
}

/* yellow — dark text variant */
.lp-hero--yellow {
    background:
        radial-gradient(130% 110% at 18% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
        linear-gradient(160deg, var(--color-yellow), color-mix(in oklab, var(--color-yellow) 78%, #8a911f));
}

.lp-hero--yellow .section-label,
.lp-hero--yellow .lp-h1,
.lp-hero--yellow .lp-sub { color: rgba(28, 28, 28, 0.8); }

.lp-hero--yellow .lp-h1 em,
.lp-hero--yellow .lp-h1 .turn { color: var(--color-pink); }

/* Animated iso layers (desktop). The tinted static svg paints as ::before
   (first frame — what reduced-motion/no-JS visitors keep); the engine
   draws into the svg above it, and :has() drops the static frame the
   moment cells exist. Below 1024px the whole layer is display:none —
   without it the empty svg still takes its viewBox height in flow and
   shoves the copy down. */
.lp-hero--solid .lp-hero-iso { display: none; }

@media (min-width: 1024px) {
    .lp-hero--solid .lp-hero-iso {
        display: block;
        transform: translateY(-50%);   /* rotation lives on the layers */
        opacity: 0.45;
    }

    .lp-hero--solid .lp-hero-iso::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("../img/hero-iso-static.svg") no-repeat center / contain;
        transform: rotate(5deg);       /* matches the engine's svg rotate */
        filter: brightness(0) invert(1);   /* white-tint */
    }

    /* black-on-yellow carries far more contrast than white-on-colour at the
       same opacity, so the yellow LP's grid runs lighter than the 0.45 */
    .lp-hero--yellow .lp-hero-iso { opacity: 0.28; }

    .lp-hero--yellow .lp-hero-iso::before {
        filter: brightness(0);         /* black-on-yellow */
        opacity: 0.85;
    }

    .lp-hero--solid .lp-hero-iso:has(svg *)::before { display: none; }

    .lp-hero--solid .lp-hero-iso svg {
        position: relative;
        width: 100%;
        height: 100%;
    }
}

/* Mobile static frame, tinted to match */
.lp-hero--solid .lp-hero-iso-m {
    filter: brightness(0) invert(1);
    opacity: 0.45;
}

.lp-hero--yellow .lp-hero-iso-m {
    filter: brightness(0);
    opacity: 0.28;
}

/* --- Hero CTA row — primary + secondary WhatsApp link. Single .lp-cta
   child on the other 4 LPs, so display:flex is a no-op there (no CLS
   risk); stacks full-width ≤860px, matching the site's other CTA-row
   breakpoint (.cta-band__buttons / main.css:890). --- */

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

@media (max-width: 860px) {
    .lp-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-cta .btn {
        justify-content: center;
    }
}

.btn__pip {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 1px;
}

/* Blue hero only: primary button reads brand blue instead of near-black
   text. Plain --color-blue on white only hits ~2.2:1, so it's darkened
   36% toward black — the minimum darkening that clears 4.5:1 (verified by
   WCAG calc, 4.5 exactly at 32%, 36% chosen for a safety margin ~5:1),
   derived from the token via color-mix so it tracks --color-blue if that
   ever changes. Secondary WhatsApp CTA reuses .btn's exact radius/height/
   arrow (visible_arrow()) rather than inventing another button shape. A
   plain white outline measured only ~2.7:1 against the gradient's actual
   rendered colour at the button's position (pixel-sampled, not eyeballed —
   the blue there is lighter than it looks against white text), so the
   ghost variant keeps a dark translucent scrim behind the white
   border/text to guarantee contrast wherever the gradient (and its
   top-left white radial highlight) puts the button. */
.lp-hero--blue .btn:not(.btn--wa-ghost),
.lp-hero--blue .btn:not(.btn--wa-ghost):hover {
    color: color-mix(in srgb, var(--color-blue), black 36%);
}

/* inset box-shadow, not a real border — a real 1px border adds 2px to an
   auto-height element regardless of box-sizing, breaking the height match
   with the primary .btn. */
.lp-hero--blue .btn--wa-ghost {
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 0 0 1px #fff;
    color: #fff;
}

.lp-hero--blue .btn--wa-ghost .btn__pip { background: #fff; }

.lp-hero--blue .btn--wa-ghost:hover {
    background: #fff;
    color: color-mix(in srgb, var(--color-blue), black 36%);
}

.lp-hero--blue .btn--wa-ghost:hover .btn__pip { background: color-mix(in srgb, var(--color-blue), black 36%); }

/* --- Stat strip --- */

.lp-stats {
    background: #fff;
    border-block: 1px solid var(--border);
    padding: 1.4rem 0;
}

/* Same 3-col grid + gap as .lp-benefit-list so the stat columns sit
   exactly over the tick columns; dividers centred in the gaps. */
.lp-stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lp-stat + .lp-stat {
    border-left: 1px solid var(--border);
    margin-left: calc(var(--space-md) / -2);
    padding-left: calc(var(--space-md) / 2);
}

.lp-stat__num {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    line-height: 1.1;
}

.lp-stat__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Benefits — green square pips --- */

.lp-benefits {
    background: #fff;
    padding: var(--space-section) 0;
}

.lp-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.lp-benefit-list li {
    display: flex;
    gap: 12px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.lp-benefit-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: var(--color-green);
    border-radius: 1px;
    margin-top: 7px;
}

@media (max-width: 860px) {
    .lp-benefit-list { grid-template-columns: 1fr; }
}

/* --- Testimonial — cream who-band (iso backdrop markup comes from
   visible_who_grids(); the .who-iso rules mirror services.css, which
   isn't enqueued on LPs) --- */

.lp-quote {
    position: relative;
    background: var(--bg);
    border-block: 1px solid var(--border);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.lp-quote .who-iso {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.lp-quote .who-iso__i {
    position: absolute;
    height: auto;
}

.lp-quote-inner {
    position: relative;
    z-index: 1;
}

.lp-quote-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.lp-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    line-height: 1.6;
    max-width: 32em;
    margin: 0 0 1.25rem;
}

.lp-quote-attr {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.lp-quote-attr::before {
    content: "";
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: var(--color-pink);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .lp-quote { padding: var(--space-md) 0; }

    /* small screens: keep only the main right-edge grid plus the tucked
       left-corner one, same trim as services.css */
    .lp-quote .who-iso__i { display: none; }

    .lp-quote .who-iso__i:first-child {
        display: block;
        width: 280px !important;
        opacity: 0.55 !important;
    }

    .lp-quote .who-iso__i:nth-child(4) {
        display: block;
        width: 112px !important;
        left: -40px !important;
        bottom: -35px !important;
        opacity: 0.55 !important;
    }
}

/* --- Form — two-column --- */

.lp-form {
    padding: var(--space-section) 0 var(--space-xl);
}

.lp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

/* contact.css places .contact-form-col into the contact page's named grid
   area; neutralise that here or it lands in an implicit track */
.lp-form-grid .contact-form-col {
    grid-area: auto;
}

.lp-form-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    margin: 0.25rem 0 1rem;
}

.lp-form-blurb {
    font-size: var(--text-base);
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .lp-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ==========================================================================
   LP content sections (work strip, process, pricing + FAQ, 2-up quotes,
   lighter form) — markup from includes/lp-sections.php + the LP templates.
   ========================================================================== */

/* Shared serif section heading + heading row with a right-aligned link */

.sec__t {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.4vw, 1.75rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.lp-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
}

.lp-sec-link {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-green-text);
    white-space: nowrap;
}

.lp-sec-link:hover { text-decoration: underline; }

/* --- Work strip — one archive-style gradient pair (drow design from
   project.css) with two rows; the plate gradient starts on the LP's hero
   colour. Layout comes from project.css; only spacing tweaks live here. --- */

.lp-work {
    padding: var(--space-section) 0 0;
}

.lp-work .work-rows {
    margin-bottom: var(--space-section);
}

/* --- Process — numbered steps on a white band --- */

.lp-process {
    background: #fff;
    border-block: 1px solid var(--border);
    padding: var(--space-section) 0;
}

.lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    counter-reset: none;
}

.lp-step__num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-green-text);
    margin-bottom: 10px;
}

.lp-step__t {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 8px;
}

.lp-step__d {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 860px) {
    .lp-steps { grid-template-columns: 1fr; }
}

/* --- Quote band → two testimonials side by side --- */

.lp-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.lp-quote-grid .lp-quote-text {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

@media (max-width: 860px) {
    .lp-quote-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* --- Pricing + FAQ --- */

.lp-pricefaq {
    padding: var(--space-section) 0;
}

.lp-pricefaq-intro {
    max-width: 68ch;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.lp-pricefaq-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
}

.lp-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.lp-price-row:first-child {
    border-top: 1px solid var(--border);
}

.lp-price-row__label {
    font-size: 0.95rem;
}

.lp-price-row__price {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    white-space: nowrap;
}

.lp-price-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 12px;
}

.lp-faq__t {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 1rem;
}

.lp-faq-row {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.lp-faq-q {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.lp-faq-a {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* Accordion variant — lp-sections.php renders details/summary instead of open
   rows when an LP passes more than five questions; same treatment as the
   pricing page's .pp-faq. */
details.lp-faq-row {
    padding: 0;
}

details.lp-faq-row:last-of-type {
    border-bottom: 1px solid var(--border);
}

details.lp-faq-row summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    margin: 0;
    padding: 14px 32px 14px 0;
}

details.lp-faq-row summary::-webkit-details-marker {
    display: none;
}

details.lp-faq-row summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-green);
}

details.lp-faq-row[open] summary::after {
    content: '\2212';
}

details.lp-faq-row summary:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

details.lp-faq-row .lp-faq-a {
    padding: 0 0 14px;
}

@media (max-width: 860px) {
    .lp-pricefaq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* --- Lighter form: reassurance ticks + budget note --- */

.lp-form-ticks {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-form-ticks li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

.lp-form-ticks li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: var(--color-green);
    border-radius: 1px;
    transform: translateY(-1px);
}

.lp-form-whatsapp {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-form-whatsapp:hover { color: var(--text); }

.lp-budget-note {
    font-size: 0.85rem;
    color: var(--muted);
}
