/* =========================================================================
   CONTENT PAGE BLOCKS
   Styles for the components in includes/blocks.php (page hero, card grids,
   steps, FAQ, lists, tables, galleries, forms). Built on the same tokens as
   style.css — change a colour there and these follow.
   ========================================================================= */

/* ---------------------------------------------------------------- shared */
.pet-sec { position: relative; }
.pet-sec--tint { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.pet-sec--dark { background: var(--ink); }
.pet-sec--dark h2,
.pet-sec--dark h3,
.pet-sec--dark .pet-card h3 { color: #fff; }
.pet-sec--dark p,
.pet-sec--dark li,
.pet-sec--dark .section-sub { color: rgba(255, 255, 255, .78); }
.pet-sec--dark .pet-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.pet-sec--dark a { color: #fff; text-decoration: underline; }

.section-head--left { max-width: 74ch; margin-left: 0; margin-right: 0; text-align: left; }
.section-head--left .section-sub { margin-top: .8rem; }
.section-head + .pet-prose { margin-top: -1.4rem; }

.pet-sec-action { margin-top: 2.2rem; }
.section-head--left + .pet-sec-action { text-align: left; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- page hero */
.pet-hero {
    padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 72px);
    background:
        radial-gradient(900px 380px at 12% -10%, rgba(99, 102, 241, .10), transparent 62%),
        radial-gradient(700px 320px at 92% 0%, rgba(0, 194, 168, .10), transparent 60%);
}
.pet-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.pet-hero--split .pet-hero-grid { grid-template-columns: 1.05fr .95fr; }
.pet-hero-copy { max-width: 62ch; }
.pet-hero h1 { margin-bottom: 1rem; }
.pet-hero .eyebrow a { color: inherit; }
.pet-hero .eyebrow a:hover { text-decoration: underline; }
.pet-hero p { color: var(--muted); font-size: 1.03rem; margin-bottom: .9rem; }
.pet-hero p.lead { font-size: 1.14rem; color: var(--text); max-width: 60ch; }
.pet-hero .hero-actions { margin: 1.6rem 0 0; }

.pet-hero-media {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--bg-soft);
}
.pet-hero-media img { width: 100%; height: auto; }
.pet-hero-cards { margin-top: clamp(2.4rem, 4vw, 3.4rem); }

/* -------------------------------------------------------------- card grid */
.pet-cards { display: grid; gap: 1.4rem; }
.pet-cards--2 { grid-template-columns: repeat(2, 1fr); }
.pet-cards--3 { grid-template-columns: repeat(3, 1fr); }
.pet-cards--4 { grid-template-columns: repeat(4, 1fr); }

.pet-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pet-card > *:last-child { margin-bottom: 0; }
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99, 102, 241, .35); }
.pet-card h3 { margin-bottom: .55rem; }
.pet-card h3 a { color: var(--ink); }
.pet-card h3 a:hover { color: var(--primary); }
.pet-card p { color: var(--muted); font-size: .96rem; margin-bottom: .7rem; }
.pet-card .card-icon {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
    display: grid; place-items: center;
    background: rgba(99, 102, 241, .10); color: var(--primary);
}
.pet-card .card-icon svg { width: 22px; height: 22px; }

.pet-card-media {
    margin: -1.6rem -1.6rem 1.2rem;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 16 / 10;
}
.pet-card-media img { width: 100%; height: 100%; object-fit: cover; }

.pet-card-tag {
    text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700;
    color: var(--primary); margin-bottom: .4rem !important;
}
.pet-card-meta { font-size: .84rem; color: var(--muted); margin-top: .8rem; }
.pet-card-bullets { list-style: none; display: grid; gap: .5rem; margin: .9rem 0 0; }
.pet-card-bullets li {
    position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--muted);
}
.pet-card-bullets li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.pet-card-action { margin-top: 1rem; }
.pet-card-action .card-link { font-weight: 700; font-family: var(--font-head); font-size: .92rem; }

