/*
Theme Name: Limpopo Fertility Clinic
Theme URI: https://limpopofertility.co.za
Author: Lime Agency
Author URI: https://limeagency.co.za
Description: Custom theme for Limpopo Fertility Clinic — personalised fertility, reproductive, neuropelveology and gynaecological care in Tzaneen, Limpopo.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: limpopo-fertility
*/

/* ==========================================================================
   Limpopo Fertility Clinic — main stylesheet
   ========================================================================== */

:root {
  --color-blue: #3fb5ce;
  --color-blue-dark: #2f96ac;
  --color-taupe: #8f7859;
  --color-taupe-dark: #75604a;
  --color-ink: #201f1d;
  --color-body: #4a4744;
  --color-cream: #faf7f2;
  --color-white: #ffffff;
  --color-line: #e7e1d7;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Sacramento', cursive;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 6px;
  --shadow-soft: 0 20px 50px -25px rgba(37, 30, 20, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 18px;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-blue);
  margin-bottom: 0;
  line-height: 1;
}

.section {
  padding: 90px 0;
}
.section--tight { padding: 60px 0; }
.section--cream { background: var(--color-cream); }
.section--ink {
  background: var(--color-ink);
  color: #d9d4cb;
}
.section--ink h2, .section--ink h3 { color: var(--color-white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head p { color: var(--color-body); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-blue-dark); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  border-color: var(--color-taupe);
  color: var(--color-taupe-dark);
}
.btn--outline:hover { background: var(--color-taupe); color: var(--color-white); }
.btn--light {
  background: var(--color-white);
  color: var(--color-ink);
}
.btn--light:hover { background: var(--color-blue); color: var(--color-white); }
.btn--sm { padding: 10px 24px; font-size: 0.85rem; }
.btn--lg { padding: 20px 46px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-blue);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after, .main-nav .current-menu-item a::after { width: 100%; }
.main-nav a.active, .main-nav .current-menu-item a { color: var(--color-blue-dark); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--color-ink); transition: all 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  margin-top: 92px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(32,31,29,0.72), rgba(63,181,206,0.45)), var(--hero-img) center/cover no-repeat;
  color: var(--color-white);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero .eyebrow { color: #bfe9f2; }
.hero h1 { color: var(--color-white); margin-top: 6px; }
.hero p.lead { font-size: 1.15rem; color: #f1efe9; max-width: 540px; }
.hero-actions { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  margin-top: 92px;
  padding: 130px 0 90px;
  background: linear-gradient(120deg, rgba(32,31,29,0.75), rgba(143,120,89,0.55)), var(--hero-img) center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
}
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: #efece5; max-width: 620px; margin: 0 auto; }

/* Intro / two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse .col-media { order: 2; }
.col-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.col-media { position: relative; }
.col-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius);
  z-index: -1;
}

/* Why choose list */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--color-ink);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--color-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.6L4 14l5 5L20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.6L4 14l5 5L20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* Why choose grid (no image, just the points) */
.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  max-width: 1000px;
  margin: 0 auto;
}
.why-item {
  flex: 0 1 294px;
  text-align: center;
  padding: 40px 26px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.why-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.why-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(63,181,206,0.12);
  color: var(--color-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 28px; height: 28px; }
.why-item p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--color-ink);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .why-item { flex-basis: 100%; }
}

/* Services grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0 32px 38px;
  text-align: left;
  transition: all 0.3s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-card-media {
  margin: 0 -32px 0;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card .icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  margin: -27px 0 22px;
  color: var(--color-blue-dark);
  position: relative;
  z-index: 2;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-blue-dark);
  border-bottom: 1px solid var(--color-blue);
}

/* Doctor spotlight */
.doctor-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.doctor-panel img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.credentials-list { columns: 1; }
.credentials-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.98rem;
}
.credentials-list li:last-child { border-bottom: none; }

