/* ============================================================================
   Page hero: full-bleed artwork + overlapping headline card
   ----------------------------------------------------------------------------
   The pattern first built for /send-gift-to-pakistan, now also used by /gifts:
   breadcrumb on cream, then the artwork edge to edge with nothing laid over it,
   then the headline in a card that overlaps the bottom of the image.

   The artwork carries its own headline, so the <h1> in the card is the page's
   only machine-readable one. Text inside an image is invisible to crawlers.

   Tailwind here is a PRE-PURGED committed build: a utility that is not already
   compiled renders as nothing in production, so everything this pattern needs
   lives in plain CSS. Scoped under .ph so it cannot reach the shared header,
   footer or any product card.

   NOTE: /send-gift-to-pakistan still carries its own copy of these rules under
   the .sgp- prefix in css/send-gift.css. The two are deliberately identical in
   output. If you change one, change the other — or better, migrate that page
   onto these classes and delete its copy.
   ========================================================================= */

.ph {
    --ph-green:     #1f4239;
    --ph-gold:      #D4AF37;
    --ph-gold-dark: #846A18;
    --ph-cream:     #f9f8f4;
    --ph-body:      rgba(31, 66, 57, 0.78);
    --ph-muted:     rgba(31, 66, 57, 0.55);
}

.ph-bg-cream { background: var(--ph-cream); }
.ph-wrap     { max-width: 1200px; margin: 0 auto; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.ph-crumb {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--ph-muted);
    padding: 14px 20px;
}
.ph-crumb a       { color: var(--ph-muted); text-decoration: none; }
.ph-crumb a:hover { color: var(--ph-gold-dark); }
.ph-crumb-here    { color: var(--ph-gold-dark); font-weight: 600; }

@media (min-width: 768px) { .ph-crumb { padding: 16px 32px; } }

/* ── Hero artwork ────────────────────────────────────────────────────────── */
/* Two crops of different shapes, so the box reserved for the image has to
   change with the source or the page shifts as the artwork arrives.          */

.ph-hero { line-height: 0; }

.ph-hero-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 464;    /* phone crop */
}

@media (min-width: 1024px) {
    .ph-hero-img { aspect-ratio: 2000 / 700; }   /* desktop crop */
}

/* ── Headline card ───────────────────────────────────────────────────────── */

.ph-h1card-wrap { padding: 0 20px; }

.ph-h1card {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: -34px auto 0;
    padding: 28px 22px;
    background: #FFFDF8;
    border: 1px solid #EFE6D4;
    border-radius: 16px;
    box-shadow: 0 26px 54px rgba(20, 54, 42, 0.13);
    text-align: center;
}

@media (min-width: 768px) {
    .ph-h1card-wrap { padding: 0 32px; }
    .ph-h1card      { margin-top: -88px; padding: 44px 56px; border-radius: 18px; }
}

.ph-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(29px, 3.9vw, 50px);
    font-weight: 600;
    line-height: 1.12;
    color: var(--ph-green);
    margin: 0 0 16px;
}

.ph-lead {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ph-body);
    margin: 0;
}

@media (min-width: 768px) { .ph-lead { font-size: 15px; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
/* At least 44px tall everywhere. Full width on phones, side by side from 768. */

.ph-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 26px;
    border-radius: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.ph-btn-primary {
    background: var(--ph-green);
    color: var(--ph-gold);
    border: 1px solid var(--ph-green);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}
.ph-btn-primary:hover { background: #17352c; }

.ph-btn-secondary {
    background: transparent;
    color: var(--ph-green);
    border: 1px solid #CFC4AC;
}
.ph-btn-secondary:hover { border-color: var(--ph-green); }

@media (min-width: 768px) {
    .ph-btn  { width: auto; min-height: 58px; }
    .ph-btns { flex-direction: row; flex-wrap: wrap; gap: 14px; }
    .ph-btns-center { justify-content: center; }
}

/* ── Scroll hint on the Browse button ────────────────────────────────────── */
/* The Browse button jumps to #products further down the page, so it carries
   three downward chevrons rather than the → it used to. They light up in
   sequence, top to bottom, which reads as "keep going down" rather than
   "go to another page".

   One <svg> with three <path>s, not three <svg>s: the markup is repeated on 26
   gift pages, and a path is just as animatable as an element. stroke uses
   currentColor so it works on both button variants - gold on the green primary,
   green on the outlined secondary - and follows their hover colours for free. */

.ph-scroll-hint {
    width: 15px;
    height: 24px;
    flex: none;               /* .ph-btn is a flex row; do not let this stretch */
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-scroll-hint path {
    opacity: .28;
    animation: ph-chev-wave 1.5s ease-in-out infinite;
}

.ph-scroll-hint path:nth-child(2) { animation-delay: .15s; }
.ph-scroll-hint path:nth-child(3) { animation-delay: .30s; }

@keyframes ph-chev-wave {
    0%, 60%, 100% { opacity: .28; }
    30%           { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ph *, .ph *::before, .ph *::after { transition-duration: .01ms !important; }
    /* No pulsing for anyone who asked for less motion. The chevrons still show,
       at a steady readable opacity, because they carry the meaning. */
    .ph-scroll-hint path { animation: none; opacity: .8; }
}
