/*
Theme Name: Elite Wound Care
Theme URI: https://eliteui.com/
Author: OpenAI for Elite UI
Author URI: https://eliteui.com/
Description: A custom Elite-inspired WordPress theme for a modern wound care and podiatry homepage with editable homepage settings, video placeholder support, trust and reviews sections, and SEO-friendly structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: elite-woundcare
*/

:root {
  --ewc-green: #044c26;
  --ewc-green-2: #0b6b41;
  --ewc-accent: #5fd19a;
  --ewc-accent-2: #9fe7c4;
  --ewc-ink: #13221a;
  --ewc-text: #415148;
  --ewc-muted: #738178;
  --ewc-line: rgba(4, 76, 38, 0.10);
  --ewc-bg: #f6faf7;
  --ewc-card: #ffffff;
  --ewc-white: #ffffff;
  --ewc-gradient: linear-gradient(135deg, #044c26 0%, #0b6b41 55%, #5fd19a 100%);
  --ewc-shadow: 0 20px 60px rgba(8, 29, 17, 0.08);
  --ewc-shadow-soft: 0 12px 30px rgba(8, 29, 17, 0.06);
  --ewc-radius: 26px;
  --ewc-radius-sm: 18px;
  --ewc-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ewc-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ewc-green); text-decoration: none; }
a:hover { opacity: .92; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ewc-ink);
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.9rem); }
h2 { font-size: clamp(2rem, 3vw, 3.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 18px; }

.site-wrap { overflow: clip; }
.container {
  width: min(calc(100% - 32px), var(--ewc-container));
  margin-inline: auto;
}
.section {
  padding: 88px 0;
  position: relative;
}
.section.soft { background: var(--ewc-bg); }
.section.dark {
  background: linear-gradient(180deg, #0a522e 0%, #044c26 100%);
  color: rgba(255,255,255,.86);
}
.section.dark h2,
.section.dark h3,
.section.dark p,
.section.dark li,
.section.dark .eyebrow { color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 209, 154, 0.12);
  color: var(--ewc-green);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.eyebrow.light { background: rgba(255,255,255,.14); color: #fff; }
.muted { color: var(--ewc-muted); }
.text-center { text-align: center; }

.topbar {
  background: var(--ewc-green);
  color: rgba(255,255,255,.92);
  font-size: .95rem;
}
.topbar-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.topbar-list li::before {
  content: "•";
  margin-right: 8px;
  color: var(--ewc-accent);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar-phone { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19,34,26,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.branding a {
  color: var(--ewc-ink);
  font-family: "Inter Tight", sans-serif;
  font-weight: 900;
  font-size: 1.28rem;
  line-height: 1.1;
  display: inline-block;
}
.branding small {
  display: block;
  color: var(--ewc-muted);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: 5px;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ewc-ink);
  font-weight: 700;
  font-size: .96rem;
}

.btn,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
  box-shadow: var(--ewc-shadow-soft);
}
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary { background: var(--ewc-gradient); color: #fff; }
.btn-secondary { background: #fff; color: var(--ewc-green); border-color: rgba(4,76,38,.12); }
.btn-outline { background: transparent; color: var(--ewc-green); border-color: rgba(4,76,38,.22); box-shadow: none; }
.btn-light-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }

.hero {
  position: relative;
  padding: 90px 0 40px;
  color: #fff;
  background: #112;
}
.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}
.hero-media {
  background-size: cover;
  background-position: center;
}
.hero-media::after {
  content: "";
  background: radial-gradient(circle at top right, rgba(95,209,154,.18), transparent 32%),
              linear-gradient(110deg, rgba(8, 19, 13, 0.82) 0%, rgba(8, 19, 13, 0.58) 42%, rgba(8, 19, 13, 0.42) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 42px;
  align-items: end;
}
.hero-copy {
  padding: 36px 0 54px;
  max-width: 760px;
}
.hero h1,
.hero p,
.hero .muted { color: #fff; }
.hero p { font-size: 1.08rem; max-width: 700px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: rgba(255,255,255,.84);
  font-weight: 700;
}
.hero-trustline span::before {
  content: "•";
  color: var(--ewc-accent);
  margin-right: 8px;
}
.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.92);
  color: var(--ewc-text);
  padding: 26px;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  margin-bottom: -44px;
}
.hero-card h3 { margin-bottom: 8px; }
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 20px;
}
.metric-pill {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(95,209,154,.14), rgba(4,76,38,.03));
  padding: 16px;
  border: 1px solid rgba(4,76,38,.08);
}
.metric-pill strong {
  display: block;
  color: var(--ewc-ink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.mini-review {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(4,76,38,.08);
}
.stars { color: #f6b94d; letter-spacing: .08em; font-size: 1rem; font-weight: 700; }

.trust-reviews-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.card,
.trust-card,
.review-card,
.service-card,
.info-card,
.video-card,
.cta-panel,
.office-panel {
  background: var(--ewc-card);
  border: 1px solid var(--ewc-line);
  box-shadow: var(--ewc-shadow-soft);
  border-radius: var(--ewc-radius);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.trust-card {
  padding: 24px 20px;
  min-height: 150px;
  background: linear-gradient(180deg, rgba(95,209,154,.10), rgba(255,255,255,1));
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(95,209,154,.22), rgba(4,76,38,.10));
  color: var(--ewc-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-card p { font-size: .95rem; color: var(--ewc-muted); }
.review-panel { padding: 28px; }
.review-stack { display: grid; gap: 14px; margin: 20px 0 22px; }
.review-mini {
  background: linear-gradient(180deg, rgba(95,209,154,.08), rgba(4,76,38,.02));
  border: 1px solid rgba(4,76,38,.08);
  border-radius: 20px;
  padding: 18px;
}
.review-mini strong { color: var(--ewc-ink); }

.about-grid,
.video-grid,
.cta-grid,
.office-grid,
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.about-media,
.video-card,
.office-image {
  overflow: hidden;
  border-radius: 30px;
  position: relative;
}
.about-media img,
.office-image img,
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.overlay-note {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--ewc-shadow-soft);
  color: var(--ewc-ink);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  margin-top: 28px;
}
.service-card { overflow: hidden; }
.service-card-media {
  height: 220px;
  background: linear-gradient(135deg, rgba(4,76,38,.12), rgba(95,209,154,.18));
}
.service-card-body { padding: 24px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ewc-muted); }

.video-card {
  min-height: 380px;
  background: linear-gradient(180deg, rgba(95,209,154,.12), rgba(4,76,38,.05));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 30px;
}
.video-placeholder {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(95,209,154,.25), transparent 28%), linear-gradient(135deg, #163f2b 0%, #0b6b41 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 36px;
}
.play-btn {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 18px;
}

.why-grid,
.testimonials-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}
.why-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 24px; }
.info-card { padding: 24px; background: linear-gradient(180deg, rgba(95,209,154,.10), rgba(255,255,255,1)); }
.testimonials-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 26px; }
.review-card { padding: 24px; }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(95,209,154,.24), rgba(4,76,38,.15));
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ewc-green);
}

