/* ==========================================================================
   File: assets/css/pages.css
   About, Contact and Categories.

   One stylesheet for the three, because they share the same shapes: a hero, a
   band of stats, a grid of cards, and a form or a list. Three near identical
   stylesheets would drift apart within a month.

   MOBILE FIRST. Every base rule is the phone layout. Widening only ever
   happens inside a min-width query, never the other way round.

   DARK MODE. Everything reads from a variable, and the variables are redefined
   once under html[data-theme="dark"]. No component sets a raw colour, so the
   dark theme cannot miss a piece. That was the problem before: hard coded
   whites and greys survived the theme switch and left unreadable patches.

   Everything is prefixed .pg so it cannot leak into another screen.
   ========================================================================== */

.pg {
    --pg-green:      #2E7D32;
    --pg-green-soft: #E8F5E9;
    --pg-dark:       #14331A;
    --pg-gold:       #F9A825;
    --pg-brown:      #6D4C41;

    --pg-ink:        #241E18;
    --pg-ink-soft:   #6F6154;
    --pg-line:       #E6E1D9;
    --pg-card:       #FFFFFF;
    --pg-page:       #FAF9F6;
    --pg-tint:       #F2F5F1;

    --pg-radius:     14px;
    --pg-radius-sm:  10px;
    --pg-shadow:     0 2px 10px rgba(36, 30, 24, 0.06);
    --pg-shadow-lg:  0 14px 34px rgba(36, 30, 24, 0.12);

    --pg-display: 'Montserrat', system-ui, sans-serif;
    --pg-body:    'Open Sans', system-ui, sans-serif;

    background: var(--pg-page);
    color: var(--pg-ink);
    font-family: var(--pg-body);
}

html[data-theme="dark"] .pg {
    --pg-green:      #66BB6A;
    --pg-green-soft: #1E3322;
    --pg-dark:       #0F2413;
    --pg-gold:       #FFB300;
    --pg-brown:      #A1887F;

    --pg-ink:        #EDE7DF;
    --pg-ink-soft:   #A69A8C;
    --pg-line:       #37302A;
    --pg-card:       #221D19;
    --pg-page:       #17130F;
    --pg-tint:       #1D1A16;

    --pg-shadow:     0 2px 10px rgba(0, 0, 0, 0.4);
    --pg-shadow-lg:  0 14px 34px rgba(0, 0, 0, 0.5);
}

.pg *,
.pg *::before,
.pg *::after { box-sizing: border-box; }

.pg-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) { .pg-wrap { padding-left: 28px; padding-right: 28px; } }

.pg-section { padding: 44px 0; }

@media (min-width: 768px)  { .pg-section { padding: 64px 0; } }
@media (min-width: 1100px) { .pg-section { padding: 80px 0; } }

.pg-section-tint { background: var(--pg-tint); }

/* ==========================================================================
   Type
   ========================================================================== */

.pg h1, .pg h2, .pg h3 {
    font-family: var(--pg-display);
    letter-spacing: -0.015em;
    color: var(--pg-ink);
    margin: 0;
}

.pg-kicker {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pg-green);
}

.pg-h2 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.pg-lede {
    margin: 0 0 26px;
    max-width: 62ch;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--pg-ink-soft);
}

.pg-center { text-align: center; }
.pg-center .pg-lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */

.pg-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 40px;
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(249, 168, 37, 0.16) 0%, transparent 55%),
        linear-gradient(155deg, var(--pg-green) 0%, var(--pg-dark) 100%);
    color: #fff;
}

@media (min-width: 768px)  { .pg-hero { padding: 70px 0 60px; } }
@media (min-width: 1100px) { .pg-hero { padding: 90px 0 76px; } }

/* One soft organic shape rather than a pattern. Cheap, and it stops a large
   screen reading as a flat slab of green. */
