/*
Theme Name: Shalyajna Homepage Child
Theme URI: https://shalyajna.com/
Description: Premium medical-academic child theme for Shalyajna, built on Astra.
Author: Shalyajna
Template: astra
Version: 1.1.0
Text Domain: shalyajna-homepage
*/

/* Core design tokens */
:root {
  --sh-navy: #123A6F;
  --sh-navy-deep: #08284D;
  --sh-gold: #C5A253;
  --sh-gold-light: #E8D8AE;
  --sh-green: #1F5135;
  --sh-ink: #263445;
  --sh-muted: #5B6675;
  --sh-paper: #FFFFFF;
  --sh-soft: #F5F7FA;
  --sh-border: #E4E9EF;
  --sh-radius: 18px;
  --sh-shadow: 0 14px 38px rgba(8, 40, 77, .10);
}
html { scroll-behavior: smooth; }
body { color: var(--sh-ink); line-height: 1.72; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { color: var(--sh-navy); line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
a { text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sh-gold); outline-offset: 3px; }
::selection { background: var(--sh-gold-light); color: var(--sh-navy-deep); }
.ast-container { max-width: 1240px; }
.entry-content p, .entry-content li { max-width: 78ch; }
.entry-content img { height: auto; }
.wp-block-image img { border-radius: 12px; }

/* Astra header: preserve the current logo and menu, improve proportions. */
.ast-primary-header-bar { border-bottom: 1px solid rgba(197,162,83,.24); }
.site-header .custom-logo { max-height: 78px; width: auto; }
.main-header-menu .menu-link { font-weight: 600; }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item > .menu-link { color: var(--sh-gold); }

/* Buttons */
.ast-button, .button, button, input[type="button"], input[type="submit"], input[type="reset"], .wp-block-button__link {
  border-radius: 999px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.ast-button:hover, .button:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  transform: translateY(-1px); box-shadow: 0 7px 18px rgba(8,40,77,.15);
}
.wp-block-separator { border-color: rgba(197,162,83,.7); }

/* New homepage template */
.sh-home { overflow: clip; }
.sh-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--sh-gold); font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sh-eyebrow:before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sh-hero { position: relative; color: white; background: linear-gradient(105deg, rgba(8,40,77,.96), rgba(18,58,111,.82)), var(--sh-hero-image, none); background-size: cover; background-position: center; padding: clamp(68px, 9vw, 126px) 0 clamp(78px, 10vw, 140px); }
.sh-hero:after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, transparent, var(--sh-gold), transparent); opacity: .9; }
.sh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: center; gap: clamp(32px, 6vw, 82px); }
.sh-hero h1 { color: white; max-width: 760px; margin: 18px 0 20px; }
.sh-hero p { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 680px; }
.sh-hero .sh-eyebrow { color: var(--sh-gold-light); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--sh-gold); border-radius: 999px; text-decoration: none; font-weight: 700; }
.sh-btn-primary { background: var(--sh-gold); color: var(--sh-navy-deep); }
.sh-btn-primary:hover { background: #d6b66e; color: var(--sh-navy-deep); }
.sh-btn-secondary { color: white; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.sh-btn-secondary:hover { background: rgba(255,255,255,.12); color: white; }
.sh-hero-art { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.sh-hero-art img { width: 100%; max-width: 440px; height: auto; object-fit: contain; filter: drop-shadow(0 22px 32px rgba(0,0,0,.22)); }
.sh-art-placeholder { width: min(100%, 390px); aspect-ratio: 4/3; border: 1px solid rgba(232,216,174,.45); border-radius: 24px; display: grid; place-items: center; padding: 30px; text-align: center; background: radial-gradient(circle at 50% 0, rgba(197,162,83,.24), transparent 60%), rgba(255,255,255,.04); }
.sh-art-placeholder strong { display: block; color: var(--sh-gold-light); font-size: 1.2rem; }
.sh-art-placeholder span { color: rgba(255,255,255,.75); font-size: .92rem; }
.sh-shortcuts { position: relative; z-index: 2; margin-top: -42px; }
.sh-shortcut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sh-shortcut { display: block; height: 100%; padding: 26px; background: white; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.sh-shortcut:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(8,40,77,.15); }
.sh-shortcut .sh-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; background: #EEF3F9; color: var(--sh-navy); font-size: 1.3rem; }
.sh-shortcut h2 { font-size: 1.22rem; margin: 0 0 8px; }
.sh-shortcut p { color: var(--sh-muted); font-size: .96rem; margin: 0; }
.sh-section { padding: clamp(58px, 8vw, 96px) 0; }
.sh-section-soft { background: var(--sh-soft); }
.sh-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.sh-section-head h2 { margin: 12px 0; }
.sh-section-head p { color: var(--sh-muted); margin: 0 auto; }
.sh-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sh-pillar { padding: 28px; border: 1px solid var(--sh-border); border-radius: var(--sh-radius); background: white; }
.sh-pillar .sh-number { color: var(--sh-gold); font-weight: 800; font-size: .85rem; letter-spacing: .12em; }
.sh-pillar h3 { margin: 13px 0 10px; }
.sh-pillar p { color: var(--sh-muted); font-size: .96rem; }
.sh-text-link { color: var(--sh-navy); font-weight: 700; text-decoration-color: var(--sh-gold); text-decoration-thickness: 2px; }
.sh-profile { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(30px, 6vw, 76px); }
.sh-profile-media { border-radius: 22px; overflow: hidden; background: #E8EDF3; }
.sh-profile-media img { display: block; width: 100%; height: auto; }
.sh-profile-copy p { color: var(--sh-muted); }
.sh-quote { position: relative; overflow: hidden; color: white; background: var(--sh-navy-deep); padding: clamp(48px, 7vw, 78px) 0; }
.sh-quote blockquote { max-width: 850px; margin: 0 auto; color: white; text-align: center; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.65; }
.sh-quote cite { display: block; margin-top: 20px; color: var(--sh-gold-light); font-size: .95rem; font-style: normal; font-weight: 500; }
.sh-quote .sh-wrap { position: relative; z-index: 1; }
.sh-quote:before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(197,162,83,.18); border-radius: 50%; right: -160px; top: -220px; }
.sh-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 48px); border: 1px solid rgba(197,162,83,.5); border-radius: 22px; background: linear-gradient(120deg, #F8F5ED, #FFFFFF); }
.sh-final-cta h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2rem); }
.sh-final-cta p { margin: 0; color: var(--sh-muted); }
.sh-final-cta .sh-btn { white-space: nowrap; background: var(--sh-navy); color: white; border-color: var(--sh-navy); }
.sh-final-cta .sh-btn:hover { background: var(--sh-navy-deep); color: white; }

/* Responsive layouts */
@media (max-width: 900px) {
  .sh-hero-grid { grid-template-columns: 1fr; }
  .sh-hero-art { min-height: 0; }
  .sh-hero-art img, .sh-art-placeholder { max-width: 340px; }
  .sh-shortcut-grid, .sh-pillar-grid { grid-template-columns: 1fr; }
  .sh-profile { grid-template-columns: 1fr; }
  .sh-profile-media { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.68; }
  .sh-wrap { width: min(100% - 36px, 1160px); }
  .sh-hero { padding: 54px 0 76px; background-position: 58% center; }
  .sh-hero h1 { font-size: clamp(2.05rem, 10vw, 2.8rem); }
  .sh-hero p { font-size: 1.03rem; }
  .sh-actions { align-items: stretch; flex-direction: column; }
  .sh-btn { width: 100%; }
  .sh-shortcuts { margin-top: -28px; }
  .sh-shortcut { padding: 22px; }
  .sh-section { padding: 54px 0; }
  .sh-pillar { padding: 23px; }
  .sh-final-cta { align-items: stretch; flex-direction: column; }
  .sh-final-cta .sh-btn { width: 100%; }
  .ast-container { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
