/*
Theme Name: Clinora Medical
Theme URI: https://clinoramedical.in/
Author: Clinora Medical Content Solutions
Description: A lightweight, authoritative custom WordPress theme for Clinora Medical Content Solutions.
Version: 1.7.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: clinora-medical
*/

:root {
  --ink: #102333;
  --ink-soft: #40515f;
  --accent: #1d5d78;
  --accent-deep: #16465b;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --line: #dbe2e6;
  --line-dark: #c5d0d6;
  --success: #1f6a4b;
  --danger: #8a2f2f;
  --max: 1180px;
  --reading: 760px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading-width { width: min(100%, var(--reading)); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo { display: block; width: auto; max-height: 46px; max-width: 270px; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.site-logo-image { display: block; width: auto; height: auto; max-width: 100%; }
.site-logo-header .site-logo-image { width: 265px; max-height: 48px; object-fit: contain; object-position: left center; }
.site-logo-footer .site-logo-image { width: 245px; max-height: 44px; object-fit: contain; object-position: left center; }
.brand-text { text-decoration: none; color: var(--ink); display: inline-flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 21px; line-height: 1; font-weight: 760; letter-spacing: .08em; }
.brand-sub { font-size: 10px; line-height: 1.3; color: var(--ink-soft); letter-spacing: .09em; text-transform: uppercase; margin-top: 5px; }

.primary-nav { display: flex; align-items: center; gap: 23px; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); }
.primary-nav .menu { display: flex; align-items: center; gap: 23px; list-style: none; margin: 0; padding: 0; }
.header-cta { margin-left: 4px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 8px; }
.menu-toggle svg { display: block; }

.button,
.wp-element-button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--wash); color: var(--ink); border-color: var(--line-dark); }

.hero { padding: 78px 0 68px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
h1, h2, h3 { color: var(--ink); margin-top: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.04; font-weight: 660; max-width: 820px; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 45px); line-height: 1.12; font-weight: 650; margin-bottom: 22px; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin-bottom: 10px; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-soft); margin: 0 0 28px; max-width: 720px; }
.hero-side { border-left: 1px solid var(--line-dark); padding: 4px 0 4px 30px; }
.hero-side-label { margin: 0 0 14px; color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-checks { list-style: none; margin: 0; padding: 0; }
.hero-checks li { position: relative; margin: 0; padding: 10px 0 10px 19px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 15px; }
.hero-checks li:first-child { border-top: 1px solid var(--line); }
.hero-checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.capability-strip { border-bottom: 1px solid var(--line); background: var(--wash); }
.capability-list { list-style: none; margin: 0; padding: 17px 0; display: flex; flex-wrap: wrap; gap: 10px 30px; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.capability-list li:not(:last-child)::after { content: "·"; margin-left: 30px; color: #92a0aa; }

.section { padding: 88px 0; }
.section-compact { padding: 62px 0; }
.section-wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 70px; margin-bottom: 52px; }
.section-head p { margin-top: 4px; color: var(--ink-soft); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.service-card { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--line); }
.service-card + .service-card { padding-left: 30px; border-left: 1px solid var(--line); }
.service-card p { color: var(--ink-soft); margin: 0 0 18px; }
.text-link { font-size: 14px; font-weight: 750; text-decoration: none; }
.text-link::after { content: " →"; }

.content-types { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line-dark); }
.content-type { padding: 24px 26px 24px 0; border-bottom: 1px solid var(--line); }
.content-type:nth-child(3n+2), .content-type:nth-child(3n+3) { padding-left: 26px; border-left: 1px solid var(--line); }
.content-type strong { display: block; margin-bottom: 6px; }
.content-type span { color: var(--ink-soft); font-size: 15px; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-dark); }
.process-step { padding: 26px 22px 10px 0; }
.process-step + .process-step { padding-left: 22px; border-left: 1px solid var(--line); }
.step-number { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; margin-bottom: 13px; }
.process-step p { color: var(--ink-soft); margin: 8px 0 0; font-size: 15px; }

