/* ============================================================
   CLODAGH HEALTHCARE — Stylesheet
   Brand colours extracted from logo:
     --navy:     #1a2d5a  (wordmark)
     --blue:     #2276c0  (heart body)
     --cyan:     #1e9fd4  (heart light edge)
     --green:    #2dbf8e  (cross teal)
     --lime:     #8dc63f  (cross lime)
     --white:    #FFFFFF
   ============================================================ */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---- CSS Custom Properties ---- */
:root {
  --green: #2dbf8e;
  --green-lt: #3dd4a2;
  --green-dark: #1f9a71;
  --lime: #8dc63f;
  --lime-lt: #a0d955;
  --blue: #2276c0;
  --blue-lt: #3a8fd4;
  --navy: #1a2d5a;
  --navy-lt: #243f7a;
  --cyan: #1e9fd4;
  /* convenience aliases for alternating accent pattern */
  --accent-a: var(--blue);
  --accent-b: var(--green);
  --black: #0A0A0A;
  --white: #ffffff;
  --grey-50: #f8f9fa;
  --grey-100: #f1f3f5;
  --grey-200: #e9ecef;
  --grey-400: #adb5bd;
  --grey-600: #6c757d;
  --grey-800: #343a40;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --transition: .25s ease;
  --container: 1180px;
  --section-py: 96px;
}

/* ---- Utility ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-lt);
  box-shadow: 0 6px 20px rgba(45, 191, 142, .35);
  transform: translateY(-1px);
}

/* About & Services CTA buttons use blue */
.about .btn--primary,
.services .btn--primary {
  background: var(--blue);
}

