/*
Theme Name: Dr Harith — Tanya Dr Harith
Theme URI: https://drharith.com
Author: Harith Rosdi (Marketing Team)
Author URI: https://drharith.com
Description: Personal site for Dr Muhammad Harith Rosdi, sports physician at IIUM Sports Medicine Clinic (ISMEC), Kuantan. Bilingual EN/BM, WhatsApp-first, education-first. Hand-coded, no page builders.
Version: 1.10.0
License: GPL-2.0-or-later
Text Domain: drharith
Tags: health, education, bilingual
*/

/* ============================================================
   drharith.com — style.css (WordPress theme)
   Sharp/square (0px radius), hairline grids, gold = single accent.
   Palette verified in brand/visual-identity.md.
   ============================================================ */

:root {
  --deep-teal:   #145655;
  --teal-dark:   #0E3F3E;
  --sasmec-teal: #00928F;
  --gold:        #D6A129;
  --gold-deep:   #8A5A00;
  --gold-hover:  #BD8A41;
  --black:       #231F20;
  --white:       #FFFFFF;
  --off-white:   #F4F7F7;
  --surface:     #E6EFEF;
  --alert:       #B3261E;
  --hairline:    rgba(20,86,85,.18);
  --hairline-dark: rgba(255,255,255,.25);

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --pad-section: 128px;
  --pad-section-m: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--teal-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--font-head); color: var(--deep-teal); line-height: 1.15; font-weight: 700; }
h1 { font-size: 56px; letter-spacing: -0.01em; }
h2 { font-size: 40px; }
h3 { font-size: 24px; font-weight: 600; }

a { color: var(--deep-teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--deep-teal); color: #fff; padding: 12px 20px; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(20,86,85,.18);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { height: 40px; width: auto; display: block; }
.brand__word { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--deep-teal); letter-spacing: -0.01em; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--teal-dark); display: block; margin-top: 1px; }