.pg-hero::after {
    content: "";
    position: absolute;
    right: -14%;
    bottom: -34%;
    width: 54%;
    aspect-ratio: 1;
    border-radius: 46% 54% 38% 62% / 52% 42% 58% 48%;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.pg-hero .pg-wrap { position: relative; z-index: 1; }

.pg-hero .pg-kicker { color: var(--pg-gold); }

.pg-hero h1 {
    font-size: clamp(1.75rem, 6.5vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 14px;
    max-width: 20ch;
}

.pg-hero p {
    margin: 0;
    max-width: 56ch;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.pg-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
}

@media (min-width: 520px) { .pg-hero-actions { flex-direction: row; flex-wrap: wrap; } }

.pg-crumb {
    margin: 0 0 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.pg-crumb a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.pg-crumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--pg-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    min-height: 50px;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.pg-btn:active { transform: translateY(1px); }
.pg-btn:focus-visible { outline: 3px solid var(--pg-gold); outline-offset: 3px; }

.pg-btn-solid { background: var(--pg-gold); color: #2A2000; }
.pg-btn-solid:hover { background: #ffc046; }

.pg-btn-green { background: var(--pg-green); color: #fff; }
.pg-btn-green:hover { background: var(--pg-dark); }

.pg-btn-line { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.pg-btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.pg-btn-quiet { border-color: var(--pg-line); color: var(--pg-ink); background: var(--pg-card); }
.pg-btn-quiet:hover { border-color: var(--pg-green); color: var(--pg-green); }

@media (max-width: 519px) { .pg-hero-actions .pg-btn { width: 100%; } }

/* ==========================================================================
   Stats band
   ========================================================================== */

.pg-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--pg-line);
    border-radius: var(--pg-radius);
    overflow: hidden;
    box-shadow: var(--pg-shadow);
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

@media (min-width: 760px) { .pg-stats { grid-template-columns: repeat(4, 1fr); } }

.pg-stat {
    padding: 20px 14px;
    background: var(--pg-card);
    text-align: center;
}

.pg-stat strong {
    display: block;
    font-family: var(--pg-display);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--pg-green);
    margin-bottom: 4px;
}

.pg-stat span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pg-ink-soft);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.pg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 620px)  { .pg-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .pg-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pg-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .pg-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pg-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.pg-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pg-card-link { text-decoration: none; color: inherit; }

.pg-card-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--pg-shadow-lg);
    border-color: var(--pg-green);
}

.pg-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pg-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--pg-ink-soft);
}

/* A number instead of an icon. It carries order, which an icon does not. */
.pg-card-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--pg-green-soft);
    color: var(--pg-green);
    font-family: var(--pg-display);
    font-size: 1rem;
    font-weight: 800;
}

.pg-card-rule {
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--pg-gold);
    margin-bottom: 14px;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.pg-timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.pg-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--pg-line);
}

.pg-timeline li {
    position: relative;
    padding: 0 0 26px 34px;
}

.pg-timeline li:last-child { padding-bottom: 0; }

.pg-timeline li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pg-green);
    border: 3px solid var(--pg-page);
    box-shadow: 0 0 0 2px var(--pg-green);
}

.pg-timeline strong {
    display: block;
    font-family: var(--pg-display);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.pg-timeline time {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-gold);
    margin-bottom: 3px;
}

.pg-timeline p { margin: 0; font-size: 0.87rem; line-height: 1.65; color: var(--pg-ink-soft); }

/* ==========================================================================
   Split feature
   ========================================================================== */

.pg-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) { .pg-split { grid-template-columns: 1fr 1fr; gap: 48px; } }

.pg-split-media {
    border-radius: var(--pg-radius);
    overflow: hidden;
    background: var(--pg-tint);
    aspect-ratio: 4 / 3;
}

.pg-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pg-ticks { list-style: none; margin: 0 0 22px; padding: 0; }

.pg-ticks li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pg-ink);
}

/* Tick drawn in CSS, so the page pulls no icon font for a bullet */
.pg-ticks li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 7px;
    height: 12px;
    border: solid var(--pg-green);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */

.pg-cat {
    overflow: hidden;
    padding: 0;
}

.pg-cat-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--pg-tint);
    overflow: hidden;
}

.pg-cat-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pg-cat:hover .pg-cat-media img { transform: scale(1.05); }

.pg-cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(20, 51, 26, 0.86);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.pg-cat-body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }

.pg-cat-top {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pg-cat-top h3 { font-size: 1.05rem; margin: 0; }

.pg-cat-count {
    flex: 0 0 auto;
    padding: 4px 11px;
    border-radius: 20px;
    background: var(--pg-green-soft);
    color: var(--pg-green);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.pg-cat-body p {
    margin: 0 0 16px;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--pg-ink-soft);
    flex: 1 1 auto;
}

.pg-cat-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pg-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pg-green);
}

