/* Allograft.ca public UI refinement — v3.5.9
   Purpose: improve readability, Persian typography, spacing, hierarchy and
   responsive ergonomics without changing the site's restrained medical identity. */

:root{
  --ui-content:1280px;
  --ui-reading:72ch;
  --ui-radius-lg:28px;
  --ui-radius-md:18px;
  --ui-shadow:0 18px 55px rgba(11,45,66,.075);
  --ui-shadow-soft:0 10px 32px rgba(11,45,66,.055);
  --ui-focus:0 0 0 4px rgba(89,181,177,.22);
}

html{font-size:16px}
body{font-size:16px;line-height:1.72;text-rendering:optimizeLegibility}
.site{overflow:clip}
.section-shell{width:min(var(--ui-content),calc(100% - 64px))}

/* The Persian font is already bundled with the production build.  Keeping it
   self-hosted avoids a CSP-blocked Google Fonts request and gives deterministic
   rendering in Iran and on privacy-focused browsers. */
.locale-fa,
.locale-fa button,.locale-fa input,.locale-fa select,.locale-fa textarea{
  font-family:"Vazirmatn Variable",Vazirmatn,"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-optical-sizing:auto;
  font-kerning:normal;
  font-feature-settings:"kern" 1,"calt" 1;
  letter-spacing:0!important;
  line-height:1.82;
}
.locale-fa h1,.locale-fa h2,.locale-fa h3,.locale-fa h4,.locale-fa h5,.locale-fa h6,
.locale-fa strong,.locale-fa b{
  font-family:"Vazirmatn Variable",Vazirmatn,"Segoe UI",Tahoma,Arial,sans-serif!important;
  letter-spacing:0!important;
}
.locale-fa p,.locale-fa li{line-height:1.92}
.locale-fa .eyebrow{font-weight:720}

/* Header: slightly calmer and easier to scan. */
.site-header{background:rgba(255,255,255,.94);box-shadow:0 1px 0 rgba(11,45,66,.025)}
.header-inner{width:min(1340px,calc(100% - 48px));height:78px;gap:28px}
.logo>span:last-child{font-size:20px}
.desktop-nav{gap:clamp(16px,1.7vw,29px)}
.desktop-nav a{font-size:13.5px;font-weight:620;padding-block:29px 27px}
.desktop-nav a:after{bottom:17px}
.header-actions{gap:12px}
.language-switcher a{min-width:31px;height:29px;font-size:10px}

/* Buttons and interactive controls. */
.button{min-height:48px;padding-inline:22px;gap:12px;font-size:13.5px;font-weight:680;border-radius:14px}
.button.compact{min-height:40px;border-radius:12px;font-size:11.5px}
.button:hover{transform:translateY(-1px)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:2px solid var(--aqua);outline-offset:3px;box-shadow:var(--ui-focus)
}

