/* =========================================================
   AmCham Nepal: homepage styles
   Values come from Figma "Homepage V2" (desktop 1440, mobile 390).
   Breakpoints: 1099px and below = tablet, 781px and below = phone.
   ========================================================= */
:root{--gutter:80px;--radius:12px;--serif:var(--wp--preset--font-family--serif);--sans:var(--wp--preset--font-family--sans)}
@media (max-width:781px){:root{--gutter:24px}}

.wp-site-blocks{position:relative}
/* On the homepage the header floats over the hero photo */
body.has-hero .site-header{position:absolute;top:0;left:0;right:0;z-index:5;background:transparent}

/* ---------- shared pieces ---------- */
.section{padding:96px var(--gutter)}
.section--navy{background:var(--wp--preset--color--navy);color:#fff;position:relative;overflow:hidden}
.section--ice{background:var(--wp--preset--color--ice)}
.section__title{font-size:48px;line-height:53px;letter-spacing:-.015em;font-weight:500;margin:0}
.section__title--center{text-align:center}
.section__lead{font-size:18px;line-height:28px;color:var(--wp--preset--color--slate);margin:0}
.section__lead--center{text-align:center}
.section__lead--light{color:var(--wp--preset--color--mist)}
.eyebrow{font-family:var(--sans);font-size:14px;line-height:18px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--wp--preset--color--red-text);margin:0}
.eyebrow--rose{color:var(--wp--preset--color--rose)}
.eyebrow--center{text-align:center}
.wp-block-image{margin:0}
.wp-block-image img{display:block}

