/* ============================================================================
   Block: pranav-about-hero  —  About Us Hero Section

   CSS port of kovaion-landing-page/assets/css/about.css (.about-hero + child
   elements), adapted to ACF block BEM class names.

   Class mapping (HTML ref → ACF block):
     .about-hero             → .pranav-about-hero
     .about-hero__card       → .pranav-about-hero__card
     .about-hero__bg         → .pranav-about-hero__bg
     .about-hero__overlay    → .pranav-about-hero__overlay
     .about-hero__content    → .pranav-about-hero__content
     .about-hero__title      → .pranav-about-hero__title
     .about-hero__desc       → .pranav-about-hero__desc
     .hero__cta.about-hero__cta → .pranav-about-hero__cta--primary

   New elements (extension fields, not in source HTML):
     .pranav-about-hero__eyebrow         — optional label above heading
     .pranav-about-hero__title-coral     — optional coral-coloured first line
     .pranav-about-hero__title-white     — white heading text (default)
     .pranav-about-hero__ctas            — flex wrapper for one or two buttons
     .pranav-about-hero__cta--secondary  — optional ghost/outline button
     .pranav-about-hero__cta--preview    — editor-only style (no href set)
     .pranav-about-hero__bg-placeholder  — editor placeholder when no image

   Key layout measurements (HTML / about.css reference):
     Section     : bg #fff5f0, padding-top 52px, padding-bottom 100px
     Card        : margin 0 80px, height 750px, border-radius 25px, overflow hidden
     Background  : absolute, inset -5%, filter blur(2.5px)
     Overlay     : absolute, inset 0, rgba(0,0,0,0.6)
     Content     : absolute, top 50%, left 50%, translate(-50%,-50%),
                   width 745px, max-width calc(100%-48px), gap 30px
     Eyebrow     : 12px / DM Mono, uppercase, coral, letter-spacing 0.08em
     Title       : 64px / 74px, Clash Display 400, white
     Description : 18px / 1.6, Clash Grotesk 400, white, paragraph gap 12px
     Primary CTA : coral pill, min-width 277px, h 58px, border-radius 42px
     Secondary   : white outline pill, same height
   ============================================================================ */


/* ── 0. Full-width breakout ─────────────────────────────────────────────────
   Breaks out of .entry-content max-width constraint (typically 750 px).
   Mirrors the same rule used by pranav-hero-gcc and other full-bleed blocks.
   ────────────────────────────────────────────────────────────────────────── */
.entry-content .pranav-about-hero,
.entry-content .pranav-about-hero.alignfull {
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
    box-sizing: border-box;
}


/* ── 1. Section shell ────────────────────────────────────────────────────────
   Warm peach background (#fff5f0) shows in two places:
     • The 52px gap above the card top (Figma y=0→52 before the card y=52)
     • The 100px gap below the card before the next section
   HTML ref: .about-hero { background:var(--c-bg); padding-top:52px; padding-bottom:100px }
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero {
    background-color: #fff5f0;
    padding-top: 52px;
    padding-bottom: 100px;
    box-sizing: border-box;
}


/* ── 2. Hero card ────────────────────────────────────────────────────────────
   Rounded rectangle that contains the blurred background and all content.
   overflow:hidden clips the -5% extended background and rounds its corners.
   HTML ref: .about-hero__card { margin:0 80px; height:750px; border-radius:25px;
              background:var(--c-primary-peach); overflow:hidden }
   #feb7a0 (--c-primary-peach) is visible as a warm tint if the image fails.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__card {
    position: relative;
    margin: 0 80px;
    height: 750px;
    border-radius: 25px;
    background-color: #feb7a0;
    overflow: hidden;
}


/* ── 3. Background image container ──────────────────────────────────────────
   Extends -5% beyond the card on all four sides (inset:-5%) so the gaussian
   blur never reveals a hard, soft-edged rectangle at the card's perimeter —
   the blurred pixels always bleed safely outside the card's clipping boundary.
   HTML ref: .about-hero__bg { position:absolute; inset:-5%; filter:blur(2.5px) }
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__bg {
    position: absolute;
    inset: -5%;
    filter: blur(2.5px);
    z-index: 0;
}

.pranav-about-hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Editor placeholder — shown when no background image is uploaded */
.pranav-about-hero__bg-placeholder {
    position: absolute;
    inset: 0;
    background-color: #1e252f;
}


