/* Lux Vet — styles. Colours come from the logo: blue, green, and orange for the heartbeat line only. */

:root {
  --paper: #ffffff;
  --mist: #f3f7fa;
  --line: #dde6ee;
  --ink: #12263a;
  --ink-soft: #46586b;
  --blue: #0b5cad;
  --blue-dark: #084784;
  --blue-tint: #e6f0fa;
  --green: #3a7a0a;
  --green-dark: #2e6307;
  --green-tint: #eaf4df;
  --pulse: #f07f1b;

  --font: "IBM Plex Sans Hebrew", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --gutter: 20px;
  --bar-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  /* room for the fixed mobile contact bar */
  padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
}

/* Arabic letterforms sit taller; give them a little more air */
html[lang="ar"] body {
  line-height: 1.8;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  line-height: 1.4;
}

h1 {
  font-size: clamp(2.1rem, 7.2vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 4.6vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.6em 1.15em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 1.5em;
  font-size: 1.125rem;
}

.btn-wa {
  background: var(--green);
  color: #fff;
}

.btn-wa:hover {
  background: var(--green-dark);
}

.btn-call {
  background: var(--paper);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-call:hover {
  background: var(--blue-tint);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--blue-tint);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding-block: 8px;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: auto;
  height: 46px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--line);
}

.lang-switch button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--pulse);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-call {
  min-height: 44px;
  padding-inline: 0.9em;
}

.header-call-number,
.header-wa {
  display: none;
}

/* On mobile the nav is a slim second row */
.site-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 28px 44px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-copy .lead {
  margin-top: 16px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-copy .cta-row {
  margin-top: 24px;
}

.hero-copy .cta-row .btn {
  flex: 1 1 100%;
}

.hero-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.hero-note a {
  display: inline-block;
  padding: 10px 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pulse {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-top: 22px;
  /* draw from the reading side (right) in RTL */
  transform: scaleX(-1);
}

.pulse-line {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: pulse-draw 1.8s ease-out 0.2s backwards;
}

.pulse-paw {
  fill: var(--pulse);
  animation: pulse-paw 0.4s ease-out 1.7s backwards;
}

@keyframes pulse-draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes pulse-paw {
  from {
    opacity: 0;
  }
}

.hero-media img,
.about-media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 56px;
}

.section-mist {
  background: var(--mist);
}

.section-head p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin-top: 28px;
}

.services li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.services .item-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}

.services .item-icon .icon {
  width: 26px;
  height: 26px;
}

.services p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.5;
}

/* About */

.about-grid {
  display: grid;
  gap: 28px;
}

.about-media img {
  aspect-ratio: 4 / 3;
}

.about-copy p {
  margin-top: 16px;
  max-width: 36em;
  color: var(--ink-soft);
}

/* Reasons */

.reasons-block {
  margin-top: 56px;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px 28px;
  margin-top: 24px;
}

.reasons li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reasons .item-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
}

.reasons .item-icon .icon {
  width: 18px;
  height: 18px;
}

.reasons h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

.reasons p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.5;
}

/* Contact CTA band */

.cta-band {
  padding-block: 48px;
  background: var(--ink);
  color: #fff;
}

.cta-band-inner {
  display: grid;
  gap: 24px;
}

.cta-band p {
  margin-top: 8px;
  color: #c9d6e2;
}

.cta-band .btn {
  flex: 1 1 100%;
}

.cta-band .btn-wa {
  background: #4c9a12;
}

.cta-band .btn-wa:hover {
  background: var(--green);
}

.cta-band :focus-visible {
  outline-color: #fff;
}

/* Contact details */

.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-name {
  display: grid;
  margin-top: 16px;
  font-size: 1.125rem;
}

.hours-title {
  margin-top: 28px;
}

.hours {
  max-width: 320px;
  margin: 10px 0 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.hours .is-today {
  color: var(--ink);
  font-weight: 700;
}

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover .contact-value {
  text-decoration: underline;
}

.contact-list .icon {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.contact-label {
  font-weight: 500;
}

.contact-value {
  color: var(--blue);
  font-weight: 700;
  text-align: end;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

/* ---------- Fixed mobile contact bar ---------- */

.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(18, 38, 58, 0.08);
}

.sticky-bar .btn {
  min-height: 48px;
  padding-inline: 0.6em;
}

/* ---------- Small phones ---------- */

/* Icon-only call button in the header; the bottom bar carries the labelled one */
@media (max-width: 559px) {
  .header-call {
    width: 44px;
    padding: 0;
  }

  .header-call-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }

  .brand img {
    height: 40px;
  }

  .lang-switch button {
    padding: 0 5px;
  }
}

/* ---------- Tablet ---------- */

@media (min-width: 560px) {
  .site-nav {
    justify-content: flex-start;
    gap: 28px;
  }

  .hero-copy .cta-row .btn,
  .cta-band .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding-block: 56px 72px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .hero-media img {
    aspect-ratio: 4 / 5;
  }

  .section {
    padding-block: 88px;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .reasons-block {
    margin-top: 80px;
  }

  .cta-band {
    padding-block: 64px;
  }

  .cta-band-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* Full header, no bottom bar */
@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  .sticky-bar {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .header-row {
    flex-wrap: nowrap;
    gap: 20px;
    padding-block: 10px;
  }

  .brand img {
    height: 62px;
  }

  .site-nav {
    order: 0;
    flex: 1;
    justify-content: flex-start;
    gap: 16px;
    margin: 0;
    margin-inline-start: 8px;
    border: 0;
  }

  .header-wa {
    display: inline-flex;
    min-height: 44px;
  }

  .header-call-number {
    display: inline;
  }

  .header-call-label {
    display: none;
  }
}

@media (min-width: 1024px) {

  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .services li {
    padding: 22px;
  }

  .reasons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-line,
  .pulse-paw {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
