/*
Theme Name: Lancer Un Site Child
Theme URI: https://lancerun.site
Template: astra
Author: Lance
Author URI: https://lancerun.site
Description: Custom child theme for Lancer Un Site WordPress development services
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: lancerun-child
*/

/* ─── Global Brand Refinements (S02) ─────────────────────────────── */

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

/* Remove header bottom border */
.ast-primary-header-bar,
.main-header-bar {
    border-bottom: none !important;
}

/* Balanced headings */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* Tabular numbers for pricing */
.has-tabular-nums,
.pricing-card,
.landing-trust {
    font-variant-numeric: tabular-nums;
}

/* Subtle link transitions */
a {
    transition: color 0.2s ease;
}

/* Button refinements */
.wp-block-button__link,
.wp-element-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link:active,
.wp-element-button:active {
    transform: scale(0.96);
}

/* Brand accent selection */
::selection {
    background-color: var(--ast-global-color-0, #47af3b);
    color: #ffffff;
}

/* Subtle image outlines */
.wp-block-image img {
    outline: 1px solid rgba(0, 0, 0, 0.06);
    outline-offset: -1px;
}

/* Focus visible accessibility */
:focus-visible {
    outline: 2px solid var(--ast-global-color-0, #47af3b);
    outline-offset: 2px;
}

/* ─── Front Page: Hide Header + Page Title ───────────────────────── */

.home .ast-primary-header-bar,
.home .ast-above-header,
.home .ast-below-header,
.home #ast-desktop-header,
.home #ast-mobile-header,
.home .main-header-bar,
.home header.site-header,
.home .ast-header-break-point .ast-primary-header-bar {
    display: none !important;
}

.home .entry-header.ast-no-thumbnail {
    display: none !important;
}

/* ─── Front Page: Inline Logo + Switcher ─────────────────────────── */

.landing-top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 0;
}

.landing-top-bar .landing-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 0.75rem;
}

.landing-top-bar .landing-logo img {
    outline: none;
}

.landing-top-bar .lancerun-lang-switcher {
    margin-bottom: 0;
}

/* Tighten hero spacing when header is hidden and logo is inline */
.home .landing-hero {
    padding-top: 1rem !important;
}

/* ─── Hero Section ───────────────────────────────────────────────── */

