/*
Theme Name: Pet Deals 4U
Theme URI: https://petdeals4u.co.uk
Author: Pet Deals 4U
Description: A fast, responsive UK Amazon affiliate theme for dog and cat deals, buying guides and practical pet finds.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: petdeals4u
*/

:root {
  --ink: #13251f;
  --teal: #0f6c5d;
  --teal-dark: #08473e;
  --coral: #ff705d;
  --yellow: #ffd85e;
  --cream: #fff9ed;
  --paper: #fffdf8;
  --mint: #dff4e9;
  --line: #d9ded7;
  --muted: #5c6b65;
  --white: #fff;
  --shadow: 8px 8px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.offer-bar { background: var(--ink); color: var(--white); padding: 9px 18px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.offer-bar span { color: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; gap: 11px; font-size: 1.1rem; font-weight: 950; letter-spacing: -.04em; }
.site-logo b { color: var(--coral); }
.paw-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 1.25rem; transform: rotate(-7deg); }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.primary-menu a { font-size: .78rem; font-weight: 850; }
.primary-menu a:hover { color: var(--teal); }
.shop-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 999px; padding: 11px 17px; font-size: .72rem; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); }
.menu-toggle { display: none; border: 0; background: transparent; font-weight: 900; font-size: .75rem; }

.hero { background: var(--cream); overflow: hidden; }
.hero-inner { min-height: 650px; padding: 80px 0 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--teal); font-size: .68rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow:before { content: ''; width: 28px; height: 3px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.8rem, 7vw, 7.5rem); font-weight: 500; line-height: .9; letter-spacing: -.07em; }
.hero h1 em { color: var(--teal); font-weight: 500; }
.hero-copy > p:not(.eyebrow):not(.affiliate-mini) { max-width: 620px; margin: 30px 0; color: var(--muted); font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: .76rem; font-weight: 950; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { color: var(--white); background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-light { background: var(--white); }
.button-coral { color: var(--ink); background: var(--coral); box-shadow: 4px 4px 0 var(--ink); }
.affiliate-mini { margin: 24px 0 0; color: #708079; font-size: .65rem; }
.hero-art { min-height: 500px; position: relative; display: grid; place-items: center; }
.hero-blob { position: absolute; width: 430px; height: 430px; border-radius: 48% 52% 60% 40%; background: var(--mint); transform: rotate(16deg); }
.hero-pets { position: relative; z-index: 2; width: min(94%, 570px); max-height: 530px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 22px 18px rgba(19,37,31,.14)); }
.pet-badge { position: absolute; z-index: 4; min-width: 165px; padding: 13px 16px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.pet-badge span, .pet-badge strong { display: block; }
.pet-badge span { color: var(--teal); font-size: .55rem; font-weight: 950; letter-spacing: .13em; }
.pet-badge strong { margin-top: 3px; font-family: Georgia, serif; font-size: .96rem; font-weight: 500; }
.pet-badge-cat { left: 1%; top: 32%; transform: rotate(-6deg); }
.pet-badge-dog { right: 0; bottom: 11%; transform: rotate(5deg); background: var(--yellow); }
.pet-card { position: absolute; width: 235px; min-height: 285px; padding: 22px; border: 2px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.pet-card.cat { left: 6%; top: 16%; transform: rotate(-8deg); }
.pet-card.dog { right: 5%; bottom: 12%; transform: rotate(7deg); background: var(--yellow); }
.pet-face { height: 140px; display: grid; place-items: center; border-radius: 18px; background: var(--mint); font-size: 5.6rem; line-height: 1; }
.pet-card.dog .pet-face { background: var(--cream); }
.pet-card small { display: block; margin-top: 18px; color: var(--teal); font-size: .6rem; font-weight: 950; letter-spacing: .12em; }
.pet-card strong { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.05; }
.deal-sticker { position: absolute; top: 4%; right: 5%; width: 108px; height: 108px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); font-size: .67rem; font-weight: 950; transform: rotate(12deg); }
.deal-sticker b { display: block; font-family: Georgia, serif; font-size: 1.55rem; }

.trust-strip { background: var(--teal-dark); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.18); }
.trust-item:last-child { border: 0; }
.trust-item strong, .trust-item span { display: block; }
.trust-item strong { color: var(--yellow); font-size: .73rem; text-transform: uppercase; letter-spacing: .09em; }
.trust-item span { margin-top: 4px; color: #cbe1d9; font-size: .68rem; }

.section { padding: 100px 0; }
.section-soft { background: var(--cream); }
.section-teal { background: var(--teal); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 44px; }
.section-head h2, .content-hero h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.section-head > p { max-width: 390px; margin: 0; color: var(--muted); font-size: .87rem; }
.section-teal .section-head > p { color: #cce3dc; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { min-height: 260px; display: flex; flex-direction: column; padding: 25px; border: 1.5px solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 var(--ink); transition: transform .2s ease; }
.category-card:hover { transform: translateY(-5px); }
.category-card:nth-child(2n) { background: var(--yellow); }
.category-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; background: var(--mint); font-size: 1.8rem; }
.category-card:nth-child(2n) .category-icon { background: var(--white); }
.category-card small { color: var(--teal); font-size: .58rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.category-card h3 { margin: 7px 0 8px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.1; }
.category-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.category-card b { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: .7rem; }

.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25); }
.problem-card { min-height: 270px; padding: 26px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.problem-card span { color: var(--yellow); font-family: Georgia, serif; font-size: 1.55rem; }
.problem-card h3 { margin: 45px 0 12px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.problem-card p { color: #cce3dc; font-size: .75rem; }
.problem-card a { display: inline-block; margin-top: 12px; color: var(--yellow); font-size: .7rem; font-weight: 900; border-bottom: 1px solid currentColor; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { min-height: 350px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); background: var(--white); }
.guide-card .guide-no { font-family: Georgia, serif; font-size: 1.4rem; color: var(--teal); }
.guide-card small { margin-top: 48px; color: var(--coral); font-weight: 950; font-size: .58rem; letter-spacing: .12em; }
.guide-card h3 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 1.75rem; line-height: 1.1; font-weight: 500; }
.guide-card p { color: var(--muted); font-size: .77rem; }
.guide-card b { margin-top: auto; font-size: .7rem; }

.email-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 50px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.email-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 500; line-height: 1; }
.email-panel p { margin: 14px 0 0; font-size: .78rem; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.social-list a, .social-list span { padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-size: .7rem; font-weight: 900; }

.content-hero { padding: 75px 0 55px; background: var(--cream); }
.content-hero p { max-width: 700px; color: var(--muted); }
.disclosure-box { margin: 24px 0 0; padding: 13px 16px; border-left: 4px solid var(--coral); background: var(--white); font-size: .68rem; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 70px; padding: 70px 0 100px; }
.prose h2 { margin: 45px 0 12px; font-family: Georgia, serif; font-size: 2.3rem; line-height: 1.05; font-weight: 500; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.side-card { position: sticky; top: 110px; padding: 24px; border: 1.5px solid var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.side-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.5rem; }
.side-card ul { margin: 18px 0 0; padding-left: 18px; font-size: .75rem; }
.pick-list { display: grid; gap: 16px; margin-top: 30px; }
.pick-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.pick-row .pick-emoji { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 1.65rem; }
.pick-row h3 { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.pick-row p { margin: 3px 0 0; font-size: .7rem; color: var(--muted); }
.pick-row a { display: inline-flex; padding: 9px 13px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .65rem; font-weight: 900; white-space: nowrap; }

.site-footer { padding: 65px 0 25px; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { max-width: 330px; color: #b8c5c0; font-size: .74rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: .72rem; }
.footer-links strong { margin-bottom: 6px; color: var(--yellow); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--yellow); }
.legal { margin-top: 45px; padding-top: 25px; border-top: 1px solid #3c4b46; color: #94a39e; font-size: .62rem; }
.legal p { margin: 7px 0; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: block; }
  .primary-menu { flex-direction: column; align-items: flex-start; }
  .header-inner > .shop-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { min-height: 430px; }
  .category-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }.side-card { position: static; }
}

@media (max-width: 620px) {
  body.admin-bar .site-header { top: 46px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .offer-bar { font-size: .61rem; }
  .header-inner { min-height: 70px; }
  .site-logo { font-size: .92rem; }.paw-mark { width: 36px; height: 36px; }
  .primary-nav { top: 70px; }
  .hero-inner { padding: 50px 0 45px; }.hero h1 { font-size: 3.75rem; }.hero-copy > p:not(.eyebrow):not(.affiliate-mini) { font-size: .92rem; }
  .hero-art { min-height: 390px; }.hero-blob { width: 330px; height: 330px; }.hero-pets { width: 95%; max-height: 400px; }.pet-badge { min-width: 135px; padding: 10px 12px; }.pet-badge-cat { top: 40%; left: 0; }.pet-badge-dog { right: 0; bottom: 4%; }.pet-badge strong { font-size: .78rem; }.deal-sticker { width: 82px; height: 82px; font-size: .54rem; }
  .trust-grid, .category-grid, .guide-grid, .problem-grid { grid-template-columns: 1fr; }.trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .section { padding: 75px 0; }.section-head { align-items: flex-start; flex-direction: column; gap: 18px; }.section-head h2, .content-hero h1 { font-size: 2.85rem; }
  .problem-card { min-height: 230px; }.problem-card h3 { margin-top: 28px; }
  .email-panel { grid-template-columns: 1fr; padding: 28px; }.social-list { justify-content: flex-start; }
  .content-grid { padding-top: 45px; }.pick-row { grid-template-columns: 48px 1fr; }.pick-row .pick-emoji { width: 45px; height: 45px; }.pick-row a { grid-column: 1 / -1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }.footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