/* Hero: more editorial, less oversized, with a stronger reading rhythm. */
.hero{grid-template-columns:.9fr 1.1fr;gap:56px;min-height:680px;padding-block:68px 78px}
.hero-copy{max-width:640px;padding-inline-start:0}
.hero h1{max-width:680px;font-size:clamp(48px,5.4vw,82px);line-height:1.01;letter-spacing:-.05em;font-weight:550}
.locale-fa .hero h1{font-size:clamp(46px,5.15vw,76px);line-height:1.26;font-weight:680;max-width:720px}
.hero-intro{max-width:590px;margin-top:27px;font-size:clamp(16px,1.25vw,19px);line-height:1.78}
.locale-fa .hero-intro{font-size:clamp(16px,1.18vw,18px);line-height:1.95}
.hero-actions{margin-top:30px;gap:10px}
.hero-visual{min-height:550px;border-radius:34px;background:linear-gradient(145deg,#f4f8f6,#edf5f3);box-shadow:var(--ui-shadow);border:1px solid rgba(199,217,217,.7)}
.hero-visual-label{inset-inline-end:20px;bottom:20px;border-radius:13px;padding:11px 13px;max-width:220px}

/* Consistent section rhythm and readable line lengths. */
.intro-section{gap:42px;padding-block:104px}
.intro-heading h2{font-size:clamp(36px,3.6vw,58px);line-height:1.12}
.locale-fa .intro-heading h2{line-height:1.38;font-weight:680}
.intro-content p{font-size:16px;line-height:1.9;max-width:var(--ui-reading)}
.section-heading{margin-bottom:48px;max-width:740px}
.section-heading h2{font-size:clamp(36px,3.8vw,60px);line-height:1.12}
.locale-fa .section-heading h2{line-height:1.38;font-weight:680}
.eyebrow{letter-spacing:.11em;font-size:10.5px}

.product-showcase{min-height:620px;border-radius:var(--ui-radius-lg);box-shadow:var(--ui-shadow-soft);border:1px solid rgba(199,217,217,.55)}
.product-art{min-height:560px}
.product-copy{padding:clamp(48px,6vw,82px)}
.product-copy h2{font-size:clamp(46px,4.6vw,70px);line-height:1.06;margin-bottom:22px}
.product-copy>p{font-size:16px;line-height:1.9;max-width:60ch}

.attribute-grid{border-color:var(--line-strong)}
.attribute-card{min-height:285px;padding:30px 28px 34px}
.attribute-card h3{font-size:19px;line-height:1.4;margin-bottom:13px}
.attribute-card p{font-size:13.5px;line-height:1.8;max-width:34ch}
.attribute-icon{margin-bottom:32px}

.process-section{padding-block:108px}
.process-heading{column-gap:72px}
.process-heading h2{font-size:clamp(38px,4.4vw,66px);line-height:1.1}
.locale-fa .process-heading h2{line-height:1.42;font-weight:680}
.process-heading>p:last-child{font-size:12.5px;line-height:1.75}
.process-grid{margin-top:70px}
.process-grid article{padding-top:24px}
.process-grid h3{font-size:18px;line-height:1.4}
.process-grid p{font-size:13px;line-height:1.8;max-width:29ch}

.rejuvenation{gap:82px;padding-block:112px}
.rejuvenation-copy h2{font-size:clamp(40px,4.4vw,66px);line-height:1.1}
.rejuvenation-copy>p:not(.eyebrow){font-size:16px;line-height:1.9;max-width:64ch}
.dermal-diagram-image img{width:min(100%,570px)}

.applications-section{gap:82px;padding-block:105px}
.applications-copy h2{font-size:clamp(38px,4vw,62px);line-height:1.12}
.applications-copy>p:not(.eyebrow){font-size:16px;line-height:1.9;max-width:62ch}
.application-list a{min-height:78px;grid-template-columns:42px 1fr auto}
.application-list strong{font-size:16px}
.application-list a:hover{padding-inline:12px;background:#f8fbfa}

.evidence-section{padding-block:102px}
.evidence-inner{gap:82px}
.evidence-inner h2{font-size:clamp(39px,4.1vw,64px);line-height:1.12}
.evidence-inner>div:last-child>p{margin:28px 0 36px;font-size:15.5px;line-height:1.9}
.evidence-links a{font-size:12.5px;padding:17px 0}

.cta-section{padding-block:96px;align-items:center}
.cta-section h2{font-size:clamp(38px,4.2vw,64px);line-height:1.12}
.cta-section p:not(.eyebrow){font-size:15.5px;line-height:1.85;max-width:65ch}

/* Interior pages: keep authority but reduce billboard-scale headings. */
.page-hero{grid-template-columns:1fr .62fr;gap:68px;min-height:500px;padding-block:82px 72px}
.page-hero h1{font-size:clamp(48px,5.7vw,84px);line-height:1.03;letter-spacing:-.048em}
.locale-fa .page-hero h1{font-size:clamp(44px,5.2vw,74px);line-height:1.3;font-weight:680}
.page-hero>div:first-child>p:not(.eyebrow){font-size:18px;line-height:1.85;max-width:68ch}
.page-hero-art{min-height:315px}

.editorial-grid{padding-bottom:96px}
.editorial-grid article{min-height:270px;padding-block:30px 44px}
.editorial-grid h2{font-size:27px;line-height:1.35;margin:42px 0 17px}
.editorial-grid p{font-size:14.5px;line-height:1.88;max-width:62ch}

.spec-section{border-radius:var(--ui-radius-lg);gap:68px;margin-bottom:96px;padding-block:78px;box-shadow:var(--ui-shadow-soft)}
.spec-section h2{font-size:clamp(34px,3.5vw,54px);line-height:1.15}
.specification>div{padding:21px 0}
.specification span{font-size:12px}
.specification strong{font-size:14.5px;line-height:1.65}

.resource-grid{gap:16px;padding-bottom:92px}
.resource-grid article{min-height:280px;padding:27px;border-radius:var(--ui-radius-md);background:#fbfcfb;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.resource-grid article:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow-soft);border-color:var(--line-strong)}
.resource-grid h3{font-size:18px;line-height:1.42}
.resource-grid p{font-size:12.5px;line-height:1.75}
.resource-grid button{font-size:10.5px;padding:9px 13px}

.form-section{padding-block:100px}
.form-layout{gap:clamp(50px,6vw,96px)}
.form-layout h2{font-size:clamp(38px,4.5vw,66px);line-height:1.12}
.form-layout>div:first-child>p:not(.eyebrow){font-size:15.5px;line-height:1.9}
.form-grid{gap:18px}
.inquiry-form input,.inquiry-form select,.inquiry-form textarea{border-radius:12px!important;min-height:48px}

.seo-depth-section{padding-block:92px}
.seo-depth-heading{margin-bottom:42px}
.seo-depth-heading h2{font-size:clamp(34px,4.2vw,56px);line-height:1.13}
.seo-depth-heading>p:not(.eyebrow){font-size:15px;line-height:1.9;max-width:70ch}
.seo-depth-grid{gap:16px}
.seo-depth-grid article{min-height:240px;padding:27px;border-radius:var(--ui-radius-md);box-shadow:0 1px 0 rgba(11,45,66,.02)}
.seo-depth-grid h3{font-size:20px}
.seo-depth-grid p{font-size:13px}
.scientific-reading,.social-share-box{border-radius:var(--ui-radius-md);padding:26px}

/* Injected SEO guides on normal pages. */
.seo-hub-injection{max-width:var(--ui-content);margin:18px auto 72px;padding:28px 30px;border-radius:var(--ui-radius-lg);background:#f7faf9;box-shadow:0 1px 0 rgba(11,45,66,.02)}
.seo-hub-injection h2{font-size:22px;line-height:1.4;margin-bottom:18px}
.seo-hub-links{gap:12px}
.seo-hub-links a{padding:20px;border-radius:15px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.seo-hub-links a:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow-soft);border-color:var(--line-strong)}
.seo-hub-links a strong{font-size:15px;line-height:1.45}
.seo-hub-links a span{font-size:12.5px;line-height:1.7;color:var(--muted)}

/* Footer remains quiet and professional, but text is no longer undersized. */
.footer-main{gap:46px;padding-block:64px}
.footer-brand p{font-size:13.5px;line-height:1.8}
.footer-main h3{font-size:10px;margin-bottom:19px}
.footer-main>div:not(.footer-brand){gap:11px}
.footer-main>div:not(.footer-brand) a{font-size:12.5px;line-height:1.5}
.footer-notice{padding-block:22px}
.footer-notice p{font-size:11px;line-height:1.75}
.footer-bottom{min-height:66px;font-size:10px}
.official-linkedin-wrap{margin-top:0!important;padding-bottom:38px}
.official-linkedin-profile{border-radius:12px!important;padding:10px 14px!important;font-size:12px;box-shadow:0 6px 20px rgba(10,102,194,.12)}

/* Dedicated educational / evidence pages. */
.seo-shell{width:min(1120px,calc(100% - 48px))}
.seo-site-header .header-inner{min-height:74px;height:auto}
.seo-nav a,.language-pill{font-size:.91rem}
.article-layout{padding-block:24px 64px}
.breadcrumbs{margin-bottom:22px;font-size:.88rem}
.article-hero{max-width:850px;padding:36px 0 32px}
.article-hero h1{font-size:clamp(2.25rem,4.6vw,3.85rem);line-height:1.12;letter-spacing:-.035em;margin-bottom:20px}
.locale-fa .article-hero h1{font-size:clamp(2.12rem,4.2vw,3.5rem);line-height:1.4;font-weight:700;letter-spacing:0}
.lead{font-size:clamp(1.03rem,1.65vw,1.2rem);line-height:1.86;max-width:74ch}
.locale-fa .lead{line-height:2}
.article-grid{grid-template-columns:235px minmax(0,1fr);gap:34px}
.toc{top:94px;border-radius:16px;padding:18px;background:#fbfcfc}
.toc a{font-size:.9rem;line-height:1.55}
.article-body{border-radius:22px;padding:clamp(26px,4.5vw,50px);box-shadow:0 14px 44px rgba(14,45,42,.045)}
.article-body section{margin-bottom:42px}
.article-body h2{font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.3;margin-bottom:16px}
.locale-fa .article-body h2{line-height:1.55;font-weight:680}
.article-body h3{font-size:1.2rem;line-height:1.45}
.article-body p{line-height:1.86;max-width:78ch}
.locale-fa .article-body p{line-height:2}
.definition-box,.callout,.medical-note{border-radius:13px;padding:17px 19px}
th,td{padding:12px 14px;line-height:1.65}
.seo-site-footer{padding-top:42px}

/* RTL polish: preserve generous reading space and natural alignment. */
[dir=rtl] .hero-copy,[dir=rtl] .intro-content,[dir=rtl] .applications-copy,[dir=rtl] .rejuvenation-copy{text-align:right}
[dir=rtl] .locale-fa .hero h1,[dir=rtl] .locale-fa .page-hero h1{letter-spacing:0}

@media (max-width:1100px){
  .section-shell{width:min(100% - 46px,980px)}
  .hero{gap:38px;min-height:610px}
  .hero-visual{min-height:500px}
  .desktop-nav{gap:14px}
  .desktop-nav a{font-size:12.5px}
  .header-actions{gap:8px}
  .evidence-inner,.rejuvenation,.applications-section{gap:58px}
}

@media (max-width:900px){
  .section-shell{width:min(100% - 36px,740px)}
  .header-inner{height:74px;width:min(100% - 30px,760px)}
  .hero{grid-template-columns:1fr;gap:34px;padding-block:42px 72px}
  .hero-visual{order:-1;min-height:430px;border-radius:26px}
  .hero h1{font-size:clamp(46px,10vw,72px)}
  .locale-fa .hero h1{font-size:clamp(42px,9vw,64px)}
  .intro-section{padding-block:82px}
  .product-art{min-height:430px}
  .process-section{padding-block:88px}
  .process-grid{margin-top:58px}
  .rejuvenation,.applications-section{padding-block:88px}
  .evidence-section{padding-block:86px}
  .page-hero{padding-block:64px 58px;gap:40px}
  .page-hero h1{font-size:clamp(46px,9vw,70px)}
  .locale-fa .page-hero h1{font-size:clamp(42px,8.5vw,62px)}
  .seo-shell{width:min(100% - 32px,760px)}
  .article-grid{grid-template-columns:1fr}
  .toc{position:relative;top:auto}
  .seo-hub-injection{margin-inline:18px}
}

@media (max-width:600px){
  body{font-size:15.5px}
  .section-shell{width:calc(100% - 28px)}
  .header-inner{height:68px;width:calc(100% - 24px)}
  .logo>span:last-child{font-size:18px}
  .hero{padding-top:20px;padding-bottom:62px}
  .hero-visual{min-height:315px;border-radius:22px}
  .hero h1{margin-top:16px;font-size:clamp(43px,13vw,58px);line-height:1.06}
  .locale-fa .hero h1{font-size:clamp(39px,11.5vw,54px);line-height:1.35}
  .hero-intro{font-size:15.5px;margin-top:20px}
  .hero-actions{grid-template-columns:1fr;margin-top:25px}
  .button{width:100%;min-height:47px}
  .intro-section{padding-block:66px}
  .intro-heading h2{font-size:37px}
  .locale-fa .intro-heading h2{font-size:35px}
  .product-showcase{width:100%;border-radius:22px}
  .product-art{min-height:320px}
  .product-copy{padding:38px 22px}
  .product-copy h2{font-size:46px}
  .attribute-card{min-height:0;padding:26px 22px 30px}
  .process-heading h2,.rejuvenation-copy h2,.applications-copy h2,.evidence-inner h2,.cta-section h2{font-size:37px}
  .locale-fa .process-heading h2,.locale-fa .rejuvenation-copy h2,.locale-fa .applications-copy h2,.locale-fa .evidence-inner h2,.locale-fa .cta-section h2{line-height:1.45}
  .process-grid{gap:34px}
  .rejuvenation,.applications-section{padding-block:72px;gap:48px}
  .evidence-section{padding-block:72px}
  .cta-section{padding-block:72px}
  .page-hero{padding-block:54px 45px}
  .page-hero h1{font-size:43px;line-height:1.1}
  .locale-fa .page-hero h1{font-size:39px;line-height:1.42}
  .page-hero>div:first-child>p:not(.eyebrow){font-size:16px}
  .resource-grid{padding-bottom:72px}
  .spec-section{width:100%;border-radius:22px;padding-block:54px;padding-inline:22px}
  .form-section{padding-block:72px}
  .seo-depth-section{padding-block:70px}
  .seo-hub-injection{margin:8px 14px 58px;padding:22px 18px;border-radius:20px}
  .seo-hub-links{grid-template-columns:1fr}
  .footer-main{padding-block:54px}
  .seo-shell{width:calc(100% - 24px)}
  .seo-site-header .header-inner{min-height:66px}
  .article-layout{padding-bottom:48px}
  .article-hero{padding-top:24px}
  .article-hero h1{font-size:2.25rem}
  .locale-fa .article-hero h1{font-size:2.05rem;line-height:1.5}
  .article-body{padding:22px 18px;border-radius:18px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