/* buttons */
.wp-block-button__link{font-family:var(--sans);font-size:14px;font-weight:600;line-height:20px;text-decoration:none}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--wp--preset--color--navy);border:1px solid var(--wp--preset--color--navy);padding:13px 22px;font-size:15px}
.wp-block-button.btn-light .wp-block-button__link{color:#fff;border-color:rgba(255,255,255,.5);font-size:16px}
.has-arrow .wp-block-button__link::after,.has-arrow-white .wp-block-button__link::after{content:"";display:inline-block;vertical-align:middle;background:currentColor;margin-left:10px;
  -webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat}
.has-arrow{--arrow:url(../icons/arrow-right-18.svg)}
.has-arrow .wp-block-button__link::after{width:18px;height:18px}
.has-arrow-white{--arrow:url(../icons/arrow-white.svg)}
.has-arrow-white .wp-block-button__link::after{width:22px;height:20px;margin-left:6px}
.wp-block-button__link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* ---------- hero ---------- */
.home-hero{position:relative;background:var(--wp--preset--color--navy);min-height:543px;overflow:hidden;display:flex;align-items:center}
.home-hero__photo{position:absolute;top:0;bottom:0;left:25.28%;width:81.18%;margin:0}
.home-hero__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 67%}
.home-hero__scrim{position:absolute;inset:0;background:linear-gradient(90deg,#0b2545 0%,#0b2545 39.9%,rgba(11,37,69,.8) 61.5%,rgba(11,37,69,.4) 100%)}
.home-hero__content{position:relative;z-index:2;padding:0 var(--gutter);width:100%}
.home-hero__title{font-size:72px;line-height:83px;letter-spacing:-.04em;font-weight:500;color:#fff;margin:0;max-width:617px}
.home-hero__title em{color:var(--wp--preset--color--rose);font-style:italic}
.home-hero__lead{font-size:18px;line-height:28px;color:var(--wp--preset--color--mist);margin:24px 0 0}
.home-hero .home-hero__cta{display:none;margin-top:32px}

/* ---------- who we are ---------- */
.home-who{padding:72px var(--gutter);display:flex;flex-direction:column;gap:16px}
.home-who>*{margin:0}
.home-who__row1{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.home-who__intro{background:var(--wp--preset--color--ice);border-radius:var(--radius);padding:32px 40px;display:flex;flex-direction:column;justify-content:space-between;gap:36px;min-height:386px}
.home-who__intro .eyebrow{margin-bottom:14px}
.home-who__title{font-size:40px;line-height:46px;letter-spacing:-.02em;font-weight:500;margin:0 0 14px}
.home-who__text{font-size:16px;line-height:26px;color:var(--wp--preset--color--slate);margin:0}
.home-who__intro .wp-block-buttons{margin:0}
.home-who__side{display:flex;flex-direction:column;gap:16px}
.home-who__photo{height:220px;border-radius:var(--radius);overflow:hidden}
.home-who__photo img,.home-who__photo2 img,.collage__a img,.collage__b img,.collage__c img{width:100%;height:100%;object-fit:cover}
.home-who__stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat{border:1px solid var(--wp--preset--color--line);border-radius:var(--radius);padding:22px 24px;height:150px;display:flex;flex-direction:column}
.stat>*{margin:0}
.stat__label{font-size:13px;line-height:16px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--wp--preset--color--steel)}
.stat__value{font-family:var(--serif);font-size:48px;line-height:48px;margin-top:auto!important;color:var(--wp--preset--color--navy)}
.stat__note{font-size:15px;line-height:22px;margin-top:6px!important}
.stat--accent{background:var(--wp--preset--color--crimson);border-color:var(--wp--preset--color--crimson);color:#fff}
.stat--accent .stat__label,.stat--accent .stat__value{color:#fff}
.home-who__row2{display:grid;grid-template-columns:956fr 308fr;gap:16px}
.home-who__mission{background:var(--wp--preset--color--navy);border-radius:var(--radius);padding:28px 40px;display:flex;flex-direction:column;gap:12px}
.home-who__mission>*{margin:0}
.home-who__mission-text{font-family:var(--serif);font-size:28px;line-height:36px;letter-spacing:-.01em;color:#fff}
.home-who__photo2{border-radius:var(--radius);overflow:hidden;position:relative;min-height:120px}
.home-who__photo2 img{position:absolute;inset:0}

/* ---------- what we do ---------- */
.home-what{padding:72px var(--gutter) 76px;display:flex;flex-direction:column;align-items:center;gap:48px}
.home-what>*{margin:0}
.home-what .section__title{color:#fff;line-height:52.8px;position:relative;z-index:1}
.glow{position:absolute;left:79.17%;top:-140px;width:420px;height:420px;margin:0;pointer-events:none}
.glow img{position:absolute;left:-120px;top:-120px;width:660px;max-width:none;height:660px}
.home-what__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;width:100%;position:relative;z-index:1}
.card{background:#fff;border-radius:var(--radius);padding:28px 26px 32px;box-shadow:0 1px 4.5px rgba(0,0,0,.15)}
.card>*{margin:0}
.card__icon{width:52px;height:52px;background:var(--wp--preset--color--rose-tint);border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:30px!important}
.card__title{font-family:var(--sans);font-size:24px;line-height:28.8px;font-weight:600;letter-spacing:0;color:var(--wp--preset--color--navy);margin-bottom:12px!important}
.card__text{font-size:16px;line-height:24px;color:var(--wp--preset--color--slate)}

/* ---------- objectives ---------- */
.home-objectives{padding:96px var(--gutter);display:flex;flex-direction:column;gap:48px}
.home-objectives>*{margin:0}
.home-objectives__split{display:grid;grid-template-columns:604px 1fr;gap:72px;align-items:start}
.home-objectives__collage{display:grid;grid-template-columns:340fr 252fr;grid-template-rows:1fr 1fr;gap:12px;height:516px}
.collage__a{grid-row:1/3}
.collage__a,.collage__b,.collage__c{border-radius:var(--radius);overflow:hidden;min-height:0}
.objective{display:flex;gap:20px;padding:20px 0;border-top:1px solid var(--wp--preset--color--line-strong)}
.objective:first-child{border-top:0}
.objective>*{margin:0}
.objective__number{flex:none;width:24px;font-size:16px;line-height:26px;font-weight:500;color:var(--wp--preset--color--red-text)}
.objective__text{flex:1;min-width:0}
.objective__title{font-family:var(--sans);font-size:18px;line-height:26px;font-weight:500;letter-spacing:0;margin:0 0 6px!important}
.objective__text p{margin:0;font-size:16px;line-height:24px;color:var(--wp--preset--color--slate)}

/* ---------- benefits ---------- */
.home-benefits{padding:96px var(--gutter);display:flex;flex-direction:column;gap:48px}
.home-benefits>*{margin:0}
.home-benefits__blocks{display:grid;grid-template-columns:repeat(4,1fr)}
.benefit{padding:28px;min-height:154px;display:flex;flex-direction:column;gap:16px;color:#fff}
.benefit>*{margin:0}
.benefit--navy{background:var(--wp--preset--color--navy)}
.benefit--red{background:var(--wp--preset--color--crimson)}
.benefit:first-child{border-radius:var(--radius) 0 0 var(--radius)}
.benefit:last-child{border-radius:0 var(--radius) var(--radius) 0}
.benefit__icon{width:46px;height:46px;display:flex;align-items:center;justify-content:center}
.benefit__label{font-size:28px;line-height:36px;font-weight:500;color:#fff}

/* ---------- member companies ---------- */
.home-members{padding:94px var(--gutter) 84px}
.home-members>*{margin:0}
.home-members .section__title{margin:18px 0 24px}
.home-members .section__lead{margin-bottom:46px}
.logo-grid{display:grid;grid-template-columns:repeat(5,1fr);border-left:1px solid var(--wp--preset--color--line-soft);border-top:1px solid var(--wp--preset--color--line-soft)}
.logo-grid .wp-block-query,.logo-grid .wp-block-post-template{display:contents}
.logo-grid .wp-block-post-template{list-style:none;margin:0;padding:0}
.logo-grid .wp-block-post,.logo-grid .member-more{box-sizing:border-box;background:#fff;border-right:1px solid var(--wp--preset--color--line-soft);border-bottom:1px solid var(--wp--preset--color--line-soft);height:171px;margin:0;min-width:0}
.logo-grid .wp-block-post{padding:18px 16px 20px}
.member-cell{height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:103px 28px;align-content:space-between}
.member-cell__logo{grid-row:1;justify-self:center}
.member-cell__name{grid-row:2;min-width:0}
.member-cell>*{margin:0}
.member-cell__logo{width:103px;height:103px;flex:none}
.member-cell__logo img{width:100%;height:100%;object-fit:contain}
.member-cell__name{width:100%;margin:0}
.member-cell__name .wp-block-button{width:100%}
.member-cell__name .wp-block-button__link{display:block;width:100%;background:transparent;padding:0;border-radius:0;font-size:16px;line-height:28px;font-weight:400;color:var(--wp--preset--color--steel);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the whole box is the link */
.logo-grid .wp-block-post{position:relative;transition:background-color .2s ease}
.member-cell__name .wp-block-button__link::before{content:"";position:absolute;inset:0;z-index:1}
.member-cell__logo{transition:opacity .2s ease}
/* hover / keyboard focus (Figma "List", hover state) */
.logo-grid .wp-block-post:hover,.logo-grid .wp-block-post:has(:focus-visible){background:#01307f}
.logo-grid .wp-block-post:hover .member-cell__logo,.logo-grid .wp-block-post:has(:focus-visible) .member-cell__logo{opacity:.1}
.logo-grid .wp-block-post:hover .member-cell__name,.logo-grid .wp-block-post:has(:focus-visible) .member-cell__name{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 16px;width:auto}
.logo-grid .wp-block-post:hover .member-cell__name .wp-block-button,.logo-grid .wp-block-post:has(:focus-visible) .member-cell__name .wp-block-button{width:auto;max-width:100%}
.logo-grid .wp-block-post:hover .wp-block-button__link,.logo-grid .wp-block-post:has(:focus-visible) .wp-block-button__link{display:inline-flex;align-items:flex-end;gap:6px;width:auto;max-width:100%;color:#fff;font-size:18px;font-weight:600;white-space:normal;text-align:center;justify-content:center}
.logo-grid .wp-block-post:hover .wp-block-button__link::after,.logo-grid .wp-block-post:has(:focus-visible) .wp-block-button__link::after{content:"";flex:none;width:24px;height:24px;background:url(../icons/arrow-up-right-white-24.svg) center/contain no-repeat}
.logo-grid .wp-block-post:has(:focus-visible){outline:2px solid #fff;outline-offset:-4px}
.member-more{display:flex;align-items:center;justify-content:center}
.member-more .wp-block-button__link{background:transparent;color:var(--wp--preset--color--crimson);padding:0;font-size:16px;line-height:24px;display:inline-flex;align-items:center;gap:6px}
.member-more .wp-block-button__link::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url(../icons/arrow-right-16.svg) center/contain no-repeat;mask:url(../icons/arrow-right-16.svg) center/contain no-repeat}

/* ---------- past events ---------- */
.home-events{padding:96px var(--gutter);display:flex;flex-direction:column;gap:48px}
.home-events>*{margin:0}
.home-events__head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.home-events__head .section__title{margin-top:16px}
.link-more{margin:0;padding-bottom:8px;font-size:16px;line-height:20px;font-weight:600;white-space:nowrap}
.link-more a{color:var(--wp--preset--color--red-text);text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.link-more a::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url(../icons/arrow-right-16.svg) center/contain no-repeat;mask:url(../icons/arrow-right-16.svg) center/contain no-repeat}
.is-past-events .wp-block-post-template{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;list-style:none;margin:0;padding:0}
.event-card{background:#fff;border:1px solid var(--wp--preset--color--line);border-radius:var(--radius);overflow:hidden;height:420px;display:flex;flex-direction:column}
.event-card>*{margin:0}
.event-card__image{height:200px;margin:0;flex:none;background:var(--wp--preset--color--ice)}
.event-card__image img{width:100%;height:100%;object-fit:cover}
.event-card__body{flex:1;padding:24px;display:flex;flex-direction:column;gap:14px;min-height:0}
.event-card__body>*{margin:0}
.event-card__date{display:flex;align-items:center;gap:6px;font-size:13px;line-height:18px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--wp--preset--color--steel)}
.event-card__date::before{content:"";width:15px;height:15px;flex:none;background:url(../icons/calendar-thin.svg) center/15px 15px no-repeat}
.event-card__title{font-family:var(--sans);font-size:18px;line-height:26px;font-weight:500;letter-spacing:0;height:78px;overflow:hidden;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.event-card__title a{color:var(--wp--preset--color--navy);text-decoration:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.event-card__more{margin-top:auto!important;font-size:15px;line-height:20px;font-weight:600;color:var(--wp--preset--color--navy);text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.event-card__more::after{content:"";width:16px;height:16px;flex:none;background:url(../icons/arrow-read-more.svg) center/17px 11px no-repeat}

/* ---------- membership band ---------- */
.join-band{padding:84px var(--gutter);display:flex;justify-content:center}
.join-band__glow{position:absolute;left:83.7%;top:-129px;width:340px;height:340px;border-radius:170px;background:var(--wp--preset--color--crimson);filter:blur(60px);pointer-events:none}
.join-band__inner{position:relative;z-index:1;width:917px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.join-band__inner>*{margin:0}
.join-band .section__title{margin:18px 0 24px}
.join-types{display:flex;justify-content:center;align-items:flex-end;margin-top:70px}
.join-type{width:231px;min-height:103px;display:flex;flex-direction:column;align-items:center;gap:17px;text-align:center}
.join-type>*{margin:0}
.join-type+.join-type{margin-left:31px;padding-left:31px;border-left:1px solid rgba(255,255,255,.25);width:263px}
.join-type__icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center}
.join-type__label{font-size:16px;line-height:24px;font-weight:600;color:#fff;min-height:46px}
.join-buttons{margin-top:70px;gap:19px;justify-content:center}
.join-buttons .wp-block-button__link{padding:11px 20px;font-size:16px}
.join-buttons .wp-block-button:first-child .wp-block-button__link{font-size:14px;padding:12px 20px}

/* ---------- tablet ---------- */
@media (max-width:1099px){
  .home-hero__title{font-size:56px;line-height:64px}
  .home-who__row1,.home-who__row2{grid-template-columns:1fr}
  .home-who__photo2{height:240px}
  .home-objectives__split{grid-template-columns:1fr;gap:40px}
  .home-objectives__collage{height:auto;aspect-ratio:604/516;max-width:604px}
  .home-benefits__blocks{grid-template-columns:repeat(2,1fr);gap:12px}
  .benefit,.benefit:first-child,.benefit:last-child{border-radius:var(--radius)}
  .logo-grid{grid-template-columns:repeat(3,1fr)}
  .is-past-events .wp-block-post-template{grid-template-columns:repeat(2,1fr)}
  .join-types{flex-wrap:wrap;row-gap:32px}
}
@media (max-width:900px){
  .home-what__cards{grid-template-columns:1fr}
}

/* ---------- phone ---------- */
@media (max-width:781px){
  .section__title{font-size:32px;line-height:40px}
  .section__lead{font-size:16px;line-height:24px}
  .eyebrow{font-size:13px;line-height:16px}
  .home-hero{min-height:452px;align-items:flex-start}
  .home-hero__photo{left:38%;width:100%}
  .home-hero__photo img{object-position:72% 60%}
  .home-hero__content{padding-top:140px;padding-bottom:48px}
  .home-hero__title{font-size:40px;line-height:46px;letter-spacing:-.03em}
  .home-hero__lead{font-size:16px;line-height:24px;margin-top:20px}
  .home-hero .home-hero__cta{display:flex}
  .home-who{padding:48px var(--gutter)}
  .home-who__intro{padding:24px;min-height:0;gap:24px}
  .home-who__title{font-size:32px;line-height:40px}
  .home-who__photo{height:200px}
  .stat{height:134px;padding:20px 16px}
  .stat__value{font-size:44px;line-height:44px}
  .home-who__mission{padding:24px}
  .home-who__mission-text{font-size:24px;line-height:32px}
  .home-who__photo2{height:174px}
  .home-what{padding:48px var(--gutter);gap:32px}
  .home-what .section__title{line-height:40px}
  .home-what__cards{gap:16px}
  .glow{left:calc(100% - 150px);top:-120px;width:240px;height:240px}
  .glow img{left:-68px;top:-68px;width:377px;height:377px}
  .home-objectives{padding:48px var(--gutter);gap:32px}
  .home-objectives__split{gap:32px}
  .home-objectives__collage{grid-template-columns:192fr 143fr;gap:7px;aspect-ratio:auto;height:292px;max-width:none}
  .objective{gap:16px}
  .home-benefits{padding:48px var(--gutter);gap:32px}
  .benefit{padding:20px;min-height:122px;gap:12px}
  .benefit__icon{width:40px;height:40px}
  .benefit__label{font-size:16px;line-height:24px}
  .home-members{padding:48px var(--gutter)}
  .home-members .section__title{margin:12px 0 16px}
  .home-members .section__lead{margin-bottom:24px}
  .logo-grid{grid-template-columns:repeat(2,1fr)}
  .logo-grid .wp-block-post,.logo-grid .member-more{height:184px}
  .logo-grid .member-more{grid-column:1/-1;height:64px;min-height:0;padding:0;justify-content:center}
  .home-events{padding:48px var(--gutter);gap:32px}
  .home-events__head{flex-direction:column;align-items:flex-start;gap:16px}
  .link-more{padding-bottom:0}
  .is-past-events .wp-block-post-template{grid-template-columns:1fr}
  .join-band{padding:48px var(--gutter)}
  .join-band .section__title{margin:12px 0 16px}
  .join-types{flex-direction:column;align-items:stretch;gap:24px;margin-top:32px;width:100%}
  .join-type,.join-type+.join-type{width:100%;min-height:0;flex-direction:row;align-items:center;gap:16px;text-align:left;margin-left:0;padding-left:0;border-left:0}
  .join-type__icon{flex:none}
  .join-type__label{height:auto;max-width:190px}
  .join-buttons{margin-top:32px;gap:12px;flex-direction:column;align-items:stretch;width:100%}
  .join-buttons .wp-block-button,.join-buttons .wp-block-button__link{width:100%;text-align:center}
}

/* ---------- fine-tuning to match Figma exactly ---------- */
.home-who__mission .eyebrow{font-size:13px;line-height:16px}
.join-band .eyebrow{line-height:20px;letter-spacing:.114em}
.join-type__label{height:44px;min-height:0}
.has-arrow .wp-block-button__link,.has-arrow-white .wp-block-button__link{display:inline-flex;align-items:center}
.has-arrow .wp-block-button__link::after,.has-arrow-white .wp-block-button__link::after{vertical-align:baseline}

/* Objectives collage: crop of the new photos (Figma 2295:6373) */
.collage__a{position:relative}
.collage__a img{position:absolute;max-width:none;width:112%;height:112%;left:-8%;top:-12%;object-position:50% 50%}
.collage__b img{object-position:18% 0}
