/* Client feedback round 1 (2026-10) — site-wide typography, menu, footer and motion. Loaded last. */

/* Type: Montserrat headlines, Mulish body, softer body colour. */
:root{--phg-title:clamp(24px,2vw,28px)}
body{font:400 16px/1.7 var(--font-body);color:var(--phg-text)}
h1{font-weight:600}
h1,h2,h3{text-wrap:balance}
p,li,dd,blockquote{text-wrap:pretty}
.phg-prose,.home .phg-section--editorial .phg-prose{color:var(--phg-text-soft)}
.phg-card p,.phg-item p{color:var(--phg-text-soft)}

/* One size for every section title. */
h2,
.phg-about h2,.phg-about .about-mission h2,.phg-about .about-ecosystem h2,
.phg-culture .culture-values h2,
.phg-news .news-related h2,
.phg-job-detail__form h2,
.phg-contact .contact-page-form h2,
.phg-section--partners h2,
.home .phg-section--editorial h2,
.home .phg-section--featured_projects h2,
.home .phg-section--awards h2,
.project-archive__group h2,
.project-detail__gallery-heading h2,.project-detail__related h2{font-size:var(--phg-title);font-weight:500;line-height:1.3;letter-spacing:.01em}

/* Menu overlay: smaller labels. */
.phg-menu>li>a,.menu-overlay .phg-menu>li>a{font-size:clamp(15px,1.15vw,17px)}
.phg-menu .sub-menu a,.menu-overlay .phg-menu .sub-menu a{font-size:clamp(14px,1.05vw,16px)}
.phg-menu>li.menu-item-has-children>a::after{font-size:22px}
.phg-menu .sub-menu>li>a::after{font-size:18px}
.menu-overlay__card-copy strong{font-size:14px}
.menu-overlay__card-copy span{font-size:13px}
@media(max-width:767px){.phg-menu .sub-menu>li>a,.menu-overlay .phg-menu .sub-menu>li>a{font-size:15px}
}

/* Footer: columns sized to their content — wide contact, narrow links. */
@media(min-width:1025px){.site-footer__grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1.05fr) minmax(0,.7fr) minmax(0,1.3fr);gap:40px clamp(32px,4vw,64px)}
}
@media(min-width:768px) and (max-width:1024px){.site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Hover feedback. */
a,.phg-button,.phg-link,button{transition:color .25s ease,background-color .25s ease,border-color .25s ease,box-shadow .25s ease,transform .25s ease}
.phg-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(198,167,105,.32)}
.phg-link:hover{color:var(--phg-accent);border-bottom-color:currentColor}
.phg-card,.home-featured__slide,.home-featured__photo{transition:box-shadow .35s ease,transform .35s ease}
.project-archive .phg-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(34,30,36,.12)}
.home-featured__photo img{transition:transform .6s ease}
.home-featured__photo:hover img{transform:scale(1.04)}
.site-footer__social a:hover{border-color:var(--phg-accent);color:var(--phg-accent)}

/* Scroll reveal (classes set by assets/js/reveal.js; content stays visible without JS). */
.phg-reveal-ready .phg-reveal{opacity:0;translate:0 28px;transition:opacity .8s cubic-bezier(.2,.65,.3,1),translate .8s cubic-bezier(.2,.65,.3,1);transition-delay:var(--reveal-delay,0s)}
.phg-reveal-ready .phg-reveal.is-revealed{opacity:1;translate:0 0}
@media(prefers-reduced-motion:reduce){.phg-reveal-ready .phg-reveal{opacity:1;translate:none;transition:none}
.phg-button:hover,.project-archive .phg-card:hover{transform:none}
}

/* Header: CTA and language switcher in regular weight, slightly larger, thinner chevron. */
.site-header__cta{font-size:14px;font-weight:500;letter-spacing:.05em;padding-inline:26px}
.phg-language-switcher__trigger{font-size:15px;font-weight:400;gap:8px}
.phg-language-switcher__trigger svg path{stroke-width:1.2}

/* Home: hero headline on one line from tablet up. */
.home .page-hero--section .page-hero__copy{max-width:min(1160px,100%)}
@media(min-width:900px){.home .page-hero--section h1,.phg-home-slide .page-hero__copy h1,.phg-home-slide .page-hero__copy h2{white-space:nowrap}
}
/* "Xem tất cả dự án" now sits under the project grid. */
.home-featured__all{margin:36px 0 0;font-size:15px}
.home-featured__all a{display:inline-block;padding-bottom:4px;letter-spacing:.06em;text-transform:uppercase;color:var(--phg-text)}
.home-featured__all a:hover{color:var(--phg-accent)}

