/* ============================================================
   Vundle Healthcare Services - style.css
   Theme: White (dominant) + Blue (primary) + Green (accent)
   Edit the variables in :root to recolour the whole site.
   ============================================================ */

/* ---------- 1. Design tokens (edit these) ---------- */
:root {
  /* Brand colours */
  --blue:          #1565c0;   /* main brand blue   */
  --blue-dark:     #0d3f87;   /* darker blue for hovers/headers */
  --blue-soft:     #eaf2fc;   /* very light blue tint backgrounds */
  --green:         #2e9e5b;   /* secondary accent green */
  --green-dark:    #237a46;   /* green hover */
  --green-bright:  #34c172;   /* bright green for icons/details */
  --green-soft:    #e8f7ee;   /* light green tint */

  /* Neutrals */
  --white:         #ffffff;
  --ink:           #1d2733;   /* main text */
  --ink-soft:      #54616e;   /* secondary text */
  --line:          #e3e8ee;   /* borders/dividers */
  --bg-tint:       #f6f9fc;   /* alternating section background */

  /* Layout */
  --maxw:          1140px;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 10px 30px rgba(21, 101, 192, 0.08);
  --shadow-hover:  0 16px 40px rgba(21, 101, 192, 0.16);
  --header-h:      72px;

  /* Type */
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;          /* smooth scrolling for nav links */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.logo-mark img { height: 100px; width: auto; display: block; }
.logo--footer .logo-mark img { height: 100px; }

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: 84px 0; }
.section.about,
.section.faq { background: var(--bg-tint); }       /* gentle alternation, still light */
.center { text-align: center; }
.text-blue { color: var(--blue); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.eyebrow.center { display: block; }

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.section-title.center { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 720px; }
.lead.center { margin: 0 auto 40px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow-hover); }

.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow-hover); }

.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-block { display: block; width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark { display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 1.15rem; color: var(--blue); }
.logo-text small { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav-cta a { background: var(--blue); color: #fff !important; }
.nav-cta a:hover { background: var(--blue-dark); }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--blue); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero { background: var(--white); padding: 72px 0 80px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.hero-text { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
}
.hero-illustration { width: 100%; height: auto; border-radius: var(--radius-sm); }

/* Signature animated pulse line */
#pulse {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace 3.2s ease-in-out infinite;
}
@keyframes trace {
  0%   { stroke-dashoffset: 600; }
  55%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -600; }
}

.hero-badge {
  position: absolute; bottom: 30px; left: 30px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  font-size: 0.84rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(52,193,114,0.2);
}

/* ---------- 7. About ---------- */
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 12px;
}
.about-card {
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--green);              /* green separator accent */
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.about-card h3 { color: var(--blue); font-size: 1.22rem; margin-bottom: 10px; }
.about-card p { color: var(--ink-soft); }
.values-list { list-style: none; }
.values-list li {
  padding: 6px 0 6px 22px; position: relative; color: var(--ink-soft);
}
.values-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* ---------- 8. Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 12px;
}
.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Fixed image container - supports images of ANY size */
.service-media {
  height: 180px; width: 100%; overflow: hidden; background: var(--blue-soft);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;        /* crop neatly, keep card sizes equal */
  transition: transform 0.4s ease;
}
.service-card:hover .service-media img { transform: scale(1.05); }

.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.service-body h3 { color: var(--blue); font-size: 1.12rem; margin-bottom: 8px; }
.service-body p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 18px; flex: 1; }

.service-actions { display: flex; gap: 10px; }
.service-actions .btn { flex: 1; padding: 10px 12px; font-size: 0.85rem; }

/* ---------- 9. Why choose us ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 30px;
}
.why-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-box h3 { font-size: 1.02rem; color: var(--ink); }
.why-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem; color: #fff;
}
.icon-blue  { background: var(--blue); }
.icon-green { background: var(--green); }

/* ---------- 10. FAQ accordion ---------- */
.accordion { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.is-open { border-color: var(--green); box-shadow: var(--shadow); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left;
  font-size: 1.02rem; font-weight: 600; color: var(--blue);
}
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
  background: var(--blue-soft); color: var(--blue);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-icon { background: var(--green); color: #fff; transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- 11. Contact ---------- */
.tagline { color: var(--green-dark); font-style: italic; font-size: 1.05rem; margin-bottom: 40px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start;
}
.contact-info, .contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.contact-info h3, .contact-form-wrap h3 { color: var(--blue); margin-bottom: 18px; }
.info-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-of-type { border-bottom: none; }
.info-label {
  display: block; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.74rem; font-weight: 700; color: var(--green-dark); margin-bottom: 4px;
}
.info-row a { font-weight: 600; font-size: 1.05rem; }
.hours { color: var(--ink-soft); }
.contact-buttons { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Form */
.form-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
}
.field textarea { resize: vertical; }
.form-feedback { margin-top: 12px; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-feedback.success { color: var(--green-dark); }
.form-feedback.error { color: #c0392b; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--blue-dark); color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 36px;
  padding: 56px 20px 40px;
}
.logo--footer .logo-text strong { color: #fff; }
.logo--footer .logo-text small { color: rgba(255,255,255,0.75); }
.footer-blurb { color: rgba(255,255,255,0.8); margin-top: 14px; max-width: 280px; }

.footer-col h4 {
  color: #fff; font-size: 1.05rem; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--green-bright);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 5px 0; color: rgba(255,255,255,0.82); font-size: 0.94rem; }
.footer-col a { color: rgba(255,255,255,0.9); }
.footer-col a:hover { color: var(--green-bright); }
.footer-buttons { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.footer-bottom { background: rgba(0,0,0,0.18); padding: 16px 0; }
.footer-bottom p { text-align: center; font-size: 0.86rem; color: rgba(255,255,255,0.8); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile navigation */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); right: 0;
    width: min(80%, 320px); height: calc(100vh - var(--header-h));
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px; transform: translateX(100%);
    transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-buttons .btn { flex: 1; }
}

/* ---------- 14. Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
