/*
Theme Name: HelloDoc
Theme URI: https://example.com/hellodoc
Author: Your Name
Author URI: https://example.com
Description: HelloDoc is a clean, modern, professional WordPress theme built for business, healthcare, and corporate websites. Fully custom-coded, fast, responsive, and easy to customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hellodoc
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout
*/

/* 1. Root Variables ---------------------------------------------------- */
:root {
  --hd-primary: #2f6f5e;      /* deep teal/green - professional healthcare/business tone */
  --hd-primary-dark: #234f43;
  --hd-secondary: #d9a441;    /* warm gold accent */
  --hd-text: #2c2c2c;
  --menu-item: rgba(10, 14, 21, 0.80);
  --hd-text-light: #6b6b6b;
  --hd-bg: #ffffff;
  --hd-bg-alt: #f6f8f7;
  --hd-border: #e4e7e6;
  --hd-radius: 10px;
  --hd-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --hd-shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
  --hd-container: 100%;
  --hd-font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --hd-font-body: 'DM Sans';
  --hd-transition: all 0.25s ease;

  /* Header-specific */
  --hd-header-dark: #0f1b2b;
  --hd-header-radius: 18px;
}

/* 2. Reset & Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hd-font-body);
  color: var(--hd-text);
  background: var(--hd-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hd-primary); text-decoration: none; transition: var(--hd-transition); }
a:hover { color: var(--hd-primary-dark); }
ul, ol { padding-left: 1.2rem; }
figure { margin: 0; }

/* 3. Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hd-font-heading);
  color: var(--hd-text);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 1rem;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.2rem; color: var(--hd-text-light); }
.hd-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hd-secondary);
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* 4. Layout / Containers -------------------------------------------------- */
.hd-container {
  max-width: var(--hd-container);
  margin: 0 auto;
  padding: 0 24px;
}
.hd-section { padding: 80px 0; }
.hd-section-alt { background: var(--hd-bg-alt); }
.hd-grid { display: grid; gap: 32px; }
.hd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hd-flex { display: flex; align-items: center; }
.hd-flex-between { display: flex; align-items: center; justify-content: space-between; }
.hd-text-center { text-align: center; }

/* 5. Header ---------------------------------------------------------------- */
/* Outer wrap gives the floating, inset feel from the design */
.hd-header-wrap {
  background: var(--hd-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 16px 8%;
}
.hd-site-content{
    padding: 16px 8%;
}
.hd-site-header {
  max-width: var(--hd-container);
  margin: 0 auto;
  /*background: var(--hd-bg);*/
  /*box-shadow: var(--hd-shadow);*/
  /*transition: box-shadow 0.2s ease;*/
}
.hd-header-wrap{
    border-bottom: 1px solid var(--hd-border);
}
.hd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px 12px 20px;
}

/* Branding: icon + title + tagline, stacked tightly */
.hd-site-branding { display: flex; align-items: center; }
.hd-site-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hd-text);
}
.hd-site-title-wrap:hover { color: var(--hd-text); }
.hd-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--hd-header-dark);
  flex-shrink: 0;
}
.hd-site-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hd-site-title {
  font-family: var(--hd-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hd-header-dark);
}
.hd-site-description {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--hd-text-light);
  margin: 0;
}
.hd-logo img { max-height: 40px; width: auto; }

.hd-header-cta { display: flex; align-items: center; gap: 12px; }
.hd-header-phone {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hd-text);
  margin-right: 4px;
}
body .hd-site-header .hd-header-cta a.headr_bluebtn{
    border-radius: var(--Numerics-16, 16px);
    background: radial-gradient(50% 100% at 50% 0%, rgba(0, 32, 73, 0.60)) 0%, #002049) 100%));
    display: flex;
    padding: 15px 25px;
    justify-content: space-between;
    align-items: center;
    border: 0px;
}
body .hd-site-header .hd-header-cta a.headr_leftbtn{
    border-radius:16px);
    border: 1px solid rgba(10, 14, 21, 0.20));
    display: flex;
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
}

/* 6. Navigation -------------------------------------------------------------- */
.hd-primary-nav{
    box-shadow: var(--hd-shadow);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--Colors-Neutrals-White-100, #FFF);
    background: var(--Neutrals-WHITE, #FFF);
    box-shadow: 0 0 10px 0 var(--Colors-Neutrals-Black-10, rgba(10, 14, 21, 0.10)) inset;
}
.hd-primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.hd-primary-nav li { position: relative; }
.hd-primary-nav > ul > li.menu-item-has-children > a { padding-right: 4px; }
.hd-primary-nav a {
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    color: var(--Neutrals-Black-80, var(--Neutrals-Gray-80, rgba(10, 14, 21, 0.80)));
    font-family: var(--Font-BodyFont, "DM Sans");
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: var(--headings-line-height-lh-sub-h-2, 24px);
}
.hd-primary-nav a:hover,
.hd-primary-nav .current-menu-item > a { color: var(--hd-primary); }

/* Chevron indicator for dropdown items */
.hd-primary-nav li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.65;
}

.hd-primary-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: var(--hd-shadow-hover);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--hd-transition);
  z-index: 20;
}
.hd-primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hd-primary-nav .sub-menu a { padding: 8px 12px; border-radius: 6px; }
.hd-primary-nav .sub-menu a::after { display: none; }
.hd-primary-nav .sub-menu a:hover { background: var(--hd-bg-alt); }

.hd-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hd-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--hd-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--hd-transition);
}

/* 8. Buttons ------------------------------------------------------------------- */
.hd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--hd-transition);
}
.hd-btn-primary {
  background: var(--hd-primary);
  color: #fff !important;
}
.hd-btn-primary:hover {
  background: var(--hd-primary-dark);
  transform: translateY(-2px);
}
.hd-btn-outline {
  background: transparent;
  border-color: var(--hd-border);
  color: var(--hd-text) !important;
}
.hd-btn-outline:hover {
  border-color: var(--hd-header-dark);
  transform: translateY(-1px);
}