.pg-cat-go::after {
    content: "";
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.pg-cat:hover .pg-cat-go::after { transform: rotate(45deg) translate(2px, -2px); }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.pg-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 980px) { .pg-contact { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; } }

.pg-form-card {
    padding: 24px 20px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
}

@media (min-width: 768px) { .pg-form-card { padding: 32px; } }

.pg-fields { display: grid; grid-template-columns: 1fr; gap: 0 18px; }

@media (min-width: 620px) { .pg-fields { grid-template-columns: 1fr 1fr; } }

.pg-field { margin-bottom: 18px; }
.pg-field-wide { grid-column: 1 / -1; }

.pg-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pg-ink);
}

.pg-field .req { color: #C62828; }

.pg-field input,
.pg-field select,
.pg-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--pg-line);
    border-radius: var(--pg-radius-sm);
    background: var(--pg-card);
    color: var(--pg-ink);
    font-family: var(--pg-body);
    font-size: 16px;              /* under 16px, iOS zooms the page on focus */
    line-height: 1.45;
    min-height: 50px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pg-field textarea { min-height: 150px; resize: vertical; }

.pg-field input:focus,
.pg-field select:focus,
.pg-field textarea:focus {
    outline: none;
    border-color: var(--pg-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.14);
}

.pg-field input::placeholder,
.pg-field textarea::placeholder { color: var(--pg-ink-soft); opacity: 0.75; }

.pg-count {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--pg-ink-soft);
}

.pg-form-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--pg-line);
}

@media (min-width: 620px) {
    .pg-form-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

.pg-form-foot p { margin: 0; font-size: 0.79rem; line-height: 1.55; color: var(--pg-ink-soft); max-width: 40ch; }
.pg-form-foot .pg-btn { width: 100%; }

@media (min-width: 620px) { .pg-form-foot .pg-btn { width: auto; min-width: 180px; } }

.pg-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--pg-radius-sm);
    border-left: 4px solid transparent;
    font-size: 0.88rem;
    line-height: 1.6;
}

.pg-note-ok  { background: var(--pg-green-soft); color: var(--pg-green); border-left-color: var(--pg-green); }
.pg-note-bad { background: rgba(198, 40, 40, 0.09); color: #A32020; border-left-color: #C62828; }

html[data-theme="dark"] .pg-note-bad { color: #F0A9A9; }

/* ---- Side cards ---- */

.pg-aside { display: flex; flex-direction: column; gap: 16px; }

.pg-info {
    padding: 20px;
    background: var(--pg-card);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    box-shadow: var(--pg-shadow);
}

.pg-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pg-green-soft);
}

.pg-info h2::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: var(--pg-gold);
}

.pg-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pg-detail:last-child { margin-bottom: 0; }

.pg-detail-key {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--pg-ink-soft);
    margin-bottom: 3px;
}

.pg-detail-val { font-size: 0.88rem; line-height: 1.6; color: var(--pg-ink); }
.pg-detail-val a { color: var(--pg-green); text-decoration: none; overflow-wrap: anywhere; }
.pg-detail-val a:hover { text-decoration: underline; }

/* ==========================================================================
   SOCIAL BUTTONS
   --------------------------------------------------
   Rebuilt. The old version was four fixed width tiles in a row, each holding
   a brand name and a handle. At 90px wide, "Twitter / X" wrapped onto two
   lines and "@amricfoundation" overflowed its tile.

   These are full width rows instead. A row has all the space it needs for a
   handle, works down to a 320px screen, and gives a much larger tap target
   than a 90px square.
   ========================================================================== */

.pg-social { display: flex; flex-direction: column; gap: 9px; }

.pg-social a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: var(--pg-radius-sm);
    border: 1px solid var(--pg-line);
    background: var(--pg-card);
    color: var(--pg-ink);
    text-decoration: none;
    min-height: 56px;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.pg-social a:hover { transform: translateX(3px); }