.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--deep-teal);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--gold); transition: width .2s cubic-bezier(.2,.7,.3,1);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; border: 1px solid var(--hairline); }
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--teal-dark);
  padding: 7px 12px;
}
.lang-toggle button[aria-pressed="true"] { color: var(--deep-teal); background: var(--surface); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--deep-teal); margin: 5px 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  padding: 16px 32px; border: none; cursor: pointer; border-radius: 0;
  transition: background .2s cubic-bezier(.2,.7,.3,1), color .2s;
}
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-hover); text-decoration: none; }
.btn--outline { background: transparent; color: #fff; border: 1px solid #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.btn--sm { padding: 10px 20px; font-size: 16px; }
.btn .wa-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,63,62,.94) 0%, rgba(20,86,85,.82) 45%, rgba(20,86,85,.4) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 128px 0; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: 48px; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin-bottom: 20px; }
.hero .lead { color: var(--off-white); font-size: 20px; max-width: 640px; margin-bottom: 24px; }
.hero__cred { margin-bottom: 24px; }
.hero__cred p { margin: 0; color: #fff; }
.hero__cred .cred-name { font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.hero__cred .cred-qual { font-size: 15px; letter-spacing: 0.01em; }
.hero .pillar-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .pillar { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.hero .pillar::before { content: ""; width: 6px; height: 6px; background: var(--gold); }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.eyebrow {
  display: inline-block; background: var(--gold); color: var(--black);
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .12em; padding: 8px 16px;
}

/* ============ SECTION HEADERS ============ */
.section-head { margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 8px; }
.section-head .lead { color: var(--teal-dark); font-size: 20px; max-width: 640px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

section { padding: var(--pad-section) 0; }
.alt { background: var(--off-white); }

/* ============ JOURNEY STRIP ============ */
.journey-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline);
}
.journey-cell { background: var(--white); padding: 32px; }
.journey-cell .num {
  display: inline-block; background: var(--gold); color: var(--black);
  font-family: var(--font-head); font-weight: 800; font-size: 22px; padding: 4px 12px; margin-bottom: 16px;
}
.journey-cell h3 { margin-bottom: 8px; }
.journey-cell p { font-size: 16px; color: var(--teal-dark); }

/* ============ PILLAR GRID ============ */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline);
}
.pillar-cell { position: relative; background: var(--white); overflow: hidden; min-height: 340px; }
.pillar-cell__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pillar-cell__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,63,62,.15) 0%, rgba(14,63,62,.88) 100%);
}
.pillar-cell__content { position: relative; z-index: 2; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.pillar-cell h3 { margin-bottom: 12px; color: #fff; font-size: 22px; }
.pillar-cell p { color: var(--off-white); margin-bottom: 16px; font-size: 16px; }
.pillar-cell .pillar-link { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--gold); }
.pillar-cell .pillar-link:hover { color: #fff; }
.pillar-cell .num {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  font-family: var(--font-head); font-weight: 800; font-size: 40px; color: rgba(255,255,255,.4);
}
.pillar-cell .icon { width: 48px; height: 48px; color: var(--sasmec-teal); margin-bottom: 20px; }
.pillar-cell .icon svg { width: 100%; height: 100%; }

/* ============ DARK BAND ============ */
.dark-band { background: var(--deep-teal); }
.dark-band .container { color: var(--off-white); }
.dark-band h2 { color: #fff; }
.dark-band .gold-rule { width: 96px; height: 4px; background: var(--gold); margin-bottom: 20px; }
.meet-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 48px; align-items: center; }
.meet-text .lead { color: var(--off-white); font-size: 20px; margin-bottom: 24px; }
.fact-rows { border-top: 1px solid var(--hairline-dark); margin-bottom: 24px; }
.fact-row { border-bottom: 1px solid var(--hairline-dark); padding: 12px 0; display: flex; gap: 16px; }
.fact-row .label { font-family: var(--font-head); font-weight: 600; color: var(--gold); min-width: 96px; }
.fact-row .value { color: var(--off-white); }
.meet-text .link { color: #fff; font-weight: 600; }
.meet-text .link:hover { color: var(--gold); }
.meet-photo img { width: 100%; display: block; border: 4px solid var(--gold); border-right: none; border-bottom: none; }

/* ============ INDEX ROWS ============ */
.index-row { border-bottom: 1px solid var(--hairline); transition: background .2s; }
.index-row:first-child { border-top: 1px solid var(--hairline); }
.index-row a { display: flex; align-items: center; gap: 24px; padding: 24px 8px; }
.index-row a:hover { background: var(--surface); text-decoration: none; }
.index-row .num {
  font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--deep-teal);
  min-width: 56px; flex-shrink: 0;
}
.index-row .idx-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--deep-teal); }
.index-row .idx-excerpt { color: var(--teal-dark); font-size: 16px; flex: 1; }
.index-row .idx-meta { color: var(--teal-dark); font-size: 16px; white-space: nowrap; }

/* ============ CTA BAND ============ */
.cta-band { border-top: 1px solid rgba(214,161,41,.4); border-bottom: 1px solid rgba(214,161,41,.4); padding: 48px 0; }
.cta-band .cta-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { flex: 1; min-width: 260px; }
.cta-band .contact-micro { color: var(--teal-dark); font-size: 16px; }

