/*
Theme Name: Vanda
Theme URI: https://www.medicare-asia.com/
Author: Magicsoft Asia Systems
Description: Vanda's own WordPress theme. Standalone, no Elementor dependency. Brand system (color, type, spacing, buttons, cards, motion) ported from the VandaCare Indonesia/Singapore landing pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vanda
*/

/* ==========================================================================
   Reset (minimal)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ==========================================================================
   Design tokens — ported from the VandaCare Indonesia / Singapore pages
   (Stitch export: primary purple, amber CTA, slate neutrals, status colors)
   ========================================================================== */
:root{
  --paper:#F8FAFC;
  --ink:#0F172A;
  --ink-soft:#64748B;
  --card:#FFFFFF;
  --teal:#7A2682;        /* primary brand purple: headings-adjacent accents, links, active states */
  --teal-deep:#4A1250;
  --teal-tint:#F3E8F4;
  --coral:#7A2682;
  --coral-tint:#F3E8F4;
  --coral-hover:#681F6F;
  --cta:#E08129;         /* reserved for the primary action button only */
  --cta-hover:#C96E1D;
  --cta-text:#FFFFFF;
  --line:#E2E8F0;
  --ok:#059669;
  --ok-bg:#ECFDF5;
  --warn:#B45309;
  --warn-bg:#FFFBEB;
  --danger:#DC2626;
  --danger-bg:#FEF2F2;
  --info:#1D4ED8;
  --info-bg:#EFF6FF;
  --mono:'Plus Jakarta Sans', sans-serif;
  --disp:'Plus Jakarta Sans', sans-serif;
  --sans:'Plus Jakarta Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 3px rgba(15,23,42,.04), 0 1px 2px -1px rgba(15,23,42,.02);
  --shadow-card-hover: 0 8px 16px -4px rgba(122,38,130,.15), 0 2px 6px -1px rgba(15,23,42,.05);
  --container: 1200px;
}
.material-symbols-outlined{font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24; display:inline-block; vertical-align:middle; line-height:1;}

/* ==========================================================================
   Base typography / elements
   ========================================================================== */
body{
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6{
  font-family: var(--disp);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}
h1{ font-size: clamp(2rem, 1.2rem + 3.2vw, 3.2rem); line-height: 1.1; }
h2{ font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.05rem; }
p{ margin: 0 0 16px; }
a{ color: var(--teal); }
a:hover{ color: var(--coral-hover); }
strong, b{ color: var(--ink); }

::selection{ background: var(--teal-tint); color: var(--teal-deep); }

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px){ .wrap{ padding: 0 20px; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary{ background: var(--cta); color: var(--cta-text); }
.btn-primary:hover{ background: var(--cta-hover); color: var(--cta-text); }
.btn-secondary{ background: var(--teal-tint); color: var(--teal); }
.btn-secondary:hover{ background: #ECD7EA; color: var(--teal); }
.btn-ghost{ background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover{ box-shadow: var(--shadow-card-hover); border-color: var(--teal); transform: translateY(-2px); }

/* ==========================================================================
   Site chrome shared by every template (header lives in header.php's own
   inline styles, ported from [vanda_mega_header]; this covers the rest)
   ========================================================================== */
.site-main{ padding: 0; min-height: 50vh; }
.site-main--elementor{ padding: 0; min-height: 0; }
.page-header{ margin-bottom: 0px; text-align: center; }
.page-header .entry-title{ margin-bottom: 8px; }
.archive-description{ color: var(--ink-soft); }

.entry-content{ font-size: 1rem; line-height: 1.75; }
.entry-content h2, .entry-content h3{ margin-top: 36px; }
.entry-content img{ border-radius: var(--radius-md); margin: 24px 0; }
.entry-content a{ text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol{ list-style: revert; margin: 0 0 16px; padding-left: 1.4em; }
.entry-content blockquote{
  border-left: 3px solid var(--teal); margin: 24px 0; padding: 4px 20px;
  color: var(--ink-soft); font-style: italic;
}
.entry-content table{ width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content table th, .entry-content table td{ border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* Post meta */
.post-meta{ display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.post-meta span{ display: inline-flex; align-items: center; gap: 6px; }
.post-thumb{ border-radius: var(--radius-md); overflow: hidden; margin-bottom: 32px; }
.post-thumb img{ width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.post-tags{ margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.post-tags a{ color: var(--teal); }

/* Archive / search grid */
.post-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .post-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .post-grid{ grid-template-columns: 1fr; } }
.post-card{ display: flex; flex-direction: column; gap: 12px; }
.post-card .post-card-thumb{ border-radius: var(--radius-md); overflow: hidden; background: var(--paper); }
.post-card .post-card-thumb img{ width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card h2{ font-size: 1.05rem; margin: 0; }
.post-card h2 a{ color: var(--ink); }
.post-card h2 a:hover{ color: var(--teal); }
.post-card .post-card-excerpt{ font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.post-card .post-card-date{ font-size: 12px; color: var(--ink-soft); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }

/* Pagination */
.pagination{ display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pagination a, .pagination span{ font-size: 14px; font-weight: 600; color: var(--teal); }
.pagination .nav-previous, .pagination .nav-next{ display: flex; }

/* 404 */
.error-404{ text-align: center; padding: 60px 0; }
.error-404 .error-code{ font-family: var(--disp); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); color: var(--teal-tint); line-height: 1; margin-bottom: 8px; }

/* Search form */
.search-form{ display: flex; gap: 10px; max-width: 480px; margin: 0 auto 32px; }
.search-form input[type="search"]{
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--card); color: var(--ink);
}
.search-form input[type="search"]:focus{ outline: none; border-color: var(--teal); }

/* Comments */
#comments{ margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list{ display: flex; flex-direction: column; gap: 20px; }
.comment-body{ display: flex; gap: 14px; }
.comment-body .avatar{ border-radius: 50%; flex: none; }
.comment-author{ font-weight: 600; color: var(--ink); font-size: 14px; }
.comment-metadata{ font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.comment-content p{ font-size: 14px; margin-bottom: 8px; }
.children{ margin-left: 44px; margin-top: 20px; }
.comment-form input, .comment-form textarea{
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 14px; font-size: 14px; background: var(--card); color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus{ outline: none; border-color: var(--teal); }
.comment-reply-title{ margin-bottom: 20px; }

/* Sidebar (optional, used only if a template calls it) */
.content-with-sidebar{ display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 960px){ .content-with-sidebar{ grid-template-columns: 2.2fr 1fr; } }
.widget{ margin-bottom: 32px; }
.widget-title{ font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: 14px; }

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer{ background: var(--card); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 60px; }
.site-footer .footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px){ .site-footer .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .site-footer .footer-grid{ grid-template-columns: 1fr; } }
.site-footer .footer-logo img{ height: 30px; width: auto; margin-bottom: 12px; }
.site-footer .footer-tagline{ font-size: 13.5px; color: var(--ink-soft); max-width: 32ch; }
.site-footer h5{ font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 14px; }
.site-footer ul{ display: flex; flex-direction: column; gap: 10px; }
.site-footer a{ font-size: 13.5px; color: var(--ink-soft); }
.site-footer a:hover{ color: var(--teal); }
.site-footer .footer-bottom{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }

/* WordPress core alignment classes */
.alignleft{ float: left; margin-right: 20px; }
.alignright{ float: right; margin-left: 20px; }
.aligncenter{ display: block; margin: 0 auto; }
.alignwide{ margin-left: -80px; margin-right: -80px; }
.alignfull{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.screen-reader-text{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus{ position: static !important; width: auto; height: auto; padding: 10px; background: var(--card); z-index: 999; }