/* ── 4. Dark overlay ─────────────────────────────────────────────────────────
   Semi-transparent black layer over the blurred photo to ensure sufficient
   contrast for the white text and CTA button.
   HTML ref: .about-hero__overlay { position:absolute; inset:0; background:rgba(0,0,0,0.6) }
   When overlay_opacity ACF field is set to a non-default value, an inline
   style on the element overrides this CSS property.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}


/* ── 5. Content block ────────────────────────────────────────────────────────
   Perfectly centred inside the card (both axes). The 745px width and
   max-width guard (calc(100%-48px) = 24px of breathing room on each side)
   mirror the source layout exactly.
   HTML ref: .about-hero__content { position:absolute; top:50%; left:50%;
              transform:translate(-50%,-50%); width:745px;
              max-width:calc(100%-48px); z-index:2;
              display:flex; flex-direction:column; align-items:center;
              gap:30px; text-align:center }
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 745px;
    max-width: calc(100% - 48px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}


/* ── 6. Eyebrow ──────────────────────────────────────────────────────────────
   Optional small-caps label above the heading — extension field not in source.
   Uses DM Mono (the numerical/mono typeface used elsewhere in the theme) at
   small size with generous letter-spacing and coral colour to draw the eye
   before the main headline.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__eyebrow {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff5a3c;
    margin: 0;
}


/* ── 7. Headline ─────────────────────────────────────────────────────────────
   HTML ref: .about-hero__title { font-size:64px; line-height:74px;
              font-family:Clash Display; font-weight:400; color:#ffffff }
   The two-tone variant (coral first line + white second line) reuses the
   same span pattern as pranav-hero-gcc — both spans are displayed inline.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__title {
    font-family: 'Clash Display Variable', 'Clash Display', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 74px;
    color: #ffffff;
    margin: 0;
    word-break: break-word;
}

.pranav-about-hero__title-coral {
    color: #ff5a3c;
    display: inline;
}

.pranav-about-hero__title-white {
    color: #ffffff;
    display: inline;
}


/* ── 8. Description block ────────────────────────────────────────────────────
   Houses the <p> tags generated by wpautop(). Each paragraph gets a 12px top
   gap via the p+p selector, matching the flex gap used in the source HTML.
   HTML ref: .about-hero__desc { display:flex; flex-direction:column; gap:12px;
              font-size:18px; line-height:1.6; color:#ffffff }
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__desc {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Clash Grotesk Variable', 'Clash Grotesk', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
    width: 100%;
}

/* wpautop() generates <p> tags — reset margin and add gap between them */
.pranav-about-hero__desc p {
    margin: 0;
}

.pranav-about-hero__desc p + p {
    margin-top: 12px;
}


/* ── 9. CTA button wrapper ───────────────────────────────────────────────────
   Flex row that centres one or two buttons with a 16px gap.
   When only a primary CTA is set, it appears centred (single-item flex).
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


/* ── 10. Primary CTA button — coral pill ─────────────────────────────────────
   Extends the homepage hero CTA style (.hero__cta from style.css).
   The About Us source overrides width to 277px (vs 231px on homepage).
   HTML ref: .about-hero__cta { width:277px } on top of .hero__cta rules.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__cta--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 277px;
    height: 58px;
    padding: 0 32px;
    background-color: #ff5a3c;
    color: #ffffff;
    font-family: 'Clash Display Variable', 'Clash Display', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    border-radius: 42px;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pranav-about-hero__cta--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.pranav-about-hero__cta--primary:active {
    transform: translateY(0);
}


/* ── 11. Secondary CTA button — white outline pill ───────────────────────────
   Ghost variant rendered on the dark overlay. Not present in the About Us
   source HTML — provided for pages that need a paired secondary action.
   Matches the same height and radius as the primary CTA for visual rhythm.
   ────────────────────────────────────────────────────────────────────────── */