/* Dark filled button used for header "Contact Us" */
/*.hd-btn-dark {*/
/*  background: var(--hd-header-dark);*/
/*  border-color: var(--hd-header-dark);*/
/*  color: #fff !important;*/
/*}*/
.hd-btn-dark:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-1px);
}

/* Small header-sized button variant */
.hd-btn-sm {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.hd-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hd-btn-arrow svg { display: block; }

/* 10. Content / Post ------------------------------------------------------------- */
.hd-content-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 60px 0;
}
.hd-content-wrap.no-sidebar { grid-template-columns: 1fr; }
.hd-entry-header { margin-bottom: 24px; }
.hd-entry-title { font-size: 2.2rem; }
.hd-entry-meta {
  font-size: 0.9rem;
  color: var(--hd-text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hd-entry-thumbnail { margin-bottom: 30px; border-radius: var(--hd-radius); overflow: hidden; }
.hd-entry-content h2 { margin-top: 2rem; }
.hd-entry-content img { border-radius: var(--hd-radius); }
.hd-entry-content blockquote {
  border-left: 4px solid var(--hd-primary);
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  background: var(--hd-bg-alt);
  border-radius: 0 var(--hd-radius) var(--hd-radius) 0;
  font-style: italic;
}
.hd-tags { margin-top: 2rem; display: flex; gap: 10px; flex-wrap: wrap; }
.hd-tags a {
  background: var(--hd-bg-alt);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
}

/* Article card for archive/index listing */
.hd-post-card {
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius);
  overflow: hidden;
  margin-bottom: 32px;
  transition: var(--hd-transition);
  background: #fff;
}
.hd-post-card:hover { box-shadow: var(--hd-shadow-hover); }
.hd-post-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hd-post-card-body { padding: 24px; }
.hd-post-card-body h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.hd-post-card .hd-entry-meta { margin-bottom: 0.8rem; }

/* Pagination */
.hd-pagination { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.hd-pagination a, .hd-pagination span {
  padding: 10px 16px;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  color: var(--hd-text);
}
.hd-pagination .current { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-pagination a:hover { border-color: var(--hd-primary); color: var(--hd-primary); }

/* 11. Sidebar / Widgets ------------------------------------------------------------ */
.hd-sidebar .widget {
  background: var(--hd-bg-alt);
  border-radius: var(--hd-radius);
  padding: 24px;
  margin-bottom: 28px;
}
.hd-sidebar .widget h2, .hd-sidebar .widget .widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--hd-secondary);
}
.hd-sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.hd-sidebar .widget li { padding: 8px 0; border-bottom: 1px solid var(--hd-border); }
.hd-sidebar .widget li:last-child { border-bottom: none; }

/* 12. Comments ------------------------------------------------------------------- */
.hd-comments { margin-top: 50px; }
.hd-comments-title { margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.hd-comment {
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.hd-comment-author { font-weight: 600; }
.hd-comment-meta { font-size: 0.85rem; color: var(--hd-text-light); margin-bottom: 10px; }
.hd-comment-reply a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hd-primary);
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--hd-font-body);
}
#respond textarea { min-height: 140px; }

/* 13. Footer --------------------------------------------------------------------- */
.hd-site-footer {
  background: #1c2b27;
  color: #cfd8d5;
  padding: 70px 0 0;
  margin-top: 60px;
}
.hd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hd-footer-col h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hd-footer-col p, .hd-footer-col a { color: #b7c2be; }
.hd-footer-col a:hover { color: #fff; }
.hd-footer-col ul { list-style: none; padding: 0; margin: 0; }
.hd-footer-col li { margin-bottom: 10px; }
.hd-site-title-footer { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.hd-social-links { display: flex; gap: 12px; margin-top: 16px; }
.hd-social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.hd-footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8fa19b;
}
.hd-footer-bottom a { color: #b7c2be; }

/* 14. Forms ----------------------------------------------------------------------- */
.hd-search-form { position: relative; }
.hd-search-form input[type="search"] {
  width: 100%;
  padding: 12px 46px 12px 16px;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
}
.hd-search-form button {
  position: absolute;
  right: 6px;
  top: 6px;
  background: var(--hd-primary);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
}

/* 15. Utilities --------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden;
  height: 1px; width: 1px;
}
.hd-mt-0 { margin-top: 0; }
.hd-mb-0 { margin-bottom: 0; }

/* 16. Responsive ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hd-hero-inner { grid-template-columns: 1fr; }
  .hd-content-wrap { grid-template-columns: 1fr; }
  .hd-footer-grid { grid-template-columns: 1fr 1fr; }
  .hd-grid-3, .hd-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hd-header-phone { display: none; }
}
@media (max-width: 700px) {
  .hd-header-wrap { padding: 12px 12px 0; }
  .hd-primary-nav { display: none; }
  .hd-menu-toggle { display: block; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hd-footer-grid { grid-template-columns: 1fr; }
  .hd-grid-2, .hd-grid-3, .hd-grid-4 { grid-template-columns: 1fr; }
  .hd-btn-sm span:not(.hd-btn-arrow) { display: inline; }
  .hd-header-cta .hd-btn-sm { padding: 9px 14px; font-size: 0.82rem; }

  .hd-primary-nav.hd-nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--hd-shadow);
    border-radius: 0 0 var(--hd-radius) var(--hd-radius);
    padding: 20px 24px;
    margin-top: 8px;
  }
  .hd-primary-nav.hd-nav-open ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hd-primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
  .hd-primary-nav li.hd-sub-open > .sub-menu { display: block; }
}