/* ============ GENERIC PAGE ============ */
.page-hero { background: var(--deep-teal); padding: 64px 0; }
.page-hero h1 { color: #fff; font-size: 44px; }
.page-hero .lead { color: var(--off-white); font-size: 19px; margin-top: 8px; }
.page-body { padding: 96px 0; }
.page-body h2 { margin: 48px 0 20px; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: 32px 0 12px; }
.page-body ul, .page-body ol { margin: 0 0 1.2em 1.4em; }
.page-body li { margin-bottom: 6px; }

.cond h3 { margin-bottom: 8px; }
.cond .sub { color: var(--teal-dark); font-size: 16px; margin-bottom: 8px; }
.cond p { margin-bottom: 10px; }
.cond .readmore { font-family: var(--font-head); font-weight: 600; font-size: 16px; }

.triage { background: var(--surface); padding: 32px; margin-top: 48px; }
.triage h3 { margin-bottom: 16px; }
.triage h4 { color: var(--deep-teal); font-size: 18px; margin: 16px 0 8px; }
.triage ul { margin-left: 1.4em; }
.triage .urgent { color: var(--alert); font-weight: 600; }

.faq-item { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-item h4 { color: var(--deep-teal); font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--teal-dark); }

/* ============ ABOUT PAGE ============ */
.about-page .container { max-width: var(--maxw); }
.about-page h2 { font-size: 28px; }
.about-page h3 { font-size: 17px; margin: 0 0 10px; }
.about-page p, .about-page li { font-size: 15px; }
.about-page li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* About Me */
.about-me { margin-bottom: 80px; }
.about-me > h2 { margin-bottom: 20px; }
.about-me__grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; margin-bottom: 20px; }
.about-me__content { order: 1; }
.about-me__photo { order: 2; }
.about-me__photo img { width: 100%; height: auto; display: block; border: 3px solid var(--gold); border-right: none; border-bottom: none; }
.about-me__content p { margin-bottom: 14px; }

/* Credential columns — single column, left-aligned */
.about-credentials { display: grid; grid-template-columns: 1fr; gap: 24px; }
.cred-col { max-width: 720px; }
.cred-col ul { margin: 0; padding: 0; list-style: none; }
.cred-col li { color: var(--teal-dark); margin-bottom: 6px; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 80px; }
.about-split__media img { width: 100%; height: auto; display: block; border: 4px solid var(--gold); border-right: none; border-bottom: none; }
.about-split__text h2 { margin-bottom: 16px; }
.about-split__text p { font-size: 15px; }
.about-ismec { margin-bottom: 80px; }
.about-ismec > h2 { margin-bottom: 20px; }
.ismec-points { list-style: none; margin: 0 0 20px; padding: 0; }
.ismec-points li { font-size: 16px; color: var(--deep-teal); padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.ismec-points li strong { font-family: var(--font-head); font-weight: 600; }
.ismec-more { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--deep-teal); cursor: default; }
.about-team { margin-bottom: 80px; }
.about-team h2 { margin-bottom: 12px; }
.about-team__photo { margin: 24px 0; }
.about-team__photo img { width: 100%; height: auto; display: block; border: 4px solid var(--gold); border-right: none; border-bottom: none; }
.about-team ul { margin: 0 0 0 1.2em; }
.about-team li { margin-bottom: 8px; color: var(--teal-dark); }
.about-faq { margin-bottom: 40px; }
.about-faq h2 { margin-bottom: 24px; }
.about-faq details.faq-item, #first-visit details.faq-item { cursor: pointer; }
.about-faq details.faq-item summary, #first-visit details.faq-item summary { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--deep-teal); cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.about-faq details.faq-item summary::-webkit-details-marker, #first-visit details.faq-item summary::-webkit-details-marker { display: none; }
.about-faq details.faq-item summary::after, #first-visit details.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 20px; font-weight: 600; color: var(--gold); line-height: 1; }
.about-faq details.faq-item[open] summary::after, #first-visit details.faq-item[open] summary::after { content: "−"; }
.about-faq details.faq-item p, #first-visit details.faq-item p { margin-top: 12px; font-size: 15px; }

