/*
Theme Name: DrNose Clean
Theme URI: https://drnose.ai/
Author: DrNose
Description: A lightweight, purpose-built theme for the DrNose medical technology website.
Version: 1.0.7
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: drnose-clean
*/

:root {
  --navy: #135c55;
  --blue: #3db7a7;
  --cyan: #62cdbf;
  --ink: #183b38;
  --muted: #607b78;
  --pale: #f0f9f7;
  --white: #fff;
  --shadow: 0 22px 60px rgba(19, 92, 85, .14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(19,92,85,.1);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 176px; height: auto; }
.brand-text { color: var(--navy); font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.site-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--blue); }
.menu-toggle { display: none; border: 0; background: none; color: var(--navy); font-size: 1.6rem; }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(110deg, rgba(11,76,70,.98) 10%, rgba(25,132,120,.92) 52%, rgba(61,183,167,.72)),
              url("assets/images/lab-hero.jpg") center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% 40%;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(255,255,255,.04), 0 0 0 200px rgba(255,255,255,.03);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 100px 0; }
.eyebrow { color: var(--cyan); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 8vw, 6.6rem); letter-spacing: -.055em; }
h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.035em; }
h3 { color: var(--navy); font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero .lead { max-width: 680px; color: rgba(255,255,255,.9); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}
.button.alt { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.button.light { border-color: var(--white); background: var(--white); color: var(--navy); }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8,72,65,.22); }

.section { padding: 96px 0; }
.section-soft { background: var(--pale); }
.intro { max-width: 760px; margin-bottom: 50px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 34px; border: 1px solid #e5eaf4; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(25,40,100,.05); }
.card-number { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 24px; border-radius: 50%; background: #e2f6f2; color: var(--blue); font-weight: 850; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.split-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 1 / .82; object-fit: cover; }
.device-image { padding: 35px; background: radial-gradient(circle, #fff 10%, #e3f5f2 70%); }
.feature-list { display: grid; gap: 20px; margin-top: 32px; }
.feature { padding-left: 24px; border-left: 3px solid var(--cyan); }
.feature h3 { margin-bottom: 6px; }
.feature p, .card p { margin: 0; color: var(--muted); }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { padding: 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.cta { padding: 70px 0; background: linear-gradient(120deg, var(--navy), var(--blue)); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { margin-bottom: 8px; color: var(--white); }
.cta p { margin: 0; color: rgba(255,255,255,.8); }
.page-hero { padding: 100px 0 70px; background: var(--pale); }
.page-hero h1 { color: var(--navy); font-size: clamp(2.7rem, 6vw, 5rem); }
.content { padding: 70px 0 100px; }
.content > * { max-width: 800px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post-card { display: flex; min-height: 300px; flex-direction: column; padding: 34px; border: 1px solid #dcece9; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 36px rgba(19,92,85,.08); }
.post-card .eyebrow { margin-bottom: 18px; }
.post-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card p { color: var(--muted); }
.post-card .read-more { margin-top: auto; padding-top: 20px; color: var(--blue); font-weight: 800; text-decoration: none; }
.article-shell { width: min(860px, calc(100% - 40px)); margin-inline: auto; padding: 76px 0 110px; }
.article-header { margin-bottom: 42px; }
.article-header h1 { color: var(--navy); font-size: clamp(2.5rem, 5vw, 4.6rem); }
.article-meta { color: var(--muted); font-weight: 650; }
.article-body { font-size: 1.08rem; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2, .article-body h3 { margin-top: 2em; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body figure { margin: 38px auto; }
.article-body figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body table { width: 100%; margin: 36px 0; border-collapse: collapse; font-size: .94rem; }
.article-body th, .article-body td { padding: 14px; border: 1px solid #cfe3df; text-align: left; vertical-align: top; }
.article-body th { background: var(--navy); color: white; }
.article-body tr:last-child td { background: #e2f6f2; font-weight: 750; }
.medical-note { margin-top: 50px; padding: 20px 24px; border-left: 4px solid var(--cyan); background: var(--pale); color: var(--muted); font-size: .92rem; }
.page-intro { max-width: 780px; margin-bottom: 48px; }
.application-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.application-card { padding: 38px; border: 1px solid #e5eaf4; border-radius: var(--radius); background: var(--white); }
.application-card strong { display: block; margin-bottom: 12px; color: var(--cyan); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.timeline { display: grid; gap: 0; margin-top: 42px; }
.timeline-item { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding-bottom: 32px; }
.timeline-item span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: white; font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-panel { padding: 38px; border-radius: var(--radius); background: var(--pale); }
.contact-panel.primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; }
.contact-panel.primary h2, .contact-panel.primary h3, .contact-panel.primary a { color: white; }
.contact-panel.primary .button.light { color: var(--navy); }
.notice { padding: 18px 22px; border-left: 4px solid var(--cyan); background: #e9f8f5; color: #315f5a; }
.contact-section { background: linear-gradient(180deg, #fff 0, var(--pale) 100%); }
.enquiry-shell { max-width: 1040px; }
.enquiry-intro { max-width: 720px; margin-bottom: 38px; }
.enquiry-intro h2 { margin-bottom: 14px; }
.enquiry-intro p:last-child { color: var(--muted); }
.enquiry-form { position: relative; padding: 42px; border: 1px solid #d4e9e5; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.form-field { display: grid; gap: 8px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--ink); font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #b9d3cf;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.form-field input, .form-field select { min-height: 54px; padding: 10px 14px; }
.form-field textarea { min-height: 210px; padding: 14px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 3px solid rgba(61,183,167,.22); border-color: var(--blue); }
.captcha-field { max-width: 260px; }
.form-submit-row { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.enquiry-submit { cursor: pointer; font: inherit; }
.form-privacy { margin: 0; color: var(--muted); font-size: .9rem; }
.form-status { margin-bottom: 24px; padding: 18px 22px; border-radius: 12px; }
.form-status.success { border: 1px solid #a5d9d0; background: #e7f7f4; color: #164f49; }
.form-status.error { border: 1px solid #e7b8b8; background: #fff1f1; color: #7a2424; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.site-footer { padding: 60px 0 24px; background: #0d403b; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.site-footer h3 { color: var(--white); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.copyright { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 82px 0 auto; padding: 22px; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 12px; }
  .cards, .audiences, .split, .footer-grid, .application-grid, .contact-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .enquiry-form { padding: 28px 22px; }
  .form-submit-row { align-items: flex-start; flex-direction: column; }
  .hero { min-height: 610px; }
  .section { padding: 72px 0; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

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