/* Pets Inc — custom PHP site
   Palette and type match the original: blue #1e68bc, green #84c340, Roboto Slab + Roboto */

:root {
    --blue: #1e68bc;
    --blue-dark: #14497f;
    --blue-darker: #0e3a66;
    --green: #84c340;
    --green-dark: #4d8221;
    --ink: #333333;
    --muted: #6b7280;
    --bg-alt: #f3f7fb;
    --line: #e3e9f0;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(20, 73, 127, 0.10);
    --font-head: "Roboto Slab", Georgia, serif;
    --font-body: "Roboto", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--blue-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
    padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Top bar */
.topbar { background: var(--blue-darker); color: #cfe2f7; font-size: 14px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--blue-dark); }
.brand-text small { color: var(--green-dark); font-size: 13px; letter-spacing: 0.04em; }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: block; padding: 9px 14px; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.site-nav a.active { color: var(--blue); background: var(--bg-alt); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--blue-dark); margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* Buttons */
.btn {
    display: inline-block; padding: 13px 28px; border-radius: 999px;
    font-weight: 600; text-decoration: none; font-size: 16px;
    border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green); color: #173203; }
.btn-primary:hover { background: #8fd14a; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-nav { background: var(--blue); color: #fff !important; padding: 9px 20px; font-size: 14.5px; margin-left: 8px; }
.btn-nav:hover { background: var(--blue-dark); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media {
    position: absolute; inset: 0;
    background: url("/assets/img/hero-cat.jpeg") center 30% / cover no-repeat;
}
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(14, 58, 102, 0.92) 25%, rgba(30, 104, 188, 0.72) 60%, rgba(30, 104, 188, 0.35));
}
.hero-content { position: relative; padding: 110px 24px 120px; max-width: 1120px; }
.eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 6px 16px;
    background: var(--green); color: #173203; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 14px; max-width: 760px; }
.hero-sub { font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin: 0 0 30px; color: #e8f1fb; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(115deg, var(--blue-darker), var(--blue));
    color: #fff; padding: 64px 0;
}
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); }
.page-hero p { margin: 0; color: #dce9f8; font-size: 19px; max-width: 700px; }
.page-hero .hero-actions { margin-top: 22px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 14px; }
.section-title.left { text-align: left; }
.section-title::after {
    content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
    background: var(--green); margin: 14px auto 0;
}
.section-title.left::after { margin-left: 0; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; box-shadow: var(--shadow); transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card-muted { opacity: 0.75; }
.card h3 { margin: 18px 0 10px; font-size: 22px; }
.card p { margin: 0 0 14px; font-size: 15.5px; }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--bg-alt); color: var(--blue); font-size: 26px;
}
.price { border-top: 1px solid var(--line); padding-top: 14px; color: var(--blue-dark); }
.price strong { font-size: 22px; }
.price span { color: var(--muted); font-size: 14px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { padding: 7px 0 7px 34px; position: relative; font-weight: 500; }
.checklist li::before {
    content: "\2713"; position: absolute; left: 0; top: 7px;
    width: 24px; height: 24px; border-radius: 50%; background: var(--green);
    color: #173203; font-size: 14px; font-weight: 700; display: grid; place-items: center;
}

/* Reviews */
.reviews { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 18px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review {
    flex: 0 0 min(420px, 88%); scroll-snap-align: start; margin: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
}
.review p { margin: 0 0 16px; font-size: 15.5px; font-style: italic; color: #444; }
.review footer { display: flex; align-items: center; justify-content: space-between; }
.review cite { font-style: normal; font-weight: 700; color: var(--blue-dark); }
.stars { color: #f5a623; letter-spacing: 2px; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.carousel-controls button {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--blue); font-size: 19px; cursor: pointer; box-shadow: var(--shadow);
}
.carousel-controls button:hover { background: var(--blue); color: #fff; }

/* Neighbourhood grid */
.hood-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    list-style: none; padding: 0; margin: 36px 0 0;
}
.hood-grid li {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 16px; text-align: center; font-size: 15px; font-weight: 500;
}

/* Badges */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.badge-item h3 { margin: 0 0 8px; }
.badge-item p { color: var(--muted); margin: 0; }

/* Policies */
.policies { display: grid; gap: 22px; max-width: 820px; }
.policy {
    background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green);
    border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
}
.policy h2 { margin: 0 0 10px; font-size: 22px; }
.policy ul { margin: 0; padding-left: 22px; }
.policy li { margin: 5px 0; }

/* FAQ */
.faqs { max-width: 820px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--blue-dark); }
.faq p { margin: 0 0 16px; color: #444; }

/* Forms */
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--blue-dark); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #c9d4e0; border-radius: 9px;
    font: inherit; font-size: 15.5px; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.has-error input, .has-error textarea { border-color: #cf2e2e; }
.field-error { color: #cf2e2e; font-size: 13.5px; }
.hp-field { position: absolute; left: -9999px; }
.alert-success {
    background: #eef8e2; border: 1px solid var(--green); border-radius: var(--radius);
    padding: 22px 26px; color: var(--green-dark);
}
.contact-aside {
    background: var(--bg-alt); border-radius: var(--radius); padding: 30px;
    align-self: start;
}
.contact-aside h2 { margin-top: 0; font-size: 22px; }
.contact-aside h3 { font-size: 17px; margin: 24px 0 6px; }
.contact-aside .btn { margin-top: 4px; border-color: var(--blue); color: var(--blue); }
.contact-aside .btn:hover { background: var(--blue); color: #fff; }
address { font-style: normal; line-height: 1.8; }

/* Footer CTA */
.footer-cta {
    background: linear-gradient(115deg, var(--blue), var(--blue-darker));
    color: #fff; text-align: center; padding: 64px 24px;
}
.footer-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); }
.footer-cta p { margin: 0 0 24px; color: #dce9f8; }

/* Footer */
.site-footer { background: #0c2c4d; color: #b9cde2; padding: 56px 0 0; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.site-footer a { color: #cfe2f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 0.9fr; gap: 40px; }
.footer-grid img { border-radius: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-hoods { columns: 1; font-size: 14px; }
.seal { margin-top: 18px; background: #fff; padding: 6px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 44px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
    .cards, .badges { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .hood-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .cards, .badges, .form-row, .hood-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 18px 18px; }
    .site-nav a { padding: 12px 14px; }
    .btn-nav { margin: 8px 0 0; text-align: center; }
    .hero-content { padding: 76px 24px 84px; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar-inner { justify-content: center; }
}