.pg-social-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.pg-social-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.pg-social-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.pg-social-text small {
    font-size: 0.76rem;
    color: var(--pg-ink-soft);
    /* The handle is the thing that used to overflow. It now truncates with an
       ellipsis rather than escaping its container. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Brand colours on the mark only, so the row still reads correctly in dark
   mode and the text stays on a themed background. */
.pg-social-facebook  .pg-social-mark { background: #1877F2; }
.pg-social-twitter   .pg-social-mark { background: #14171A; }
.pg-social-linkedin  .pg-social-mark { background: #0A66C2; }
.pg-social-whatsapp  .pg-social-mark { background: #25D366; }
.pg-social-instagram .pg-social-mark {
    background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF);
}

.pg-social-facebook:hover  { border-color: #1877F2; }
.pg-social-twitter:hover   { border-color: #14171A; }
.pg-social-linkedin:hover  { border-color: #0A66C2; }
.pg-social-whatsapp:hover  { border-color: #25D366; }
.pg-social-instagram:hover { border-color: #DD2A7B; }

html[data-theme="dark"] .pg-social-twitter .pg-social-mark { background: #3A3F45; }
html[data-theme="dark"] .pg-social-twitter:hover { border-color: #6B7078; }

/* ---- Hours ---- */

.pg-hours { list-style: none; margin: 0; padding: 0; }

.pg-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pg-line);
    font-size: 0.85rem;
}

.pg-hours li:last-child { border-bottom: 0; }
.pg-hours span { color: var(--pg-ink-soft); }
.pg-hours strong { font-weight: 600; text-align: right; }
.pg-hours .is-closed strong { color: var(--pg-ink-soft); font-weight: 400; }

/* ---- Help list ---- */

.pg-help { list-style: none; margin: 0; padding: 0; }

.pg-help li {
    padding: 10px 0 10px 16px;
    border-left: 3px solid var(--pg-gold);
    margin-bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.55;
    background: var(--pg-tint);
    border-radius: 0 var(--pg-radius-sm) var(--pg-radius-sm) 0;
}

.pg-help li:last-child { margin-bottom: 0; }

/* ==========================================================================
   Map embed
   ========================================================================== */

.pg-map {
    border-radius: var(--pg-radius);
    overflow: hidden;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    line-height: 0;
}

.pg-map iframe { width: 100%; height: 300px; border: 0; display: block; }

@media (min-width: 768px) { .pg-map iframe { height: 400px; } }

/* The default OpenStreetMap tiles are bright. In dark mode they are knocked
   back so the page does not have a glowing white rectangle in the middle. */
html[data-theme="dark"] .pg-map iframe { filter: brightness(0.82) contrast(1.06); }

/* ==========================================================================
   Empty state
   ========================================================================== */

.pg-empty {
    padding: 48px 24px;
    text-align: center;
    background: var(--pg-card);
    border: 1px dashed var(--pg-line);
    border-radius: var(--pg-radius);
}

.pg-empty h2 { font-size: 1.15rem; margin-bottom: 10px; }
.pg-empty p { margin: 0 auto 18px; max-width: 52ch; font-size: 0.9rem; line-height: 1.7; color: var(--pg-ink-soft); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.pg-cta {
    padding: 40px 24px;
    border-radius: var(--pg-radius);
    text-align: center;
    background: linear-gradient(155deg, var(--pg-green), var(--pg-dark));
    color: #fff;
}

@media (min-width: 768px) { .pg-cta { padding: 56px 40px; } }

.pg-cta h2 { color: #fff; font-size: clamp(1.3rem, 4vw, 1.8rem); margin-bottom: 10px; }

.pg-cta p {
    margin: 0 auto 24px;
    max-width: 54ch;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.pg-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }

@media (min-width: 520px) { .pg-cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; } }

@media (max-width: 519px) { .pg-cta-actions .pg-btn { width: 100%; } }

/* ==========================================================================
   Motion
   ========================================================================== */

.pg-rise { opacity: 0; transform: translateY(16px); }

.pg-rise.is-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .pg-rise { opacity: 1; transform: none; }
    .pg-btn,
    .pg-card,
    .pg-social a,
    .pg-cat-media img,
    .pg-cat-go::after { transition: none; }
    .pg-card-link:hover,
    .pg-social a:hover { transform: none; }
    .pg-cat:hover .pg-cat-media img { transform: none; }
}