/* card style variants */
.pet-cards--panel { gap: 1.8rem; }
.pet-cards--panel .pet-card { padding: 2.2rem; background: var(--bg-soft); border-color: transparent; }
.pet-cards--panel .pet-card:hover { background: #fff; border-color: var(--line); }

.pet-cards--plain .pet-card {
    background: transparent; border: 0; border-top: 3px solid var(--line);
    border-radius: 0; padding: 1.2rem 0 0;
}
.pet-cards--plain .pet-card:hover { transform: none; box-shadow: none; border-top-color: var(--primary); }

.pet-cards--price .pet-card { padding: 2rem 1.8rem; }
.pet-cards--price .pet-card h3 {
    font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: .08em; color: var(--primary);
}
.pet-cards--price .pet-card p:first-of-type { color: var(--ink); font-size: 1.02rem; font-weight: 500; }

/* ------------------------------------------------------------ steps list */
.pet-steps {
    list-style: none; display: grid; gap: 1.2rem; counter-reset: pet-step;
    max-width: 82ch; margin-inline: auto;
}
.pet-steps li {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.pet-step-num {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: #fff;
    font-family: var(--font-head); font-weight: 800; font-size: .95rem;
}
.pet-steps h3 { margin-bottom: .3rem; }
.pet-steps p { color: var(--muted); font-size: .96rem; margin-bottom: .4rem; }
.pet-steps p:last-child { margin-bottom: 0; }
.pet-sec--dark .pet-steps li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }

/* -------------------------------------------------------------------- FAQ */
/* Element-qualified: the imported sections keep their authored class (pet-faq,
   pet-form, pet-newsletter) as a styling hook, so a bare .pet-faq would also
   match the <section> and clamp its width. */
div.pet-faq { display: grid; gap: .8rem; max-width: 90ch; margin: 0 auto; }
.pet-faq-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0 1.4rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.pet-faq-item[open] { border-color: rgba(99, 102, 241, .35); box-shadow: var(--shadow); }
.pet-faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 0; cursor: pointer; list-style: none;
    font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.pet-faq-item summary::-webkit-details-marker { display: none; }
.pet-faq-item summary:hover { color: var(--primary); }
.pet-faq-icon {
    flex: 0 0 auto; position: relative; width: 18px; height: 18px;
}
.pet-faq-icon::before,
.pet-faq-icon::after {
    content: ""; position: absolute; background: var(--primary); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.pet-faq-icon::before { inset: 8px 0 8px 0; height: 2px; }
.pet-faq-icon::after { inset: 0 8px 0 8px; width: 2px; }
.pet-faq-item[open] .pet-faq-icon::after { transform: scaleY(0); opacity: 0; }
.pet-faq-answer { padding: 0 0 1.3rem; max-width: 80ch; }
.pet-faq-answer p { color: var(--muted); font-size: .97rem; margin-bottom: .7rem; }
.pet-faq-answer p:last-child { margin-bottom: 0; }
.pet-faq-answer ul, .pet-faq-answer ol { margin: .6rem 0 .6rem 1.2rem; color: var(--muted); font-size: .97rem; }

/* ------------------------------------------------------------- link lists */
.pet-linklist { list-style: none; display: grid; gap: .9rem; }
.pet-linklist--2 { grid-template-columns: repeat(2, 1fr); }
.pet-linklist--3 { grid-template-columns: repeat(3, 1fr); }
.pet-linklist li {
    padding: 1rem 1.2rem; border-left: 3px solid var(--line);
    background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: border-color .2s ease, background .2s ease;
}
.pet-linklist li:hover { border-left-color: var(--primary); background: #fff; box-shadow: var(--shadow); }
.pet-linklist li a { font-family: var(--font-head); font-weight: 700; }
.pet-linklist li span { display: block; color: var(--muted); font-size: .92rem; margin-top: .25rem; }

.pet-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.pet-chip {
    display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff;
    font-size: .9rem; font-weight: 600; color: var(--ink);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pet-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(99, 102, 241, .06); }

/* ----------------------------------------------------------- bullet lists */
.pet-bullets { list-style: none; display: grid; gap: .75rem; }
.pet-bullets--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.2rem; }
.pet-bullets--3 { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
.pet-bullets li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .98rem; }
.pet-bullets--none li { display: block; }
.pet-bullets--dot li { position: relative; padding-left: 1.1rem; display: block; }
.pet-bullets--dot li::before {
    content: ""; position: absolute; left: 0; top: .6em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.pet-bullet-ic { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.pet-bullet-ic svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------- grouped lists */
.pet-groups { display: grid; gap: 2rem; }
.pet-groups--2 { grid-template-columns: repeat(2, 1fr); }
.pet-groups--3 { grid-template-columns: repeat(3, 1fr); }
.pet-groups--4 { grid-template-columns: repeat(4, 1fr); }
.pet-group h3 {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--primary); padding-bottom: .7rem; margin-bottom: .9rem;
    border-bottom: 1px solid var(--line);
}
.pet-group ul { list-style: none; display: grid; gap: .5rem; }
.pet-group li { color: var(--text); font-size: .95rem; }

/* ----------------------------------------------------------------- tables */
.pet-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pet-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.pet-table caption {
    caption-side: top; text-align: left; padding: 1.1rem 1.3rem;
    color: var(--muted); font-size: .88rem; border-bottom: 1px solid var(--line);
}
.pet-table th, .pet-table td { padding: .95rem 1.3rem; text-align: left; vertical-align: top; }
.pet-table thead th {
    background: var(--bg-soft); color: var(--ink); font-family: var(--font-head);
    font-size: .86rem; text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.pet-table tbody tr + tr th, .pet-table tbody tr + tr td { border-top: 1px solid var(--line); }
.pet-table tbody th { color: var(--ink); font-weight: 700; font-family: var(--font-head); width: 30%; }
.pet-table tbody td { color: var(--muted); }
.pet-table tbody tr:hover th, .pet-table tbody tr:hover td { background: rgba(99, 102, 241, .04); }

/* ---------------------------------------------------------------- gallery */
.pet-gallery { display: grid; gap: 1.6rem; }
.pet-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.pet-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.pet-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.pet-shot { margin: 0; }
.pet-shot img {
    width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--bg-soft); box-shadow: var(--shadow);
}
.pet-shot figcaption { margin-top: .9rem; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------ embed / map */
.pet-embed { margin: 0; }
.pet-embed-frame {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background: var(--bg-soft);
}
.pet-embed-frame iframe { display: block; width: 100%; min-height: 380px; border: 0; }
.pet-embed-frame--empty {
    display: grid; place-items: center; min-height: 260px;
    color: var(--muted); font-size: .95rem;
    background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, #eef2fa 12px, #eef2fa 24px);
}
.pet-embed figcaption { margin-top: .9rem; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------- prose / richtext */
.pet-prose { max-width: 78ch; }
.pet-prose--wide { max-width: none; }

/* A Rich Section reads as an article: text stays left-aligned, the column is
   centred so it does not hug the edge of a very wide container. */
.pet-prose-sec .section-head--left,
.pet-prose-sec .pet-prose,
.pet-prose-sec .pet-sec-action { margin-inline: auto; }
.pet-prose-sec .section-head--left { max-width: 78ch; }
.pet-prose > *:last-child { margin-bottom: 0; }
.pet-prose p { color: var(--text); font-size: 1.02rem; margin-bottom: 1.1rem; }
.pet-prose h3 { margin: 2rem 0 .7rem; }
.pet-prose h4 { margin: 1.6rem 0 .5rem; font-size: 1.02rem; }
.pet-prose ul, .pet-prose ol { margin: 0 0 1.2rem 1.3rem; display: grid; gap: .5rem; }
.pet-prose li { color: var(--text); }
.pet-prose blockquote {
    margin: 1.4rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--primary);
    background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pet-prose img { border-radius: var(--radius); margin: 1.2rem 0; }
.pet-prose table {
    width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem;
    display: block; overflow-x: auto;
}
.pet-prose th, .pet-prose td { padding: .8rem 1rem; border: 1px solid var(--line); text-align: left; }
.pet-prose thead th { background: var(--bg-soft); }

/* ------------------------------------------------------------------ forms */
form.pet-form { max-width: 820px; }
.pet-form .field span { font-weight: 600; font-size: .9rem; color: var(--ink); }
.pet-form .field span em { color: var(--primary); font-style: normal; }
.pet-form select {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .98rem;
    color: var(--ink); background: #fff; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7891' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
    padding-right: 2.6rem;
}
.pet-form select:focus, .pet-form input:focus, .pet-form textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.pet-form input, .pet-form textarea {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .98rem;
    color: var(--ink); background: #fff;
}
.pet-form textarea { resize: vertical; }
.pet-hp { position: absolute; left: -9999px; width: 1px; overflow: hidden; }

.pet-form-success {
    background: rgba(0, 194, 168, .12); border: 1px solid rgba(0, 194, 168, .4);
    color: #0a7c6c; padding: .95rem 1.2rem; border-radius: var(--radius-sm);
    margin-bottom: 1.6rem; font-weight: 600;
}

div.pet-newsletter {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem);
}
.pet-newsletter h2 { margin-bottom: .5rem; }
.pet-newsletter p { color: var(--muted); font-size: .98rem; }
.pet-newsletter-form { display: flex; gap: .7rem; align-items: stretch; }
.pet-newsletter-form .field { flex: 1 1 auto; }
.pet-newsletter-form input {
    width: 100%; height: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .98rem; background: #fff;
}
.pet-newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .pet-cards--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
    .pet-hero--split .pet-hero-grid { grid-template-columns: 1fr; }
    .pet-cards--3, .pet-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .pet-gallery--3, .pet-gallery--4 { grid-template-columns: repeat(2, 1fr); }
    .pet-groups--3, .pet-groups--4 { grid-template-columns: repeat(2, 1fr); }
    .pet-linklist--3 { grid-template-columns: repeat(2, 1fr); }
    div.pet-newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .pet-cards--2, .pet-cards--3, .pet-cards--4 { grid-template-columns: 1fr; }
    .pet-gallery--2, .pet-gallery--3, .pet-gallery--4 { grid-template-columns: 1fr; }
    .pet-groups--2, .pet-groups--3, .pet-groups--4 { grid-template-columns: 1fr; }
    .pet-linklist--2, .pet-linklist--3 { grid-template-columns: 1fr; }
    .pet-bullets--2, .pet-bullets--3 { grid-template-columns: 1fr; }
    .pet-steps li { padding: 1.2rem; }
    .pet-newsletter-form { flex-direction: column; }
    .pet-table { min-width: 0; }
    .pet-table thead { display: none; }
    .pet-table tbody tr { display: block; border-bottom: 1px solid var(--line); padding: .6rem 0; }
    .pet-table tbody th, .pet-table tbody td { display: block; width: auto; border: 0; padding: .35rem 1.1rem; }
    .pet-table tbody th { font-size: 1rem; padding-top: .8rem; }
    .pet-table tbody td::before {
        content: attr(data-label); display: block;
        font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
        color: var(--primary); font-weight: 700;
    }
    .pet-table tbody tr + tr th, .pet-table tbody tr + tr td { border-top: 0; }
}
