/*
  =====================================================================
  style.css: how your website LOOKS (colours, sizes, spacing, layout).
  The words live in index.html.

  The easiest thing to change is the colours in section 1 below.
  Change one there and it updates everywhere on the site.

  Note: CSS uses the American spelling "color", so that's what you'll
  see in this file.
  =====================================================================
*/


/* ---------- 1. Colours and basic settings ---------- */

:root {
  --color-background: #faf8f4;     /* warm off-white page background   */
  --color-surface: #ffffff;        /* cards and boxes                  */
  --color-tint: #eaf3ef;           /* pale green section background    */
  --color-text: #1d2927;           /* main text, nearly black          */
  --color-muted: #4b5a57;          /* softer grey-green text           */
  --color-primary: #1f6152;        /* main green: buttons and links    */
  --color-primary-dark: #164638;   /* darker green when you hover      */
  --color-border: #d9e2de;         /* thin lines around cards          */
  --color-input-border: #6f817c;   /* outline of the form boxes        */
  --color-highlight: #f6cf6a;      /* yellow "Example only" label      */
  --color-highlight-text: #3b2c00; /* text on the yellow label         */
  --color-footer: #17302a;         /* dark green footer                */

  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;                  /* how rounded the corners are      */
  --shadow: 0 1px 2px rgba(20, 40, 35, 0.06), 0 8px 24px rgba(20, 40, 35, 0.06);
  --max-width: 1040px;             /* how wide the content gets        */
}


/* ---------- 2. Page basics ---------- */

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

html {
  scroll-behavior: smooth;
}

/* Turn off smooth scrolling for people who've asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem);
  letter-spacing: -0.02em;
  max-width: 18em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-dark);
}

/* The outline that appears when someone moves around with the keyboard. */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Makes sure anything marked "hidden" really is hidden. */
[hidden] {
  display: none !important;
}

/* Keeps content centred, with space at the sides on phones. */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center {
  text-align: center;
}

/* Stops the sticky top bar covering headings when you jump to a section. */
section[id] {
  scroll-margin-top: 4.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}


/* ---------- 3. Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--color-primary);
}

.button-secondary:hover {
  background: var(--color-tint);
  color: var(--color-primary-dark);
}

.button-small {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.button-full {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}


/* ---------- 4. Top bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}


/* ---------- 5. Intro ---------- */

.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, var(--color-tint) 0%, var(--color-background) 100%);
}

.eyebrow {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  max-width: 36em;
}

.hero-note {
  color: var(--color-muted);
  max-width: 38em;
}


/* ---------- 6. Sections and cards ---------- */

.section {
  padding: 4rem 0;
}

.section-tinted {
  background: var(--color-tint);
}

.section-intro {
  color: var(--color-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Two cards side by side on tablets and laptops. */
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--color-tint);
  color: var(--color-primary);
}

/* A list with green ticks instead of bullet points. */
.tick-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.small-print {
  color: var(--color-muted);
  font-size: 0.95rem;
}


/* ---------- 7. Working example (the demo form) ---------- */

.example-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* Explanation on the left, form on the right, on laptops. */
@media (min-width: 860px) {
  .example-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.demo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .demo-card {
    padding: 2rem;
  }
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--color-highlight);
  color: var(--color-highlight-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-title {
  margin-bottom: 0.25rem;
}

.demo-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.optional {
  color: var(--color-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-input-border);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid var(--color-primary);
  outline-offset: 1px;
}

/* Dog's name and service side by side on wider screens. */
.field-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-note {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
  text-align: center;
}

.confirmation {
  padding: 1rem 0;
  text-align: center;
}

.confirmation:focus {
  outline: none;
}

.confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-tint);
  color: var(--color-primary);
}

.confirmation-title {
  font-size: 1.4rem;
}

.confirmation .button {
  margin-top: 1.25rem;
}


/* ---------- 8. How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Three steps side by side on laptops. */
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step p {
  color: var(--color-muted);
  margin: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}


/* ---------- 9. Pricing ---------- */

.price-card {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 2rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.price {
  margin: 0 0 1.25rem;
  color: var(--color-primary);
  font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.price-from {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
}

.price-card .tick-list {
  display: inline-block;
  text-align: left;
}


/* ---------- 10. Contact ---------- */

.contact {
  text-align: center;
}

.contact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.8rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-note {
  color: var(--color-muted);
}


/* ---------- 11. Footer ---------- */

.site-footer {
  padding: 2.5rem 0;
  background: var(--color-footer);
  color: #e4ece9;
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.footer-name {
  color: #fff;
  font-weight: 700;
}

.privacy {
  max-width: 46rem;
  margin-top: 1rem;
  color: #c5d3cf;
}