/* About: clearer hierarchy in the opening block. */
.phg-about .about-history h2{font-size:var(--phg-title);font-weight:500;line-height:1.3}
.about-overview__eyebrow{font-size:14px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--phg-accent);margin:0}
.about-overview__line{width:40px;margin:14px 0 24px}
.about-overview__copy{max-width:640px}
.phg-about .about-overview h1{font-size:clamp(26px,2.5vw,36px);font-weight:600;line-height:1.2;margin-bottom:28px}
.about-overview__text{max-width:520px}
.about-overview__text p{font-size:16px;line-height:1.8}
.about-overview__text p:first-child{font-size:18px;font-weight:400;color:#fff}
/* History timeline: heavier dotted rules. */
.about-history__copy>div>span{width:120px;border-top:3px dotted #8a8a8a}
.about-history svg polyline{stroke-width:2.5;stroke-dasharray:1 6}
/* Ecosystem: rounded tiles; the hovered brand lifts and the copy fades while it swaps. */
.about-ecosystem__brand{border-radius:10px;transition:transform .3s ease,box-shadow .3s ease}
.about-ecosystem__brand[data-brand-text]{cursor:pointer}
.about-ecosystem__brand.is-active,.about-ecosystem__brand[data-brand-text]:hover{transform:translateY(-4px);box-shadow:0 10px 26px rgba(0,0,0,.16);outline:1px solid var(--phg-accent)}
.about-ecosystem__center,.about-ecosystem__center img{border-radius:50%}
.about-model__photo img,.about-mission__image,.about-mission__image img{border-radius:10px}
.about-ecosystem__copy h2,.about-ecosystem__copy p{transition:opacity .16s ease}
.about-ecosystem__copy.is-changing h2,.about-ecosystem__copy.is-changing p{opacity:0}

/* Projects archive: no breadcrumb, larger filter tabs. */
.project-archive__header{padding-top:clamp(56px,6vw,84px)}
@media(min-width:768px){.project-archive__tabs{gap:8px clamp(28px,4vw,56px)}
.project-archive__tabs a{font-size:17px;padding:16px 6px 15px}
}
@media(max-width:767px){.project-archive__tabs{justify-content:flex-start;gap:16px;overflow-x:auto;scrollbar-width:none;padding-inline:16px}
.project-archive__tabs::-webkit-scrollbar{display:none}
.project-archive__tabs a{flex:none;font-size:13px;padding:12px 0}
}
/* Project cards: map pin before the address, animated "Xem chi tiết". */
.phg-card__footer{align-items:center}
.phg-card__location{display:inline-flex;flex:1 1 auto;align-items:flex-start;gap:6px;min-width:0}
.phg-card__location>span{flex:1 1 auto;min-width:0;text-wrap:balance}
.phg-card__location svg,.project-detail__location svg{flex:none;margin-top:3px;color:var(--phg-accent)}
.phg-card__more{display:inline-flex;align-items:center;gap:4px;padding-bottom:2px;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:color .25s ease,background-size .3s ease}
.phg-card__more span{display:inline-block;transition:transform .25s ease}
.phg-card__more:hover,.phg-card:hover .phg-card__more{color:var(--phg-accent);background-size:100% 1px}
.phg-card__more:hover span,.phg-card:hover .phg-card__more span{transform:translate(2px,-2px)}
/* Project detail: no orphaned last words. */
.project-detail__location{display:flex;align-items:flex-start;gap:8px;text-wrap:balance}
.project-detail__intro h1,.project-detail__position h1{text-wrap:balance}

/* Developing projects: flexible blocks. */
.project-blocks{display:grid;gap:clamp(56px,7vw,96px)}
.project-block h2{font-size:var(--phg-title);font-weight:500;margin:0 0 18px}
.project-block h3{font:600 16px/1.4 var(--font-body);margin:18px 0 8px}
.project-block__prose{color:var(--phg-text-soft);line-height:1.8}
.project-block__prose ul{padding-left:20px;margin:0 0 12px}
.project-block__prose li{margin-bottom:6px}
.project-block--statement{text-align:center;max-width:820px;margin-inline:auto}
.project-block--statement p{font-size:18px;line-height:1.8;color:var(--phg-text-soft);margin:0}
.project-block--split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center}
.project-block--image-left .project-block__media{order:-1}
.project-block--no-image{grid-template-columns:minmax(0,820px)}
.project-block__media{margin:0}
.project-block__media img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.project-block__index{font:300 44px/1 var(--font-head);color:var(--phg-accent);margin:0 0 10px}
.project-block--text{max-width:900px}
.project-block--columns .project-block__prose{columns:2;column-gap:56px}
.project-block--image{margin:0}
.project-block--image img{width:100%;max-height:720px;object-fit:cover;border-radius:8px}
.project-block--full{margin-inline:calc(-1*var(--phg-gutter))}
.project-block--full img{border-radius:0}
.project-block--image figcaption{margin-top:10px;font-size:14px;color:var(--phg-neutral-gray);text-align:center}
.project-block--video{text-align:center}
.project-block__video{position:relative;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.project-block__video iframe,.project-block__video video{position:absolute;inset:0;width:100%;height:100%;border:0}
.project-block__gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-block__gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;transition:transform .5s ease}
.project-block__gallery a{display:block;overflow:hidden;border-radius:6px}
.project-block__gallery a:hover img{transform:scale(1.04)}
.project-block--facts dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 32px;margin:0}
.project-block--facts dl>div{border-top:1px solid var(--phg-neutral-line);padding:18px 0}
.project-block--facts dt{font-size:13px;color:var(--phg-neutral-gray);text-transform:uppercase;letter-spacing:.06em}
.project-block--facts dd{margin:6px 0 0;font:500 20px/1.4 var(--font-head)}
.project-block--cta{text-align:center;background:#fff;padding:clamp(36px,5vw,64px);border-radius:10px}
.project-block--cta p{max-width:640px;margin:0 auto 24px;color:var(--phg-text-soft)}
@media(max-width:767px){.project-block--split{grid-template-columns:1fr}
.project-block--image-left .project-block__media{order:0}
.project-block--columns .project-block__prose{columns:1}
.project-block__gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* News archive: larger category filter and recent list. */
.news-tabs a{font-size:17px;min-height:52px}
.news-recent>p{font-size:14px;font-weight:600;color:var(--phg-text)}
.news-compact strong{font-size:16px;line-height:1.45}
.news-compact__meta{font-size:13px}

/* News article: wide body on the left, sticky contents/links/recent on the right. */
.news-detail__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:clamp(32px,4vw,64px);max-width:1320px;margin:0 auto;padding:clamp(40px,5vw,64px) var(--phg-gutter) 0;align-items:start}
.news-detail__layout .news-article{max-width:none;margin:0;padding:0}
.phg-news .news-article h1{font-size:clamp(28px,2.6vw,38px);font-weight:600;line-height:1.25;margin:0 0 16px}
.news-article__meta{text-transform:uppercase;letter-spacing:.06em;font-size:13px}
.news-article__byline{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0 0 24px;padding:12px 0;border-block:1px solid var(--phg-neutral-line);font-size:15px;color:var(--phg-neutral-gray)}
.news-article__byline>span{display:inline-flex;align-items:center;gap:8px}
.news-article__byline svg{color:var(--phg-neutral-gray)}
.news-article__excerpt{font-size:18px;font-weight:400;color:var(--phg-text-soft)}
.news-article__body{font-size:17px;font-weight:400;line-height:1.85;color:var(--phg-text)}
.news-article__body p{margin:0 0 20px}
.news-article__body h2{font-size:clamp(22px,1.8vw,26px);font-weight:600;line-height:1.35;margin:40px 0 16px;scroll-margin-top:110px}
.news-article__body h3{font-size:19px;font-weight:600;line-height:1.4;margin:28px 0 12px;scroll-margin-top:110px}
.news-article__body a{color:var(--phg-accent);text-decoration:underline;text-underline-offset:3px}
.news-share>a,.news-share>button{width:42px;height:42px;min-height:0;padding:0;justify-content:center;border-radius:50%}
.news-share>a:hover,.news-share>button:hover,.news-share>button.is-copied{border-color:var(--phg-accent);background:var(--phg-accent);color:#fff}
.news-detail__aside{position:sticky;top:108px;display:grid;gap:20px;max-height:calc(100vh - 124px);overflow-y:auto;padding:4px}
.admin-bar .news-detail__aside{top:140px}
.news-aside-box{box-shadow:0 2px 14px #221e181a;padding:20px;display:flex;flex-direction:column;gap:14px;background:#fff}
.news-aside-box>p{margin:0;font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--phg-text)}
.news-toc ol,.news-links ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.news-toc a,.news-links a{font-size:15px;line-height:1.5;color:var(--phg-text-soft)}
.news-toc a:hover,.news-links a:hover{color:var(--phg-accent)}
.news-toc__level-3{padding-left:14px}
.news-toc li{border-left:2px solid var(--phg-neutral-line);padding-left:12px}
.news-toc li.news-toc__level-3{margin-left:12px}
.news-related__all{text-align:center;margin:36px 0 0}
@media(max-width:1023px){.news-detail__layout{grid-template-columns:1fr}
.news-detail__aside{position:static;max-height:none;overflow:visible}
}

/* Recruitment: icons on job facts, brighter salary red, aligned filter, quiet buttons until hover. */
.phg-job-card__details>strong,.phg-job-card__details>span{display:flex;align-items:flex-start;gap:8px}
.phg-job-card__icon{flex:none;margin-top:3px;color:var(--phg-accent)}
.phg-job-card__details{font-size:15px;gap:8px 24px}
.phg-job-card__details em{color:#E02424;font-weight:600}
.phg-job-card__heading h2{font-size:19px}
.phg-jobs-filter>input{margin-bottom:16px}
.phg-jobs-filter__box{gap:0;padding:24px}
.phg-jobs-filter__box label{display:block;margin:18px 0 8px;font-size:15px;font-weight:600;line-height:1.3}
.phg-jobs-filter__box label:first-child{margin-top:0}
.phg-jobs-filter>input,.phg-jobs-filter__box select{height:46px;padding:0 14px}
.phg-jobs-filter__actions{margin-top:24px}
.phg-jobs-filter__actions a,.phg-jobs-filter__actions button{background:#fff;border:1px solid var(--phg-neutral-line);color:var(--phg-text);transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.phg-jobs-filter__actions button{border-color:var(--phg-accent)}
.phg-jobs-filter__actions a:hover,.phg-jobs-filter__actions a:focus-visible{background:var(--phg-neutral-light);border-color:var(--phg-text)}
.phg-jobs-filter__actions button:hover,.phg-jobs-filter__actions button:focus-visible{background:var(--phg-accent);color:var(--phg-text)}
/* Application form: checkbox sits beside its sentence. */
.phg-form .phg-form__consent>span{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.6}
.phg-form .phg-form__consent input[type=checkbox]{width:18px;height:18px;padding:0;margin:3px 0 0;flex:none;accent-color:var(--phg-accent)}
/* Keep phone numbers and e-mails whole. */
.phg-job-detail__contact a,.contact-info-line a{white-space:nowrap}

/* Culture: unified section titles, signature quote, justified copy. */
.phg-culture h2,.phg-culture .culture-values h2,.phg-culture .culture-workplace h2{font-family:var(--font-head);font-size:var(--phg-title);font-weight:500;line-height:1.3}
.culture-people blockquote{font-family:var(--font-quote)}
.culture-people__text p,.culture-workplace__items p{text-align:justify;hyphens:none}

/* Contact: both column titles share one size; policy terms highlighted (linked once the pages exist). */
.phg-contact h1,.phg-contact .contact-page-form h2{font-size:var(--phg-title);font-weight:600;line-height:1.3;margin-bottom:16px}
.contact-office-label{font-size:13px;font-weight:600!important;letter-spacing:.1em;text-transform:uppercase;color:var(--phg-accent);margin-bottom:6px}
.contact-info-line{font-size:16px;color:var(--phg-text-soft)}
.contact-info-line svg{fill:var(--phg-accent)}
.contact-form-intro{font-size:16px;color:var(--phg-text-soft)}
.contact-consent strong,.contact-consent a{color:var(--phg-accent);font-weight:600}
.contact-consent a{text-decoration:underline;text-underline-offset:3px}
.contact-consent a:hover{color:#a8884a}
.phg-form__consent strong,.phg-form__consent a{color:var(--phg-accent);font-weight:600}
/* About statistics: icon, figure, accent rule, label — aligned to the copy's baseline. */
.about-overview__stats{align-self:end;gap:clamp(10px,1.4vw,18px)}
.about-overview__stats>div{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:clamp(16px,1.8vw,24px);border:1px solid rgba(255,255,255,.4);border-radius:8px;background:rgba(18,13,8,.35);backdrop-filter:blur(2px)}
.about-overview__stat-icon{color:var(--phg-accent);margin-bottom:14px}
.about-overview__stats strong{font:500 clamp(32px,3vw,44px)/1 var(--font-head);color:#fff}
.about-overview__stats span{margin-top:12px;padding-top:12px;border-top:1px solid var(--phg-accent);font-size:13px;font-weight:600;letter-spacing:.08em;line-height:1.4;text-transform:uppercase;color:#ece8e0}
@media(max-width:767px){.about-overview__stats>div{padding:12px}
.about-overview__stat-icon{width:20px;height:20px;margin-bottom:8px}
.about-overview__stats span{font-size:11px;letter-spacing:.04em;margin-top:8px;padding-top:8px}
}
