/*
Theme Name: DrNhatChau Eye Care
Theme URI: https://github.com/DrNhatchau/drnhatchau-eyecare
Author: Phong Kham Mat DrNhatChau
Description: Theme cho website Phong Kham Mat DrNhatChau - khong dau de tuong thich WordPress theme header.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: drnhatchau
*/

:root {
  --primary: #0a6cb8;
  --primary-dark: #084c82;
  --primary-light: #eaf4fc;
  --accent: #00a99d;
  --text: #1f2937;
  --text-muted: #5b6577;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --border: #e1e8f0;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 108, 184, 0.08);
  --shadow-lg: 0 10px 30px rgba(10, 108, 184, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--primary-dark); }

p { margin: 0 0 1em; color: var(--text-muted); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}

.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--text-muted); text-align: center; }

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

section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; }
.section-head p { margin-top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-blue { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-blue:hover { background: var(--primary); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #dceafb;
  font-size: .85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-contact a, .topbar-social a {
  color: #dceafb;
  margin-right: 18px;
  white-space: nowrap;
}
.topbar-contact a:hover, .topbar-social a:hover { color: #fff; text-decoration: underline; }

/* ---------- Navbar ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: .82rem;
  line-height: 1.25;
  letter-spacing: .02em;
}
.brand-text strong { color: var(--primary); font-size: 1.05rem; }

.nav-menu {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-menu a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu li.current-menu-item > a { color: var(--primary); border-color: var(--primary); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--primary-dark); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 70%);
  color: #fff;
  padding: 90px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 460px; }
.hero-text .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-text h1 { color: #fff; font-size: 2.6rem; margin-bottom: 16px; }
.hero-text .slogan { font-size: 1.2rem; font-style: italic; color: #d9ecfc; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-hotline { font-size: .95rem; color: #eaf4fc; }
.hero-hotline strong { font-size: 1.15rem; color: #fff; }
.hero-visual {
  flex: 1 1 360px;
  min-height: 300px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  border: 2px dashed rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eaf4fc;
  font-size: .9rem;
  padding: 20px;
  overflow: hidden;
}
.hero-visual img { max-width: 100%; max-height: 100%; border-radius: var(--radius); }

/* ---------- Placeholder image box (dung khi chua co anh that) ---------- */
.img-placeholder {
  background: var(--primary-light);
  border: 2px dashed #b9d9f0;
  border-radius: var(--radius);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 16px;
  min-height: 180px;
  overflow: hidden;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Feature / Why choose us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { font-size: .92rem; margin: 0; }

/* ---------- Cards grid (services / articles) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { height: 150px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { font-size: .92rem; flex: 1; }
.card-link { font-weight: 700; color: var(--primary); font-size: .9rem; margin-top: 6px; }
.card-link:hover { text-decoration: underline; }

.card.placeholder-card {
  border-style: dashed;
  border-color: #b9d9f0;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
}
.card.placeholder-card .card-body { justify-content: center; align-items: center; }

/* ---------- Doctor ---------- */
.doctor-card {
  display: flex;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.doctor-photo { width: 200px; flex-shrink: 0; }
.doctor-info { flex: 1 1 260px; }
.doctor-info h3 { margin-bottom: 4px; font-size: 1.3rem; }
.doctor-info .title { color: var(--accent); font-weight: 700; margin-bottom: 14px; display: block; }

/* ---------- Note / callout box ---------- */
.callout {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .95rem;
  color: var(--text);
}
.callout strong { color: var(--primary-dark); }

/* ---------- Vision/Mission/Values ---------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.vmv-card {
  background: #fff;
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d9ecfc; }
.cta-banner .btn { margin: 6px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.contact-info-list .ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 600; font-size: .92rem; color: var(--text); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--text-muted); }
.form-notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; font-size: .92rem; }
.form-notice.success { background: #e6f7ee; color: #146c43; border: 1px solid #b6e6c9; }
.form-notice.error { background: #fdecec; color: #a3242b; border: 1px solid #f3bcbc; }

/* ---------- Breadcrumb / page banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: #d9ecfc; margin: 0; }

/* ---------- Blog / Kien thuc nhan khoa ---------- */
.blog-list { display: grid; gap: 26px; }
.blog-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.blog-card .blog-thumb { width: 220px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; min-height: 140px; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-meta { font-size: .82rem; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.blog-content { max-width: 780px; margin: 0 auto; }
.blog-content img { border-radius: var(--radius); }
.blog-content h2, .blog-content h3 { margin-top: 1.2em; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); font-weight: 600; font-size: .9rem;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: #062f52; color: #cfe1f2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: 40px;
  padding: 56px 20px 30px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer p, .site-footer a { color: #b9d1e6; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 18px;
  font-size: .85rem;
  color: #93aec6;
}

/* ---------- Zalo floating button ---------- */
.float-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 1.4rem;
}
.float-btn.zalo { background: #0068ff; }
.float-btn.phone { background: var(--accent); }

/* ---------- Responsive nav ---------- */
@media (max-width: 960px) {
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { width: 100%; border-top: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 14px 20px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  section { padding: 50px 0; }
  .doctor-card { flex-direction: column; }
  .doctor-photo { width: 100%; }
  .blog-card { flex-direction: column; }
  .blog-card .blog-thumb { width: 100%; }
}