/* ============ CONTACT FORM ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); }
.contact-cell { background: var(--white); padding: 40px; }
.contact-cell--tint { background: var(--surface); }
.wa-form .wa-field { margin-bottom: 20px; }
.wa-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--deep-teal); margin-bottom: 8px; }
.wa-form input, .wa-form select, .wa-form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; font-family: var(--font-body); font-size: 16px;
  border: 1px solid rgba(20,86,85,.3); background: var(--white); color: var(--black); border-radius: 0;
}
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { outline: 2px solid var(--deep-teal); outline-offset: 0; }
.wa-form textarea { min-height: 100px; resize: vertical; }
.wa-form .wa-note { font-size: 16px; color: var(--teal-dark); margin-top: 12px; }
.contact-meta { font-size: 16px; color: var(--teal-dark); }
.contact-meta .row { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-meta .label { font-family: var(--font-head); font-weight: 600; color: var(--deep-teal); min-width: 90px; }

/* ============ ARTICLE ============ */
.article-body { max-width: 760px; }
.article-body .meta { color: var(--teal-dark); font-size: 16px; margin-bottom: 32px; }
.article-body h2 { font-size: 30px; margin-top: 40px; }
.article-body h3 { margin-top: 28px; }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 12px 20px; margin: 24px 0; background: var(--surface);
  color: var(--teal-dark);
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 15px; color: var(--teal-dark); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--deep-teal); color: var(--off-white); padding: 64px 0 0; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 48px;
}
.site-footer h4 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__sub { color: var(--off-white); }
.site-footer a { color: var(--off-white); }
.site-footer a:hover { color: var(--gold); }
.site-footer .nav-col a { display: block; margin-bottom: 10px; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.site-footer .contact-line { font-size: 16px; margin-bottom: 12px; }
.site-footer .social-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.site-footer .social-row a { font-weight: 600; }
.footer-disclaimer {
  border-top: 1px solid var(--hairline-dark); padding: 24px 0; font-size: 16px; line-height: 1.5;
  color: var(--off-white); max-width: 800px;
}
.footer-legal {
  border-top: 1px solid var(--hairline-dark); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 16px 32px;
  font-size: 16px; color: var(--off-white); justify-content: space-between;
}
.footer-legal a { color: var(--off-white); }

/* ============ SIMPLE FOOTER (contact / map / social) ============ */
.footer-simple {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 48px; padding-bottom: 48px;
}
.site-footer h4 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.footer-block .contact-line { font-size: 16px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.footer-block .contact-ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); }
.footer-block .contact-line--addr { font-size: 14px; line-height: 1.5; color: var(--off-white); }
.footer-block--map iframe { width: 100%; height: 200px; border: 0; filter: grayscale(20%); }
.social-row { display: flex; flex-direction: column; gap: 12px; }
.social-row a { display: inline-flex; align-items: center; gap: 10px; color: var(--off-white); font-weight: 500; font-size: 14px; }
.social-row a:hover { color: var(--gold); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.social-row a[aria-label*="pending"] { opacity: .6; }
.footer-copyright {
  border-top: 1px solid var(--hairline-dark); padding: 24px 0; text-align: center;
  font-size: 16px; color: var(--off-white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  h1 { font-size: 48px; } h2 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 15px; }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .meet-grid { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 96px 0; }
}
@media (max-width: 768px) {
  .container, .site-header__inner { padding: 0 24px; }
  h1 { font-size: 36px; } h2 { font-size: 30px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 18px; }
  .main-nav {
    display: none; position: fixed; inset: 0; background: var(--deep-teal);
    flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px 32px; gap: 8px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: #fff; font-size: 28px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--hairline-dark); width: 100%; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .brand__sub { display: none; }
  .header-actions { gap: 8px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .index-row .idx-excerpt, .index-row .idx-meta { display: none; }
  section { padding: var(--pad-section-m) 0; }
  .page-hero h1 { font-size: 34px; }
  .page-body { padding: 64px 0; }
  .cta-band .cta-row { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-simple { grid-template-columns: 1fr; gap: 32px; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-me__grid { grid-template-columns: 1fr; }
  .about-me__photo { max-width: 320px; order: 1; }
  .about-me__content { order: 2; }
  .about-credentials { grid-template-columns: 1fr; gap: 24px; }
  .about-page li { white-space: normal; }
}

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