.founder-grid { display: grid; grid-template-columns: minmax(280px,.68fr) minmax(0,1.32fr); gap: 72px; align-items: center; }
.founder-image { aspect-ratio: 4 / 5; background: #e9eef0; overflow: hidden; border: 1px solid var(--line); }
.founder-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #70828f; font-size: 54px; font-weight: 700; letter-spacing: .04em; }
.founder-copy p { color: var(--ink-soft); }
.credential-row { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }

.testimonials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.testimonial { margin: 0; padding: 0; }
.testimonial blockquote { margin: 0 0 24px; font-size: 19px; line-height: 1.62; letter-spacing: -.01em; }
.testimonial figcaption { color: var(--ink-soft); font-size: 14px; }
.testimonial figcaption strong { display: block; color: var(--ink); font-size: 15px; }

.cta-band { padding: 72px 0; background: var(--ink); color: #fff; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band h2 { color: #fff; margin-bottom: 9px; }
.cta-band p { color: #c9d3da; margin: 0; }
.cta-band .button { background: #fff; color: var(--ink); border-color: #fff; flex: 0 0 auto; }
.cta-band .button:hover { background: #eaf0f3; border-color: #eaf0f3; }

.breadcrumbs { padding: 22px 0 0; font-size: 13px; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa7af; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(40px, 5vw, 62px); }
.page-hero .lead { max-width: 780px; }
.page-content { padding: 76px 0 92px; }
.prose { width: min(100%, var(--reading)); }
.prose h2 { margin-top: 56px; }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose .intro { font-size: 20px; line-height: 1.6; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-dark); margin: 36px 0; }
.detail-item { padding: 25px 28px 25px 0; border-bottom: 1px solid var(--line); }
.detail-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.detail-item p { margin-bottom: 0; font-size: 15px; }

.faq { border-top: 1px solid var(--line-dark); margin-top: 36px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 25px 0; }
.faq-item h3 { margin: 0 0 9px; font-size: 18px; }
.faq-item p { margin: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 72px; align-items: start; }
.contact-form { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(29,93,120,.12); }
.field-note { margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { padding: 13px 15px; margin: 0 0 22px; border-left: 3px solid; background: var(--wash); }
.form-status.success { border-color: var(--success); color: var(--success); }
.form-status.error { border-color: var(--danger); color: var(--danger); }
.contact-card { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.contact-card h3 { font-size: 16px; margin-top: 28px; }
.contact-card p { color: var(--ink-soft); margin: 7px 0; }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 56px; }
.footer-brand p { color: var(--ink-soft); max-width: 480px; font-size: 14px; margin-top: 18px; }
.footer-heading { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 12px; }

.not-found { padding: 100px 0; }
.not-found p { color: var(--ink-soft); }

.screen-reader-text { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 900px) {
  .site-logo-header .site-logo-image { width: 220px; max-height: 42px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; z-index: 40; top: 78px; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { display: grid; gap: 0; }
  .primary-nav .menu li { border-bottom: 1px solid var(--line); }
  .primary-nav .menu a { display: block; padding: 14px 0; }
  .header-cta { display: none; }
  .hero-grid, .section-head, .founder-grid, .contact-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .service-grid, .content-types { grid-template-columns: 1fr; }
  .service-card + .service-card, .content-type:nth-child(3n+2), .content-type:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .testimonials { grid-template-columns: 1fr; gap: 46px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 70px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 8px; }
  .primary-nav { top: 70px; }
  .hero { padding: 72px 0 60px; }
  h1 { font-size: clamp(40px, 13vw, 54px); }
  .section { padding: 68px 0; }
  .section-compact { padding: 48px 0; }
  .capability-list { display: grid; gap: 8px; }
  .capability-list li::after { display: none; }
  .process-grid, .detail-grid, .form-row { grid-template-columns: 1fr; }
  .process-step + .process-step, .detail-item:nth-child(even) { border-left: 0; padding-left: 0; }
  .cta-band .container, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
}

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

@media (max-width: 480px) {
  .site-logo-header .site-logo-image { width: 185px; max-height: 37px; }
  .site-logo-footer .site-logo-image { width: 220px; }
}

/* Content authority components */
.review-note {
  margin: 40px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--accent);
  background: var(--wash);
}
.review-note > strong { display: block; margin-bottom: 10px; color: var(--ink); }
.review-note p:last-child, .review-note ul:last-child { margin-bottom: 0; }
.review-note ul { margin-top: 10px; }
.review-steps { counter-reset: reviewstep; list-style: none; padding-left: 0 !important; }
.review-steps li { position: relative; padding: 0 0 24px 52px; margin: 0 !important; border-bottom: 1px solid var(--line); }
.review-steps li + li { padding-top: 24px; }
.review-steps li::before {
  counter-increment: reviewstep;
  content: counter(reviewstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}
.review-steps li + li::before { top: 24px; }
.section-link { margin: 30px 0 0; }
.contact-brief { margin-top: 0; }


/* v1.6 desktop polish */
.testimonial-project { display: inline-block; margin-top: 4px; color: #6c7d89; font-size: 12px; }
.section-link { margin: 28px 0 0; }
.founder-image img { background: #e9eef0; }
@media (min-width: 901px) {
  .hero { padding-top: 88px; padding-bottom: 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1.42fr) minmax(300px, .58fr); }
  .founder-grid { grid-template-columns: 360px minmax(0,1fr); }
  .founder-image { max-width: 360px; }
}
