/*
Theme Name: My Pet Central
Theme URI: https://mypetcentral.co.uk
Author: My Pet Central
Author URI: https://mypetcentral.co.uk
Description: A beautiful, classic marketing theme for the My Pet Central pet-business software. Elegant serif headings, the brand palette drawn from the logo, a designed homepage and ready-made Features, Pricing, About and Contact pages you can fill with your own images. Built to sell grooming, walking and sitting software.
Version: 1.14.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpc-theme
Tags: business, portfolio, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, right-sidebar, footer-widgets, translation-ready
*/

/* ============================================================= *
 *  My Pet Central — classic marketing theme
 *  Palette taken from the logo: navy, paw-blue, warm orange, cream
 * ============================================================= */

:root {
	--navy:      #1E3A5F;
	--navy-2:    #17304F;
	--blue:      #4A7BA6;
	--blue-dark: #3A6389;
	--blue-tint: #EAF1F7;
	--orange:    #E8994E;
	--orange-dark:#D97F2E;
	--cream:     #FBF7F0;
	--paper:     #FFFFFF;
	--ink:       #22314A;
	--muted:     #6B7A90;
	--line:      #EAE4D8;
	--line-2:    #F1ECE2;
	--shadow:    0 12px 34px rgba(30,58,95,.09);
	--shadow-sm: 0 4px 14px rgba(30,58,95,.07);
	--radius:    16px;
	--radius-lg: 22px;
	--maxw:      1160px;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--navy);
	line-height: 1.15;
	font-weight: 700;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--blue-tint); }
.section--paper { background: var(--paper); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.eyebrow {
	font-family: var(--sans);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--blue);
	margin: 0 0 14px;
}
.lead { font-size: 1.24rem; color: var(--muted); }

/* Decorative divider using brand diamond */
.diamond {
	width: 22px; height: 22px; margin: 0 auto 22px;
	background: var(--orange);
	transform: rotate(45deg);
	border-radius: 5px;
	box-shadow: 0 0 0 6px rgba(232,153,78,.16);
}