/* CTA band */
.cta-band {
  background: var(--color-taupe);
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: #f3ede2; max-width: 560px; margin: 0 auto 26px; }

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #c9c4ba;
  padding: 70px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-brand img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid ul li { margin-bottom: 12px; font-size: 0.95rem; }
.footer-grid ul li a:hover { color: var(--color-blue); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--color-blue); border-color: var(--color-blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: #918c81;
  flex-wrap: wrap;
  gap: 10px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Contact info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px;
}
.info-card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(143,120,89,0.14);
  color: var(--color-taupe-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* FAQ accordion */
.accordion-item {
  border-bottom: 1px solid var(--color-line);
}
.accordion-item:first-child { border-top: 1px solid var(--color-line); }
.accordion-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.accordion-q .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-blue);
  position: relative;
  transition: transform 0.25s ease;
}
.accordion-q .plus::before, .accordion-q .plus::after {
  content: '';
  position: absolute;
  background: var(--color-blue);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-q .plus::before { width: 12px; height: 1.6px; }
.accordion-q .plus::after { width: 1.6px; height: 12px; }
.accordion-item.is-open .accordion-q .plus { transform: rotate(135deg); }
.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-a-inner { padding-bottom: 22px; color: var(--color-body); }

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-6px); }
.blog-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--color-cream); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 26px; }
.blog-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue-dark);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--color-blue-dark); }
.blog-card p { font-size: 0.92rem; margin-bottom: 14px; }
.blog-card .meta { font-size: 0.8rem; color: #9b968c; }
.blog-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 50px; }
.blog-pagination a, .blog-pagination span {
  padding: 10px 18px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.9rem;
}
.blog-pagination .current { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid img {
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}
.gallery-grid a { overflow: hidden; border-radius: var(--radius); display: block; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Services detail sections (What We Do subpages sections) */
.detail-block {
  padding: 70px 0;
  border-bottom: 1px solid var(--color-line);
}
.detail-block:last-of-type { border-bottom: none; }
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill-list span {
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--color-ink);
}

.subnav {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 92px;
  z-index: 500;
}
.subnav ul {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 16px 0;
}
.subnav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-body);
  white-space: nowrap;
}
.subnav a:hover, .subnav a.active { color: var(--color-blue-dark); }

/* Single post / article content */
.single-post-header {
  margin-top: 92px;
  padding: 70px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}
.single-post-header .meta { color: #9b968c; font-size: 0.9rem; margin-bottom: 10px; }
.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0;
}
.entry-content img { border-radius: var(--radius); margin: 24px 0; }
.entry-content h2 { margin-top: 40px; }
.entry-content h3 { margin-top: 30px; }
.entry-content a { color: var(--color-blue-dark); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  border-left: 3px solid var(--color-blue);
  margin: 24px 0;
  padding: 6px 24px;
  font-style: italic;
  color: var(--color-taupe-dark);
}
.wp-block-image { margin: 24px 0; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: #9b968c; text-align: center; margin-top: 8px; }

/* Comments */
.comments-area { max-width: 780px; margin: 0 auto; padding-bottom: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { border-bottom: 1px solid var(--color-line); padding: 20px 0; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  margin-bottom: 16px;
}
.comment-reply-title, #reply-title { font-family: var(--font-display); }

/* utils */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Responsive */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-panel { grid-template-columns: 1fr; }
  .doctor-panel .col-media { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn--primary.btn--sm { display: none; }
  body.nav-open .main-nav {
    display: block;
    position: fixed;
    top: 92px; left: 0; right: 0; bottom: 0;
    background: var(--color-white);
    padding: 30px 28px;
    overflow-y: auto;
  }
  body.nav-open .main-nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  body.nav-open .main-nav a { display: block; padding: 14px 0; font-size: 1.1rem; width: 100%; }

  .two-col, .two-col.reverse .col-media { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .col-media { order: -1 !important; }
  .card-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .info-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .half { grid-column: 1 / -1; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .col-media::before { display: none; }
  .subnav { top: 92px; }
}
