/* ============================================================
   petamies.css — shared styles for every PetAmies page
   Edit colours, fonts and spacing here ONCE; every page updates.
   ============================================================ */

:root {
  /* Brand palette — from the approved PetAmies colour system */
  --slate-dark: #2E3B47;
  --slate-mid:  #5C6B7A;
  --slate:      #8FA0AE;
  --slate-light:#D0D9DF;
  --slate-pale: #EDF1F4;
  --white:      #FFFFFF;

  --emerald:      #10B981;
  --emerald-dark: #059669;
  --emerald-light:#6EE7B7;
  --emerald-pale: #ECFDF5;

  --sky-dark: #0EA5E9;
  --sky:      #38BDF8;
  --sky-light:#BAE6FD;
  --sky-pale: #F0F9FF;

  /* The signature emerald glow — used ONLY on primary green elements */
  --glow: 0 0 14px rgba(16,185,129,0.55), 0 0 36px rgba(16,185,129,0.28);

  --maxw: 1100px;
  --radius: 14px;
}

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--slate-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; color: var(--slate-dark); }

a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   NAVIGATION HEADER  (loaded from header.html into every page)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-dark);
  color: var(--white);
  border-bottom: 2px solid var(--emerald);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--emerald); }
.nav-brand .wordmark {
  font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--white);
  letter-spacing: -0.01em;
}
.nav-brand .wordmark span { color: var(--emerald-light); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: var(--slate-light); font-size: 0.92rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: 8px; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--emerald-light); }

.nav-cta {
  background: var(--emerald); color: var(--white) !important;
  font-weight: 600; padding: 0.5rem 1rem !important; border-radius: 10px;
  box-shadow: var(--glow); white-space: nowrap;
}
.nav-cta:hover { background: var(--emerald-dark); text-decoration: none !important; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; cursor: pointer; padding: 0.2rem 0.4rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate-dark); padding: 0.5rem 1rem 1rem;
    border-bottom: 2px solid var(--emerald);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.5rem; border-radius: 6px; }
  .nav-cta { margin-top: 0.4rem; text-align: center; }
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Page hero (inner pages — not the home banner) */
.page-hero {
  background: linear-gradient(135deg, var(--slate-dark), #1C2B36);
  color: var(--white); padding: 3rem 1.25rem;
}
.page-hero .wrap { padding: 0 1.25rem; }
.page-hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--emerald-light); font-weight: 600; margin-bottom: 0.5rem;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--white); }
.page-hero p { color: var(--slate-light); font-size: 1.1rem; max-width: 640px; margin-top: 0.75rem; }

section.block { padding: 2.5rem 0; }
section.block:nth-child(even) { background: var(--slate-pale); }

.block h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
.block h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.block p { margin-bottom: 1rem; max-width: 720px; }
.block ul, .block ol { margin: 0 0 1rem 1.25rem; }
.block li { margin-bottom: 0.5rem; max-width: 700px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--slate-light);
  border-radius: var(--radius); padding: 1.5rem;
}
.card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.card h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.05rem; margin: 0 0 0.4rem; }
.card p { font-size: 0.95rem; color: var(--slate-mid); margin: 0; }

/* Callout box */
.callout {
  background: var(--emerald-pale); border-left: 4px solid var(--emerald);
  border-radius: 0 10px 10px 0; padding: 1.1rem 1.4rem; margin: 1.5rem 0;
}
.callout.sky { background: var(--sky-pale); border-left-color: var(--sky-dark); }
.callout p:last-child { margin-bottom: 0; }

/* Primary button */
.btn {
  display: inline-block; background: var(--emerald); color: var(--white);
  font-weight: 600; padding: 0.7rem 1.4rem; border-radius: 10px;
  box-shadow: var(--glow); border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--emerald-dark); text-decoration: none; }
.btn.secondary { background: var(--sky-dark); box-shadow: none; }
.btn.secondary:hover { background: #0284C7; }

/* ============================================================
   FOOTER  (loaded from footer.html into every page)
   ============================================================ */
.footer {
  background: var(--slate-dark); color: var(--slate-light);
  padding: 2.5rem 1.25rem 1.5rem; margin-top: 2rem;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: 'DM Sans', sans-serif; color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer a { color: var(--slate-light); font-size: 0.92rem; display: block; margin-bottom: 0.4rem; }
.footer a:hover { color: var(--emerald-light); }
.footer .brand-line { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem; }
.footer .brand-line span { color: var(--emerald-light); }
.footer .tagline { font-size: 0.9rem; color: var(--slate); margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid var(--slate-mid); font-size: 0.82rem; color: var(--slate);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Accessibility: visible focus + reduced motion */
a:focus-visible, button:focus-visible { outline: 3px solid var(--emerald-light); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
