/* Doctor Sups Veterinary — "original" version: a faithful copy of the Wix design. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Amatic SC";
  src: url("/fonts/amatic-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Amatic SC";
  src: url("/fonts/amatic-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/roboto-condensed-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --grey: #dce1e0;
  --mint: #d0e2de;
  --pink: #feafcd;
  --pink-light: #fed3e3;
  --text: #6e6e6e;
  --ink: #3d3d3d;
  --red: #f33939;
  --active: #116dff;
  --white: #fff;

  --font-hand: "Amatic SC", "Comic Sans MS", cursive;
  --font-script: "Caveat", cursive;
  --font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--grey);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--active);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Pink pill button ---------- */
.btn {
  display: inline-block;
  min-height: 44px;
  padding: 0.15em 1.1em;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font: 400 1.75rem/1.4 var(--font-hand);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #fd9fc3;
}
.btn--small {
  font-size: 1.375rem;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--grey);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 160px;
}

.logo img {
  width: 145px;
}

.site-header .btn {
  font-size: 2rem;
}

.nav-toggle {
  display: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: clamp(16px, 3.5vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 0;
  font: 400 2.25rem/1.2 var(--font-hand);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--active);
}

/* Mobile header: logo, Book Online and a menu button */
@media (max-width: 900px) {
  .site-header .wrap {
    min-height: 84px;
    gap: 12px;
  }
  .logo img {
    width: 92px;
  }
  /* Visual order: logo, Book Online, menu button. In the HTML the menu button comes
     before the menu so keyboard focus moves straight into the opened menu. */
  .site-header .btn {
    order: 1;
    margin-left: auto;
    font-size: 1.5rem;
  }
  .nav-toggle {
    order: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    margin: 0;
    background: var(--grey);
    border-top: 1px solid #c6cdcb;
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.08);
  }
  /* Only hide the menu once JS is running, so it is never unreachable. */
  .js .site-nav:not(.is-open) {
    display: none;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav a {
    padding: 10px 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(40px, 6vw, 72px);
}
.section--mint {
  background: var(--mint);
}
.section--grey {
  background: var(--grey);
}
.section--white {
  background: var(--white);
}

.section-title {
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  text-align: center;
}

.justify {
  text-align: justify;
}

.center {
  text-align: center;
}

.circle {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ---------- Emergency banner ---------- */
.emergency {
  padding-block: 20px;
  background: var(--grey);
  color: var(--red);
  font-size: clamp(0.875rem, 1.6vw, 1.125rem);
  text-align: justify;
}
.emergency p {
  margin: 0;
}
.emergency--center {
  text-align: center;
}

/* ---------- Home: hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-block: 32px 48px;
}
.hero h1 {
  color: var(--text);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
}
.tagline {
  color: var(--ink);
  font: 400 clamp(1.375rem, 2vw, 1.625rem)/1.3 var(--font-script);
}
.hero__art {
  justify-self: end;
  width: min(100%, 500px);
}

/* ---------- Home: approach ---------- */
.approach .circle {
  width: min(380px, 80vw);
  margin: 8px auto 32px;
}
.approach__text {
  max-width: 1100px;
  margin-inline: auto;
}
.approach .btn {
  display: table;
  margin: 24px auto 0;
}

/* ---------- Home: services teaser ---------- */
.services-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.photo-pair {
  position: relative;
  width: min(100%, 505px);
  aspect-ratio: 505 / 362;
  justify-self: center;
}
.photo-pair img {
  position: absolute;
  width: 55.5%;
}
.photo-pair img:first-child {
  left: 0;
  top: 0;
}
.photo-pair img:last-child {
  right: 0;
  bottom: 0;
}
.service-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font: 400 clamp(1.625rem, 2.5vw, 1.875rem)/1.35 var(--font-hand);
  text-align: center;
}
.services-teaser__list {
  text-align: center;
}

/* ---------- Home: socials ---------- */
.socials-band {
  padding-block: 24px;
  background: var(--mint);
}
.socials-band h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 400;
  text-align: center;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.insta-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.insta-grid a:hover img {
  opacity: 0.85;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
.about__photo {
  border-radius: 50%;
  aspect-ratio: 330 / 400;
  object-fit: cover;
  width: 100%;
}
.about h1 {
  color: var(--text);
  font-size: clamp(2.25rem, 4vw, 2.75rem);
}
.credentials {
  margin-left: 0.4em;
  font-size: 0.55em;
  font-weight: 400;
  white-space: nowrap;
}

/* ---------- Services ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  font-size: 0.9375rem;
}
.service-card__photo {
  position: relative;
  margin-bottom: 20px;
}
.rainbow {
  position: absolute;
  top: 4%;
  right: -4%;
  width: 70%;
}
.service-card h2 {
  font-size: 1.875rem;
  font-weight: 400;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.service-area__map {
  width: min(100%, 520px);
  margin: 8px auto 24px;
}
.service-area h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font: 700 0.9375rem/1.4 var(--font-body);
  text-align: center;
}
.suburbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.9375rem;
}
.suburbs li:not(:last-child)::after {
  content: "|";
  margin-inline: 6px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.25em;
  font-size: 0.9375rem;
}
.faq li {
  margin-bottom: 28px;
}
.faq h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font: 700 0.9375rem/1.5 var(--font-body);
}
.faq p {
  margin: 0;
}
.faq strong {
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}
.contact__intro {
  color: var(--ink);
  font: 400 1.5rem/1.35 var(--font-hand);
  text-align: center;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  max-width: 460px;
  margin-inline: auto;
}
.field {
  display: grid;
  gap: 4px;
}
.field--wide {
  grid-column: 1 / -1;
}
.field--narrow {
  grid-column: 1;
}
.field label {
  color: var(--ink);
  font-size: 0.875rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 110px;
  border-radius: 21px;
  resize: vertical;
}
.field input::placeholder {
  color: #7a6a70;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--active);
}
.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 140px;
}
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  text-align: center;
}
.form-status.is-error {
  color: var(--red);
}

/* ---------- Notice page ---------- */
.notice__stage {
  position: relative;
  max-width: 1000px;
  margin: clamp(16px, 6vw, 72px) auto 0;
}
.notice__text {
  position: absolute;
  top: -14%;
  right: 0;
  width: 52%;
  color: var(--red);
  font: 700 1.375rem/1.35 var(--font-hand);
  text-align: center;
}
.notice__text h1 {
  margin-bottom: 0.2em;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
}
.notice__text p {
  margin: 0;
}
.notice .tagline {
  margin: 16px 0 12px;
  color: var(--pink);
  text-align: center;
}
.notice__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink);
  font: 400 1.75rem/1.3 var(--font-hand);
  text-align: center;
}
.notice .btn {
  display: table;
  margin: 24px auto 48px;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
}
.not-found .logo-art {
  width: min(320px, 70vw);
  margin: 0 auto 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 24px 32px;
  background: var(--grey);
  font: 400 1.25rem/1.3 var(--font-hand);
}
.site-footer p {
  margin: 0;
}
.site-footer .copyright {
  font-size: 1.4375rem;
}
.social-icons {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
}
.social-icons li + li a {
  margin-left: 0;
}
.social-icons img {
  width: 24px;
  height: 24px;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(12px, 5vw, 72px);
  bottom: 28vh;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--pink);
}
.to-top svg {
  width: 30px;
  height: 30px;
}

/* ---------- Tablet / phone layouts ---------- */
@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 700px) {
  .hero .wrap,
  .services-teaser__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    text-align: center;
  }
  .hero__art {
    justify-self: center;
    order: -1;
    width: min(100%, 360px);
  }
  .about__photo {
    max-width: 320px;
    margin-inline: auto;
  }
  .about h1 {
    text-align: center;
  }
  .credentials {
    display: block;
    margin: 0.3em 0 0;
  }
  .contact__grid > img {
    width: min(100%, 300px);
    margin-inline: auto;
  }
  .insta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notice__text {
    position: static;
    width: auto;
    margin-bottom: 16px;
  }
}

@media (max-width: 520px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
  .service-card__photo {
    width: min(100%, 300px);
    margin-inline: auto;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .field--narrow {
    grid-column: 1 / -1;
  }
}