/* --------- Buttons --------- */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
	padding: 14px 26px; border-radius: 12px;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn--primary {
	background: var(--orange); color: #fff;
	box-shadow: 0 8px 20px rgba(232,153,78,.32);
}
.btn--primary:hover { background: var(--orange-dark); color:#fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(232,153,78,.4); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background:#fff; color: var(--navy); }
.btn--light:hover { background: var(--cream); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------- Header --------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(1.4) blur(6px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.42rem; color: var(--navy); letter-spacing: -.01em; }
.brand__name small { display:block; font-family: var(--sans); font-weight:600; font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color: var(--blue); margin-top:2px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
	display: block; padding: 10px 15px; border-radius: 9px;
	font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.nav a:hover, .nav .current-menu-item > a { color: var(--navy); background: var(--blue-tint); }
.header-cta { margin-left: 10px; }
.header-demo { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* --------- Hero --------- */
.hero { padding: 88px 0 76px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__logo { width: 300px; max-width: 80%; margin-bottom: 26px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--blue); font-style: italic; }
.hero .lead { margin-bottom: 30px; max-width: 34em; }
.hero__art {
	position: relative; border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow); border: 1px solid var(--line);
	aspect-ratio: 4 / 3.1; background: var(--blue-tint);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

.trust {
	display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
	margin-top: 34px; color: var(--muted); font-weight: 600; font-size: .98rem;
}
.trust .dot { width:6px; height:6px; border-radius:50%; background: var(--orange); display:inline-block; margin-right:10px; }

/* --------- Feature grid --------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 30px 28px;
	box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
	width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
	display: grid; place-items: center; font-size: 26px;
	background: var(--blue-tint); color: var(--blue-dark);
	border: 1px solid #dbe6ef;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* --------- Audience cards (who it's for) --------- */
.audience { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.audience__item { border-radius: var(--radius); overflow: hidden; background: var(--paper); border:1px solid var(--line); box-shadow: var(--shadow-sm); }
.audience__pic { aspect-ratio: 4/3; overflow: hidden; }
.audience__pic img { width:100%; height:100%; object-fit: cover; }
.audience__body { padding: 24px 26px 28px; }
.audience__body h3 { margin-bottom:.35em; }
.audience__body p { color: var(--muted); margin:0; font-size:1.02rem; }

/* --------- Spotlight (alternating) --------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight--rev .spotlight__media { order: 2; }
.spotlight__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border:1px solid var(--line); aspect-ratio: 5/4; background: var(--blue-tint); }
.spotlight__media img { width:100%; height:100%; object-fit: cover; }
.checklist { list-style: none; margin: 22px 0 28px; padding: 0; }
.checklist li { position: relative; padding: 6px 0 6px 34px; color: var(--ink); font-weight: 500; }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 12px;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--blue); box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgba(74,123,166,.18);
}
.checklist li::after {
	content: ""; position:absolute; left:6px; top:16px; width:5px; height:9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* --------- Quote --------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote {
	font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2rem);
	line-height: 1.4; color: var(--navy); font-style: italic; margin: 0 0 20px;
}
.quote cite { font-style: normal; font-weight: 700; color: var(--blue-dark); }
.quote cite span { display:block; font-weight:500; color: var(--muted); font-size:.95rem; }

/* --------- CTA band --------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--blue-dark)); color:#fff; border-radius: 0; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .container { text-align:center; }

/* --------- Page (default) --------- */
.page-hero { background: var(--paper); border-bottom:1px solid var(--line); padding: 70px 0 54px; text-align:center; }
.page-hero .eyebrow { color: var(--blue); }
.entry { padding: 72px 0; }
.entry .container { max-width: 860px; }
.entry img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.4em 0; }
.entry h2 { margin-top: 1.4em; }
.entry h3 { margin-top: 1.2em; color: var(--blue-dark); }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin: .4em 0; }
.entry .wp-block-buttons { margin: 1.4em 0; }
.entry .wp-block-button__link { background: var(--orange); color:#fff; border-radius: 12px; padding: 14px 26px; font-weight:700; }

/* Pricing table (blocks-friendly helper) */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:26px; }
.price {
	background: var(--paper); border:1px solid var(--line); border-radius: var(--radius);
	padding: 34px 28px; text-align:center; box-shadow: var(--shadow-sm);
}
.price--featured { border-color: var(--orange); box-shadow: var(--shadow); position: relative; }
.price--featured::before {
	content: "Most popular"; position:absolute; top:-13px; left:50%; transform:translateX(-50%);
	background: var(--orange); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.08em;
	text-transform:uppercase; padding: 5px 14px; border-radius: 20px;
}
.price h3 { font-family: var(--sans); text-transform:uppercase; letter-spacing:.12em; font-size:.9rem; color: var(--muted); }
.price .amount { font-family: var(--serif); font-size: 3rem; color: var(--navy); line-height:1; margin: 10px 0 4px; }
.price .amount small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.price ul { list-style:none; padding:0; margin: 20px 0 26px; text-align:left; }
.price li { padding: 7px 0 7px 28px; position:relative; color: var(--ink); border-top:1px solid var(--line-2); }
.price li:first-child { border-top:0; }
.price li::before { content:"✓"; position:absolute; left:0; color: var(--blue); font-weight:800; }

/* --------- Footer --------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.82); padding: 66px 0 30px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img { width:44px; height:44px; border-radius:10px; background:#fff; padding:2px; }
.footer-brand span { font-family: var(--serif); font-size:1.3rem; color:#fff; font-weight:700; }
.site-footer h4 { color:#fff; font-family: var(--sans); text-transform:uppercase; letter-spacing:.12em; font-size:.82rem; margin:0 0 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin: 9px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:.92rem; color: rgba(255,255,255,.6); }

/* --------- 404 / search --------- */
.mini { padding: 110px 0; text-align:center; }

/* --------- Responsive --------- */
@media (max-width: 960px) {
	.hero__grid, .spotlight { grid-template-columns: 1fr; }
	.spotlight--rev .spotlight__media { order: 0; }
	.grid--3, .audience, .price-grid { grid-template-columns: 1fr 1fr; }
	.hero__art { max-width: 560px; }
}
@media (max-width: 720px) {
	body { font-size: 17px; }
	.section { padding: 64px 0; }
	.nav, .header-cta, .header-demo { display: none; }
	.nav.is-open { display: block; position: absolute; top: 78px; left: 0; right: 0; background:#fff; border-bottom:1px solid var(--line); padding: 12px 24px; }
	.nav.is-open ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-toggle { display: block; }
	.grid--3, .grid--2, .audience, .price-grid, .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================= *
 *  Complete features page (template-full-features.php)
 * ============================================================= */
.feat-jump { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:26px; }
.feat-jump a {
	font-family: var(--sans); font-weight:700; font-size:.95rem;
	padding:9px 18px; border-radius:999px; border:1.5px solid var(--line);
	background:#fff; color:var(--navy);
}
.feat-jump a:hover { border-color: var(--orange); color: var(--orange-dark); }

.aud-head { display:flex; align-items:center; gap:24px; margin-bottom:36px; }
.aud-head__pic { width:116px; height:116px; flex:0 0 auto; border-radius:22px; overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); background: var(--blue-tint); }
.aud-head__pic img { width:100%; height:100%; object-fit:cover; }
.aud-head h2 { margin:0 0 .18em; }
.aud-head p { margin:0; color: var(--muted); font-size:1.1rem; }

.feat-cats { display:grid; grid-template-columns: repeat(2,1fr); gap:26px; }
.feat-cat {
	background: var(--paper); border:1px solid var(--line); border-radius: var(--radius);
	padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.feat-cat h3 { font-size:1.16rem; margin:0 0 .55em; display:flex; align-items:center; gap:11px; }
.feat-cat h3 .ic {
	width:34px; height:34px; flex:0 0 auto; border-radius:9px;
	background: var(--blue-tint); display:inline-flex; align-items:center; justify-content:center; font-size:1.05rem;
}
.feat-list { list-style:none; margin:0; padding:0; }
.feat-list li { position:relative; padding:8px 0 8px 27px; color: var(--ink); font-size:1.0rem; border-top:1px solid var(--line-2); line-height:1.5; }
.feat-list li:first-child { border-top:0; }
.feat-list li::before { content:"✓"; position:absolute; left:0; top:8px; color: var(--orange-dark); font-weight:800; }
.feat-list li b { color: var(--navy); font-weight:700; }

@media (max-width: 860px) {
	.feat-cats { grid-template-columns: 1fr; }
	.aud-head { flex-direction:column; text-align:center; gap:16px; }
}

/* ============================================================= *
 *  Editable homepage (native blocks) — front-page.php renders the
 *  Home page's blocks; these bridge core blocks to the design.
 *  No alignfull is used (it needs a block theme); plain groups are
 *  full-width and .container centres the content.
 * ============================================================= */
.home-canvas .wp-block-group.container { width: 100%; max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.home-canvas .wp-block-columns { gap: 26px; }
.home-canvas figure.wp-block-image { margin: 0; }

/* Hero */
.home-canvas .hero-cols { gap: 52px; align-items: center; }
.home-canvas .hero__logo { width: auto; margin: 0 0 22px; }
.home-canvas .hero__logo img { width: 300px; max-width: 80%; }
.home-canvas .hero h1 .accent { color: var(--blue); font-style: italic; }
.home-canvas .hero-art img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.home-canvas .trust-line { color: var(--blue-dark); font-weight: 600; margin-top: 14px; }

/* Brand-styled buttons */
.home-canvas .wp-block-button__link { background: var(--orange); color: #fff; border-radius: 12px; padding: 14px 26px; font-weight: 700; font-family: var(--sans); border: 2px solid transparent; box-shadow: 0 8px 20px rgba(232,153,78,.32); }
.home-canvas .wp-block-button__link:hover { background: var(--orange-dark); color: #fff; }
.home-canvas .wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.home-canvas .wp-block-button.btn--ghost .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.home-canvas .wp-block-button.btn--light .wp-block-button__link { background: #fff; color: var(--navy); box-shadow: none; }
.home-canvas .wp-block-button.btn--light .wp-block-button__link:hover { background: var(--cream); }

/* Feature cards */
.home-canvas .card { height: 100%; }

/* Audience (columns styled as picture cards) */
.home-canvas .aud { gap: 28px; }
.home-canvas .aud .wp-block-column { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.home-canvas .aud .wp-block-column figure.wp-block-image { aspect-ratio: 4 / 3; }
.home-canvas .aud .wp-block-column figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.home-canvas .aud .wp-block-column h3 { margin: 20px 24px .3em; }
.home-canvas .aud .wp-block-column p { margin: 0 24px 24px; color: var(--muted); }

/* Spotlight */
.home-canvas .spot { gap: 52px; align-items: center; }
.home-canvas .spot figure.wp-block-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

@media (max-width: 781px) {
	.home-canvas .hero__logo img { margin-left: auto; margin-right: auto; }
}

/* ============================================================= *
 *  App showcase page (template-app.php) — phone mockups
 * ============================================================= */
.app-phone-fig { margin: 0; text-align: center; }
.app-phone-fig figcaption { margin-top: 12px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.app-phone {
	position: relative; width: 240px; max-width: 100%; margin: 0 auto;
	background: var(--navy); border-radius: 36px; padding: 12px;
	box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.08);
}
.app-phone::before {
	content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
	width: 54px; height: 6px; background: rgba(255,255,255,.35); border-radius: 4px; z-index: 2;
}
.app-phone__screen {
	position: relative;
	border-radius: 26px; overflow: hidden; aspect-ratio: 9 / 19.5; background: var(--blue-tint);
	display: flex; align-items: center; justify-content: center;
}
.app-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.app-slide.is-active { opacity: 1; }
.app-phone__screen img {
	position: absolute; left: 0; top: calc(-1 * var(--app-crop, 0%));
	width: 100%; height: calc(100% + var(--app-crop, 0%));
	object-fit: cover; object-position: center top; display: block;
}
.app-overlay {
	position: absolute; left: 0; right: 0; z-index: 2;
	padding: 14px; color: #fff; font-weight: 600; font-size: 13px; line-height: 1.35; text-align: center;
}
.app-overlay--bottom { bottom: 0; padding-top: 34px; background: linear-gradient(to top, rgba(30,58,95,.86), rgba(30,58,95,0)); }
.app-overlay--top    { top: 0; padding-bottom: 34px; background: linear-gradient(to bottom, rgba(30,58,95,.86), rgba(30,58,95,0)); }
.app-overlay--center {
	top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%);
	width: 82%; padding: 12px 16px; border-radius: 14px; background: rgba(30,58,95,.72);
}
.app-overlay--large { font-size: 16px; }
.app-overlay--large.app-overlay--center { font-size: 17px; }
.app-phone__ph { color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; padding: 18px; }

.app-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
@media (max-width: 860px) { .app-gallery { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================= *
 *  Pricing — Basic / Premium (TBA) + add-on
 * ============================================================= */
.price-lead { max-width: 660px; margin: 0 auto 34px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.price-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.price-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.price__eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.price__note { color: var(--muted); font-size: .95rem; margin: 2px 0 2px; }
.price-addon { max-width: 760px; margin: 58px auto 0; text-align: center; }
.price-addon > h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin: 0 0 8px; text-transform: none; letter-spacing: 0; }
.price-addon > p { color: var(--ink); max-width: 620px; margin: 0 auto 26px; }
.price--addon { background: var(--blue-tint); border-style: dashed; }
.price--addon .amount { font-size: 2.1rem; }
.price-foot { max-width: 620px; margin: 34px auto 0; text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .price-grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .price-grid--3 { grid-template-columns: 1fr; } }