.about .btn--primary:hover,
.services .btn--primary:hover {
  background: var(--blue-lt);
  box-shadow: 0 6px 20px rgba(34, 118, 192, .35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ---- Section shared ---- */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(34, 118, 192, .08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* About & Contact section tags use green */
.about .section-tag,
.contact .section-tag {
  color: var(--green-dark);
  background: rgba(45, 191, 142, .1);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.section-intro {
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--grey-600);
  font-size: 1.05rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 45, 90, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-header.scrolled {
  background: rgba(26, 45, 90, .99);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

/* legacy text fallback — hidden when image logo is present */
.logo-clodagh {
  color: var(--white);
}

.logo-rec {
  color: var(--cyan);
  margin-left: 5px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.nav-link.active {
  color: var(--cyan);
}

.nav-link--cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
}

.nav-link--cta:hover {
  background: var(--green-lt) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .1);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO — compact banner, all content visible on first load
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--green) 100%);
  /* override .section padding — hero uses its own internal padding */
  padding: 0;
  padding-top: 70px;
  overflow: hidden;
}

.hero-bg-overlay {
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 52px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-left {
  min-width: 0;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
  flex-shrink: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-lt);
  margin-bottom: 14px;
}

.hero-headline {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-sub {
  font-size: .975rem;
  color: rgba(255, 255, 255, .8);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

/* Stats panel on the right */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 180px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.stat:last-child {
  border-bottom: none;
}

.stat strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat span {
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 20px;
  /* green accent strip to add visual warmth alongside the blue text body */
  border-left: 4px solid var(--green);
  padding-left: 16px;
}

.about-text p {
  color: var(--grey-600);
  margin-bottom: 20px;
}

.about-text .btn {
  margin-top: 8px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-card {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  background: rgba(45, 191, 142, .12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.value-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
}

/* Alternate value card icon colours: 1,3 green  |  2,4 blue */
.value-card:nth-child(2) .value-icon,
.value-card:nth-child(4) .value-icon {
  background: rgba(34, 118, 192, .1);
}

.value-card:nth-child(2) .value-icon svg,
.value-card:nth-child(4) .value-icon svg {
  stroke: var(--blue);
}

.value-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: .875rem;
  color: var(--grey-600);
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  /* subtle green-tinted background to differentiate from white sections */
  background: linear-gradient(160deg, #f0faf7 0%, #f8f9fa 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--accent {
  /* Card 01 — green dominant accent */
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-color: transparent;
  color: var(--white);
}

/* Card 03 — blue accent */
.service-card:nth-child(3) {
  border-top: 3px solid var(--blue);
}

/* Card 04 — green accent */
.service-card:nth-child(4) {
  border-top: 3px solid var(--green);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, .05);
  line-height: 1;
  user-select: none;
}

.service-card--accent .service-number {
  color: rgba(255, 255, 255, .08);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(34, 118, 192, .1);
}

/* Card 02 & 04 icons — green */
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon {
  background: rgba(45, 191, 142, .12);
}

.service-card:nth-child(2) .service-icon svg,
.service-card:nth-child(4) .service-icon svg {
  stroke: var(--green);
}

.service-card--accent .service-icon {
  background: rgba(255, 255, 255, .15);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
}

.service-card--accent .service-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card--accent h3 {
  color: var(--white);
}

.service-card p {
  font-size: .9rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card--accent p {
  color: rgba(255, 255, 255, .75);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: .875rem;
  color: var(--grey-600);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Card 02 & 04 bullets — green */
.service-card:nth-child(2) .service-list li::before,
.service-card:nth-child(4) .service-list li::before {
  background: var(--green);
}

.service-card--accent .service-list li {
  color: rgba(255, 255, 255, .8);
}

.service-card--accent .service-list li::before {
  background: rgba(255, 255, 255, .7);
}

.services-cta {
  text-align: center;
  margin-top: 56px;
}

.services-cta p {
  color: var(--grey-600);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(45, 191, 142, .1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
}

/* Alternate contact icons: 2nd & 4th use blue */
.contact-item:nth-child(2) .contact-icon,
.contact-item:nth-child(4) .contact-icon {
  background: rgba(34, 118, 192, .08);
}

.contact-item:nth-child(2) .contact-icon svg,
.contact-item:nth-child(4) .contact-icon svg {
  stroke: var(--blue);
}

.contact-item>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item strong {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}

.contact-item a,
.contact-item span {
  font-size: .9rem;
  color: var(--grey-600);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--blue);
}

/* ---- Form ---- */
.contact-form {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}

label span {
  color: var(--blue);
}

input,
select,
textarea {
  font: inherit;
  font-size: .9rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 191, 142, .14);
}

input.error,
select.error,
textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .1);
}

input::placeholder,
textarea::placeholder {
  color: var(--grey-400);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  font-size: .8rem;
  color: #dc3545;
  min-height: 1rem;
}

.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(45, 191, 142, .08);
  border: 1px solid rgba(45, 191, 142, .25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  color: var(--green-dark);
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--green);
}

.form-success p {
  font-size: .9rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
}

.footer-brand .nav-logo img {
  height: 60px;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .875rem;
  line-height: 1.6;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.footer-nav a {
  font-size: .9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: .8rem;
  text-align: center;
  color: rgba(255, 255, 255, .35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 900px */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-item {
    flex: 1 1 200px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Hero — stack on tablet */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-right {
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: row;
    width: 100%;
  }

  .stat {
    flex: 1;
  }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  :root {
    --section-py: 56px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 45, 90, .98);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 24px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
    opacity: 0;
  }

  .nav-menu.open {
    max-height: 300px;
    opacity: 1;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .nav-link--cta {
    text-align: center;
  }

  /* Hero */
  .hero-content {
    padding: 36px 24px;
  }

  .hero-stats {
    flex-direction: column;
    width: auto;
  }

  .stat {
    flex: unset;
  }

  /* About values */
  .about-values {
    grid-template-columns: 1fr;
  }

  /* Services */
  .service-card {
    padding: 28px;
  }

  /* Form */
  .contact-form {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

/* ============================================================
   ACCESSIBILITY — reduce-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}