/*
 * VeryCare — site styles
 * Tailwind (Play CDN) supplies layout utilities; this file holds the design
 * tokens and the small set of reusable components described in
 * docs/DESIGN_SYSTEM.md.
 */

:root {
  /* Brand — sampled from the VeryCare logo (see docs/DESIGN_SYSTEM.md) */
  --vc-blue-50: #EEF5FC;
  --vc-blue-100: #D8E8F8;
  --vc-blue-500: #3D92E5;  /* logo light blue */
  --vc-blue-600: #2D73BB;  /* logo blue */
  --vc-blue-700: #21568C;  /* logo dark blue */
  --vc-blue-800: #1A4570;
  --vc-green-50: #EDF8EC;
  --vc-green-500: #2EA026; /* logo green */
  --vc-green-700: #1F7419;

  /* Neutrals */
  --vc-ink: #0F2A44;
  --vc-body: #3A4A5C;
  --vc-muted: #55667A;
  --vc-line: #E2E8EF;
  --vc-canvas: #F6F8FA;
  --vc-white: #FFFFFF;

  /* Feedback */
  --vc-error: #B42318;
  --vc-error-bg: #FEF3F2;
  --vc-notice-bg: #FFF8E6;
  --vc-notice-line: #F1D48A;

  /* Shape and depth */
  --vc-radius-sm: 8px;
  --vc-radius: 14px;
  --vc-radius-lg: 22px;
  --vc-shadow: 0 1px 2px rgba(15, 42, 68, 0.06), 0 8px 24px rgba(15, 42, 68, 0.06);
  --vc-focus: #0B4F8A;

  color-scheme: light;
}

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

body {
  background: var(--vc-white);
  color: var(--vc-body);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--vc-ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

img, svg { max-width: 100%; }

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--vc-radius-sm);
  background: var(--vc-ink);
  color: var(--vc-white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--vc-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible {
  outline-color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--vc-line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
  }
}

.brand-logo { height: 48px; width: auto; }
.footer-logo { height: 44px; width: auto; }

.brand-wordmark {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--vc-blue-700);
}
.brand-wordmark span { color: var(--vc-green-700); }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--vc-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--vc-blue-700); }
.nav-link[aria-current="page"] { color: var(--vc-blue-700); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--vc-green-500);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius-sm);
  background: var(--vc-white);
  color: var(--vc-ink);
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.75rem;
  border-radius: var(--vc-radius-sm);
  color: var(--vc-ink);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav-link:hover { background: var(--vc-blue-50); }
.mobile-nav-link[aria-current="page"] {
  background: var(--vc-blue-50);
  color: var(--vc-blue-700);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--vc-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--vc-blue-600);
  color: var(--vc-white);
}
.btn-primary:hover { background: var(--vc-blue-700); }

.btn-secondary {
  background: var(--vc-white);
  border-color: var(--vc-blue-700);
  color: var(--vc-blue-700);
}
.btn-secondary:hover { background: var(--vc-blue-50); }

.btn-light {
  background: var(--vc-white);
  color: var(--vc-blue-800);
}
.btn-light:hover { background: var(--vc-blue-50); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--vc-white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--vc-blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--vc-blue-800); text-decoration-thickness: 2px; }

/* ---------- Typography components ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--vc-green-700);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--vc-green-500);
}
.eyebrow--light { color: #A7E3A1; }
.eyebrow--light::before { background: #7DD675; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--vc-body);
}

/* ---------- Surfaces ---------- */

.card {
  background: var(--vc-white);
  border: 1px solid var(--vc-line);
  border-radius: var(--vc-radius);
  box-shadow: var(--vc-shadow);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--vc-blue-50);
  color: var(--vc-blue-700);
}
.icon-badge--green {
  background: var(--vc-green-50);
  color: var(--vc-green-700);
}
.icon-badge--sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--vc-blue-100); transform: translateY(-2px); }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-list li + li { margin-top: 0.85rem; }
.check-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--vc-green-50);
  color: var(--vc-green-700);
}

/* ---------- Photography ---------- */

.photo-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--vc-radius-lg);
  background: var(--vc-blue-50);
}
.photo-frame--tall { aspect-ratio: 4 / 5; }
.photo-frame img,
.service-photo img,
.service-row-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card {
  overflow: hidden;
  padding: 0;
}
.service-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--vc-blue-50);
}
.service-photo img { transition: transform 0.5s ease; }
.service-card:hover .service-photo img { transform: scale(1.04); }
.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
}
.service-card-body p { flex: 1; }