.pranav-about-hero__cta--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 32px;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Clash Display Variable', 'Clash Display', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    border-radius: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pranav-about-hero__cta--secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

.pranav-about-hero__cta--secondary:active {
    transform: translateY(0);
}


/* Preview state: CTA text set but no URL configured in the editor */
.pranav-about-hero__cta--preview {
    opacity: 0.9;
    cursor: default;
}


/* ── 12. Global header override ──────────────────────────────────────────────
   When this block is on the page, the site header (navbar pill) sits 82px from
   the viewport top — inside the dark hero card, 30px below the card's top edge
   (card starts at section padding-top 52px + 30px = 82px from viewport top).
   Mirrors pranav-hero-gcc's :has() rule for consistency across hero pages.
   ────────────────────────────────────────────────────────────────────────── */
body:has(.pranav-about-hero) .site-header {
    top: 82px;
}

body:has(.pranav-about-hero) .nav-overlay {
    top: 82px;
}

body:has(.pranav-about-hero) .site-main {
    padding-top: 0;
}


/* ── 13. Responsive — Tablet ≤ 1100px ───────────────────────────────────────
   HTML ref (about.css): card 650px, title 48/58px, desc 16px, content 85%.
   Side margins on the card shrink to 40px (vs 80px on desktop).
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {

    .pranav-about-hero__card {
        margin: 0 40px;
        height: 650px;
    }

    .pranav-about-hero__title {
        font-size: 48px;
        line-height: 58px;
    }

    .pranav-about-hero__desc {
        font-size: 16px;
    }

    .pranav-about-hero__content {
        width: 85%;
    }
}


/* ── 14. Responsive — Mobile ≤ 768px ─────────────────────────────────────────
   HTML ref (about.css): no top padding, card 540px/radius 20px, title 32/44px,
   desc 15px, CTA auto-width. Card side margins shrink to 20px.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .pranav-about-hero {
        padding-top: 0;
        padding-bottom: 60px;
    }

    .pranav-about-hero__card {
        margin: 0 20px;
        height: 540px;
        border-radius: 20px;
    }

    .pranav-about-hero__title {
        font-size: 32px;
        line-height: 44px;
    }

    .pranav-about-hero__desc {
        font-size: 15px;
    }

    /* CTAs: full-width stack on very small screens */
    .pranav-about-hero__ctas {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .pranav-about-hero__cta--primary {
        min-width: 0;
        width: 100%;
        max-width: 320px;
        height: 52px;
        font-size: 16px;
    }

    .pranav-about-hero__cta--secondary {
        width: 100%;
        max-width: 320px;
        height: 52px;
        font-size: 16px;
    }

    /* Restore header to mobile position (HTML ref: top:20px) */
    body:has(.pranav-about-hero) .site-header {
        top: 20px;
    }

    body:has(.pranav-about-hero) .nav-overlay {
        top: 12px;
    }
}


/* ── 15. Responsive — Small mobile ≤ 480px ───────────────────────────────────
   HTML ref (about.css): title 26/36px, desc 14px.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    .pranav-about-hero__title {
        font-size: 26px;
        line-height: 36px;
    }

    .pranav-about-hero__desc {
        font-size: 14px;
    }
}


/* ── 16. Block editor preview ────────────────────────────────────────────────
   Cap height in the Gutenberg editor so the block doesn't push UI off-screen.
   Reveal elements are shown immediately (no scroll-reveal in editor).
   ────────────────────────────────────────────────────────────────────────── */
.wp-block.acf-pranav-about-hero .pranav-about-hero {
    min-height: 200px;
}

.wp-block.acf-pranav-about-hero .pranav-about-hero__card {
    min-height: 200px;
}