.office-panel {
  padding: 36px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  box-shadow: none;
}
.office-list {
  margin: 18px 0 0;
  padding-left: 18px;
}
.office-list li { margin-bottom: 10px; }

.cta-panel {
  padding: 34px;
  background: linear-gradient(180deg, rgba(95,209,154,.12), rgba(4,76,38,.04));
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }

.site-footer {
  background: #0f2619;
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  padding-bottom: 30px;
}
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col p, .footer-col li, .footer-col a { color: rgba(255,255,255,.78); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .92rem;
}

.content-area { padding: 70px 0; }
.entry-content { max-width: 900px; }
.entry-content > * { margin-bottom: 1rem; }
.entry-title { margin-bottom: 18px; }

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

.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(4,76,38,.10);
  box-shadow: var(--ewc-shadow);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px;
  gap: 8px;
}
.mobile-sticky-bar a { flex: 1; min-height: 48px; }

@media (max-width: 1180px) {
  .hero-inner,
  .trust-reviews-wrap,
  .about-grid,
  .video-grid,
  .cta-grid,
  .office-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .testimonials-grid,
  .why-grid,
  .trust-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-card { margin-bottom: 0; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .topbar-inner,
  .header-inner { align-items: flex-start; }
  .header-inner { padding: 16px 0; min-height: auto; }
  .hero { padding-top: 52px; }
  .hero-copy { padding-bottom: 12px; }
  .service-grid,
  .testimonials-grid,
  .why-grid,
  .trust-grid,
  .hero-card-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-grid { gap: 32px; }
  .mobile-sticky-bar { display: flex; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 20px), var(--ewc-container)); }
  .hero-actions, .cta-actions { flex-direction: column; }
  .btn, .wp-block-button__link, input[type="submit"] { width: 100%; }
  .topbar-list, .topbar-actions { width: 100%; }
  .review-panel, .office-panel, .cta-panel, .hero-card { padding: 22px; }
}