.service-row {
  display: grid;
  overflow: hidden;
}
.service-row-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--vc-blue-50);
}
.service-row-body { padding: 1.75rem; }
@media (min-width: 640px) {
  .service-row { grid-template-columns: 300px 1fr; }
  .service-row-photo { aspect-ratio: auto; min-height: 100%; }
  .service-row-body { padding: 2rem; }
}

/* A photo that fails to load is hidden rather than shown broken */
[data-photo-frame][hidden] { display: none !important; }
.service-row:has(> [data-photo-frame][hidden]) { grid-template-columns: 1fr; }

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--vc-ink);
  color: #E6EEF6;
}
.hero h1 { color: var(--vc-white); }
.hero .lead { color: #E6EEF6; }

.hero-slides,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-overlay {
  background: linear-gradient(180deg, rgba(15, 42, 68, 0.78) 0%, rgba(15, 42, 68, 0.84) 100%);
}
@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(15, 42, 68, 0.92) 0%, rgba(15, 42, 68, 0.78) 45%, rgba(15, 42, 68, 0.2) 100%);
  }
}

.hero-content { min-height: min(84vh, 760px); }
@media (max-width: 767px) {
  .hero-content { min-height: 600px; }
}

.hero-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.hero-controls[hidden] { display: none; }
.hero-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.45);
  color: var(--vc-white);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hero-control:hover { background: rgba(255, 255, 255, 0.16); }
.hero-control .icon-play { display: none; }
.hero-control[data-paused="true"] .icon-pause { display: none; }
.hero-control[data-paused="true"] .icon-play { display: block; }

.hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dot span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.hero-dot:hover span { background: rgba(255, 255, 255, 0.85); }
.hero-dot[aria-current="true"] span {
  width: 24px;
  background: var(--vc-white);
}

.page-hero {
  background:
    radial-gradient(circle at 92% 10%, rgba(46, 160, 38, 0.10), transparent 40%),
    var(--vc-blue-50);
  border-bottom: 1px solid var(--vc-line);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--vc-muted); }
.breadcrumb a { color: var(--vc-blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Notices ---------- */

.notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--vc-notice-line);
  border-radius: var(--vc-radius-sm);
  background: var(--vc-notice-bg);
  color: #4A3A10;
  font-size: 0.975rem;
  line-height: 1.55;
}
.notice a { color: #4A3A10; font-weight: 700; text-decoration: underline; }

/* ---------- Forms ---------- */

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--vc-ink);
  font-weight: 600;
  font-size: 0.975rem;
}
.form-label .req { color: var(--vc-error); }
.form-hint { color: var(--vc-muted); font-size: 0.9rem; }

.form-control {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #A9B7C6;
  border-radius: var(--vc-radius-sm);
  background: var(--vc-white);
  color: var(--vc-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:hover { border-color: #7F93A8; }
.form-control:focus {
  outline: none;
  border-color: var(--vc-blue-700);
  box-shadow: 0 0 0 3px rgba(45, 115, 187, 0.3);
}
.form-control[aria-invalid="true"] {
  border-color: var(--vc-error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
select.form-control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230F2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.field-error {
  margin-top: 0.35rem;
  color: var(--vc-error);
  font-size: 0.9rem;
  font-weight: 600;
}
.field-error:empty { display: none; }

.form-status {
  padding: 1rem 1.1rem;
  border-radius: var(--vc-radius-sm);
  font-size: 0.975rem;
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] {
  border: 1px solid #F4C7C3;
  background: var(--vc-error-bg);
  color: #7A1C14;
}
.form-status[data-tone="info"] {
  border: 1px solid var(--vc-notice-line);
  background: var(--vc-notice-bg);
  color: #4A3A10;
}
.form-status[data-tone="success"] {
  border: 1px solid #B7E1C3;
  background: var(--vc-green-50);
  color: #14532D;
}
.form-status a { font-weight: 700; text-decoration: underline; color: inherit; }

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

.site-footer {
  background: var(--vc-ink);
  color: #C9D5E2;
}
.site-footer h2 {
  color: var(--vc-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer a {
  color: #E3EBF3;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--vc-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a.underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-logo-plate {
  display: inline-flex;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border-radius: var(--vc-radius-sm);
  background: var(--vc-white);
}

.cta-band {
  background:
    radial-gradient(circle at 100% 0%, rgba(46, 160, 38, 0.35), transparent 45%),
    var(--vc-blue-800);
  color: #E3EBF3;
}
.cta-band h2 { color: var(--vc-white); }

/* Keep telephone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }
