/* Homepage (P4, 22 Oct 2026). Loaded only by / and /ar/, on top of styles.css.
   Mobile-first; logical properties so the Arabic page mirrors itself. */

.page-home .btn { border-radius: 4px; min-height: 48px; justify-content: center; }
.page-home .eyebrow { color: #8a6a35; }

/* 1. Hero: full-bleed real photo with a dark overlay */
.home-hero { position: relative; isolation: isolate; color: var(--white); min-block-size: min(86svh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.home-hero picture, .home-hero__img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 27, 45, 0.45) 0%, rgba(15, 27, 45, 0.68) 45%, rgba(15, 27, 45, 0.94) 100%); }
.home-hero__body { padding-block: 120px 56px; inline-size: 100%; }
.home-hero .eyebrow { color: var(--sand); }
.home-hero h1, .home-hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.home-hero h1 { color: var(--white); max-inline-size: 14ch; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem); text-wrap: balance; }
.home-hero__lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-inline-size: 36rem; color: #f3ead9; }
.home-hero__alt { font-size: 0.95rem; color: #e8d6b3; margin-block-start: 18px; max-inline-size: 40rem; }
.home-hero__alt a { color: var(--white); overflow-wrap: anywhere; }
.photo-credit { position: absolute; inset-block-end: 6px; inset-inline-end: 12px; margin: 0; font-size: 0.68rem; color: rgba(255, 255, 255, 0.7); }
.photo-credit a { color: inherit; }

.doors { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.doors .btn { min-inline-size: 180px; }
.doors--center { justify-content: center; }
@media (max-width: 479px) { .doors .btn { flex: 1 1 100%; } }

/* Sections: ivory / white alternate, one ink band */
.home-section { padding-block: 72px; }
.home-section--white { background: var(--white); }
.home-section h2 { max-inline-size: 22ch; text-wrap: balance; }

/* 2. Breed tiles */
.breed-tiles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
.breed-tile { background: var(--white); border: 1px solid #eadfcb; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.breed-tile img { inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.breed-tile h3, .breed-tile p { padding-inline: 20px; }
.breed-tile h3 { margin-block-start: 18px; }
.breed-tile__links { margin-block-start: auto; padding-block-end: 18px; display: flex; gap: 20px; font-weight: 600; }
.breed-tile__links a { color: #8a6a35; text-underline-offset: 4px; }

/* 3. Buyers / sellers */
.split { display: grid; gap: 40px; }
.split__col p { max-inline-size: 34rem; }
.services-row { margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid #eadfcb; }
.services-row p { margin: 0; }
.services-row a { color: var(--ink); text-underline-offset: 4px; }

/* 4. Steps + promises */
.home-steps { list-style: none; counter-reset: step; margin: 32px 0; padding: 0; display: grid; gap: 24px; }
.home-steps li { counter-increment: step; border-block-start: 2px solid var(--sand); padding-block-start: 16px; }
.home-steps h3::before { content: counter(step) ". "; color: #8a6a35; font-variant-numeric: lining-nums; }
.home-promises { margin: 0 0 16px; padding-inline-start: 20px; }
.home-promises li { margin-block-end: 6px; }

/* 5. Trust band (ink) */
.home-trust { background: var(--ink); color: #e8d6b3; }
.home-trust h2 { color: var(--white); }
.home-trust .eyebrow { color: var(--sand); }
.home-trust a { color: var(--white); text-underline-offset: 4px; }
.home-trust__grid { display: grid; gap: 32px; align-items: center; }
.home-trust__sales { font-family: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif; font-size: 1.35rem; color: var(--white); line-height: 1.5; }
.home-trust__photo { margin: 0; }
.home-trust__photo img { inline-size: 100%; block-size: auto; border-radius: 8px; display: block; }
.home-trust__photo figcaption { font-size: 0.75rem; margin-block-start: 8px; color: rgba(232, 214, 179, 0.8); }

/* 6. Contact */
.home-contact { text-align: center; }
.home-contact h2 { margin-inline: auto; }
.home-contact .letter-form { margin: 32px auto 8px; max-inline-size: 520px; }
.home-contact .letter-note { font-size: 0.85rem; color: var(--muted); }

@media (min-width: 768px) {
  .breed-tiles { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .home-steps { grid-template-columns: repeat(3, 1fr); }
  .home-trust__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
@media (min-width: 1152px) {
  .home-section { padding-block: 112px; }
}

/* Agent strip + journal cards (22 Oct 2026) */
.home-agent { background: var(--white); border-block-end: 1px solid #eadfcb; }
.home-agent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
.home-agent__inner p { margin: 0; max-inline-size: 44rem; }
.home-agent__text { max-inline-size: 44rem; }
.home-agent__inner .home-agent__text p + p { margin-block-start: 10px; }
.home-agent__links { display: flex; flex-wrap: wrap; gap: 10px; }
.journal-cards { list-style: none; margin: 28px 0 20px; padding: 0; display: grid; gap: 16px; }
.journal-cards a { display: grid; gap: 6px; block-size: 100%; padding: 20px; background: var(--cream); border: 1px solid #eadfcb; border-radius: 8px; text-decoration: none; color: var(--text); }
.journal-cards a:hover { border-color: var(--sand); }
.journal-cards strong { font: 600 1.35rem/1.2 "Cormorant Garamond", Georgia, serif; color: var(--ink); }
.journal-cards .eyebrow { margin: 0; }
@media (min-width: 768px) { .journal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1152px) { .journal-cards { grid-template-columns: repeat(4, 1fr); } }
/* Phones (conversion audit fix 6, 23 Oct 2026): hero buttons above the fold at 360px */
@media (max-width: 479px) {
  .home-hero { min-block-size: auto; }
  .home-hero__body { padding-block: 40px 40px; }
  .home-hero h1 { font-size: 2.1rem; }
  .home-hero__lead { font-size: 1rem; }
  .home-hero__alt { margin-block-start: 12px; font-size: .9rem; }
  .sale-bar { font-size: .82rem; padding: 6px 12px; }
}

/* ===== Home v2 (24 Oct 2026): premium, alive, trustworthy. CSS-only motion, all of it off under prefers-reduced-motion. ===== */
.page-home { --gold: #8a6a35; --line: #eadfcb; }
.page-home .eyebrow--rule { display: inline-flex; align-items: center; gap: 12px; }
.page-home .eyebrow--rule::before { content: ""; inline-size: 32px; block-size: 1px; background: currentColor; opacity: .7; flex: none; }
.page-home .eyebrow--center { justify-content: center; }
.home-hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.home-hero__eyebrow::before { content: ""; inline-size: 32px; block-size: 1px; background: var(--sand); flex: none; }
.home-hero__lead strong { color: var(--white); }
.home-hero .ask-rowan { margin-block-start: 20px; }

/* Facts strip, straight under the hero */
.home-facts { background: var(--white); border-block-end: 1px solid var(--line); padding-block: 0; }
.page-home .home-agent { padding-block: 8px; }
.facts { list-style: none; margin: 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.facts li { display: grid; gap: 4px; align-content: start; padding-inline-start: 14px; border-inline-start: 2px solid var(--sand); }
.facts strong { font: 600 clamp(1.25rem, 1rem + 1vw, 1.7rem)/1.15 "Cormorant Garamond", Georgia, serif; color: var(--ink); font-variant-numeric: lining-nums; }
.wo-date, .step-n, .journal-cards .eyebrow { font-variant-numeric: lining-nums; }
.facts span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
[dir="rtl"] .facts strong { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-weight: 700; }
.fee-line { margin: 22px 0 0; padding: 14px 0 26px; border-block-start: 1px solid var(--line); font-size: .95rem; }
.fee-line a { color: var(--gold); font-weight: 600; text-underline-offset: 4px; }

/* What's on now (filled at build time from the owners' calendar) */
.home-whatson { background: var(--navy); color: var(--sand-light); padding-block: 28px; }
.home-whatson .eyebrow { color: var(--sand); margin: 0; }
.wo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-block-end: 16px; }
.wo-all { color: var(--white); font-size: .9rem; text-underline-offset: 4px; }
.wo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wo-item { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid rgba(201, 164, 106, .35); border-radius: 8px; background: rgba(255, 255, 255, .03); min-inline-size: 0; }
.wo-item.is-now { border-color: var(--sand); background: rgba(201, 164, 106, .08); }
.wo-pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
.wo-pill::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; opacity: .6; }
.wo-item.is-now .wo-pill { color: #7fd6a0; }
.wo-item.is-now .wo-pill::before { opacity: 1; }
.wo-date { font-size: .9rem; color: var(--sand-light); }
.wo-name { font: 600 1.4rem/1.2 "Cormorant Garamond", Georgia, serif; color: var(--white); overflow-wrap: anywhere; }
[dir="rtl"] .wo-name { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-size: 1.15rem; }
.wo-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .92rem; font-weight: 600; }
.wo-links a { color: var(--white); text-underline-offset: 4px; }
[dir="rtl"] .wo-pill { letter-spacing: 0; }

/* How we buy for you: numbered steps */
.home-steps li { border-block-start: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; position: relative; }
.home-steps h3::before { content: none; }
.step-n { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; border: 1px solid var(--sand); color: var(--gold); font: 600 1.35rem/1 "Cormorant Garamond", Georgia, serif; margin-block-end: 12px; }
.home-steps h3 { margin-block-start: 0; }
.home-steps p { margin-block-end: 0; }

/* Trust: what we do / don't do, vets, partner trainers */
.home-honest h2 { margin-block-end: 8px; }
.honest-grid { display: grid; gap: 20px; margin-block-start: 28px; }
.honest-col { padding: 24px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream); }
.honest-col h3 { margin-block-start: 0; }
.honest-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.honest-col li { position: relative; padding-inline-start: 28px; }
.honest-col li::before { position: absolute; inset-inline-start: 0; inset-block-start: 0; font-weight: 700; }
.honest-col--do li::before { content: "\2713"; color: #2f7a4f; }
.honest-col--dont li::before { content: "\2715"; color: #9b3b2f; }
.trust-cards { display: grid; gap: 20px; margin-block-start: 20px; }
.trust-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.trust-card img { inline-size: 100%; block-size: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.trust-card figcaption { padding: 18px 20px 20px; font-size: .95rem; }
.trust-card figcaption strong { display: block; font: 600 1.3rem/1.2 "Cormorant Garamond", Georgia, serif; color: var(--ink); margin-block-end: 6px; }
[dir="rtl"] .trust-card figcaption strong { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-size: 1.1rem; }
.trust-card a { color: var(--gold); font-weight: 600; text-underline-offset: 4px; }
.trust-credit { display: block; margin-block-start: 10px; font-size: .72rem; color: var(--muted); }
.honest-more { margin-block: 20px 0; }

/* Journal: the 3 newest guides */
.journal-cards a { transition: border-color .2s, transform .2s, box-shadow .2s; }
.journal-cards .jc-more { margin-block-start: auto; color: var(--gold); font-weight: 600; font-size: .92rem; }
.journal-cards a > span:not(.eyebrow):not(.jc-more) { color: var(--muted); font-size: .95rem; }
[dir="rtl"] .journal-cards strong { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-size: 1.15rem; }
@media (min-width: 1152px) { .journal-cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 1151px) { .journal-cards--3 { grid-template-columns: repeat(3, 1fr); } }

.home-contact { background: var(--cream); }
.home-contact__phone { margin-block-start: 14px; font-size: .95rem; }
.home-contact__phone a { color: var(--ink); font-weight: 600; }

@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block-start: 32px; }
  .wo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honest-grid, .trust-cards { grid-template-columns: 1fr 1fr; }
}

/* Hover: a small lift on cards (pointer devices only) */
@media (hover: hover) {
  .journal-cards a:hover, .breed-tile:hover, .trust-card:hover, .wo-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(15, 27, 45, .45); }
  .breed-tile, .trust-card, .wo-item { transition: transform .25s, box-shadow .25s, border-color .25s; }
}

/* Motion: slow photo drift, hero fade-up, a breathing "on now" dot, sections that rise in as they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .home-hero__img { animation: hv-drift 18s ease-out both; transform-origin: 60% 40%; }
  .home-hero__body > * { animation: hv-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero__body > :nth-child(2) { animation-delay: .08s; }
  .home-hero__body > :nth-child(3) { animation-delay: .16s; }
  .home-hero__body > :nth-child(4) { animation-delay: .24s; }
  .home-hero__body > :nth-child(n+5) { animation-delay: .32s; }
  .wo-item.is-now .wo-pill::before { animation: hv-pulse 1.8s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    /* transform only, never opacity: content is always readable, even before it scrolls into view */
    .reveal > .wrap { animation: hv-lift linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes hv-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hv-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hv-lift { from { transform: translateY(28px); } to { transform: none; } }
@keyframes hv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 214, 160, .55); } 50% { box-shadow: 0 0 0 6px rgba(127, 214, 160, 0); } }

/* Phones: no sideways scroll at 360px */
@media (max-width: 479px) {
  .facts { gap: 16px; }
  .facts span { font-size: .8rem; }
  .wo-item { padding: 16px; }
  .honest-col, .home-steps li { padding: 20px 18px; }
  .home-section h2 { overflow-wrap: anywhere; }
}