/* Version 1.0.1 visual refinements */
body { color: #324139; }
p { color: #506057; }

.hero { padding: 96px 0 54px; }
.hero-copy { max-width: 700px; }
.hero-card {
  color: #314038;
  background: rgba(255,255,255,.97);
}
.hero-card p,
.hero-card span,
.metric-pill span,
.review-panel p,
.review-mini p,
.review-card p,
.info-card p,
.seo-card p,
.cta-panel p,
.office-panel p,
.footer-col p,
.footer-col li,
.footer-col a { color: #4d5d55; }
.hero-card h3,
.metric-pill strong,
.review-panel h2,
.review-card strong,
.cta-panel h2,
.seo-card h3 { color: #13221A; }

.align-start { align-items: start; }
.align-center { align-items: center; }
.align-stretch { align-items: stretch; }

.trust-reviews-wrap { gap: 30px; }
.review-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trust-card,
.review-card,
.info-card,
.seo-card,
.cta-panel,
.office-panel,
.about-media,
.video-card,
.office-image {
  overflow: hidden;
}
.trust-card {
  min-height: 172px;
  padding: 24px 22px;
}
.trust-card h3 {
  min-height: 48px;
  line-height: 1.25;
}
.review-mini {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.about-grid,
.video-grid,
.cta-grid,
.office-grid {
  gap: 42px;
}
.about-media {
  min-height: 460px;
  background: linear-gradient(135deg, rgba(4,76,38,.10), rgba(95,209,154,.18));
}
.about-media img,
.office-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-grid { align-items: stretch; }
.service-card--enhanced {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(4,76,38,.06);
}
.service-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(247,251,248,.72) 100%);
  pointer-events: none;
}
.service-card img {
  min-height: 220px;
}
.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.service-card-body .btn { margin-top: auto; align-self: flex-start; }
.service-card h3 { font-size: 1.24rem; }
.service-card p { color: #5b6a62; }

.video-grid > div:first-child { max-width: 560px; }
.video-card {
  min-height: 420px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(95,209,154,.16), rgba(4,76,38,.07));
}
.video-placeholder {
  min-height: 384px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.video-placeholder p { color: rgba(255,255,255,.88); }

.why-grid { align-items: stretch; }
.info-card {
  min-height: 100px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #173125;
}

.review-card--enhanced {
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}
.review-card--enhanced p { color: #506057; }
.review-meta strong { color: #13221A; }

.section.dark {
  background: linear-gradient(135deg, #06572B 0%, #044C26 48%, #0B6B41 100%);
}
.office-image {
  min-height: 420px;
  background: rgba(255,255,255,.12);
}
.office-panel {
  height: 100%;
  background: rgba(255,255,255,.10);
}
.office-panel p,
.office-panel li { color: rgba(255,255,255,.90); }
.office-panel .btn-light-outline {
  background: rgba(255,255,255,.08);
}

.seo-card,
.cta-panel {
  padding: 34px;
  height: 100%;
}
.seo-card {
  background: #ffffff;
}

.site-footer {
  background: linear-gradient(135deg, #0B301E 0%, #071A12 100%);
}
.footer-col p,
.footer-col li,
.footer-col a { color: rgba(255,255,255,.86); }
.footer-bottom { color: rgba(255,255,255,.75); }

@media (max-width: 1180px) {
  .review-panel,
  .cta-panel,
  .seo-card,
  .office-panel,
  .about-media,
  .office-image { min-height: 0; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 24px; }
  .hero-copy { padding-top: 10px; }
  .trust-card h3 { min-height: 0; }
  .video-card { min-height: 320px; }
}


/* Navigation uses WordPress Appearance > Menus only */
.main-nav:empty { display: none; }

/* Footer CTA visibility fix */
.site-footer .btn,
.site-footer .btn-secondary,
.site-footer .btn-primary,
.site-footer .btn-outline {
  color: #044c26 !important;
}
.site-footer .btn-secondary {
  background: #ffffff;
  border-color: rgba(255,255,255,.35);
}
.site-footer .btn-primary {
  color: #ffffff !important;
}