.landing-hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.landing-hero h1 {
    font-size: clamp(2rem, 1.5rem + 3.75vw, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.landing-hero p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
    color: var(--ast-global-color-3, #3d3d37);
}

.landing-hero .wp-block-button {
    margin-top: 2rem;
}

.landing-hero .wp-block-button__link {
    background-color: var(--ast-global-color-0, #47af3b);
    color: #ffffff;
    padding: 0.875rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 6px;
}

.landing-hero .wp-block-button__link:hover {
    background-color: var(--ast-global-color-1, #3a9130);
}

/* ─── Trust Bar Section ──────────────────────────────────────────── */

.landing-trust {
    background-color: var(--ast-global-color-5, #f5f9f4);
    padding: 2.5rem 1.5rem;
}

.landing-trust .wp-block-columns {
    max-width: 900px;
    margin: 0 auto;
}

.landing-trust .wp-block-column {
    text-align: center;
    padding: 1rem;
}

.landing-trust h2,
.landing-trust h3,
.landing-trust h4 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    margin-bottom: 0.25rem;
    color: var(--ast-global-color-2, #1b1b18);
}

.landing-trust p {
    color: var(--ast-global-color-7, #6b7268);
    font-size: 0.9375rem;
    margin: 0;
}

/* ─── Packages Section ───────────────────────────────────────────── */

.landing-packages {
    padding: 4rem 1.5rem;
}

.landing-packages > h2,
.landing-packages > .wp-block-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.75rem);
}

/* Pricing cards */
.pricing-card {
    border: 1px solid var(--ast-global-color-6, #dde5db);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Featured tier */
.pricing-card--featured {
    border-color: var(--ast-global-color-0, #47af3b);
    border-width: 2px;
}

.pricing-card--featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ast-global-color-0, #47af3b);
    color: #ffffff;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    white-space: nowrap;
}

/* Language-scoped badge text */
.lang-en .pricing-card--featured::before {
    content: "MOST POPULAR";
}

.lang-fr .pricing-card--featured::before {
    content: "PLUS POPULAIRE";
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    font-weight: 300;
    color: var(--ast-global-color-2, #1b1b18);
    margin: 1rem 0;
}

.pricing-card .price-subtitle {
    color: var(--ast-global-color-7, #6b7268);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Checkmark list bullets */
.wp-block-column.pricing-card .wp-block-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.wp-block-column.pricing-card .wp-block-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.wp-block-column.pricing-card .wp-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ast-global-color-0, #47af3b);
    font-weight: 700;
    font-size: 1.1em;
}

.pricing-card .wp-block-button {
    margin-top: 1.5rem;
}

.pricing-card .wp-block-button__link {
    width: 100%;
    border-radius: 6px;
}

/* Retainer section */
.landing-packages .retainer-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--ast-global-color-6, #dde5db);
}

/* Hide the block separator between pricing cards and retainer section */
.landing-packages > .wp-block-separator {
    display: none;
}

.retainer-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.retainer-card {
    text-align: center;
    padding: 1.5rem;
}

.retainer-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.retainer-card .price {
    font-size: 1.75rem;
    font-weight: 300;
}

.retainer-card p {
    color: var(--ast-global-color-7, #6b7268);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ─── Portfolio Section ──────────────────────────────────────────── */

.landing-portfolio {
    background-color: var(--ast-global-color-5, #f5f9f4);
    padding: 4rem 1.5rem;
}

.landing-portfolio > h2,
.landing-portfolio > .wp-block-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-portfolio .wp-block-columns {
    gap: 2.5rem;
}

/* Second row of cards — clear vertical break between rows */
.landing-portfolio .wp-block-columns + .wp-block-columns {
    margin-top: 4rem;
}

.landing-portfolio .wp-block-column {
    overflow: hidden;
}

.landing-portfolio .wp-block-image {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.landing-portfolio .wp-block-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.landing-portfolio .wp-block-image:hover img {
    transform: scale(1.03);
}

.landing-portfolio h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.landing-portfolio p {
    color: var(--ast-global-color-7, #6b7268);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ─── Testimonials Section ───────────────────────────────────────── */

.landing-testimonials {
    padding: 4rem 1.5rem;
}

.landing-testimonials > h2,
.landing-testimonials > .wp-block-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.landing-testimonials blockquote,
.landing-testimonials .wp-block-quote {
    border-left: 3px solid var(--ast-global-color-0, #47af3b);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 0 0 1.5rem 0;
    background-color: var(--ast-global-color-5, #f5f9f4);
    border-radius: 0 8px 8px 0;
}

.landing-testimonials blockquote p,
.landing-testimonials .wp-block-quote p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ast-global-color-3, #3d3d37);
}

.landing-testimonials cite,
.landing-testimonials .wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--ast-global-color-7, #6b7268);
    font-weight: 600;
}

/* ─── CTA Section ────────────────────────────────────────────────── */

.landing-cta {
    background-color: var(--ast-global-color-9, #3e6f39);
    color: #ffffff;
    padding: 4rem 1.5rem;
}

/* Force true edge-to-edge — break out of Astra's .ast-container */
.entry-content .landing-cta.alignfull {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50% + 1.5rem) !important;
    padding-right: calc(50vw - 50% + 1.5rem) !important;
}

.landing-cta h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.75rem;
}

.landing-cta > p,
.landing-cta > .wp-block-group > p {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Form styling on green background */
.landing-cta .srfm-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem 2rem 1.5rem;
}

.landing-cta .srfm-block-single-wrapper label,
.landing-cta .srfm-block-single label,
.landing-cta .srfm-block-legend,
.landing-cta legend,
.landing-cta label {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.landing-cta .srfm-input-common,
.landing-cta .srfm-dropdown-common,
.landing-cta .srfm-input-content input,
.landing-cta .srfm-input-content select,
.landing-cta .srfm-input-content textarea {
    background-color: #ffffff !important;
    border: 1px solid var(--ast-global-color-6, #dde5db) !important;
    border-radius: 6px;
    min-height: 48px;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    color: var(--ast-global-color-3, #3d3d37);
}

.landing-cta .srfm-input-content input:focus,
.landing-cta .srfm-input-content select:focus,
.landing-cta .srfm-input-content textarea:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    border-color: #ffffff;
}

.landing-cta .srfm-input-content textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button — primary green with white text */
.landing-cta .srfm-submit-button,
.landing-cta .srfm-btn-frontend,
.landing-cta .srfm-submit-btn,
.landing-cta .wp-element-button {
    background-color: var(--ast-global-color-0, #47af3b) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    min-height: 52px;
    width: 100%;
    display: block;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-cta .srfm-submit-button:hover,
.landing-cta .srfm-btn-frontend:hover,
.landing-cta .srfm-submit-btn:hover,
.landing-cta .wp-element-button:hover {
    background-color: var(--ast-global-color-1, #3a9130) !important;
    color: #ffffff !important;
}

/* GDPR notice */
.landing-cta .gdpr-notice {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    text-align: center;
    margin-top: 1rem;
}

.landing-cta .gdpr-notice a {
    color: #ffffff;
    text-decoration: underline;
}

/* CTA divider */
.landing-cta .landing-cta-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    width: 80px;
    margin-left: auto;
    margin-right: auto;
}

/* Calendly CTA button — outline style on green bg */
.landing-cta .calendly-cta .wp-block-button__link {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 600;
    font-size: 1rem;
    min-height: 52px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.landing-cta .calendly-cta .wp-block-button__link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

/* ─── Responsive: Tablet (768px+) ────────────────────────────────── */

@media (min-width: 768px) {
    .landing-hero {
        padding: 6rem 2rem 4rem;
    }

    .landing-trust .wp-block-column {
        position: relative;
    }

    .landing-trust .wp-block-column:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: var(--ast-global-color-6, #dde5db);
    }

    .landing-packages,
    .landing-portfolio,
    .landing-testimonials {
        padding: 5rem 2rem;
    }

    .landing-cta {
        padding: 5rem 2rem;
    }

    .landing-cta .srfm-form-container {
        max-width: 560px;
    }
}

/* ─── Responsive: Desktop (1024px+) ──────────────────────────────── */

@media (min-width: 1024px) {
    .landing-hero {
        padding: 8rem 2rem 5rem;
    }

    .landing-hero h1 {
        letter-spacing: -0.03em;
    }

    .pricing-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .landing-portfolio .wp-block-column {
        border-radius: 8px;
    }

    .landing-packages,
    .landing-portfolio,
    .landing-testimonials {
        padding: 6rem 2rem;
    }

    .landing-cta {
        padding: 6rem 2rem;
    }
}

/* ─── Language Switcher ───────────────────────────────────────────── */

.lancerun-lang-switcher ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.lancerun-lang-switcher li {
    display: flex;
    align-items: center;
}

.lancerun-lang-switcher li + li::before {
    content: "/";
    color: var(--ast-global-color-6, #dde5db);
    font-size: 0.8125rem;
    font-weight: 400;
    margin: 0 0.125rem;
}

.lancerun-lang-switcher li a {
    display: block;
    padding: 0.25rem 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ast-global-color-3, #3d3d37);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lancerun-lang-switcher li a:hover {
    background-color: var(--ast-global-color-5, #f5f9f4);
    color: var(--ast-global-color-0, #47af3b);
}

.lancerun-lang-switcher li.current-lang a {
    font-weight: 700;
    color: var(--ast-global-color-0, #47af3b);
}

/* ─── Responsive: Mobile Only (max 767px) ────────────────────────── */

@media (max-width: 767px) {
    .landing-hero {
        padding: 3rem 1rem 2rem;
    }

    .landing-packages .wp-block-columns {
        gap: 1.5rem;
    }

    /* Stacked cards: uniform spacing between all six items */
    .landing-portfolio .wp-block-columns {
        gap: 2.25rem;
    }

    .landing-portfolio .wp-block-columns + .wp-block-columns {
        margin-top: 2.25rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .landing-trust .wp-block-columns {
        gap: 0.5rem;
    }

    /* Enforce touch targets */
    .wp-block-button__link,
    .wp-element-button,
    .srfm-submit-btn,
    .srfm-input-content input,
    .srfm-input-content select {
        min-height: 48px;
    }

    .landing-testimonials blockquote,
    .landing-testimonials .wp-block-quote {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    }
}

/* ── Footer ───────────────────────────────────────────────────────────────
   The dark block-based .landing-footer is the real footer. Astra leaves a white
   gap beneath it from two things: #primary's 60px bottom margin, and the empty
   #colophon — both showing the white .site-content behind them. On the landing
   pages, remove that bottom margin, and let the (dark) colophon — rather than the
   white content wrapper — absorb any leftover vertical space, so the dark footer
   reaches the very bottom of the page without affecting the top. */
/* !important to beat Astra's `.ast-plain-container.ast-no-sidebar #primary`
   (specificity 120), which sets a 60px bottom margin below the footer block. */
.home #primary,
.page-id-9 #primary,
.page-id-26 #primary {
    margin-bottom: 0 !important;
}

/* #page-scoped to outspecify Astra's `#page .site-content { flex-grow:1 }`. */
.home #page .site-content,
.page-id-9 #page .site-content,
.page-id-26 #page .site-content {
    flex-grow: 0;
}

.site-footer#colophon {
    background-color: #2a2a2a;
    flex-grow: 1;
    min-height: 0;
    padding: 0;
    border: 0;
}
